/* storytimeguru.com marketing home — page-local layout layer.
   shared/tokens.css is the source of truth for every brand value: the warm-editorial
   palette (paper / alt-band / card / ink / gold / Deep Blue / Vibrant Purple), the
   three type tiers (Montserrat display, Fraunces editorial, Open Sans body), the 8pt
   spacing + rhythm variables, radius, shadow, and the .section / .band--* / .card /
   .chip / .phone / .btn recipes. Nothing brand-y is hardcoded here, and this file
   introduces NO color, radius, shadow, or font of its own.

   Page-local additions (layout-only, deliberately not brand values):
     --ease        shared easing curve for the entrance reveal
     --check-mask  inline SVG check glyph, painted with a CSS mask in Vibrant Purple
*/

:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 10.6l4.2 4.2L16.4 5.4'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 50;
  background: var(--stg-deep-blue); color: var(--paper);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; text-decoration: none;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding-block: var(--sp-3);
}
/* The byline links to gradelevelguru.com, so it cannot sit inside the home link.
   The glyph gets its own (decorative, unfocusable) home link and the wordmark carries
   the accessible one; the lockup renders exactly as before. */
.brand { display: flex; align-items: center; gap: var(--sp-3); }
.brand__glyph-link { display: flex; flex: none; }
.brand__glyph { width: 40px; height: auto; flex: none; }
.brand__home { text-decoration: none; }
.brand__text { display: grid; gap: var(--sp-1); justify-items: start; }
.brand .byline { line-height: 1.2; }
a.byline { color: var(--muted); text-decoration: none; }
a.byline:hover { text-decoration: underline; }
.site-header .btn { white-space: nowrap; }

/* Header actions: the quiet educators link sits beside the CTA, never below it. */
.site-header__actions { display: flex; align-items: center; gap: var(--sp-4); flex: none; }
.nav-link {
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body-md);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: var(--touch-min);
}
.nav-link:hover { text-decoration: underline; }

/* On a phone the lockup, the two nav links and the CTA cannot share one row, so the
   header costs two rows. Sticky, that is ~14% of an iPhone viewport spent on chrome for
   the whole scroll; below 768px it scrolls away and the content gets the full screen.
   It stays sticky at >= 768px, where it is a single row. */
@media (max-width: 767px) {
  .site-header { position: static; }
  .brand__glyph { width: 32px; }
  .brand .wordmark--sm { font-size: 1rem; }
  .brand .byline { font-size: 0.625rem; letter-spacing: 1.2px; white-space: nowrap; }
  .site-header .btn { padding-inline: var(--sp-4); font-size: 0.875rem; }
  /* One step down the 8pt scale (12 -> 8). The 44/48px tap targets inside are
     untouched: this trims the band around them, not the controls. */
  .site-header__inner { gap: var(--sp-3); padding-block: var(--sp-2); }
  .site-header__actions { gap: var(--sp-3); }
  .nav-link { font-size: 0.8125rem; }
}
/* Below ~460px the nav links and the CTA cannot share a row with the lockup, so the
   links stack under the wordmark (never dropped). display:contents promotes all three
   actions into the header grid so they can take separate areas; the two link columns
   are `auto`, so the lockup row above still spans the full width. */
@media (max-width: 460px) {
  .site-header__inner {
    display: grid; align-items: center;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand brand brand cta"
      "nav1  nav2  .     .";
    column-gap: var(--sp-3); row-gap: var(--sp-1);
  }
  .site-header__actions { display: contents; }
  .brand { grid-area: brand; }
  .site-header__actions .nav-link:nth-of-type(1) { grid-area: nav1; }
  .site-header__actions .nav-link:nth-of-type(2) { grid-area: nav2; }
  .site-header .btn { grid-area: cta; }
}
@media (max-width: 380px) {
  .brand__glyph { display: none; }
}

/* ---------- Buttons / store rows ---------- */

