/* neuropsych-landing.css (NEU-482): the screening landings and the screenings hub.
   Direction D3 "Colour field", picked by the founder on 2026-10-05. Every condition
   owns a soft colour field (--c ink, --field background, set inline per section)
   holding a dot-field drawing of one of its tasks; coming soon shows the same
   drawing as hollow outlines on the neutral field.

   Loads after neuropsych-theme.css on pages whose <body> has class "np-landing".
   Part 1 is the shared base (the neutral field, layout resets, the art's mono
   glyphs). Part 2 is D3's hub, used by /screenings/ and /es/screenings/ as NEU-512
   left it (neuropsych-screenings.css adds the hub's v2 hero and card edges).
   Part 3 is the landing layout: since NEU-554 the condition landings and the
   generated test pages (scripts/build_test_pages.py) carry data-ds="2" on <main>,
   so type, buttons, breadcrumb, meta line, lede and callout come from the theme
   (docs/style-guide.md sections 3, 8.2 and 9) and this file only lays out the
   colour field, the drawings and the D3 card shapes on theme tokens. Part 4 holds
   the article section kept from NEU-324. */

/* ===================== PART 1: shared base ===================== */
.np-landing{--neutral:#f1f3f7}
html{-webkit-text-size-adjust:100%}
.np-landing{font-family:var(--font-body);background:var(--bg);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;padding-top:var(--header-h);min-height:100vh}
.np-landing img,.np-landing svg{display:block;max-width:100%}
.np-landing ul,.np-landing ol{list-style:none}
.np-landing h1,.np-landing h2,.np-landing h3{text-wrap:balance}
.np-landing .wrap{max-width:1100px;margin:0 auto;padding-inline:clamp(20px,5vw,64px)}
/* Numbers drawn inside task art (and the hub's meta line) stay in the data face. */
.np-landing .mono{font-family:var(--font-data);font-variant-numeric:tabular-nums}
.np-landing :focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.np-landing .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* NAV: the one header lives in neuropsych-theme.css (NEU-507); the page clears it with --header-h.
   BUTTONS: the theme's .btn .btn-primary (NEU-554); .block-sm only sets the phone width. */
.np-landing .ico{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.np-landing .tlink{display:inline-flex;align-items:center;gap:6px;min-height:44px;font:600 14px var(--font-display);color:var(--teal)}
.np-landing .tlink svg{width:16px;height:16px;transition:transform .3s var(--ease)}
.np-landing .tlink:hover svg{transform:translateX(3px)}
@media(max-width:480px){.np-landing .block-sm{width:100%}}

/* FOOTER: the canonical site footer is styled by neuropsych-theme.css (scripts/site_footer.py); D3 only adds the gap above it. */
.np-landing .np-footer{margin-top:96px}

@media(prefers-reduced-motion:reduce){.np-landing *{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* ===================== PART 2: D3 hub (/screenings/) ===================== */
.np-landing .tlink.muted{color:var(--text2)}
.np-landing .tlink.muted:hover{color:var(--teal)}

.np-landing .hub-head{padding-top:60px;padding-bottom:32px}
.grid-live{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cd{background:var(--surface);border:1px solid var(--border-h);border-radius:var(--r-lg);padding:8px;display:flex;flex-direction:column}
.cd-field{background:var(--field);border-radius:var(--r);display:grid;place-items:center;padding:18px}
.cd.live .cd-field{height:236px}
.cd.live .cd-field svg{width:100%;max-width:360px;height:auto}
.cd-body{padding:20px 16px 4px}
.cd h2{font:700 24px/1.2 var(--font-display);letter-spacing:-.02em}
.cd-desc{font-size:15px;color:var(--text2);margin-top:6px;max-width:46ch}
.cd-meta{font-size:12.5px;color:var(--text2);margin-top:12px}
.cd-note{font-size:13.5px;color:var(--text3);margin-top:3px}
.cd-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:18px 0 0;padding:0 18px;border-radius:10px;background:var(--field);color:var(--c);font:600 15px var(--font-display);transition:background .2s var(--ease),color .2s var(--ease)}
.cd-cta svg{width:18px;height:18px;transition:transform .3s var(--ease)}
.cd-cta:hover{background:var(--c);color:#fff}
.cd-cta:hover svg{transform:translateX(3px)}
.grid-soon{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}
.cd.soon .cd-field{background:var(--neutral);height:132px;padding:12px}
.cd.soon .cd-field svg{width:100%;max-width:220px;height:auto;aspect-ratio:16/9}
.cd.soon .cd-body{padding:16px 10px 6px}
.cd.soon h2{font-size:18px;color:var(--text2)}
.cd.soon .cd-desc{font-size:14px;color:var(--text3)}
.cd-status{font-size:13px;font-weight:600;color:var(--text2);margin-top:10px}
.cd.soon .tlink{font-size:13.5px}
.np-landing .pos{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.55;color:var(--text2);margin-top:22px;max-width:70ch}
.np-landing .pos svg{width:18px;height:18px;flex:none;color:var(--teal);margin-top:1px}
.np-landing .bundle{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;background:var(--surface);border:1px solid var(--border-h);border-radius:var(--r-lg);padding:8px;margin-top:40px}
.bundle-field{background:var(--neutral);border-radius:var(--r);display:grid;place-items:center;padding:16px;min-height:210px}
.bundle-field svg{width:100%;max-width:420px;height:auto}
.bundle-copy{padding:28px 28px 20px;align-self:center}
.np-landing .bundle h2{font:700 24px/1.2 var(--font-display);letter-spacing:-.02em;margin-bottom:8px}
.np-landing .bundle p{font-size:15px;color:var(--text2);margin-bottom:6px}

@media(max-width:1000px){.grid-soon{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .np-landing .hub-head{padding-top:36px;padding-bottom:24px}
  .grid-live{grid-template-columns:minmax(0,1fr);gap:12px}
  .cd.live .cd-field{height:176px}
  .cd-body{padding:18px 12px 2px}
  .cd h2{font-size:22px}
  .grid-soon{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
  .cd.soon{flex-direction:row;align-items:stretch;gap:4px}
  .cd.soon .cd-field{width:104px;height:auto;min-height:104px;flex:none;padding:0;overflow:hidden;place-items:stretch}
  .cd.soon .cd-field svg{width:100%;height:100%;max-width:none;aspect-ratio:auto}
  .cd.soon .cd-body{padding:8px 8px 2px 12px;min-width:0}
  .cd.soon h2{font-size:17px}
  .cd.soon .cd-desc{font-size:13.5px;margin-top:2px}
  .cd-status{margin-top:6px}
  .np-landing .bundle{grid-template-columns:minmax(0,1fr)}
  .bundle-field{min-height:150px}
  .bundle-copy{padding:18px 12px 8px}
}

/* ===================== PART 3: landing on the v2 theme (NEU-554) ===================== */
/* Page hero (guide 8.2): the colour field is the optional band; breadcrumb kicker,
   theme H1 and lede, the primary button, then the Inter meta line and the notes. */
.np-landing .lhero{background:var(--field);padding-block:var(--section-y);border-bottom:1px solid var(--line)}
.np-landing .lhero.soon{background:var(--neutral)}
/* NEU-481: on a phone the start button is the first thing after the promise (ad visitors land here); the hub stays in the header */
@media(max-width:480px){.np-landing .lhero .crumbs{display:none}}
/* On a colour field meta text is --text2 (--text3 is under 4.5:1 on a tint, guide 4.3). */
.np-landing .lhero .meta{color:var(--text2)}
.np-landing .status{font-weight:600;color:var(--text2)}
.np-landing .cta-note{font-size:var(--fs-meta);line-height:1.5;color:var(--text2);margin-top:12px}
.np-landing .lhero .meta+.cta-note{margin-top:8px}
/* NEU-520: the Terms and Privacy links under the start buttons read as links */
.np-landing .cta-note a{text-decoration:underline;text-underline-offset:2px}
.np-landing .cta-note a:hover{color:var(--teal)}
.hero-art{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:22px 22px 18px}
.hero-art svg{width:100%;height:auto}
.art-cap{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:14px;padding-top:12px;font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text2)}
.art-cap b{font:600 15px/1.35 var(--font-body);color:var(--ink)}

/* Sections: H2 to lede 12, lede to content 32, H2 straight to content 16 (guide 6.3). */
.np-landing .sec{padding-top:var(--section-y)}
.np-landing .sec>h2+*{margin-top:16px}
.np-landing .sec>h2+.lede{margin-top:12px}
.np-landing .sec>.lede+*{margin-top:32px}
.np-landing .sec>.lede+.after{margin-top:16px}

/* Task cards: four in a row, each a card holding its drawing on the colour field. */
.tks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tks.soon{grid-template-columns:repeat(3,minmax(0,1fr))}
/* NEU-684: the dyscalculia check's five tasks, five in a row. */
.tks.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.tk{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:8px;display:flex;flex-direction:column}
.tk-field{background:var(--field);border-radius:var(--r);height:112px;display:grid;place-items:center;padding:10px}
.tks.soon .tk-field{background:var(--neutral)}
.tk-field svg{width:100%;max-width:180px;height:auto}
.tg-pair{display:flex;gap:10px}
.tg-pair span{width:54px;height:54px;display:grid;place-items:center;background:var(--surface);border-radius:var(--r-sm);font-size:28px;font-weight:600}
.tg-sum{font-size:26px;font-weight:600;letter-spacing:-.02em}
.tg-small{font-size:16px}
.tk-body{padding:14px 10px 10px}
.tk .n{display:block;font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text3)}
.tk h3{margin-top:4px}
.tk p{font-size:15px;line-height:1.55;color:var(--text2);margin-top:6px}
.after{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--text2);margin-top:16px;max-width:68ch}
.after.cta-again{max-width:none}

/* Paired cards: the free check beside the report on the colour field (the tinted card). */
.np-landing .get{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.get-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:24px;display:flex;flex-direction:column}
.get-card.rep{background:var(--field);border-color:transparent}
.get-card.rep.soon{background:var(--neutral)}
.get-card h3{margin-bottom:12px}
.ticks li{display:flex;gap:10px;font-size:15px;line-height:1.55;color:var(--text2);padding:6px 0}
.ticks svg{width:17px;height:17px;flex:none;color:var(--c,var(--teal));margin-top:3px}
.get-card:not(.rep) .ticks svg{color:var(--teal)}
.get-card.rep.soon .ticks svg{color:var(--text3)}
.price-line{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);font-size:15px;color:var(--text2)}
.get-card .ticks+.price-line{margin-top:16px}
.price-line .amt{font-weight:600;color:var(--ink)}
.np-landing .who{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.np-landing .who li{display:flex;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:20px 24px;font-size:15px;color:var(--text2)}
.np-landing .who i{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none;margin-top:8px}
.is-soon .who i{background:var(--text3)}

/* The not-a-diagnosis notice is the theme callout (guide 9.13); its heading keeps its level. */
/* auto-fit: two or four related links fill the row, never an orphan gap (guide 6.4) */
.rel{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.rel:has(>:only-child){grid-template-columns:minmax(0,360px)}
.rel a{display:flex;flex-direction:column;gap:4px;min-height:44px;height:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:18px 18px 16px;position:relative;transition:border-color var(--dur) var(--ease)}
.rel a:hover{border-color:var(--line-strong)}
.rel a:hover b{color:var(--teal)}
.rel a::before{content:'';width:10px;height:10px;border-radius:50%;background:var(--d-verbal);margin-bottom:10px}
.rel b{font:600 16px/1.35 var(--font-body);color:var(--ink)}
.rel span{font-size:14px;color:var(--text2)}
.rel svg{width:16px;height:16px;color:var(--teal);margin-top:8px}
.rel+.link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px}

@media(max-width:768px){
  .tks,.tks.soon,.tks.five{grid-template-columns:minmax(0,1fr);gap:12px}
  .tk{flex-direction:row;align-items:stretch}
  .tk-field{width:104px;height:auto;min-height:96px;flex:none}
  .tg-pair span{width:34px;height:34px;font-size:18px}
  .tg-sum{font-size:15px}
  .tg-small{font-size:11px}
  .tk-body{padding:10px 8px 8px 14px;min-width:0}
  .np-landing .get,.np-landing .who{grid-template-columns:minmax(0,1fr);gap:12px}
  .get-card{padding:20px}
  .rel{grid-template-columns:minmax(0,1fr);gap:12px}
  .rel a{flex-direction:row;flex-wrap:wrap;align-items:center;gap:2px 10px;padding:14px 16px}
  .rel a::before{display:none}
  .rel b{flex:1 1 auto}
  .rel span{order:3;flex-basis:100%}
  .rel svg{order:2;margin-top:0}
}
@media(max-width:480px){
  .hero-art{padding:16px 16px 12px}
}

/* ===================== PART 4: production additions ===================== */
/* About the condition (live landings only): the NEU-324 source-backed article, kept
   below the picked slots on the theme type (H2, H3, body, meta). */
.np-landing .article-meta{font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text3)}
.np-landing .sec>h2+.article-meta{margin-top:8px}
.np-landing .about h3{margin-top:40px}
.np-landing .about .who{margin-top:16px}
.np-landing .about .who b{color:var(--ink);font-weight:600}
.np-landing .src{margin-top:8px}
.np-landing .src a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;color:var(--teal);text-decoration:underline;text-decoration-color:rgba(14,116,144,.35);text-underline-offset:3px}
.np-landing .src a:hover{color:var(--teal-hover)}

/* ===================== PART 5: the spec sheet (NEU-744) ===================== */
/* Founder pick B of design list item 8 (2026-11-13; candidates in the NEU-744 PR). The generated
   test pages lay every section below the hero out as one row of a sheet: H2 and lede in a sticky
   left column, the content across two thirds, rows on hairlines instead of white cards. Content
   keeps its own shape: a time bar, a measures matrix, the cut-off scale, a spec table, ruled
   columns. On a phone the steps and the notes swipe sideways to keep the page short. */
.sb-sec{padding-top:var(--section-y)}
.sb-row{display:grid;grid-template-columns:268px minmax(0,1fr);column-gap:64px;padding-top:28px;border-top:1px solid var(--line-strong)}
.sb-row.sb-full{display:block}
.sb-row.sb-full>h2+*{margin-top:20px}
.sb-head{align-self:start;position:sticky;top:calc(var(--header-h) + 28px)}
.sb-sec{scroll-margin-top:var(--header-h)}
.np-landing .sb-head .lede{margin-top:12px;font-size:16px}
.np-landing .sb-head .article-meta{margin-top:8px}
.sb-body{min-width:0}
.sb-body>*+*{margin-top:24px}
.sb-body>.after{margin-top:16px}
.sb-body .after{max-width:68ch}

/* The sitting as a time bar: the timed run's share of the catalog minutes (how.timeline). */
.sb-time{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:20px 22px 18px}
.sb-time-k{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font:600 14px/1.4 var(--font-body);color:var(--ink)}
.sb-time-k span{font-weight:500;font-size:13px;color:var(--text3)}
.sb-bar,.sb-axis{display:grid;grid-template-columns:var(--prep,48fr) var(--gap,3fr) var(--run,50fr);gap:3px}
.sb-bar{margin-top:16px}
.sb-bar>div{min-height:64px;border-radius:var(--r-sm);padding:10px 12px;font-size:13px;line-height:1.35}
.sb-bar>div b{display:block;font:600 14px/1.35 var(--font-body)}
.sb-bar .pr{background:var(--surface-2);color:var(--text2)}
.sb-bar .pr b{color:var(--ink)}
.sb-bar .cd{background:var(--field);padding:0}
.sb-bar .run{background:var(--c);color:rgba(255,255,255,.86)}
.sb-bar .run b{color:#fff}
.sb-axis{margin-top:8px;font:500 12px/1.4 var(--font-body);color:var(--text3)}
.sb-axis>span:last-child{display:flex;justify-content:space-between;gap:8px}
.sb-axis i{font-style:normal;color:var(--c);font-weight:600}

/* Steps: four (or three) across with no card edge. */
.sb-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sb-steps.sb-steps-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sb-steps li{display:flex;flex-direction:column}
.sb-steps .tk-field{height:104px}
.sb-steps .tk-body{padding:14px 2px 0}
.sb-steps .tk-body p{font-size:14.5px}

/* What it measures: one row per card, one cell per item. */
.sb-matrix{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.sb-matrix>div{display:grid;grid-template-columns:150px repeat(var(--n,3),minmax(0,1fr))}
.sb-matrix>div+div{border-top:1px solid var(--line)}
.np-landing .sb-matrix h3{font-size:16px;padding:18px;background:var(--field);display:flex;align-items:flex-start}
.np-landing .sb-matrix>div+div h3{background:var(--surface-2)}
.sb-matrix ul{display:contents}
.sb-matrix li{padding:18px;font-size:14.5px;line-height:1.55;color:var(--text2);border-left:1px solid var(--line)}
.sb-matrix li b{display:block;font-weight:600;color:var(--ink);margin-bottom:2px}

/* Two or three notes on ruled tops (research paragraphs, scoring notes). */
.sb-three{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:24px}
.sb-three>div{border-top:2px solid var(--ink);padding-top:14px}
.np-landing .sb-three h3,.sb-three .lbl{display:block;font:600 14px/1.45 var(--font-body);color:var(--ink)}
.sb-three p{font-size:14.5px;line-height:1.6;color:var(--text2);margin-top:8px}

/* The cut-off scale (get.scale): the result screen's zones, shaded middle band and marker.
   Square zones; the 4 px marker's ends round with --r-round (only the theme declares the band chart's 2 px radius). */
.sb-scale{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:22px 24px 20px}
.sb-scale-k{font:600 14px/1.4 var(--font-body);color:var(--ink)}
.sb-scale-k span{display:block;font-weight:500;font-size:13px;color:var(--text3);margin-top:2px}
.sb-plot{position:relative;margin-top:56px}
.sb-brk{position:absolute;bottom:calc(100% + 10px);left:var(--a);width:calc(var(--t) - var(--a));border:1.5px solid var(--text3);border-bottom:0;height:8px}
.sb-brk span{position:absolute;bottom:12px;left:0;white-space:nowrap;font:500 12px/1.4 var(--font-body);color:var(--text2)}
.sb-track,.sb-zones{display:grid;grid-template-columns:var(--z1) var(--z2) var(--z3);gap:2px}
.sb-track{height:12px}
.sb-track i{background:var(--chart-z2)}
.sb-track i:nth-child(2){background:var(--chart-z3)}
.sb-mark{position:absolute;top:-9px;left:var(--m);width:4px;height:30px;margin-left:-2px;border-radius:var(--r-round);background:var(--chart-mark-typical)}
.sb-ticks{position:relative;height:22px;margin-top:8px;font:500 13px/1.4 var(--font-data);font-variant-numeric:tabular-nums;color:var(--ink)}
.sb-ticks span{position:absolute;transform:translateX(-50%)}
.sb-ticks .e{transform:none;font-family:var(--font-body);font-size:12px;font-weight:600;color:var(--text3)}
.sb-zones{margin-top:4px;font:600 12px/1.4 var(--font-body);color:var(--text3);text-align:center}
.sb-zones span:nth-child(2){color:var(--c)}
.sb-scale-note{font-size:13px;color:var(--text3);margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}

/* Two lists side by side on ruled tops (what you get, before you start). */
.sb-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.sb-two>div{border-top:2px solid var(--ink);padding-top:16px}
.sb-two>div.alt{border-top-color:var(--c)}
.sb-two>div.quiet{border-top-color:var(--text3)}
.np-landing .sb-two h3{margin-bottom:8px}
.sb-two .ticks li{padding:5px 0}
.sb-two>div:first-child .ticks svg{color:var(--teal)}
.sb-two .quiet .ticks svg{color:var(--text3)}
.sb-two .alt .ticks svg{color:var(--c)}

/* How it is scored: measure, rule (when the content file gives one) and detail. */
.sb-spec{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.sb-spec>div{display:grid;grid-template-columns:132px 220px minmax(0,1fr);border-top:1px solid var(--line)}
.sb-spec.sb-spec-2>div{grid-template-columns:200px minmax(0,1fr)}
.sb-spec>.hd{border-top:0;background:var(--surface-2);font:600 13px/1.3 var(--font-body);color:var(--text3)}
.sb-spec>.hd span{padding:11px 18px}
.sb-spec dt{padding:16px 18px;font:600 15px/1.5 var(--font-body);color:var(--ink)}
.sb-spec .rule{padding:14px 18px 0}
.sb-spec .rule code{display:inline-block;white-space:nowrap;font:500 13.5px/1.45 var(--font-body);color:var(--c);background:var(--field);border-radius:var(--r-sm);padding:4px 9px}
.sb-spec dd{padding:16px 18px;font-size:15px;line-height:1.6;color:var(--text2)}

/* Sources, numbered. */
.sb-src{counter-reset:src;border-bottom:1px solid var(--line)}
.sb-src li{counter-increment:src;display:grid;grid-template-columns:32px minmax(0,1fr);border-top:1px solid var(--line);padding:4px 0}
.sb-src li::before{content:counter(src);font:600 13px/44px var(--font-body);color:var(--text3)}
.sb-src a{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:1.5;color:var(--teal);text-decoration:underline;text-decoration-color:rgba(14,116,144,.35);text-underline-offset:3px}
.sb-src a:hover{color:var(--teal-hover)}

.sb-swipe-hint{display:none;align-items:center;gap:6px;font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text3)}
.sb-body>.sb-swipe-hint{margin-top:10px}
.sb-swipe-hint svg{width:16px;height:16px}

/* Laptop widths: a narrower heading column, steps two by two. */
@media(max-width:1180px){
  .sb-row{grid-template-columns:220px minmax(0,1fr);column-gap:40px}
  .sb-steps,.sb-steps.sb-steps-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sb-matrix>div{grid-template-columns:120px repeat(var(--n,3),minmax(0,1fr))}
}
@media(max-width:960px){
  .sb-row{grid-template-columns:minmax(0,1fr);row-gap:24px}
  .sb-head{position:static}
  .sb-steps,.sb-steps.sb-steps-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:768px){
  .sb-row{padding-top:20px}
  /* swipe strips keep the phone page short */
  .sb-steps,.sb-steps.sb-steps-3,.sb-three.swipe{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:78%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);padding-bottom:6px;scrollbar-width:none}
  .sb-steps::-webkit-scrollbar,.sb-three.swipe::-webkit-scrollbar{display:none}
  .sb-steps>li,.sb-three.swipe>div{scroll-snap-align:start}
  .sb-steps li{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:8px}
  .sb-steps .tk-field{width:auto}
  .sb-steps .tk-body{padding:12px 8px 6px}
  .sb-swipe-hint{display:flex}
  .sb-three.swipe>div{background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--ink);border-radius:0 0 var(--r-sm) var(--r-sm);padding:14px 16px 16px}
  .sb-axis i{display:none}
  .sb-bar>div{min-height:72px;padding:8px}
  .sb-bar>div b{font-size:13px}
  .sb-bar>div span{display:none}
  .sb-matrix>div{grid-template-columns:minmax(0,1fr)}
  .sb-matrix li{border-left:0;border-top:1px solid var(--line);padding:12px 16px}
  .sb-matrix li b{display:inline;margin:0}
  .sb-matrix li b::after{content:": "}
  .np-landing .sb-matrix h3{padding:14px 16px}
  .sb-two{grid-template-columns:minmax(0,1fr);gap:28px}
  .sb-spec>.hd{display:none}
  .sb-spec>div,.sb-spec.sb-spec-2>div{grid-template-columns:minmax(0,1fr);padding:14px 16px}
  .sb-spec dt,.sb-spec dd,.sb-spec .rule{padding:0}
  .sb-spec .rule,.sb-spec dd{margin-top:6px}
  .sb-scale{padding:18px 16px}
  .sb-brk span{white-space:normal;width:150%}
  .sb-plot{margin-top:66px}
}

/* ===================== PART 6: topic guides on the spec sheet (NEU-745) ===================== */
/* Founder pick B of design list item 9 (2026-11-13): the processing speed, working memory, Digit Span
   and Stroop guides (EN, ES) leave neuropsych-discovery.css for the test pages' family: the colour-field
   hero with the tasks or the concept drawn on the right, then part 5's sheet rows. */
.np-landing .skip-link{position:absolute;left:var(--gutter);top:-60px;z-index:200;padding:10px 14px;border-radius:var(--r-sm);background:var(--ink);color:#fff;font:600 var(--fs-small)/1 var(--font-body)}
.np-landing .skip-link:focus{top:12px}
.sb-dhero .hero-grid{align-items:start}
.np-landing .sb-dhero h1 em{font-style:normal}
.np-landing .sb-dhero .article-meta{margin-top:12px}
.np-landing .sb-dhero .lede{margin-top:20px}
.sb-dhero .lede strong{color:var(--ink);font-weight:600}
.sb-dhero .hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.np-landing .sb-dhero .meta{margin-top:14px;color:var(--text2)}
.sb-dhero .tm-brief{margin-top:28px;max-width:56ch;background:var(--surface)}
.sb-dhero .tm-brief p{line-height:1.6}
.sb-body>.after:first-child{margin-top:0}
.sb-head .eyebrow{margin-bottom:12px}

/* Hero: the tasks this guide covers, each a link to its test page. */
.sb-pair{display:grid;gap:12px}
.sb-pair a{display:grid;grid-template-columns:150px minmax(0,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:8px;transition:border-color var(--dur) var(--ease)}
.sb-pair a:hover{border-color:var(--line-strong)}
.sb-pair a:hover b{color:var(--teal)}
.sb-pair .tk-field{height:auto;min-height:118px}
.sb-pair .tk-field svg{max-width:130px}
.sb-pair a>div:last-child{padding:12px 14px 10px 16px;align-self:center}
.sb-pair .n{display:block;font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text3)}
.sb-pair b{display:block;font:600 17px/1.35 var(--font-body);color:var(--ink);margin-top:2px}
.sb-pair .d{display:block;font-size:14px;line-height:1.5;color:var(--text2);margin-top:4px}

/* One response, several stages: three drawings with their labels (in the construct row, or stacked in the hero). */
.sb-stages{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:20px 22px 22px}
.sb-stages-k{font:600 var(--fs-meta)/1.5 var(--font-body);color:var(--text2)}
.sb-stages ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.sb-stages li{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:center}
.sb-stages .tk-field{height:88px;padding:6px}
.sb-stages .tk-field svg{max-width:72px}
.sb-stages b{display:block;font:600 15px/1.35 var(--font-body);color:var(--ink)}
.sb-stages li span{display:block;font-size:13.5px;line-height:1.45;color:var(--text2);margin-top:2px}
.sb-stages.sb-stack ol{grid-template-columns:minmax(0,1fr)}
.st-svg .wd{font:800 22px var(--font-display);letter-spacing:.02em;fill:var(--error);text-anchor:middle}
.st-svg .wd.sm{font-size:16px}
.st-svg .ink{fill:var(--error)}
.st-svg .vs{stroke:var(--text3);stroke-width:2;stroke-linecap:round}

/* Two tasks side by side, then their facts on aligned rows. */
.sb-cmp{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.sb-cmp>div{display:grid;grid-template-columns:128px repeat(2,minmax(0,1fr))}
.sb-cmp>div+div{border-top:1px solid var(--line)}
.sb-cmp>div>*{padding:14px 18px}
.sb-cmp>div>*+*{border-left:1px solid var(--line)}
.sb-cmp .lbl{font:600 13px/1.5 var(--font-body);color:var(--text3)}
.sb-cmp .top>*{padding:8px 8px 16px}
.sb-cmp .top .tk-field{height:132px}
.sb-cmp .top .tk-field svg{max-width:210px}
.sb-cmp .top .n{display:block;font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text3);margin:14px 10px 0}
.np-landing .sb-cmp .top h3{margin:2px 10px 0}
.sb-cmp .top p{font-size:15px;line-height:1.6;color:var(--text2);margin:8px 10px 0}
.sb-cmp .top p a,.sb-tasks p a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.sb-cmp .v{font-size:15px;line-height:1.5;color:var(--ink)}
.sb-cmp .go>*{padding-block:4px}

/* Four tasks on ruled tops, two by two. */
.sb-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}
.sb-tasks article{display:flex;flex-direction:column;border-top:2px solid var(--ink);padding-top:14px}
.sb-tasks article:first-child{border-top-color:var(--c)}
.sb-tasks .n{display:block;font:500 var(--fs-meta)/1.5 var(--font-body);color:var(--text3)}
.np-landing .sb-tasks h3{margin-top:2px}
.sb-tasks p{font-size:15px;line-height:1.6;color:var(--text2);margin-top:8px}
.sb-tasks .go{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:auto;padding-top:6px}

/* Can and cannot, row against row. */
.sb-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto repeat(3,auto);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.sb-pairs>div{grid-row:span 4;display:grid;grid-template-rows:subgrid}
.sb-pairs>div+div{border-left:1px solid var(--line)}
.np-landing .sb-pairs h3{font-size:16px;color:var(--ink);background:var(--field);padding:16px 20px}
.np-landing .sb-pairs .no h3{background:var(--surface-2)}
.sb-pairs ul{display:contents}
.sb-pairs li{display:flex;gap:10px;padding:14px 20px;font-size:15px;line-height:1.55;color:var(--text2);border-top:1px solid var(--line)}
.sb-pairs svg{width:17px;height:17px;flex:none;margin-top:3px;color:var(--c)}
.sb-pairs .no svg{color:var(--text3)}

.sb-src .tail{display:block;padding:11px 0;font-size:15px;line-height:1.5;color:var(--text2)}
.sb-src .tail a{display:inline;min-height:0}
.sb-more{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;padding-top:16px;border-top:1px solid var(--line)}
.sb-more b{width:100%;font:600 14px/1.5 var(--font-body);color:var(--ink);margin-bottom:2px}
.sb-more a{display:inline-flex;align-items:center;min-height:40px;font-size:15px;color:var(--teal);text-decoration:underline;text-decoration-color:rgba(14,116,144,.35);text-underline-offset:3px}

.sb-final{margin-top:var(--section-y);background:var(--field);border-block:1px solid var(--line)}
.sb-final .wrap-wide{display:grid;grid-template-columns:268px minmax(0,1fr) auto;column-gap:64px;align-items:center;padding-block:48px}
.sb-final p{color:var(--text2);max-width:56ch}
main:has(>.sb-final:last-child)+.np-footer{margin-top:0}

@media(max-width:1180px){
  .sb-final .wrap-wide{grid-template-columns:220px minmax(0,1fr) auto;column-gap:40px}
}
@media(max-width:960px){
  .sb-final .wrap-wide{grid-template-columns:minmax(0,1fr);row-gap:12px}
}
@media(max-width:768px){
  .sb-pair a{grid-template-columns:104px minmax(0,1fr)}
  .sb-pair .tk-field{min-height:96px;width:auto}
  .sb-stages ol{grid-template-columns:minmax(0,1fr)}
  .sb-stages li{grid-template-columns:72px minmax(0,1fr)}
  .sb-stages .tk-field{height:72px;width:auto;min-height:0}
  .sb-cmp>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sb-cmp .lbl{grid-column:1/-1;padding-bottom:0;border:0}
  .sb-cmp .lbl+*{border-left:0}
  .sb-cmp>div>*{padding:10px 12px}
  .sb-cmp .top .lbl{display:none}
  .sb-cmp .top .tk-field{height:92px;width:auto}
  .sb-cmp .top>*{padding:6px 6px 12px}
  .sb-cmp .top .n,.np-landing .sb-cmp .top h3,.sb-cmp .top p{margin-inline:4px}
  .sb-cmp .top p{font-size:14px}
  .np-landing .sb-cmp .top h3{font-size:16px}
  .sb-cmp .v{font-size:14px}
  .sb-tasks{grid-template-columns:minmax(0,1fr);gap:24px}
  .sb-pairs{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .sb-pairs>div{grid-row:auto;display:block}
  .sb-pairs>div+div{border-left:0;border-top:1px solid var(--line)}
}
.sb-stages .art-cap .st-word{font:800 17px/1.2 var(--font-display);letter-spacing:.02em;color:var(--error)}
.sb-body .after a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.sb-body .after a:hover{color:var(--teal-hover)}
