/* EICR hub — page chrome */
#eicr-calculators {
  scroll-margin-top: 6rem;
}

#eicr-detailed {
  scroll-margin-top: 6rem;
}

.eicr-hero {
  background: radial-gradient(120% 80% at 50% 0%, rgba(253, 199, 0, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, #0c0c0e 0%, #17171c 45%, #0f1114 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

/* Main guide copy — white panel, black border, black / dark grey only */
.eicr-prose-panel {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 1.5rem 1.15rem 1.75rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .eicr-prose-panel {
    padding: 2rem 1.75rem 2.25rem;
  }
}

.eicr-prose h2 {
  font-family: var(--te-font-hd, ui-sans-serif, system-ui);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #0a0a0a;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.eicr-prose h2:first-child {
  margin-top: 0;
}

.eicr-prose p,
.eicr-prose li {
  color: #383838;
  line-height: 1.65;
  font-size: 1.02rem;
}

.eicr-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.eicr-prose li {
  margin-bottom: 0.45rem;
}

.eicr-prose strong {
  color: #0a0a0a;
  font-weight: 700;
}

.eicr-prose em {
  color: #383838;
  font-style: italic;
}

.eicr-prose abbr {
  color: #383838;
  text-decoration: underline dotted;
  text-underline-offset: 0.12em;
  cursor: help;
}

.eicr-prose a {
  color: #262626;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.eicr-prose a:hover {
  color: #0a0a0a;
}

.eicr-prose-callout {
  margin: 1.5rem 0 0;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 4px solid #0a0a0a;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #383838;
}

.eicr-prose-callout strong {
  color: #0a0a0a;
}

.eicr-prose-callout a {
  color: #262626;
  font-weight: 700;
}

.eicr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  background: rgba(253, 199, 0, 0.2);
  border: 1px solid rgba(253, 199, 0, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

/* ═══ Twin calculator “devices” — fixed size, no internal scroll ═══ */

.eicr-calc-device {
  background: linear-gradient(160deg, #25262c 0%, #141518 55%, #0e0f12 100%);
  border: 2px solid #2d2d33;
  border-radius: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.eicr-calc-shell__tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.eicr-calc-shell__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.eicr-calc-shell__hd h2 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.eicr-calc-shell__bd {
  padding: 0.55rem 0.65rem 0.6rem;
}

.eicr-calc-shell__bd--fixed {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* LCD-style readout */
.eicr-calc-display {
  flex-shrink: 0;
  border-radius: 0.4rem;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(180deg, #0d1012 0%, #050608 100%);
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
  text-align: right;
}

.eicr-calc-display--sm .eicr-calc-display__value {
  font-size: 1.15rem;
}

.eicr-calc-display__label {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 224, 71, 0.4);
  text-align: left;
  margin-bottom: 0.1rem;
}

.eicr-calc-display__value {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fde047;
  line-height: 1.05;
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.12);
}

.eicr-calc-readout {
  flex-shrink: 0;
  font-size: 0.58rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.1rem;
}

.eicr-calc-readout--muted {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.55rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eicr-calc-micro {
  margin: 0;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.eicr-toggle-pair--calc {
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
}

.eicr-toggle-pair--calc button {
  flex: 1;
  padding: 0.4rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: #2c2e35;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.12s, color 0.12s;
}

.eicr-toggle-pair--calc button.is-on {
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  color: #111;
}

/* Discount keys: two half-width + full-width returning row */
.eicr-calc-discount-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  width: 100%;
  align-items: stretch;
}

.eicr-calc-discount-pair .eicr-calc-landlord-key--full {
  grid-column: 1 / -1;
}

.eicr-calc-landlord-key {
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.35rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2a2c32;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.eicr-calc-landlord-key .eicr-calc-landlord-key__on {
  display: none;
}

.eicr-calc-landlord-key.is-on {
  border-color: rgba(253, 199, 0, 0.45);
  background: rgba(253, 199, 0, 0.12);
  color: #fde047;
}

.eicr-calc-landlord-key.is-on .eicr-calc-landlord-key__off {
  display: none;
}

.eicr-calc-landlord-key.is-on .eicr-calc-landlord-key__on {
  display: inline;
}

.eicr-calc-rowbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Board rows — fixed 4-slot stack, no scroll */
.eicr-pc-boards-fixed {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 7.35rem;
  overflow: hidden;
}

.eicr-board-slot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.eicr-board-slot__i {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.eicr-board-slot--empty {
  opacity: 0.35;
  pointer-events: none;
}

.eicr-board-slot--empty .eicr-board-slot__i {
  color: rgba(255, 255, 255, 0.2);
}

.eicr-key {
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #3a3c44 0%, #25262c 100%);
  color: #f5f5f5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.06s ease, border-color 0.12s;
}

.eicr-key:active {
  transform: translateY(1px);
}

.eicr-key:hover {
  border-color: rgba(253, 199, 0, 0.45);
  color: #fde047;
}

.eicr-key--gold {
  background: linear-gradient(180deg, #fde047 0%, #ca8a04 100%);
  color: #111;
  border-color: rgba(0, 0, 0, 0.2);
}

.eicr-key--gold:hover {
  color: #000;
}

.eicr-key--sm {
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  font-size: 0.85rem;
}

.eicr-key--ghost {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  font-size: 0.65rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.eicr-key--ghost:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.eicr-board-slot__count {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.eicr-board-slot__spacer {
  flex: 1;
}

/* Preset keys — 2×2 */
.eicr-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  flex-shrink: 0;
}

.eicr-preset-key {
  padding: 0.35rem 0.25rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2c2e35;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.eicr-preset-key:hover {
  border-color: rgba(253, 199, 0, 0.45);
  color: #fde047;
}

.eicr-pc-disc-slot {
  flex-shrink: 0;
  min-height: 1.15rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: #6ee7b7;
  line-height: 1.2;
  padding: 0.15rem 0.25rem;
  border-radius: 0.3rem;
  border: 1px solid transparent;
  opacity: 0;
  visibility: hidden;
}

.eicr-pc-disc-slot.is-visible {
  opacity: 1;
  visibility: visible;
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(16, 185, 129, 0.1);
}

/* Estimate: bedroom numpad */
.eicr-numpad {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.eicr-numpad__key {
  flex: 1;
  min-width: 0;
  height: 2rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2c2e35;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.eicr-numpad__key:hover {
  border-color: rgba(253, 199, 0, 0.45);
  color: #fde047;
}

.eicr-numpad__key--on {
  border-color: rgba(253, 199, 0, 0.55);
  background: rgba(253, 199, 0, 0.15);
  color: #fde047;
}

.eicr-calc-select {
  width: 100%;
  flex-shrink: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1f2026;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.eicr-calc-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.eicr-calc-actions__primary,
.eicr-calc-actions__secondary {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.12s, background 0.12s;
}

.eicr-calc-actions__primary {
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  color: #111;
}

.eicr-calc-actions__primary:hover {
  filter: brightness(1.06);
}

/** Emphasise: arrange a site visit for a more accurate / firm quote than the calculator alone */
.eicr-calc-actions__primary--visit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.18;
  gap: 0.1rem;
  padding: 0.36rem 0.3rem 0.4rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.eicr-calc-actions__primary--visit .eicr-calc-actions__visit-line2 {
  display: block;
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.9;
  max-width: 100%;
}

/* Single CTA (e.g. estimate device with no email button) — full width */
.eicr-calc-actions--solo {
  display: block;
}

.eicr-calc-actions--solo .eicr-calc-actions__primary--visit {
  width: 100%;
  display: flex;
  box-sizing: border-box;
}

.eicr-calc-actions__secondary {
  background: #2c2e35;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.eicr-calc-actions__secondary:hover {
  background: #363840;
}

/* Quick vs detailed tabs */
.eicr-calc-mode-tabs {
  width: 100%;
}

.eicr-calc-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.eicr-calc-tab:hover {
  border-color: rgba(253, 199, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.eicr-calc-tab--active {
  border-color: rgba(253, 199, 0, 0.55);
  background: rgba(253, 199, 0, 0.12);
  color: #fde047;
}

/* Sub-label beneath eicr-calc-micro - sentence case hint */
.eicr-calc-micro--sub {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.48rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.12rem;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

/* Primary figure when quick estimate shows from with band note below */
.eicr-est-from {
  display: block;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fde047;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.18);
}

/* Subtle flash animation when LCD value updates */
@keyframes te-lcd-flash {
  0%   { opacity: 0.55; transform: scaleX(0.98); }
  100% { opacity: 1;    transform: scaleX(1); }
}

.eicr-calc-display__value.te-lcd-updated {
  animation: te-lcd-flash 0.25s ease-out forwards;
}

.eicr-calculators-viewport--detailed {
  height: auto;
  max-height: none;
}

.eicr-calculators-grid--detailed {
  align-items: stretch;
}

.eicr-calc-shell__bd--roomscroll {
  overflow-y: auto;
  overflow-x: hidden;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.eicr-room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .eicr-room-grid {
    grid-template-columns: 1fr;
  }
}

.eicr-room-grid .eicr-board-slot {
  padding: 0 0.3rem;
}

.eicr-room-slot__lab {
  flex: 0 0 4.2rem;
  font-size: 0.52rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eicr-room-opts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.25rem;
  flex-shrink: 0;
}

.eicr-r-opt-tri {
  padding: 0.32rem 0.2rem !important;
  font-size: 0.52rem !important;
  line-height: 1.15;
}

/* Two-column layout is defined here (not Tailwind) so it works with the prebuilt bundle */
.eicr-calculators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Side-by-side + fixed height from 900px (below old 1024px lg, many laptop windows qualify) */
@media (min-width: 900px) {
  .eicr-calculators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .eicr-calculators-grid--detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eicr-calculators-viewport:not(.eicr-calculators-viewport--detailed) {
    height: 27.5rem;
    max-height: 27.5rem;
  }

  .eicr-calculators-viewport:not(.eicr-calculators-viewport--detailed) .eicr-calculators-grid {
    height: 100%;
    align-items: stretch;
  }

  .eicr-calculators-viewport:not(.eicr-calculators-viewport--detailed) .eicr-calc-device {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .eicr-calculators-viewport:not(.eicr-calculators-viewport--detailed) .eicr-calc-shell__bd--fixed {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  /* Detailed tab: allow both columns to grow; cap assistant height on very large screens */
  .eicr-calculators-viewport--detailed .eicr-calc-device {
    min-height: 24rem;
  }

  .eicr-calculators-viewport--detailed #eicr-room-root .eicr-calc-shell__bd--roomscroll {
    max-height: 28rem;
  }
}

/* All pricing calculators (EICR, rewire, consumer unit): rough guide, contact hook, on-site reality, satisfaction */
.te-calc-philosophy {
  max-width: 44rem;
  margin: 1rem auto 0;
  padding: 0.85rem 0.75rem 0;
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  font-size: 0.7rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.te-calc-philosophy strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* Link to advanced (detailed) page — under calculator philosophy block */
.te-calc-advanced-strip {
  max-width: 44rem;
  margin: 0.5rem auto 0;
  padding: 0.4rem 0.75rem 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.te-calc-advanced-strip a {
  color: #fde047;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 224, 71, 0.35);
}

.te-calc-advanced-strip a:hover {
  color: #fef08a;
  border-bottom-color: rgba(254, 240, 138, 0.5);
}

/* ─── Cross-calculator project strip ──────────────────────────────────── */
.te-project-strip {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  padding: 0.85rem 0.75rem 0.9rem;
  border: 1px solid rgba(253, 199, 0, 0.18);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(253,199,0,0.04) 100%);
}

.te-project-strip__hd {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  margin-bottom: 0.6rem;
}

.te-project-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.te-project-strip__link {
  flex: 1 1 9rem;
  max-width: 15rem;
  padding: 0.55rem 0.7rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(253, 199, 0, 0.2);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  display: block;
}

.te-project-strip__link:hover {
  border-color: rgba(253, 199, 0, 0.5);
  background: rgba(253, 199, 0, 0.08);
  transform: translateY(-1px);
}

.te-project-strip__link-icon {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(253, 199, 0, 0.65);
}

.te-project-strip__link-title {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.te-project-strip__link-price {
  display: block;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.03em;
}

/* ─── What's NOT included disclosure ──────────────────────────────────── */
.te-not-incl {
  max-width: 44rem;
  margin: 0.85rem auto 0;
  font-size: 0.62rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.te-not-incl summary {
  cursor: pointer;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.te-not-incl summary::-webkit-details-marker { display: none; }

.te-not-incl summary::before {
  content: '+';
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.te-not-incl[open] summary::before { content: '\2212'; }

.te-not-incl__body {
  padding-top: 0.55rem;
}

.te-not-incl__body ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.te-not-incl__body li {
  margin-bottom: 0.3rem;
}

.te-not-incl__body strong {
  color: rgba(255, 255, 255, 0.75);
}

/* ─── Copy-to-clipboard action button ─────────────────────────────────── */
.eicr-calc-actions__copy {
  flex: none;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.6rem;
  font-weight: 800;
  background: #25262c;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.eicr-calc-actions__copy:hover {
  background: #363840;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.eicr-calc-actions__copy.te-copied {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

/* ─── CU preset selector cards ────────────────────────────────────────── */
.cu-preset-card {
  flex: 1 1 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #25262c;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s, transform 0.1s;
  gap: 0.12rem;
}

.cu-preset-card:hover {
  border-color: rgba(253, 199, 0, 0.45);
  background: rgba(253, 199, 0, 0.07);
  transform: translateY(-1px);
}

.cu-preset-card.is-active {
  border-color: rgba(253, 199, 0, 0.6);
  background: rgba(253, 199, 0, 0.13);
}

.cu-preset-card__num {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fde047;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cu-preset-card.is-active .cu-preset-card__num {
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.35);
}

.cu-preset-card__label {
  font-size: 0.47rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.cu-preset-card.is-active .cu-preset-card__label {
  color: rgba(253, 199, 0, 0.75);
}

.cu-preset-card__price {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.1rem;
}

.cu-preset-card.is-active .cu-preset-card__price {
  color: rgba(253, 199, 0, 0.55);
}

/* ─── Print styles ─────────────────────────────────────────────────────── */
@media print {
  #site-header, #site-footer, header.eicr-hero,
  .eicr-calc-mode-tabs, .eicr-calc-actions, .eicr-calc-actions--solo,
  .te-calc-philosophy, .te-calc-advanced-strip, .te-project-strip,
  .te-not-incl, .te-disclose, .te-btn-primary, .te-btn-outline,
  .skip-to-content, nav, .cu-hero-cta { display: none !important; }

  body { background: #fff !important; color: #111 !important; font-size: 10pt; }

  .eicr-calculators-section { background: #fff !important; border: none !important; padding: 0 !important; }

  .eicr-calc-device {
    background: #fff !important;
    border: 1px solid #bbb !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .eicr-calc-display {
    background: #f4f4f4 !important;
    border: 1px solid #999 !important;
    box-shadow: none !important;
  }

  .eicr-calc-display__label { color: #555 !important; }
  .eicr-calc-display__value { color: #111 !important; text-shadow: none !important; }
  .eicr-est-from { color: #111 !important; text-shadow: none !important; }

  .eicr-calc-shell__hd { background: #eee !important; border-bottom: 1px solid #bbb !important; }
  .eicr-calc-shell__hd h2 { color: #111 !important; }
  .eicr-calc-readout, .eicr-calc-micro { color: #444 !important; }
  .eicr-board-slot { background: #f8f8f8 !important; border: 1px solid #ddd !important; }
  .eicr-board-slot__count, .eicr-board-slot__i { color: #111 !important; }
  .eicr-calc-landlord-key, .rewire-opt-btn, .eicr-numpad__key {
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
  }
  .eicr-pc-disc-slot.is-visible { color: #222 !important; border-color: #aaa !important; background: #e8f8f0 !important; }
  .cu-cbreak { color: #222 !important; }
  .cu-cbreak th, .cu-cbreak td { border-bottom-color: #ddd !important; color: #222 !important; }
  .cu-cbreak tfoot td { color: #111 !important; }
  .cu-cbreak__total td { color: #111 !important; }
  .te-calc-philosophy, [id*="readout"] { color: #555 !important; }

  /* Show hidden detailed panel for print */
  [hidden] { display: block !important; }
  #eicr-panel-quick, #rw-panel-quick, #cu-panel-quick { display: none !important; }
}