.store-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn--store svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn--outline-on-brand { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline-on-brand:hover { background: var(--paper); color: var(--ink); }

/* Pre-launch store marks. Same size/shape as .btn--secondary, but they are <span>s,
   not links: no hover change, no press shift, and none of the dimmed
   "disabled control" treatment tokens.css gives .btn[aria-disabled="true"] --
   these are labels for a store that is not open yet, not broken buttons. */
.btn--static { cursor: default; }
.btn--static:hover { background: var(--card); color: var(--stg-deep-blue); box-shadow: none; }
.btn--static:active { transform: none; }
.btn--static[aria-disabled="true"] { opacity: 1; cursor: default; }
.prelaunch-note { font-family: var(--font-body); font-size: var(--fs-body-md); color: var(--muted); margin-top: var(--sp-3); }
.band--brand .prelaunch-note { color: var(--muted-on-dark); }

/* ---------- Section scaffolding ---------- */

/* Rhythm (locked): eyebrow -> heading 8 (the .eyebrow margin), heading -> lead 16,
   lead -> content 40, paragraph -> paragraph 16, statement -> body 24. */
.section__head { max-width: 46ch; margin-bottom: var(--gap-content); }
/* A head that carries a lead line under the heading needs a wider measure than the
   heading-only default; the rhythm stays heading -> lead 16, lead -> content 40. */
.section__head--wide { max-width: 58ch; }
.section__lead { margin-top: var(--gap-lead); }
.muted { color: var(--muted); }
.band--dark .wordmark { color: var(--paper); }

/* ---------- Hero ---------- */

.hero__grid { display: grid; gap: var(--col-gap); align-items: center; }
/* No measure cap on the COLUMN: tokens already caps every <p> at 64ch, and capping
   the column instead leaves the locked-pattern "leftover whitespace" beside it. */
.hero__copy h1 { margin-bottom: var(--gap-lead); max-width: 20ch; }
.hero__copy .tagline { margin-bottom: var(--gap-statement); max-width: 46ch; }
.hero__body { max-width: 46ch; margin-bottom: var(--gap-content); font-size: var(--fs-body-xl); }

.hero__art { justify-self: center; }
.hero__shot { width: min(100%, 220px); }

@media (min-width: 1025px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .hero__art { justify-self: end; }
  .hero__shot { width: 280px; }
}

/* ---------- How it works (4 cards) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--card-gap); }
.step {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--sp-2);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-body-md); max-width: 34ch; }
.step .eyebrow { margin-bottom: 0; }
.step__figure { display: flex; justify-content: center; margin-top: var(--sp-6); }
.step__shot { width: min(100%, 180px); }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Tablet band: there is room for the phone beside the copy well before 1025px, and a
   lone 220px phone centered under a full-width paragraph reads as a gap, not a figure.
   Copy left, art right (the split order rule below keeps art-first sections consistent). */
@media (min-width: 700px) and (max-width: 1024px) {
  .hero__grid, .edu-hero, .split { grid-template-columns: minmax(0, 1fr) 220px; }
  .hero__art, .edu-hero__art, .split__art { justify-self: end; }
  .split__art img { width: 220px; }
}

/* ---------- Two-column content sections ---------- */

.split { display: grid; gap: var(--col-gap); align-items: center; }
.split__art { justify-self: center; }
.split__art img { width: min(100%, 220px); }

/* Stacked widths: copy reads before the art in art-first splits (otherwise the hero
   phone and this phone land back to back with no words between them), and the art
   is a supporting figure, not a second hero. */
@media (max-width: 1024px) {
  .split--art-first .split__art { order: 2; }
  .split__art img { width: min(100%, 180px); }
}
@media (min-width: 1025px) {
  .split { grid-template-columns: minmax(0, 1fr) 260px; }
  .split--art-first { grid-template-columns: 260px minmax(0, 1fr); }
  .split__art img { width: 260px; }
}

.split__copy h2 { margin-bottom: var(--gap-lead); }
.split__copy .statement { margin-bottom: var(--gap-statement); }

/* Stats: Montserrat, ink, flat (no gradient text) */
.stats { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: var(--gap-content) 0; }
.stat__value {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; color: var(--ink);
}
.stat__label { font-size: var(--fs-body-md); color: var(--muted); margin-top: var(--sp-1); }

/* Feature list: purple check marks (Storytime's secondary accent) */
.inside-list { list-style: none; margin: 0 0 var(--gap-content); padding: 0; }
.inside-list li {
  position: relative; padding-left: var(--sp-8); padding-block: var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-body-lg);
}
.inside-list li:first-child { border-top: 1px solid var(--hairline); }
.inside-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; margin-top: -10px;
  width: 20px; height: 20px; background-color: var(--stg-vibrant-purple);
  -webkit-mask-image: var(--check-mask); mask-image: var(--check-mask);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px; mask-size: 20px 20px;
}

.callout {
  background: var(--tint-purple-bg); color: var(--ink);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  font-size: var(--fs-body-lg); margin: 0; max-width: var(--measure);
}

/* ---------- Twelve themes (shared: home #themes) ----------
   3-up on desktop, 2-up on mobile, single column on very narrow phones. */

.themes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-6) var(--col-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.themes > li { border-top: 1px solid var(--hairline); padding-top: var(--sp-4); }
.themes h3 { font-size: var(--fs-body-lg); margin-bottom: var(--sp-1); }
.themes p { font-size: var(--fs-body-md); color: var(--muted); max-width: 30ch; }
@media (min-width: 900px) { .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 359px) { .themes { grid-template-columns: minmax(0, 1fr); } }

.themes__cta { margin-top: var(--gap-content); }
.themes__note { margin-top: var(--sp-3); font-size: var(--fs-body-md); }

/* ---------- For educators (compact: text + CTA, no screenshot) ---------- */

.educators { max-width: 46ch; }
.educators h2 { margin-bottom: var(--gap-lead); }
.educators .btn { margin-top: var(--gap-content); }

/* ---------- Download band (flat Deep Blue) ---------- */

.band--brand { background: var(--stg-deep-blue); color: var(--paper); }
.band--brand h2 { color: var(--paper); }
.band--brand p { color: var(--paper); }
.band--brand .eyebrow { color: var(--paper); }
.band__inner { max-width: 46ch; }
.band__inner h2 { margin-bottom: var(--gap-lead); }
.band__inner .store-row { margin-top: var(--gap-content); }

/* ---------- Redeem (universal-link fallback page, /redeem/) ---------- */

.redeem { max-width: 46rem; }
.redeem__panel[hidden] { display: none; }
.redeem h1 { margin-bottom: var(--gap-lead); }
.redeem .lead { margin-bottom: var(--gap-content); }
.redeem__card { margin-bottom: var(--gap-content); }
.redeem__h2 { margin-bottom: var(--gap-lead); }

.coderow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.btn--copy { padding-inline: var(--sp-4); }
.btn--block { width: 100%; }
.code-inline { font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--stg-deep-blue); }

