/* =====================================================================
   CONDITION TEMPLATE · V5 approved system (TASK U, 2026-09-26)
   Loaded AFTER ../../css/v5.css and svc.css (the SHARED service template
   layer: hero layout, editorial zone + sticky rail, slot-5 blocks, table,
   timeline, why-us field, visit, booking, FAQ, CTA). This file only adds
   the condition-only slots: the condition hero plate + EEG trace, the
   summary box, the symptom grid, causes, treatment cards (+ testing),
   the recovery timeline window labels, the red-flag card, parents and
   coaches, the verbatim review and the rail snapshot.
   Content is fully visible with JS off; motion is GSAP only (cond.js).
   ===================================================================== */

/* ---------- hero: the condition image (shared map) as the plate, the same subtle opacity as the service cards ---------- */
.cond-hero .svc-hero__plate { background: var(--ink-0); }
.cond-hero .svc-hero__img { opacity: var(--cond-bg-o, .5); }
.cond-hero .svc-hero__shade {
  background:
    linear-gradient(90deg, var(--ink-0) 0%, rgba(14, 11, 12, .62) 18%, rgba(14, 11, 12, .1) 50%, rgba(14, 11, 12, 0) 72%),
    linear-gradient(180deg, rgba(14, 11, 12, .5) 0%, rgba(14, 11, 12, 0) 24%, rgba(14, 11, 12, 0) 64%, var(--ink-0) 100%),
    radial-gradient(90% 80% at 60% 40%, transparent 50%, rgba(58, 10, 29, .4) 100%); }
.cond-hero__eeg { position: absolute; left: 0; right: 0; top: 60%; height: 20%; pointer-events: none; }
.eeg { display: block; width: 100%; height: 100%; overflow: visible; }
.eeg path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.eeg__base { stroke: rgba(243, 236, 232, .14); stroke-width: 1; }
.eeg__trace { stroke: var(--crimson-hi); stroke-width: 1.6; opacity: .85; }
.eeg__pulse { stroke: #fff; stroke-width: 2.2; opacity: .9; }
.cond-hero__h1 { font-size: clamp(3rem, 6.1vw, 6.6rem); max-width: 12ch; overflow-wrap: break-word; }
.cond-hero .svc-hero__geo { font-size: .42em; margin-top: .2em; }
.cond-hero .svc-hero__inner { max-width: 800px; }

/* ---------- slot 3: the summary box (paper card, the page's answer-first moment) ---------- */
.cond-tldr { padding-block: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 24px); }
.tldr { position: relative; overflow: clip; padding: clamp(26px, 3.4vw, 46px) clamp(26px, 3.4vw, 46px) clamp(26px, 3.4vw, 42px) clamp(34px, 4vw, 56px);
  border-radius: var(--radius); background: var(--paper); color: #1b1415; }
.tldr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--crimson); transform-origin: top; transform: scaleY(var(--bar, 1)); }
.tldr__k { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--crimson); }
.tldr__k .chev { color: var(--crimson); }
.tldr__prose p { font: 500 clamp(1.18rem, 1.75vw, 1.5rem)/1.48 var(--f-body); letter-spacing: -.005em; color: #1b1415; max-width: 60ch; }

/* ---------- slot 4: the opening (question-form sub-headings + the session photo) ---------- */
.cond-open__sec + .cond-open__sec { margin-top: clamp(28px, 3vw, 40px); }
.cond-open .svc-sub-h { margin-top: 0; }
.cond-open .prose--lede:not(.prose--first) p:first-child { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; font-weight: 400; color: #e3d9d5; letter-spacing: 0; }
.cond-fig .bezel__core { aspect-ratio: 4 / 5; }
.cond-fig img { object-position: 42% 30%; }

/* ---------- slot 5 (shared): no media in the capsule -> one column ---------- */
.cpage .w5-cap:not(:has(.w5-cap__media)) { grid-template-columns: 1fr; }
.cpage .w5-cap:not(:has(.w5-cap__media)) .w5-cap__prose p { max-width: 58ch; }

/* ---------- slot 6: the symptom check-grid ---------- */
.sym-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-in); overflow: clip; }
.sym { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px 14px; align-content: start; min-height: 128px;
  padding: 22px 20px 24px; background: var(--ink-0); transition: background-color var(--dur) var(--ease-out); }
