/* sample-book.css — the Home "See the real report for your child's class" section (#report).
   Her pick, 22 Oct 2026 (D77): "i liked 1st, 4th and 5th" · "ok lets build that section with real sample report embedded".
   Pickers (assessment + class) + a flip-book of THAT class's real sample report + three reader tabs whose links turn
   the book + "Open the full sample". Pages and findings come from /samples/manifest.json (tools/sample_reports).
   D78: the "Classic assessments" group (8 classic tests, one sample each) — chips on a laptop, one dropdown on a phone.
   D85 (her words, 25 Oct 2026, "way too clustered … just keep a single report instead of buttons"): the pickers are ONE
   slim row (three chips + the classic dropdown on every width); the page pills, the reader tabs, the class row and the
   legend are hidden in the HTML (data-off); "Inside the reports" and the two buttons sit beside the book (.sb-side).
   Tokens: landing-v3.css (:root --x-*) and the Home token block (.home --x-cta, --on-dark-*). Everything is scoped
   to .sb; text outside the report pages is 14 px or more. */
.sb{--sb-soft:rgba(255,255,255,.16);--sb-glass:rgba(255,255,255,.05);--sb-line:rgba(255,255,255,.25)}
.sb [hidden]{display:none!important}
.sb button:disabled{cursor:not-allowed}
.sb :focus-visible{outline:3px solid var(--x-sun);outline-offset:3px}
.sb .x-head{max-width:760px;margin-bottom:28px}
.sb .x-eyebrow{font-size:14px}   /* text outside the report pages is 14 px or more (review 22 Oct) */
/* the controls work only with the manifest (/samples/manifest.json): hidden while it loads (their space kept, so
   nothing jumps), gone if it cannot load or without JS — then the section is a still page 1, the readers and the
   PDF button, never buttons that do nothing (review 22 Oct). sample-book.js sets .sb-on / .sb-off. */
.sb:not(.sb-on) :is(.sb-pick,.sb-bar,.sb-jump,.sb-hint,.sb-zoom,.sb-see){visibility:hidden}
.sb.sb-off :is(.sb-pick,.sb-bar,.sb-jump,.sb-hint,.sb-zoom,.sb-see),
html:not(.js) .sb :is(.sb-pick,.sb-bar,.sb-jump,.sb-hint,.sb-zoom,.sb-see){display:none}
.sb:not(.sb-on) .sb-stage{cursor:default}

/* 1 · pickers — D85: one row, no box, no labels */
.sb-pick{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:36px}
.sb-prow{display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center}
.sb-plbl{font:800 14px/1.2 'Inter',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--x-on-navy);min-width:220px}
.sb-chips{display:flex;gap:8px;flex-wrap:wrap}
.sb-chip{position:relative;font:700 15px/1 'Inter',sans-serif;border-radius:999px;padding:0 16px;min-height:44px;border:1.5px solid var(--sb-line);color:#fff;
  transition:background .2s var(--x-ease),border-color .2s var(--x-ease),color .2s var(--x-ease)}
.sb-chip:hover:not(:disabled):not([aria-pressed=true]){background:var(--on-dark-fill);border-color:rgba(255,255,255,.5)}
.sb-chip[aria-pressed=true]{background:var(--x-sun);border-color:var(--x-sun);color:var(--x-ink)}
.sb-chip.n{min-width:44px;padding:0;text-align:center}
.sb-chip:disabled{opacity:.3;border-style:dashed}
.sb-chip.has::after{content:"";position:absolute;top:3px;right:3px;width:8px;height:8px;border-radius:50%;background:var(--x-sun);box-shadow:0 0 0 2px var(--x-navy)}
.sb-chip.has[aria-pressed=true]::after{background:var(--x-ink);box-shadow:0 0 0 2px var(--x-sun)}
/* the "Classic assessments" group (D78): the 8 chips beside their label on a laptop (they wrap inside their own
   column), one dropdown on a phone — 8 long names as chips at 390 px would be a wall */