/* Open in app: the primary action, with the stores reachable directly beneath it. */
.openrow { display: grid; gap: var(--sp-3); }
.openrow .btn svg { flex: none; }
.store-row--tight .btn { flex: 1 1 auto; }
.openrow .help { margin: 0; color: var(--muted); font-size: var(--fs-body-md); }
.openrow .status { margin: 0; font-size: var(--fs-body-md); color: var(--muted); }
.openrow .status:empty { display: none; }
.openrow .status[data-tone="error"] { color: #9B2C1E; font-weight: 600; }

.howto { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.howto li {
  counter-increment: step; position: relative;
  padding-left: calc(var(--sp-8) + var(--sp-2)); min-height: 32px; max-width: var(--measure);
}
.howto li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: var(--radius-md);
  background: var(--tint-blue-bg); color: var(--stg-deep-blue);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-body-md);
}
.howto__text { display: block; padding-top: 3px; }

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--sp-12); }
.site-footer__inner { display: grid; gap: var(--sp-8); }
.site-footer p { margin: var(--sp-2) 0 0; max-width: none; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
.site-footer a {
  color: var(--paper); text-decoration: none;
  border-bottom: 1px solid var(--muted-on-dark);
  display: inline-flex; align-items: center; min-height: var(--touch-min);
}
.site-footer a:hover { border-bottom-color: var(--paper); }
.site-footer small { color: var(--muted-on-dark); font-size: var(--fs-body-md); }
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: auto 1fr; align-items: start; justify-content: space-between; }
  .site-footer nav { justify-self: end; }
}

/* ---------- Entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease) forwards; }
  .reveal--1 { animation-delay: 60ms; }
  .reveal--2 { animation-delay: 150ms; }
  .reveal--3 { animation-delay: 240ms; }
  .reveal--4 { animation-delay: 330ms; }
  .reveal--5 { animation-delay: 420ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   /educators/ — the PUBLIC educator page. Layout only; every color, type,
   space, radius and shadow comes from shared/tokens.css, same as the rest of
   this file. The accordion is native <details>/<summary>: no JS on the page.
   ========================================================================== */

/* Current page in the header nav. */
.nav-link[aria-current="page"] { color: var(--stg-deep-blue); text-decoration: underline; text-underline-offset: 4px; }

/* Quiet secondary action beside a primary button. */
.text-link {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-body-md);
  color: var(--stg-deep-blue); text-decoration: none;
  display: inline-flex; align-items: center; min-height: var(--touch-min);
  border-bottom: 1.5px solid transparent;
}
.text-link:hover { border-bottom-color: var(--stg-deep-blue); }

/* ---------- Hero ---------- */

.edu-hero { display: grid; gap: var(--col-gap); align-items: center; }
.edu-hero h1 { margin-bottom: var(--gap-lead); max-width: 18ch; }
.edu-hero .tagline { margin-bottom: var(--gap-statement); max-width: 46ch; }
.edu-hero__body { max-width: 52ch; margin-bottom: var(--gap-content); }
.edu-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-8); }
.edu-hero__art { justify-self: center; }
.edu-hero__shot { width: min(100%, 220px); }

@media (min-width: 1025px) {
  .edu-hero { grid-template-columns: minmax(0, 1fr) 280px; }
  .edu-hero__art { justify-self: end; }
  .edu-hero__shot { width: 280px; }
}

/* ---------- In the classroom (5 icon cards) ---------- */