.sym:hover { background: var(--ink-2); }
.sym__ico { grid-row: 1 / span 2; color: var(--crimson-hi); line-height: 0; }
.sym__n { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; color: var(--dim); }
.sym__t { font: 600 16.5px/1.35 var(--f-body); color: var(--paper); }

/* ---------- slot 7: causes ---------- */
.causes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cause { position: relative; padding: 26px 26px 28px; border-radius: var(--radius-in); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243, 236, 232, .04) 0%, rgba(243, 236, 232, 0) 100%); }
.cause__n { display: block; margin-bottom: 16px; font: 900 clamp(2.8rem, 4vw, 3.6rem)/.8 var(--f-display); color: var(--crimson-hi); }
.cause h3 { margin-bottom: 10px; font: 800 clamp(1.45rem, 2vw, 1.85rem)/.98 var(--f-display); text-transform: uppercase; }
.cause .prose p { font-size: 15.5px; color: var(--muted); }

/* ---------- slot 8: how we treat (capsule #2 + treatment cards linking UP + the testing line) ---------- */
.svc-block .h2--long { font-size: clamp(2.2rem, 4vw, 4rem); max-width: 20ch; }
.cond-cap { margin-bottom: clamp(28px, 3vw, 40px); }
.cond-cap__media { max-width: 300px; }
.cond-cap__media .bezel { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.cond-cap__media .bezel__core { aspect-ratio: 1 / 1; }
.cond-cap__media img { width: 100%; height: 100%; object-fit: cover; }
.treats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.treat { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: clamp(22px, 2.6vw, 32px); background: var(--ink-0); scroll-margin-top: 110px; }
.treat:first-child { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(99, 18, 50, .55) 0%, var(--ink-0) 70%); }
.treat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.treat:hover::after, .treat:focus-within::after, .treat:target::after { transform: scaleX(1); }
.treat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.treat__n { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--crimson-hi); }
.treat__tag { padding: 6px 9px 6px 8px; gap: 8px; font-size: 10px; letter-spacing: .12em; }
.treat__tag i { width: 6px; height: 6px; }
.treat h3 { font: 800 clamp(1.55rem, 2.3vw, 2.1rem)/.95 var(--f-display); text-transform: uppercase; max-width: 18ch; }
.treat:first-child h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.treat .prose p { font-size: 15.5px; color: var(--muted); max-width: 60ch; }
.treat:first-child .prose p { font-size: 16.5px; color: #e3d9d5; }
.treat__go { margin-top: auto; align-self: flex-end; }
.treat:hover .cond__go .btn__icon { background: var(--crimson); transform: translateX(4px); }
.treat-test { margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 26px;
  border-radius: 18px; border: 1px dashed rgba(236, 107, 126, .5); background: rgba(171, 30, 52, .07); }
.treat-test__ico { color: var(--crimson-hi); line-height: 0; }
.treat-test__prose p { font-size: 16px; color: var(--paper); max-width: 64ch; }

/* ---------- slot 9 (shared table): header row, the practice's own row, closer ---------- */
.svc-table { background: rgba(243, 236, 232, .02); }
.svc-table thead th { font: 500 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: var(--ink-1); }
.svc-table tbody th { font-weight: 600; color: var(--paper); width: 26%; }
.svc-table td { color: var(--muted); }
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: 0; }
.svc-table tr.is-us { background: linear-gradient(90deg, rgba(171, 30, 52, .34) 0%, rgba(99, 18, 50, .18) 100%); }
.svc-table tr.is-us th { color: #fff; box-shadow: inset 3px 0 0 var(--crimson-hi); }
.svc-table tr.is-us td { color: #f3e4e7; }
.svc-table__closer { margin-top: 18px; }
.svc-table__closer p { color: var(--muted); max-width: 62ch; }

/* ---------- slot 10: the recovery timeline (shared ExpectTimeline markup + the window label) ---------- */
.rsteps { margin-top: 4px; }
.rstep__win { margin-top: 8px; font: 600 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--crimson-hi); }
.rstep h3 { margin: 8px 0 10px; }
.cond-sources { margin-top: 18px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); }
.cond-sources__k { margin-bottom: 4px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.cond-sources .auth:first-of-type { margin-top: 8px; }

/* ---------- slot 11: the red-flag card ---------- */
.redflag { position: relative; overflow: clip; padding: clamp(26px, 3.6vw, 48px); border-radius: var(--radius);
  background: linear-gradient(150deg, #4c0d21 0%, var(--wine-deep) 55%, var(--ink-1) 100%); border: 1px solid rgba(236, 107, 126, .35); }
.redflag__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.redflag__ico { flex: none; margin-top: 2px; color: #ffb3bf; line-height: 0; }
.redflag .eyebrow { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: #ffe3e7; }
.redflag .eyebrow .chev { color: #fff; }
.redflag__h { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.redflag__lede p { max-width: 56ch; font-size: 1.08rem; color: #f3e4e7; }
.redflag__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.redflag__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15.5px; line-height: 1.5; color: #fff; }
.redflag__list svg { margin-top: 2px; color: #ffb3bf; }
.redflag__urgent { margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: var(--paper); color: #1b1415; }
.redflag__urgent strong { font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.redflag .auth { color: #f1d8dc; }
.redflag .auth a { color: #fff; }

/* ---------- architect add: parents and coaches (wine field) ---------- */
.pc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pc__head { position: sticky; top: 120px; }
.pc .h2 { font-size: clamp(2.6rem, 5vw, 5rem); max-width: 12ch; }
.pc-sec { padding: 28px 0 34px; border-top: 1px solid rgba(255, 255, 255, .24); }
.pc-sec:first-child { padding-top: 6px; border-top: 0; }
.pc-sec__n { font: 600 12px/1 var(--f-mono); letter-spacing: .16em; color: #ffb3bf; }
.pc-sec h3 { margin: 12px 0 16px; font: 800 clamp(1.8rem, 3vw, 2.8rem)/.95 var(--f-display); text-transform: uppercase; color: #fff; max-width: 22ch; }
.pc-prose p { max-width: 58ch; font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: #ffe9ec; }
.pc-prose p + p { margin-top: 1em; }
.pc-prose .pc-quote { position: relative; margin-top: 1.4em; padding: 4px 0 4px 24px; border-left: 3px solid var(--on-field);
  font: 600 clamp(1.3rem, 2.1vw, 1.8rem)/1.32 var(--f-body); letter-spacing: -.01em; color: #fff; }
.pc .plink { color: #fff; text-decoration-color: var(--on-field); }
.pc .plink:hover { color: var(--on-field); }
.pc__src { padding-top: 8px; }
.pc__src .auth { color: #f1d8dc; }
.pc__src .auth a { color: #fff; text-decoration-color: var(--on-field); }

/* ---------- slot 13: the verbatim review ---------- */
.cond-rev { background: linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 100%); }
.cond-rev__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cond-rev .h2 { font-size: clamp(2.6rem, 5vw, 5rem); max-width: 10ch; }
.cond-rev__rating { margin-top: 30px; }
.cond-rev__list { display: grid; gap: 18px; }
.cond-rev__q { position: relative; margin: 0; overflow: clip; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%); border: 1px solid rgba(236, 107, 126, .22); }
.cond-rev__mark { position: absolute; right: 18px; top: -.18em; font: 900 clamp(12rem, 20vw, 18rem)/1 var(--f-display); color: rgba(255, 255, 255, .07); pointer-events: none; }
.cond-rev__stars { position: relative; margin-bottom: 18px; font-size: 18px; letter-spacing: 3px; }
.cond-rev__q blockquote { position: relative; margin: 0; }
.cond-rev__prose p { font: 500 clamp(1.18rem, 1.75vw, 1.5rem)/1.48 var(--f-body); color: #fff; }
.cond-rev__q figcaption { position: relative; margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cond-rev__q figcaption strong { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; }
.cond-rev__q figcaption span { font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #f1d8dc; }

/* ---------- the rail snapshot ("Treated with", in-page) ---------- */
.snap__k { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.snap__list { list-style: none; margin: -6px 0 0; padding: 0; display: grid; }
.snap__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.snap__list li:first-child { border-top: 0; }
.snap__list a { font-size: 15px; line-height: 1.35; color: var(--paper); text-decoration: none; transition: color var(--dur) var(--ease-out); }
.snap__list a:hover { color: var(--crimson-hi); }
.snap__rsf { flex: none; padding: 3px 6px; border-radius: 4px; background: var(--crimson); font: 600 9.5px/1.2 var(--f-mono); letter-spacing: .12em; color: #fff; }
.owner-gaps { margin-top: 14px; }

/* ---------- shared booking chapter: the condition H2 ("Schedule your [condition] evaluation") is long ---------- */
.cpage .booking .h2 { font-size: clamp(2.4rem, 4.4vw, 4.4rem); max-width: 14ch; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .sym-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sym:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cond-fig { max-width: 420px; }
}
@media (max-width: 960px) {
  .cond-rail .rundown { display: none; }
  /* one column: the summary box (slot 3) comes first, then the rail snapshot, then the rest of the editorial zone */
  .cond-body .svc-body__grid { display: flex; flex-direction: column; }
  .cond-body .svc-main { display: contents; }
  .cond-body .cond-tldr { order: -2; }
  .cond-body .cond-rail { order: -1; margin-top: 0; }
  .pc__grid, .cond-rev__grid { grid-template-columns: 1fr; }
  .pc__head { position: static; }
}
@media (max-width: 768px) {
  .cond-hero__h1 { font-size: clamp(2.4rem, 11.4vw, 3.6rem); max-width: none; }
  .cond-hero .svc-hero__geo { font-size: .5em; }
  .cond-hero__eeg { top: 54%; height: 18%; }
  .tldr { padding: 24px 20px 24px 28px; }
  .tldr__prose p { font-size: 1.1rem; }
  .sym { min-height: 0; padding: 16px 14px 18px; grid-template-columns: 1fr; gap: 8px; }
  .sym__ico { grid-row: auto; }
  .sym__ico svg { width: 26px; height: 26px; }
  .sym__n { display: none; }
  .sym__t { font-size: 15px; }
  .causes { grid-template-columns: 1fr; gap: 12px; }
  .cause { padding: 22px 20px 24px; }
  .treats { grid-template-columns: 1fr; }
  .treat { min-height: 0; }
  .treat-test { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .cond-cap__media { max-width: 100%; }
  /* the options table becomes one card per option on phones (no horizontal scroll) */
  .svc-table { overflow: visible; border: 0; background: none; }
  .svc-table table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; }
  .svc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .svc-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; overflow: clip; background: rgba(243, 236, 232, .03); }
  .svc-table tbody th { width: auto; padding: 16px 18px 6px; border: 0; font-size: 16px; }
  .svc-table td { padding: 6px 18px 14px; border: 0; font-size: 14.5px; }
  .svc-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 500 10px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
  .svc-table tr.is-us td::before { color: #ffb3bf; }
  .svc-table tr.is-us th { box-shadow: none; }
  .svc-table tr.is-us { border-color: rgba(236, 107, 126, .45); }
  .redflag__head { flex-direction: column; gap: 12px; }
  .redflag__list { grid-template-columns: 1fr; }
  .pc-prose .pc-quote { padding-left: 18px; }
  .cond-rev__q { padding: 26px 22px; }
}