.sb-classic .sb-chips{flex:1 1 0;min-width:0}
@media(min-width:601px){.sb-classic{align-items:flex-start}.sb-classic .sb-plbl{padding-top:14px}}   /* the label reads with the first row */
.sb-csel{display:block;position:relative;width:auto;min-width:230px}   /* D85: the dropdown on every width */
.sb-csel select{appearance:none;-webkit-appearance:none;width:100%;min-height:48px;margin:0;padding:0 46px 0 16px;border-radius:999px;border:1.5px solid var(--sb-line);
  background:transparent;color:#fff;font:700 15px/1.2 'Inter',sans-serif;cursor:pointer;text-overflow:ellipsis}
.sb-csel select option{color:#14181F;background:#fff}
.sb-csel::after{content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;border:solid #fff;border-width:0 2.4px 2.4px 0;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.sb-csel.on select{background:var(--x-sun);border-color:var(--x-sun);color:var(--x-ink)}
.sb-csel.on::after{border-color:var(--x-ink)}
.sb-legend{font-size:14px;color:var(--x-on-navy);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sb-legend .dot{width:8px;height:8px;border-radius:50%;background:var(--x-sun);flex:none}
.sb-legend b{color:#fff;font-weight:700}

/* 2 · the book + the readers */
.sb-grid{display:grid;grid-template-columns:minmax(0,540px) minmax(0,1fr);gap:56px;align-items:start}
.sb-grid>*{min-width:0}
.sb-book{outline:none;border-radius:14px;scroll-margin-top:84px}
.sb-book:focus-visible{outline:3px solid var(--x-sun);outline-offset:8px}
.sb-cap{display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;font:600 14px/1.35 'Inter',sans-serif;color:var(--x-on-navy);margin-bottom:16px}
.sb-cap b{color:#fff;font-weight:700}
/* the page-turn needs air: the lifting page grows toward the reader, so the caption above and the bar below sit clear
   of it (review 22 Oct: "page-turn must not overlap text") — a deep perspective plus a slight lift-and-shrink */
/* touch: a sideways swipe turns the page; up/down scrolls; a pinch zooms the page (a pinch cancels the swipe) */
.sb-stage{position:relative;aspect-ratio:1200/1699;perspective:3200px;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;cursor:pointer;margin:0 10px 0 0}
.sb-stage::before,.sb-stage::after{content:"";position:absolute;inset:0;border-radius:6px;background:#E9EEF5}
.sb-stage::before{transform:translate(10px,8px);opacity:.35}
.sb-stage::after{transform:translate(5px,4px);opacity:.6}
.sb-stage.is-soon{cursor:default;aspect-ratio:auto;margin:0}
.sb-stage.is-soon .sb-soon{position:relative;min-height:320px}
.sb-stage.is-soon::before,.sb-stage.is-soon::after,.sb-stage.is-soon .sb-sheet,.sb-stage.is-soon .sb-zoom{display:none}
.sb-sheet{position:absolute;inset:0;z-index:1;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 30px 60px -24px rgba(0,0,0,.65)}
.sb-sheet img,.sb-leaf img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.sb-spine{position:absolute;inset:0 auto 0 0;width:22px;background:linear-gradient(90deg,rgba(15,30,54,.16),rgba(15,30,54,0));pointer-events:none}
.sb-cast{position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,30,54,.28),rgba(15,30,54,0) 70%);opacity:0;pointer-events:none}
.sb-leaf{position:absolute;inset:0;z-index:2;border-radius:6px;overflow:hidden;background:#fff;transform-origin:0 50%;backface-visibility:hidden;-webkit-backface-visibility:hidden;will-change:transform}
.sb-shade{position:absolute;inset:0;background:linear-gradient(270deg,rgba(15,30,54,.45),rgba(15,30,54,0) 60%);opacity:0;pointer-events:none}
.sb-zoom{position:absolute;z-index:4;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 13px;border-radius:999px;
  background:var(--x-navy);color:#fff;font:800 14px/1 'Inter',sans-serif;box-shadow:0 10px 24px -10px rgba(0,0,0,.6);border:1.5px solid rgba(255,255,255,.35)}
.sb-zoom:hover{background:var(--x-navy2)}
.sb-zoom svg,.sb-zx svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sb-soon{position:absolute;inset:0;z-index:3;border-radius:6px;border:2px dashed rgba(255,255,255,.35);background:rgba(255,255,255,.04);
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:32px;cursor:default}
.sb-soon .tag{font:800 14px/1 'Inter',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--x-ink);background:var(--x-sun);border-radius:999px;padding:8px 12px}
.sb-soon h3{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:28px;line-height:1.1;letter-spacing:-.02em;color:#fff}
.sb-soon p{color:var(--x-on-navy);font-size:16px;max-width:36ch}

.sb-bar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;margin-top:24px}
.sb-arrow{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--on-dark-line);color:#fff;transition:background .2s var(--x-ease)}
.sb-arrow:hover:not(:disabled){background:var(--on-dark-fill)}
.sb-arrow:disabled{opacity:.3}
.sb-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sb-now{text-align:center;line-height:1.3;margin:0}
.sb-now .pn{display:block;font:800 14px/1.2 'Inter',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--x-sun)}
.sb-now .pt{display:block;font-weight:600;font-size:16px;color:#fff;margin-top:3px}
.sb-jump{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.sb-jump button{min-width:40px;height:36px;padding:0 8px;border-radius:999px;font:700 14px/1 'Inter',sans-serif;color:var(--x-on-navy2);border:1px solid var(--sb-soft)}
.sb-jump button:hover{background:var(--on-dark-fill)}
.sb-jump button[aria-current=true]{background:#fff;color:var(--x-ink);border-color:#fff}
.sb-hint{text-align:center;font-size:14px;color:var(--x-on-navy);margin-top:12px}

/* the three readers */
.sb-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.sb-tab{font:800 15px/1.2 'Inter',sans-serif;padding:12px 18px;min-height:44px;border-radius:999px;color:#fff;background:rgba(255,255,255,.08);border:1px solid var(--sb-soft);transition:all .2s var(--x-ease)}
.sb-tab:hover{background:var(--sb-soft)}
.sb-tab[aria-selected=true]{background:var(--x-sun);color:var(--x-ink);border-color:var(--x-sun);box-shadow:0 12px 26px -12px rgba(255,217,59,.6)}
.sb-tab .for{font-weight:600}
.sb-who{color:var(--x-on-navy);font-size:16px;margin-bottom:16px;max-width:52ch}
.sb-cards{display:grid;gap:12px}
.sb-f{position:relative;background:#fff;color:var(--x-ink);border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;gap:4px;border:2px solid transparent;transition:border-color .25s var(--x-ease)}
.sb-f.sun{background:var(--x-sun-soft)}
.sb-f.here{border-color:var(--x-sun);box-shadow:0 0 0 4px rgba(255,217,59,.25)}
.sb-f .k{font:800 14px/1.3 'Inter',sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--x-blue)}
.sb-f h3{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:21px;line-height:1.2;letter-spacing:-.02em}
.sb-f p{font-size:15.5px;color:var(--x-mut);line-height:1.5}
.sb-f .big{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:64px;line-height:.95;letter-spacing:-.03em}
.sb-f .score{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.sb-f .score h3{padding-bottom:6px}
.sb-zones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0 4px;list-style:none;padding:0}
.sb-zones li{background:var(--x-ice);border-radius:10px;padding:7px 9px;font-size:14px;line-height:1.25;color:var(--x-mut)}
.sb-zones b{display:block;font-family:'Bricolage Grotesque',sans-serif;font-size:22px;color:var(--x-green);line-height:1.1}
.sb-zones.n4{grid-template-columns:repeat(2,minmax(0,1fr))}     /* Life Skills: the four areas, two by two */
.sb-see{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;margin-top:8px;font:800 15px/1.25 'Inter',sans-serif;color:var(--x-blue);
  padding:9px 12px 9px 0;min-height:44px;border-radius:8px;text-align:left}
.sb-see svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s var(--x-ease)}
.sb-see:hover svg{transform:translateX(3px)}
.sb-f.here .sb-see{color:var(--x-green)}
.sb-see .now,.sb-f.here .sb-see .go{display:none}
.sb-f.here .sb-see .now{display:inline}
.sb-rsoon{border:2px dashed rgba(255,255,255,.3);border-radius:18px;padding:22px;color:var(--x-on-navy);font-size:16px}
.sb-rsoon b{color:#fff}

/* 3 · beside the book (D85): "Inside the reports" (G81, kept), then the two buttons and the fine line */
.sb-side{display:flex;flex-direction:column;padding-top:4px}
.home .sb .sb-side .x-report-incl{margin:0;max-width:none}
.home .sb .sb-side .x-report-incl h3{font-size:24px;margin-bottom:18px}
.home .sb .sb-side .x-report-incl ul{grid-template-columns:minmax(0,1fr);gap:12px}
.home .sb .sb-side .x-report-incl li{font-size:15.5px}
.sb-acts{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:32px}
.sb-acts .x-btn{min-height:52px;padding:15px 24px;line-height:1.25}
.sb-fine{font-size:14px;color:var(--x-on-navy);margin-top:14px;max-width:72ch}
/* the section's kept "Inside the reports" list (G81), wherever it stands, lines up on the left */
.home .sb .x-report-incl{margin-left:0;margin-right:auto}

/* the zoom: one page full screen; pinch on a phone, tap/click to switch fit ↔ full width */
.sb-zoomer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(9,17,31,.94);color:#fff;overflow:hidden}
.sb-zoomer::backdrop{background:rgba(9,17,31,.94)}
.sb-zoomer[open]{display:flex;flex-direction:column}
.sb-zt{display:flex;align-items:center;gap:10px;padding:10px 12px;flex:none}
.sb-zt .ztt{flex:1;min-width:0;font:700 15px/1.3 'Inter',sans-serif;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-zt .ztt span{color:var(--x-on-navy);font-weight:600}
.sb-zx{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border-radius:999px;border:1.5px solid var(--on-dark-line);color:#fff;font:800 14px/1 'Inter',sans-serif;gap:6px}
.sb-zx:hover:not(:disabled){background:var(--on-dark-fill)}
.sb-zx:disabled{opacity:.3}
.sb-zs{flex:1;overflow:auto;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch;display:flex;justify-content:center;align-items:flex-start;padding:0 12px 16px}
/* opens at reading size: the page's full width (up to 1000 px), scrolled from the top — on a 1440×900 laptop the
   whole-page fit was 576 px, barely more than the book's 530 (review 22 Oct); "Bigger" = full width, 1200 px or more */
.sb-zs img{display:block;height:auto;max-width:none;width:min(100%,1000px);background:#fff;border-radius:4px;cursor:zoom-in;box-shadow:0 20px 50px -20px #000}
.sb-zs.full img{width:max(100%,1200px);cursor:zoom-out}
@media(max-width:700px){.sb-zs img{width:100%}.sb-zs.full img{width:200%}
  .sb-zt{flex-wrap:wrap;justify-content:flex-end}.sb-zt .ztt{flex:1 0 100%;white-space:normal}}

/* phone first: 390 px and narrower */
@media(max-width:1000px){
  .sb-grid{grid-template-columns:minmax(0,1fr);gap:40px}
  .sb-book{max-width:540px;margin:0 auto;width:100%}
}
@media(max-width:600px){
  .sb-pick{gap:8px;margin-bottom:28px}
  .sb-csel{width:100%;min-width:0}
  .sb-plbl{min-width:100%}
  .sb-chips.cls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%}
  .sb-chip{font-size:14.5px;padding:0 13px}
  .sb-chip.n{min-width:0;width:100%}
  .sb-classic .sb-chips{display:none}
  .sb-csel{display:block}
  .sb-stage{margin-right:6px}
  .sb-stage::before{transform:translate(6px,6px)}
  .sb-stage::after{transform:translate(3px,3px)}
  /* the Zoom button leaves the page on a phone: on the page it covered the footer strip (name, serial, issue date);
     it sits just under the page's right edge, above the arrows (review 22 Oct) */
  .sb-zoom{right:0;bottom:auto;top:calc(100% + 14px);padding:0 14px 0 11px}
  .sb-bar{margin-top:72px}
  .sb-soon{padding:22px}
  .sb-soon h3{font-size:24px}
  .sb-jump button{min-width:36px;padding:0 4px}
  /* the reader tabs become one segmented control */
  .sb-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:4px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid var(--sb-soft)}
  .sb-tab{border:0;border-radius:12px;background:transparent;padding:8px 2px;min-height:56px;font-size:14px;box-shadow:none}
  .sb-tab .for{display:block;font:600 14px/1.2 'Inter',sans-serif;opacity:.8}
  .sb-tab[aria-selected=true]{background:var(--x-sun);box-shadow:none}
  .sb-f{padding:16px}
  .sb-f .big{font-size:56px}
  .sb-zones{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sb-acts{flex-direction:column;align-items:stretch;margin-top:36px}
  .sb-acts .x-btn{padding:14px 18px;white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  .sb *,.sb *::before,.sb *::after{transition-duration:.01ms!important}
}

/* ── D91 (her words, 27 Oct 2026: "page design for iq test and 21st century skill test … with sample reports,
   pricing, etc - keeping home page in mind" · "keep building here keeping home page design in mind"): the same book on
   the IQ and Life Skills pages (section.sb.sb-hub, written by build_pages.py). Those pages load site-v3.css, not
   Home's landing-v3.css: the tokens Home sets are given here, the heading uses the page's own .head/.eyebrow, the
   buttons its own .btn. The sections the book replaced carry `hidden data-off` (hide before delete). */
section[hidden][data-off]{display:none!important}
.sb-hub{position:relative;overflow:hidden;background:var(--v3-navy-band,linear-gradient(160deg,#0F1F4D 0%,#1B3A8A 100%));color:#fff;
  padding:88px 0;--x-on-navy:#C6D3E6;--x-on-navy2:#A9BAD3;--on-dark-fill:rgba(255,255,255,.08);--on-dark-line:rgba(255,255,255,.22);
  --x-sun:#FFD93B;--x-sun-soft:#FFF3C4;--x-ink:#14181F;--x-ease:cubic-bezier(.2,.7,.2,1)}
.sb-hub .wrap{position:relative;z-index:1}
.sb-hub .head{max-width:760px;margin-bottom:34px}
.sb-hub .head .eyebrow{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:var(--x-sun);box-shadow:none}
.sb-hub .head h2{color:#fff}
.sb-hub .sb-mark{color:var(--x-sun)}
.sb-hub .sb-lede{color:#C6D3E6;font-size:17px;line-height:1.6;margin-top:10px}
.sb-incl h3{font:800 24px/1.2 'Bricolage Grotesque',sans-serif;color:#fff;margin:0 0 18px}
.sb-incl ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sb-incl li{display:flex;gap:10px;align-items:flex-start;font:500 15.5px/1.5 'Inter',sans-serif;color:#E4ECF7}
.sb-incl li svg{flex:none;width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--x-sun);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.sb-hub .sb-acts .btn{min-height:52px;padding:15px 24px;line-height:1.25;text-decoration:none}
.sb-hub .sb-ghost{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.55)}
.sb-hub .sb-ghost:hover{border-color:#fff}
@media(max-width:860px){.sb-hub{padding:64px 0}}