.use-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--card-gap); }
.use {
  display: grid; grid-template-rows: auto auto 1fr; gap: var(--sp-3);
  align-content: start;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.use:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.use h3 { font-size: var(--fs-body-xl); }
.use p { margin: 0; color: var(--muted); font-size: var(--fs-body-md); max-width: 34ch; }
@media (min-width: 640px) { .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) {
  .use-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* 5 cards over a 6-track grid: three up, then two centred underneath. */
  .use-grid > li { grid-column: span 2; }
  .use-grid > li:nth-child(4) { grid-column: 2 / span 2; }
  .use-grid > li:nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- Question frames (native accordion) ---------- */

.section__head--tight { margin-bottom: var(--gap-lead); }
.std__intro { max-width: 58ch; margin-bottom: var(--gap-content); }
.accordion { max-width: var(--container-max); border-top: 1px solid var(--hairline); }
.acc { border-bottom: 1px solid var(--hairline); }
.acc > summary {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-4) calc(var(--sp-8) + var(--sp-2)) var(--sp-4) 0;
  position: relative; cursor: pointer; list-style: none;
  min-height: var(--touch-min);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover .acc__name,
.acc[open] > summary .acc__name { color: var(--stg-deep-blue); }
.acc__name {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-heading-md);
  color: var(--ink); transition: color var(--dur-fast) var(--ease);
}
.acc__ref {
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-caption);
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}
/* Chevron, drawn from borders so it needs no asset. */
.acc > summary::after {
  content: ""; position: absolute; right: var(--sp-3); top: calc(50% - 7px);
  width: 10px; height: 10px;
  border-right: 2px solid var(--stg-deep-blue); border-bottom: 2px solid var(--stg-deep-blue);
  transform: rotate(45deg); transform-origin: 60% 60%;
  transition: transform var(--dur-base) var(--ease);
}
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc__body { padding: 0 var(--sp-10) var(--sp-6) 0; }
.acc__q {
  font-family: var(--font-editorial); font-weight: 500; font-size: var(--fs-body-xl);
  line-height: 1.4; color: var(--muted); margin: 0;
  padding-left: var(--sp-4); border-left: 2px solid var(--tint-gold-bg);
}
@media (max-width: 480px) { .acc__name { font-size: var(--fs-body-lg); } }

/* ---------- Send it home ---------- */

.edu-home { max-width: 52ch; }
.edu-home h2 { margin-bottom: var(--gap-lead); }
.edu-home .statement { margin-bottom: var(--gap-statement); }
.edu-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-8); margin-top: var(--gap-lead); }

/* ---------- Classroom-access CTA ---------- */

.edu-cta__actions { margin-top: var(--gap-content); }

/* ==========================================================================
   /library/ — the public shelf, generated by scripts/build-library.py.
   Layout only. Every color, font, space, radius and shadow below resolves to a
   token in shared/tokens.css; the cards are the locked .card recipe, the chips
   reuse the .btn sizing language, and nothing here introduces a brand value.
   ========================================================================== */

.lib-hero { padding-bottom: var(--section-pad); }
.lib-hero h1 { margin-bottom: var(--gap-lead); max-width: 18ch; }
.lib-hero__lead { max-width: 58ch; }
/* The Fraunces sampler line: it sits in the pre-grid block, not the hero, so a phone
   reaches the search field and the shelf without scrolling past a third paragraph. */
.lib-note {
  max-width: 58ch; margin-bottom: var(--sp-2);
  font-family: var(--font-editorial); font-weight: 500;
  font-size: var(--fs-body-xl); line-height: 1.4; color: var(--muted);
}
/* On a phone the hero is title + one lead line, at body scale, over mobile padding. */
@media (max-width: 767px) {
  .lib-hero { padding-bottom: var(--section-pad-mobile); }
  .lib-hero__lead { font-size: var(--fs-body-lg); }
  .lib-note { font-size: var(--fs-body-md); }
}

/* ---------- Controls ---------- */

.lib-controls { margin-bottom: var(--sp-8); }
.lib-search { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.lib-search label {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-body-md);
  color: var(--ink);
}
.lib-search input {
  width: min(100%, 420px); min-height: 48px;
  padding: var(--sp-3) var(--sp-4); font: inherit; font-size: var(--fs-body-lg);
  border: 1.5px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--card); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.lib-search input:focus { border-color: var(--stg-deep-blue); }
.lib-search input::placeholder { color: var(--muted); opacity: 1; }

/* Chip row. The twelve theme chips are the primary way into the shelf, so they
   are real buttons carrying aria-pressed, not links or a select. */
.lib-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lib-chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: var(--touch-min); padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--hairline); border-radius: var(--radius-full);
  background: var(--card); color: var(--ink);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body-md);
  line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.lib-chip:hover { background: var(--alt-band); border-color: var(--gold); }
.lib-chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.lib-chip[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); }
.lib-chip__n { font-size: var(--fs-caption); opacity: 0.65; font-variant-numeric: tabular-nums; }

.lib-controls__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-4);
}
.lib-az {
  min-height: var(--touch-min); padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--stg-deep-blue); border-radius: var(--radius-full);
  background: transparent; color: var(--stg-deep-blue);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-body-md);
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lib-az:hover { background: var(--tint-blue-bg); }
.lib-az[aria-pressed="true"] { background: var(--stg-deep-blue); color: var(--paper); }
.lib-count { margin: 0; font-size: var(--fs-body-md); font-variant-numeric: tabular-nums; }

/* Mobile controls. A wrapped wall of thirteen chips cost 568px of vertical and hid
   the shelf, and putting it behind a disclosure only moved the cost to a second tap.
   Below 768px the chips become one horizontally scrolling rail: every theme is one
   swipe away, one tap applies it, and the whole control costs a single 44px row.
   The rail bleeds through the container gutter so a half-visible chip at the right
   edge is the affordance, and a mask fades it rather than adding an ornament. */
@media (max-width: 767px) {
  /* The placeholder already says what the field is; the label stays for AT only. */
  .lib-search label {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .lib-search { gap: 0; margin-bottom: var(--sp-3); }
  .lib-search input { width: 100%; }

  .lib-chips {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; scroll-padding-left: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter); padding-block: var(--sp-1);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .lib-chips::-webkit-scrollbar { display: none; }
  .lib-chip { flex: 0 0 auto; scroll-snap-align: start; }
  .lib-controls__foot { gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-3); }
}

/* ---------- Affiliate disclosure ---------- */

.lib-disclosure {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding-block: var(--sp-4); margin-bottom: var(--sp-8);
}
.lib-disclosure p { font-size: var(--fs-body-md); max-width: 72ch; }
/* Trails the affiliate sentence inline, so the credit costs no extra block. */
.lib-credit { color: var(--muted); }
@media (max-width: 767px) {
  .lib-disclosure { padding-block: var(--sp-3); margin-bottom: var(--sp-6); }
}

/* ---------- The shelf ---------- */

.lib-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--card-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* minmax(0, 1fr) on both columns: a nowrap label inside (the buy link) would
   otherwise raise the column's min-content width and push the cover past the card. */
.book {
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2); padding: var(--sp-4);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.book[hidden] { display: none; }
.book:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised); }
/* 1fr on the themes row pins every buy link in a grid line to the same baseline. */
.book__body {
  display: grid; grid-template-rows: auto auto 1fr auto;
  grid-template-columns: minmax(0, 1fr); gap: var(--sp-2);
}

/* A fixed frame with the cover contained inside it: the catalog mixes portrait,
   square and landscape jackets, and a fixed frame keeps the rows aligned without
   cropping anyone's artwork. The aspect-ratio reserves the space before the lazy
   cover arrives, so the shelf never shifts under a scrolling thumb. */
/* width + align-self pin the inline size so aspect-ratio derives the block size. A
   stretched grid item resolves the ratio the other way round and overflows its column. */
.book__frame {
  position: relative; display: grid; place-items: center;
  width: 100%; align-self: start; aspect-ratio: 1 / 1;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); overflow: hidden;
}
/* object-fit does the containing. The old max-width/max-height pair did not resolve
   against an aspect-ratio box in WebKit, so tall jackets overflowed the frame and
   were silently cropped top and bottom by the overflow:hidden. */
.book__frame img {
  position: absolute; inset: var(--sp-3);
  width: calc(100% - 2 * var(--sp-3)); height: calc(100% - 2 * var(--sp-3));
  object-fit: contain; border-radius: var(--radius-sm);
}
/* The placeholder stays an in-flow grid item, so it centres without the abspos. */
.book__nocover {
  font-family: var(--font-editorial); font-weight: 500; font-size: var(--fs-body-md);
  color: var(--muted); text-align: center; line-height: 1.3; padding: var(--sp-2);
}
.book__title { font-size: var(--fs-body-lg); margin: var(--sp-2) 0 0; }
.book__author { font-size: var(--fs-body-md); color: var(--muted); }

.book__themes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1); align-content: start; }
.theme-chip {
  display: inline-flex; align-items: center;
  padding: 3px var(--sp-2); border-radius: var(--radius-full);
  background: var(--tint-blue-bg); color: var(--stg-deep-blue);
  font-size: var(--fs-caption); font-weight: 600; line-height: 1.4;
}
.theme-chip--more { background: transparent; color: var(--muted); padding-inline: var(--sp-1); }

.book__buy {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--touch-min); margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-4);
  white-space: nowrap;
  border: 1.5px solid var(--hairline); border-radius: var(--radius-md);
  background: var(--paper); color: var(--stg-deep-blue); text-decoration: none;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-body-md);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.book__buy:hover { background: var(--stg-deep-blue); border-color: var(--stg-deep-blue); color: var(--paper); }
.book__nobuy {
  display: flex; align-items: center; min-height: var(--touch-min);
  margin-top: var(--sp-2); font-size: var(--fs-body-md);
}

.lib-empty[hidden] { display: none; }
.lib-empty {
  padding-block: var(--sp-16); text-align: center; max-width: none;
  font-family: var(--font-editorial); font-weight: 500; font-size: var(--fs-body-xl); color: var(--muted);
}
.lib-reset {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--stg-deep-blue); text-decoration: underline; text-underline-offset: 3px;
}

/* Phone shelf. Two-up is right for a family thumbing a catalog, but the old card
   spent its width on text and left the jacket at 108px: on a shelf the cover IS the
   content, so it bleeds to the card edge and the type below it is trimmed to fit. */
@media (max-width: 767px) {
  /* The shelf takes a 16px screen margin instead of the 24px container gutter, which
     is what carries the jacket past 40vw on the narrowest phones still in use. */
  .lib-grid {
    gap: var(--sp-4);
    margin-inline: calc(-1 * (var(--gutter) - var(--sp-4)));
    /* Each card is exactly as tall as its own jacket needs, so a landscape cover
       beside a portrait one does not inherit the taller card's height as dead paper. */}
  .book { padding: 0; overflow: hidden; }
  /* No fixed frame on a phone. The generator writes every cover's real pixel
     width/height into the markup, so the intrinsic ratio reserves the exact space
     before the lazy image arrives (no shift) and the box is only as tall as the
     jacket -- a 4/5 frame gave a landscape cover up to 90px of empty paper.
     min-height keeps a very wide jacket from collapsing the row. */
  .book__frame {
    aspect-ratio: auto; height: auto; min-height: 120px;
    border: 0; border-bottom: 1px solid var(--hairline);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  /* In flow, not absolutely positioned: an abspos image cannot give the frame its
     height. object-fit: contain stays as the fallback if a cover's attributes are
     ever missing and the frame falls back to min-height. */
  .book__frame img {
    position: static; inset: auto;
    width: 100%; height: auto; max-height: none; border-radius: 0;
  }
  .book__body { padding: var(--sp-3) var(--sp-3) 0; gap: var(--sp-1); }
  /* Three lines at 16px with an ellipsis. Two lines truncated a fifth of the catalog's
     titles in a 172px column; the third line clears almost all of them for 20px, and
     the full title still stays in the cover alt text and the buy link's aria-label. */
  .book__title {
    font-size: 1rem; line-height: 1.25; margin: 0;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .book__author { line-height: 1.35; }
  /* The buy link is a full-width 44px bar across the foot of the card: it bleeds back
     through the body padding, so "Buy on Bookshop" stays on one line at 15px in a
     164px card instead of stacking to two lines and a 67px row. */
  .book__buy, .book__nobuy {
    margin: var(--sp-2) calc(-1 * var(--sp-3)) 0;
    padding-inline: var(--sp-1); justify-content: center;
    border-radius: 0; border-inline: 0; border-bottom: 0;
  }
  /* One theme, two lines maximum: the chip is a hint at what a book is about, and
     the rail above is the real way in. Long labels ellipse rather than stack. */
  .book__themes li:nth-child(n + 2) { display: none; }
  .theme-chip {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; line-height: 1.3;
  }
}

/* ---------- Footer groups (all pages) ---------- */

.site-footer__nav { display: grid; gap: var(--sp-8); }
@media (min-width: 640px) { .site-footer__nav { grid-template-columns: repeat(2, auto); gap: var(--sp-12); } }
.site-footer__label {
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-caption);
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-on-dark);
  margin: 0 0 var(--sp-1);
}
/* Beats the flat `.site-footer nav ul` row above (same specificity, later in file). */
.site-footer__nav nav ul { display: grid; gap: 0; justify-items: start; }
.site-footer__nav a { border-bottom-color: transparent; }
.site-footer__nav a:hover { border-bottom-color: var(--paper); }
@media (min-width: 768px) {
  .site-footer__nav { justify-self: end; }
  .site-footer__nav nav { justify-self: start; }
}

/* =====================================================================
   PD CAROUSEL ADDITIONS  (this file is appended onto the marketing
   styles.css base; sections 1 and 2 reuse that base verbatim.)
   ===================================================================== */

/* ---- Section 3: grant marklist (from sites/educators/styles.css) ---- */
:root {
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 10.6l4.2 4.2L16.4 5.4'/%3E%3C/svg%3E");
}
.marklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.marklist--tight { gap: var(--sp-3); }
.marklist li { position: relative; padding-left: var(--sp-8); max-width: var(--measure); }
.marklist li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px;
  background-color: var(--stg-vibrant-purple);
  -webkit-mask-image: var(--check-mask); mask-image: var(--check-mask);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px; mask-size: 20px 20px;
}

/* ---- Section 3 layout. Header rhythm follows the same tokens as slides 1-2:
   eyebrow -> heading (gap-eyebrow), heading -> content (gap-lead), then the
   gap-content break before the classroom block. ---- */
/* Grant then classroom, stacked and top-aligned like slides 1-2, with a
   balanced gap between them (no floating mid-slide whitespace). */
.pd-slide3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 6vh, 72px); }
.pd-slide3__classroom { width: 100%; min-width: 0; }
/* Grant is a two-column block (copy + a small "everything unlocked" phone) so
   it reads tall and balanced instead of a wide, squat band with dead space. */
.pd-slide3__grant-copy { max-width: 54ch; }
.pd-slide3__grant-art { display: none; }
.pd-slide3__grant-art .phone { width: clamp(150px, 15vw, 195px); height: auto; }
@media (min-width: 900px) {
  .pd-slide3__grant {
    display: grid; grid-template-columns: minmax(0, 54ch) 1fr;
    gap: var(--sp-12); align-items: center;
  }
  .pd-slide3__grant-art { display: block; justify-self: center; }
}
.pd-slide3__grant h2 { margin: 0 0 var(--gap-lead); }
.pd-grant-list { gap: var(--sp-3); margin: 0; }
.pd-grant-list li { font-size: var(--fs-body-md); line-height: 1.45; }
.pd-standards { max-width: 54ch; font-size: var(--fs-body-md); color: var(--muted); margin: var(--gap-lead) 0 0; }

/* In-the-classroom mini-carousel: a peek/coverflow like the app's question
   swipe. One card is centred and the neighbours peek, dimmed and scaled back,
   on each side; JS slides the track (translateX) and it is swipeable. During
   the main loop slide 3 waits for a full pass before advancing. */
.pd-class-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--gap-lead); }
.pd-class-head .eyebrow { margin: 0; }
.pd-class-dots { display: flex; gap: var(--sp-2); }
.pd-class-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--hairline); transition: background var(--dur-base), width var(--dur-base); }
.pd-class-dot[data-on] { background: var(--stg-vibrant-purple); width: 22px; }
/* The viewport is contained to the main section (the slide's content column):
   it clips its own overflow, so the focused card sits centred and the
   neighbours fall off the section's left/right edges. It tracks the section
   width responsively and never causes a horizontal scroll. */
.pd-class-viewport { overflow: hidden; width: 100%; padding: 6px 0; }
.pd-class-track { position: relative; list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-6); align-items: stretch; transition: transform 480ms cubic-bezier(.4, 0, .2, 1); will-change: transform; }
/* Focused card is a share of the section width (with sane min/max), so one
   card dominates and the neighbours peek, at any section size. */
.pd-class-track > .use { flex: 0 0 clamp(260px, 62%, 460px); transition: opacity var(--dur-base) ease, transform var(--dur-base) ease; }
.pd-class-track > .use:not([data-active]) { opacity: 0.48; transform: scale(0.92); }
.pd-class-track .use:hover { transform: none; box-shadow: var(--shadow-card); }
.pd-class-track .use { padding: var(--sp-8); gap: var(--sp-3); }
.pd-class-track .use .chip { width: 48px; height: 48px; }
.pd-class-track .use h3 { font-size: var(--fs-heading-md); }
.pd-class-track .use p { font-size: var(--fs-body-lg); line-height: 1.45; max-width: none; }
@media (prefers-reduced-motion: reduce) {
  .pd-class-track, .pd-class-track > .use { transition: none; }
}

/* ---- Carousel shell: stage + persistent QR rail + controls ---- */
html { height: 100%; }
body.pd { height: 100%; min-height: 100dvh; overflow: hidden; background: var(--paper); }

.pd-shell {
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 460px);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "stage rail"
    "controls rail";
}

/* ---- Stage ---- */
.pd-stage { grid-area: stage; position: relative; overflow: hidden; background: var(--paper); }
/* Oversized brand glyph watermark, bottom-left, very faint: gives the cream
   main area some texture and softens the empty corners. */
.pd-stage::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: -4%; bottom: -8%; width: min(46vh, 440px); aspect-ratio: 105 / 96;
  background: url("assets/icon-glyph.png") no-repeat center / contain;
  opacity: 0.05;
}
.pd-progress {
  position: absolute; top: 0; left: 0; height: 4px; width: 0;
  background: var(--stg-deep-blue); z-index: 5; border-top-right-radius: 4px; border-bottom-right-radius: 4px;
}
.pd-panel {
  position: absolute; inset: 0; z-index: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 3.4vh, 52px) 0;
  /* Top-align every slide so the eyebrow + heading sit at the same height on
     all three, rather than floating to different positions when centred. */
  /* minmax(0,1fr) caps the single column at the panel width so a wide flex
     child (the coverflow track) can't blow the content column out past the
     stage and cause horizontal overflow. */
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: stretch;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-base) ease;
}
.pd-panel[data-active] { opacity: 1; visibility: visible; }
.pd-panel[hidden] { display: none; }
.pd-panel__inner { width: min(100% - 2 * var(--gutter), var(--container-max)); margin-inline: auto; }
.pd-panel__inner--narrow { max-width: 760px; }

/* The reused hero body wants a bit more room on a wide panel */
.pd-panel .edu-hero { grid-template-columns: minmax(0, 62ch) 1fr; align-items: center; }
.pd-panel .edu-hero__art { position: relative; justify-self: center; }
.pd-panel .edu-hero__shot { position: relative; z-index: 1; width: clamp(240px, 26vw, 360px); }
/* Soft brand-tinted blob behind the phone: fills the empty right side and
   gives the hero the colour the cream stage is missing. */
.pd-panel .edu-hero__art::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: clamp(300px, 30vw, 440px); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  background: radial-gradient(closest-side, var(--tint-purple-bg), var(--tint-blue-bg));
}
@media (max-width: 767px) {
  .pd-panel .edu-hero { grid-template-columns: minmax(0, 1fr); }
  .pd-panel .edu-hero__art { justify-self: center; }
}

/* Four-up steps: keep them side by side on the wide panel */
@media (min-width: 900px) { .pd-panel .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---- Persistent QR rail ---- */
/* The QR rail is the panel's call to action, so it gets the brand deep-blue
   band: a hard anchor on every slide and the colour the cream stage lacks. */
.pd-rail {
  grid-area: rail; background: var(--stg-deep-blue); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-5, 20px); padding: clamp(20px, 3vw, 44px); text-align: center;
}
.pd-rail__brand { display: flex; align-items: center; gap: var(--sp-3); }
.pd-rail__brand .wordmark, .pd-rail__brand .wordmark--brand { color: #fff; }
.pd-rail__glyph { width: 48px; height: auto; background: #fff; border-radius: 11px; padding: 6px; box-shadow: 0 4px 12px rgba(20, 45, 85, 0.25); }
.pd-rail__cue { margin: var(--sp-2) 0 0; color: var(--stg-warm-yellow); }
.pd-rail__head { font-size: clamp(1.375rem, 2.1vw, 1.875rem); max-width: 16ch; color: #fff; }
.pd-rail__qrframe { background: #fff; border-radius: var(--radius-md); padding: clamp(12px, 1.3vw, 18px); box-shadow: 0 12px 30px rgba(20, 45, 85, 0.35); }
.pd-rail__qr { display: block; width: clamp(220px, 22vw, 340px); height: auto; aspect-ratio: 1 / 1; image-rendering: pixelated; }
.pd-rail__url { font-family: var(--font-mono); font-size: clamp(0.9375rem, 1.3vw, 1.0625rem); font-weight: 600; color: #fff; word-break: break-word; margin: 0; }
.pd-rail__note { font-size: var(--fs-body-md); color: rgba(255, 255, 255, 0.82); max-width: 30ch; margin: 0; }
.pd-rail__note[data-placeholder="true"] { color: var(--stg-warm-yellow); }

/* ---- Controls ---- */
.pd-controls {
  grid-area: controls; display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2vw, 24px); padding: var(--sp-4); border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-full);
  border: 1.5px solid var(--hairline); background: var(--card); color: var(--stg-deep-blue);
  cursor: pointer; transition: background var(--dur-base), transform var(--dur-fast), box-shadow var(--dur-base);
}
.pd-btn:hover { background: var(--tint-blue-bg); }
.pd-btn:active { transform: translateY(1px); }
.pd-btn--play { width: 68px; height: 68px; background: var(--stg-deep-blue); color: #fff; border-color: transparent; }
.pd-btn--play:hover { background: #24508F; box-shadow: var(--shadow-card); }
/* Play/pause glyph swap is driven by body state, not the [hidden] attribute
   (inline SVG does not hide reliably via [hidden] under the button rules). */
.pd-ic-pause { display: none; }
body.is-playing .pd-ic-play { display: none; }
body.is-playing .pd-ic-pause { display: inline-block; }
.pd-dots { display: flex; align-items: center; gap: var(--sp-3); margin-left: var(--sp-4); }
.pd-dot { width: 14px; height: 14px; padding: 0; border: none; border-radius: var(--radius-full); background: var(--hairline); cursor: pointer; transition: background var(--dur-base), width var(--dur-base); }
.pd-dot:hover { background: var(--muted-on-dark); }
.pd-dot[aria-current="true"] { background: var(--stg-deep-blue); width: 34px; }

/* ---- Portrait / small screens: rail moves to the top, QR stays big ---- */
@media (max-width: 900px), (orientation: portrait) {
  .pd-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "rail" "stage" "controls";
  }
  .pd-rail {
    flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6);
    text-align: left;
  }
  .pd-rail__brand { width: 100%; justify-content: center; }
  .pd-rail__head { display: none; }
  .pd-rail__cue { display: none; }
  .pd-rail__qr { width: clamp(160px, 40vw, 220px); }
  .pd-rail__meta { display: flex; flex-direction: column; gap: var(--sp-1); align-items: flex-start; }
}

/* Larger touch targets when a fine pointer is absent (the smart panel) */
@media (pointer: coarse) {
  .pd-btn { width: 64px; height: 64px; }
  .pd-btn--play { width: 76px; height: 76px; }
  .pd-dot { width: 16px; height: 16px; }
  .pd-dot[aria-current="true"] { width: 40px; }
}

/* ===== Panel legibility pass =====
   The boards are 65-86" 4K/16:9 displays read from several feet. The iQ
   browser lays out in ~1920 CSS px and scales 2x onto the glass, so use the
   width and size type up for distance. A fixed-px value precedes each clamp()
   so the oldest boards' older Chromium degrade instead of breaking. */

/* Use more of the panel width so content is not a narrow column with fat margins. */
.pd-panel__inner { width: min(100% - 2 * var(--gutter), 1320px); }

/* Eyebrows / section labels. */
.pd-panel .eyebrow { font-size: 16px; letter-spacing: 1.8px; }

/* Hero body (slide 1). Keep the bullet lines from running edge-to-edge now
   that the container is wider. */
.pd-panel .edu-hero__body { font-size: 22px; }
.pd-panel .inside-list { max-width: 62ch; }
.pd-panel .inside-list li { font-size: 18px; }

/* Steps (slide 2). */
.pd-panel .step h3 { font-size: 22px; }
.pd-panel .step p { font-size: 18px; }

/* Grant + standards (slide 3). */
.pd-slide3 .pd-grant-list li { font-size: 17px; }
.pd-standards { font-size: 16px; }

/* Coverflow cards (slide 3). */
.pd-class-track .use h3 { font-size: 24px; }
.pd-class-track .use p { font-size: 19px; }

/* QR rail: keep the call to action the boldest text on the panel. */
.pd-rail__cue { font-size: 17px; }
.pd-rail__head { font-size: 30px; font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.pd-rail__url { font-size: 18px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.pd-rail__note { font-size: 16px; }
