/* ==========================================================================
   Academic Assistance Online — shared stylesheet
   academicassistance.online · one file for every page
   No frameworks. Mobile-first. Print-friendly.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #081d3c;
  --navy-800: #0c2a54;
  --navy-700: #163a6e;
  --navy-100: #e6ecf5;
  --gold-500: #e5a93a;
  --gold-600: #c98d1f;
  --gold-100: #fbf0d9;
  --sketch-green: #1f4d33;
  --sketch-teal: #15585c;
  --sketch-100: #e3efe8;
  --word-yellow: #f2c230;
  --word-plum: #4b2a5e;
  --word-100: #fdf5d8;
  --curr-rust: #9a4a22;
  --curr-100: #f6e7dd;
  --floor-plum: #5a2c4f;
  --floor-100: #f3e6ef;

  --paper: #fbf8f2;
  --surface: #ffffff;
  --ink: #1a2230;
  --ink-soft: #485366;
  --rule: #dcd6ca;
  --focus: #e5a93a;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(8, 29, 60, .06), 0 8px 24px rgba(8, 29, 60, .08);
  --cover-shadow: 0 2px 4px rgba(8, 29, 60, .18), 0 18px 40px rgba(8, 29, 60, .22);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
small, .small { font-size: .875rem; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--navy-100); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold-500); color: var(--navy-900); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding: 2rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--navy { background: var(--navy-800); color: #e9eef7; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--gold-500); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--gold-500); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.section--navy .lede { color: #c9d4e6; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  background: var(--navy-900);
  color: #fff;
  border-bottom: 3px solid var(--gold-500);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; padding: .6rem 0; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border: 2px solid var(--gold-500);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; color: var(--gold-500);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #aab8d0; margin-top: 3px; }
.nav-toggle { display: none; }
.nav-toggle-label {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff; cursor: pointer; font-weight: 600; font-size: .95rem;
  padding: .5rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
}
.site-nav { width: 100%; display: none; padding-bottom: .8rem; }
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; color: #dfe6f2; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: .55rem .2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-500); }
.site-nav .nav-cta { color: var(--navy-900); background: var(--gold-500); border-radius: 6px; padding: .55rem .9rem; margin-top: .4rem; border: 0; text-align: center; }
.site-nav .nav-cta:hover { background: #f1bd55; color: var(--navy-900); }
@media (min-width: 960px) {
  .nav-toggle-label { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: .25rem; }
  .site-nav a { border: 0; padding: .5rem .7rem; }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  line-height: 1.2; text-decoration: none; text-align: center;
  padding: .85rem 1.35rem; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-primary:hover { background: #f1bd55; border-color: #f1bd55; color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.section--navy .btn-outline, .hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.section--navy .btn-outline:hover, .hero .btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-disabled, .btn[aria-disabled="true"] {
  background: #ece8df; color: #7a7466; border-color: #d8d2c4; cursor: not-allowed; pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }
.btn-note { font-size: .85rem; color: var(--ink-soft); margin-top: -.4rem; }
.section--navy .btn-note, .hero .btn-note { color: #aab8d0; }

/* ---------- 6. Status labels ---------- */
.status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px; border: 1.5px solid currentColor; line-height: 1.2;
  background: #fff;
}
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status--on-sale { color: #1d6b3a; }
.status--publishing { color: #9a5b00; }
.status--soon { color: #8a5a00; }
.status--forthcoming { color: #5b4f8a; }
.status--working { color: #6d3a5f; }

/* ---------- 7. Hero (home + featured) ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(229,169,58,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #e9eef7;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}
.hero h1 { color: #fff; }
.hero .lede { color: #c9d4e6; }
.hero a:not(.btn), .page-head a:not(.btn), .go-head a:not(.btn) { color: var(--gold-500); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.hero-facts { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-facts li {
  margin: 0; font-size: .88rem; font-weight: 600;
  border: 1px solid rgba(229,169,58,.55); color: #f6e3bb;
  padding: .35rem .75rem; border-radius: 6px;
}
.hero-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: #fff; margin: .2rem 0 0; }
.hero-price small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: #aab8d0; margin-left: .4rem; }
.hero-cover { max-width: 380px; margin: 0 auto; }
.hero-cover img { border-radius: 4px; box-shadow: var(--cover-shadow); }

/* ---------- 8. Page header (interior pages) ---------- */
.page-head { background: var(--navy-800); color: #dfe6f2; padding: clamp(2rem, 5vw, 3.25rem) 0; border-bottom: 1px solid var(--navy-700); }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lede { color: #c9d4e6; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: .9rem; color: #aab8d0; }
.breadcrumb a { color: #c9d4e6; }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; }
.page-head--sketch { background: var(--sketch-green); border-color: #2c6346; }
.page-head--word { background: var(--word-plum); border-color: #63407a; }
.page-head--curr { background: #5a2e17; border-color: #74401f; }
.page-head--floor { background: var(--floor-plum); border-color: #73406a; }

/* ---------- 9. Cards & tiles ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 1rem; }
.tile { border-top: 6px solid var(--navy-800); }
.tile--sketch { border-top-color: var(--sketch-green); }
.tile--word { border-top-color: var(--word-yellow); }
.tile--curr { border-top-color: var(--curr-rust); }
.tile--floor { border-top-color: var(--floor-plum); }
.tile .tile-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

.book-card { padding: 0; overflow: hidden; }
.book-card .book-card-art { background: #efe9dd; padding: 1.5rem 1.5rem 0; display: flex; justify-content: center; align-items: flex-end; min-height: 280px; }
.book-card .book-card-art img { max-height: 300px; width: auto; box-shadow: var(--cover-shadow); border-radius: 2px; }
.book-card .book-card-art .title-block { width: 210px; height: 272px; font-size: .95rem; }
.book-card .book-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-card h3 { margin: .7rem 0 .35rem; }
.book-card .meta { font-size: .9rem; color: var(--ink-soft); margin-bottom: .8rem; }

/* ---------- 10. Styled title blocks (books without cover art) ---------- */
.title-block {
  aspect-ratio: 8.5 / 11;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--cover-shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.6em 1.3em;
  text-align: center;
  color: #fff;
  font-size: 1.05rem;
  position: relative;
}
.title-block .tb-series { font-size: .68em; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.title-block .tb-title { font-family: var(--font-display); font-weight: 700; font-size: 1.9em; line-height: 1.05; }
.title-block .tb-sub { font-size: .8em; opacity: .9; margin-top: .6em; }
.title-block .tb-author { font-size: .78em; font-weight: 600; }
.title-block .tb-flag {
  font-size: .62em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 999px; padding: .3em .8em; align-self: center;
}
.title-block--earth { background: linear-gradient(160deg, #2f5d3a 0%, #1f4d33 45%, #12352c 100%); border-bottom: 10px solid #8b5a2b; }
.title-block--curr { background: linear-gradient(160deg, #7b3b1b, #4f2410); border-left: 10px solid var(--gold-500); }
.title-block--floor { background: linear-gradient(160deg, #6d3561, #3f1d38); border-bottom: 10px solid var(--gold-500); }

/* ---------- 11. Book page layout ---------- */
.book-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .book-layout { grid-template-columns: 340px 1fr; align-items: start; } }
.book-cover { max-width: 340px; margin: 0 auto; }
.book-cover img { border-radius: 3px; box-shadow: var(--cover-shadow); }
.book-cover figcaption { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-top: .75rem; }
@media (min-width: 900px) { .book-aside { position: sticky; top: 1.5rem; } }
.price-line { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--navy-900); margin: .5rem 0 0; }
.price-line small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-left: .3rem; }

.facts { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: .97rem; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; background: #f5f1e8; font-weight: 700; color: var(--navy-900); }
@media (max-width: 520px) {
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: .15rem; }
  .facts td { padding-top: .1rem; }
}

.anatomy { counter-reset: step; list-style: none; padding: 0; display: grid; gap: .8rem; }
.anatomy li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .9rem 1rem .9rem 3.4rem; margin: 0; }
.anatomy li::before {
  content: counter(step);
  position: absolute; left: .9rem; top: .85rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-500);
  font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}
.anatomy--sketch li::before { background: var(--sketch-green); color: #fff; }
.anatomy--word li::before { background: var(--word-plum); color: var(--word-yellow); }
.anatomy strong { color: var(--navy-900); }

.unit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.unit-list li { margin: 0; padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--gold-500); border-radius: 6px; }
.unit-list--sketch li { border-left-color: var(--sketch-teal); }
.unit-list .u { font-weight: 800; color: var(--navy-800); margin-right: .4rem; }

/* ---------- 12. Callouts ---------- */
.callout { border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0; border: 1px solid; }
.callout > :last-child { margin-bottom: 0; }
.callout--gold { background: var(--gold-100); border-color: #ecd09a; }
.callout--navy { background: var(--navy-100); border-color: #c4d0e3; }
.callout--sketch { background: var(--sketch-100); border-color: #bcd6c7; }
.callout--word { background: var(--word-100); border-color: #ecd98a; }
.callout--curr { background: var(--curr-100); border-color: #e4c3ae; }
.callout--floor { background: var(--floor-100); border-color: #dcbfd2; }
.callout h3, .callout h4 { margin-top: 0; }
.confirm { background: #fff3cd; border: 1px dashed #b58a00; color: #6b5200; font-weight: 700; padding: 0 .3em; border-radius: 3px; }

/* ---------- 13. Steps ---------- */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 860px) { .steps--row { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.3rem 1.3rem; box-shadow: var(--shadow); }
.steps li::before {
  content: "Step " counter(s);
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-500); padding: .2rem .6rem; border-radius: 4px; margin-bottom: .6rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- 14. Data tables (slug plan, comparisons) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); margin: 1rem 0 2rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.data-table caption { text-align: left; font-weight: 700; padding: .8rem 1rem; color: var(--navy-900); font-family: var(--font-display); font-size: 1.1rem; }
.data-table th, .data-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--navy-800); color: #fff; font-weight: 700; position: sticky; top: 0; }
.data-table tbody tr:nth-child(even) { background: #faf7f0; }
.data-table td code { background: transparent; padding: 0; color: var(--navy-700); }
.data-table .num { white-space: nowrap; font-weight: 700; color: var(--navy-800); }

/* ---------- 15. QR strip & /go/ landing pages ---------- */
.qr-strip { background: var(--gold-500); color: var(--navy-900); }
.qr-strip h2 { color: var(--navy-900); }
.qr-strip .lede { color: #3a2c0c; }
.qr-flow { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 760px) { .qr-flow { grid-template-columns: repeat(3, 1fr); } }
.qr-flow div { background: rgba(255,255,255,.55); border: 1px solid rgba(8,29,60,.15); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.qr-flow strong { display: block; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .2rem; }
.qr-flow p { margin: 0; font-size: .97rem; }

.go-head { background: var(--navy-900); color: #dfe6f2; padding: 1.75rem 0 1.5rem; }
.go-head .go-book { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); }
.go-head h1 { color: #fff; font-size: clamp(1.6rem, 4.2vw, 2.4rem); margin: .35rem 0 .5rem; }
.go-head .go-from { margin: 0; color: #c9d4e6; font-size: .97rem; }
.fill { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--gold-500); text-align: center; font-weight: 700; color: #fff; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #0b1424; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 16 / 9) {
  .video-frame { height: 0; padding-bottom: 56.25%; }
}
.video-slot {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #c9d4e6; padding: 1.5rem; border: 2px dashed rgba(229,169,58,.6); border-radius: var(--radius);
}
.video-slot strong { color: var(--gold-500); display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1rem 0; margin: 2rem 0; }
.lesson-nav a { text-decoration: none; font-weight: 700; display: flex; flex-direction: column; max-width: 48%; }
.lesson-nav a span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.lesson-nav .next { text-align: right; margin-left: auto; }
.try-box { background: var(--surface); border: 2px solid var(--navy-800); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.try-box h2 { font-size: 1.35rem; }
.cta-band { background: var(--navy-800); color: #dfe6f2; border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; }
.cta-band h2 { color: #fff; font-size: 1.4rem; margin: 0; }
.cta-band p { margin: 0; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- 16. Org chart ---------- */
.org { display: grid; gap: .75rem; justify-items: center; margin: 2rem 0; }
.org-node { background: var(--surface); border: 2px solid var(--navy-800); border-radius: 8px; padding: .8rem 1.2rem; text-align: center; min-width: 220px; max-width: 100%; }
.org-node strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-900); }
.org-node span { font-size: .85rem; color: var(--ink-soft); }
.org-node--parent { background: var(--navy-800); }
.org-node--parent strong { color: #fff; }
.org-node--parent span { color: #c9d4e6; }
.org-node--brand { border-color: var(--gold-500); background: var(--gold-100); }
.org-arrow { width: 2px; height: 22px; background: var(--rule); }
.org-children { display: grid; gap: .75rem; width: 100%; justify-items: center; }
@media (min-width: 640px) { .org-children { grid-template-columns: 1fr 1fr; max-width: 640px; } }
.org-node--sketch { border-color: var(--sketch-green); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--navy-900); color: #b6c2d6; padding: 3rem 0 2rem; margin-top: 0; border-top: 3px solid var(--gold-500); font-size: .93rem; }
.site-footer a { color: #e3e9f3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-org { line-height: 1.5; }
.footer-org .tree { margin: .6rem 0 0; padding-left: 0; list-style: none; }
.footer-org .tree li { margin: 0; padding-left: 1rem; position: relative; }
.footer-org .tree li::before { content: "└"; position: absolute; left: 0; color: var(--gold-600); }
.footer-org .tree .tree { padding-left: 1rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---------- 18. Misc utilities ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-600); font-weight: 900; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { margin: 0; background: var(--navy-100); color: var(--navy-800); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; font-weight: 600; }
.two-col-text { columns: 1; }
@media (min-width: 860px) { .two-col-text { columns: 2; column-gap: 2.5rem; } }
.big-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.stat { text-align: center; }
.stat p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; }

/* ---------- 19. Print ---------- */
@media print {
  @page { margin: .6in; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-nav, .nav-toggle-label, .skip-link, .btn-row, .btn, .lesson-nav, .cta-band, .qr-strip, .site-footer .footer-grid > div:not(.footer-org) { display: none !important; }
  .hero, .page-head, .go-head, .section--navy { background: #fff !important; color: #000 !important; padding: 0 0 1rem; }
  .hero h1, .page-head h1, .go-head h1, .section--navy h2 { color: #000 !important; }
  .hero .lede, .page-head .lede, .go-head .go-from { color: #333 !important; }
  .card, .steps li, .facts, .table-scroll { box-shadow: none; break-inside: avoid; }
  .table-scroll { overflow: visible; border: 0; }
  .data-table { min-width: 0; font-size: 8.5pt; }
  .data-table thead th { background: #eee; color: #000; }
  .video-frame { display: none; }
  a { color: #000; text-decoration: none; }
  .site-footer { background: #fff; color: #333; border-top: 1px solid #999; padding: 1rem 0 0; }
  .site-footer a, .site-footer h2 { color: #000; }
  .fill { color: #000; border-bottom-color: #000; }
}

/* ==========================================================================
   20. KIDS LAYER — WordSketch Scan & Play (/go/ws/)
   Big, simple, safe. No JavaScript. System fonts only (no third-party
   requests besides the video embed). Tap targets >= 56px.
   ========================================================================== */
.kid-body {
  --kid-ink: #2a1838;
  --kid-plum: #4b2a5e;
  --kid-yellow: #f2c230;
  --kid-cream: #fffaf0;
  --kid-sky: #e8f3fb;
  --kid-font: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--kid-cream);
  color: var(--kid-ink);
  font-family: var(--kid-font);
}
.kid-top { background: var(--kid-plum); color: #fff; text-align: center; padding: .7rem var(--gutter); border-bottom: 6px solid var(--kid-yellow); }
.kid-top span { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.kid-wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.kid-page { display: flex; flex-direction: column; padding: 1.5rem 0 0; }
.kid-page > .kid-hero   { order: 1; }
.kid-page > .kid-media  { order: 2; }
.kid-page > .kid-say    { order: 3; }
.kid-page > .kid-nav    { order: 4; }
.kid-page > .grownups   { order: 5; }

/* Letter + animal */
.kid-hero { text-align: center; }
.kid-letter {
  font-family: var(--kid-font); font-weight: 900; line-height: .9;
  font-size: clamp(5.5rem, 26vw, 10rem); color: var(--kid-plum);
  margin: 0; letter-spacing: .02em;
}
.kid-letter .lower { color: #c48a00; }
.kid-animal { font-family: var(--kid-font); font-weight: 900; font-size: clamp(2.3rem, 9vw, 3.6rem); margin: .25rem 0 1rem; color: var(--kid-ink); }
.kid-art { background: #fff; border: 4px solid var(--kid-ink); border-radius: 22px; padding: .6rem; max-width: 560px; margin: 0 auto; }
.kid-art img { border-radius: 14px; width: 100%; height: auto; }
.kid-art--empty { aspect-ratio: 3 / 2; display: grid; place-items: center; font-size: 6rem; font-weight: 900; color: var(--kid-plum); background: var(--kid-sky); }

/* 9:16 media slot */
.kid-media { padding: 1.75rem 0 .5rem; }
.kid-player {
  position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16; margin: 0 auto;
  border-radius: 26px; overflow: hidden; background: #1b1026;
  border: 6px solid var(--kid-yellow); box-shadow: 0 10px 30px rgba(42,24,56,.25);
}
@supports not (aspect-ratio: 9 / 16) { .kid-player { height: 0; padding-bottom: 177.78%; } }
.kid-player iframe, .kid-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #1b1026; }
.media-pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; text-align: center; padding: 1.5rem; }
.media-pending .play {
  width: 112px; height: 112px; border-radius: 50%; background: var(--kid-yellow);
  display: grid; place-items: center; box-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.media-pending .play::before { content: ""; display: block; margin-left: 10px; border-style: solid; border-width: 26px 0 26px 42px; border-color: transparent transparent transparent var(--kid-ink); }
.media-pending span { font-weight: 800; font-size: 1.15rem; }

/* Say it */
.kid-say { text-align: center; padding: 1.25rem 0 .5rem; }
.kid-say .is-for { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; margin: 0 0 .9rem; }
.claps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; padding: 0; margin: .4rem 0 1rem; }
.claps li { margin: 0; background: #fff; border: 3px solid var(--kid-ink); border-radius: 16px; padding: .5rem .9rem .35rem; font-size: clamp(1.4rem, 5.5vw, 2rem); font-weight: 900; min-width: 64px; }
.claps li::after { content: "●"; display: block; color: #c48a00; font-size: 1rem; line-height: 1.2; }
.claps li.stress { background: var(--kid-yellow); }
.say-label { font-weight: 800; font-size: clamp(1.3rem, 5vw, 1.6rem); color: var(--kid-plum); margin: 0; }
.kid-prompt { display: inline-block; background: var(--kid-sky); border: 3px dashed var(--kid-plum); border-radius: 18px; padding: .9rem 1.2rem; font-size: clamp(1.25rem, 4.8vw, 1.6rem); font-weight: 800; margin: .75rem 0 0; }
.kid-fact { font-size: 1.1rem; color: #5a4766; margin: 1rem 0 0; font-weight: 600; }

/* Prev / next */
.kid-nav { padding: 1.75rem 0 1rem; }
.kid-nav-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.kid-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 96px; padding: .8rem; border-radius: 22px; text-decoration: none;
  background: var(--kid-plum); color: #fff; border: 4px solid var(--kid-ink); box-shadow: 0 6px 0 var(--kid-ink);
  font-family: var(--kid-font); font-weight: 900; font-size: 1.35rem; line-height: 1.15;
}
.kid-btn:hover { background: #5d3874; color: #fff; }
.kid-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--kid-ink); }
.kid-btn .arrow { font-size: 2rem; line-height: 1; }
.kid-btn small { font-size: .95rem; font-weight: 700; opacity: .9; }
.kid-btn--next { background: #c48a00; }
.kid-btn--next:hover { background: #d99b0a; }
.kid-all { display: flex; align-items: center; justify-content: center; min-height: 64px; margin-top: .9rem; border-radius: 18px; border: 4px solid var(--kid-ink); background: #fff; color: var(--kid-ink); font-weight: 900; font-size: 1.25rem; text-decoration: none; }
.kid-all:hover { background: var(--kid-sky); color: var(--kid-ink); }

/* Grown-ups strip (the only commercial area) */
.grownups { margin-top: 2.5rem; background: #fff; border-top: 3px dashed #b9a9c4; padding: 1.75rem 0 2rem; font-family: var(--font-body); color: var(--ink); font-size: 1rem; }
.grownups h2 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--kid-plum); margin-bottom: .6rem; }
.grownups p { margin-bottom: .7rem; }
.grownups ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 .9rem; }
.grownups li { margin: 0; }
.grownups a { display: inline-flex; align-items: center; min-height: 56px; padding: 0 1.1rem; border: 2px solid var(--kid-plum); border-radius: 12px; color: var(--kid-plum); font-weight: 700; text-decoration: none; }
.grownups a:hover { background: var(--kid-plum); color: #fff; }
.kid-foot { text-align: center; font-size: .82rem; color: #7a6a86; padding: 1rem var(--gutter) 1.5rem; font-family: var(--font-body); }

/* Hub A–Z grid */
.kid-hub-head { text-align: center; padding: 1.5rem 0 .5rem; }
.kid-hub-head h1 { font-family: var(--kid-font); font-weight: 900; color: var(--kid-plum); font-size: clamp(2.2rem, 8vw, 3.4rem); margin-bottom: .3rem; }
.kid-hub-head p { font-size: 1.15rem; margin: 0 auto; max-width: 34ch; }
.az-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 560px) { .az-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .az-grid { grid-template-columns: repeat(4, 1fr); } }
.az-grid li { margin: 0; }
.az-tile { display: block; text-decoration: none; color: var(--kid-ink); background: #fff; border: 4px solid var(--kid-ink); border-radius: 20px; overflow: hidden; min-height: 56px; box-shadow: 0 5px 0 var(--kid-ink); }
.az-tile:hover { background: var(--kid-sky); color: var(--kid-ink); }
.az-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 3px solid var(--kid-ink); }
.az-tile .az-empty { aspect-ratio: 3 / 2; display: grid; place-items: center; font-size: 3rem; font-weight: 900; color: var(--kid-plum); background: var(--kid-sky); border-bottom: 3px solid var(--kid-ink); }
.az-tile .az-label { display: flex; align-items: baseline; gap: .5rem; padding: .55rem .8rem .65rem; }
.az-tile .az-letter { font-weight: 900; font-size: 2rem; color: var(--kid-plum); line-height: 1; }
.az-tile .az-name { font-weight: 800; font-size: 1.1rem; }
.kid-wide { max-width: 1040px; }

@media print {
  .kid-top { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .kid-media, .kid-nav, .grownups ul { display: none !important; }
  .kid-btn, .kid-all { display: none !important; }
  .az-tile { box-shadow: none; break-inside: avoid; }
  .kid-art { border-color: #000; }
}

/* ==========================================================================
   21. v2.11 MAKEOVER — brand-first home, resource hubs, Mr. A entry block,
       sitewide social row, Terms, WordSketch World. Uses existing tokens only.
   ========================================================================== */

/* Small utilities (replace inline styles on new pages) */
.grid--center { align-items: center; }
.grid--start { align-items: start; }
.btn-row--center { justify-content: center; }
.mt-1 { margin-top: 1rem; }

/* Fix: .section--navy a (gold) was overriding gold buttons' text colour */
.section--navy .btn-primary, .section--navy .btn-primary:hover { color: var(--navy-900); }
.section--navy .btn-navy { color: #fff; }

/* Home hero: method line + four-cover shelf */
.hero-method { border-left: 4px solid var(--gold-500); padding: .25rem 0 .25rem 1rem; margin: 1.25rem 0; color: #e9eef7; max-width: 60ch; }
.hero-shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 400px; margin: 0 auto; }
.hero-shelf img { border-radius: 3px; box-shadow: var(--cover-shadow); }

/* Audience doors */
.door .tile-kicker { display: block; margin-bottom: .2rem; }
.door .card-foot .btn { width: 100%; }
.door .card-foot .btn + .btn { margin-top: .6rem; }

/* Bookshelf cards: buttons stack inside the card foot */
.book-card .card-foot .btn-row { margin: 0; }
.book-card .card-foot .btn { width: 100%; }

/* Footer: social row + legal links */
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .social-row h2 { margin: 0 .4rem 0 0; }
.site-footer .social-row ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-footer .social-row li { margin: 0; }
.social-row a, .social-row .social-pending {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 600;
}
.site-footer .social-row a:hover { border-color: var(--gold-500); text-decoration: none; }
.social-row .social-pending { color: #8f9db5; border-style: dashed; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* Resource hubs */
.shelf-jump { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.shelf-jump li { margin: 0; }
.shelf-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
}
.page-head .shelf-jump a { color: #fff; }
.shelf-jump a:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.res-shelf { scroll-margin-top: 1rem; }
.res-shelf + .res-shelf { margin-top: 2rem; }
.res-shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: .6rem; }
.res-shelf-head h2 { margin: 0; }
.res-shelf-head a { font-weight: 700; font-size: .95rem; }
.res-format { border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.1rem; background: var(--paper); display: flex; flex-direction: column; }
.res-format h3 { font-size: 1.1rem; margin: .55rem 0 .4rem; }
.res-format p:last-child, .res-format ul:last-child { margin-bottom: 0; }
.res-format .res-cta { margin-top: auto; padding-top: .8rem; }
.res-format--wide { margin-bottom: 1rem; }
.access { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 4px; }
.access--public { background: var(--sketch-100); color: var(--sketch-green); }
.access--email { background: var(--gold-100); color: #7a5200; }
.access--soon { background: #ece8df; color: #5f594b; }
.soon { color: var(--ink-soft); font-style: italic; }
.link-list { list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .link-list--cols { columns: 2; column-gap: 2rem; } }
.link-list li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px dotted var(--rule); margin: 0; }
.link-list a { font-weight: 600; }
.link-list .ll-tag { font-size: .8rem; color: var(--ink-soft); margin-left: .3rem; }

/* Mr. A — Professor Ash entry block (QR pages + student hub).
   An entry/explainer slot only: no chat widget lives here yet. */
.mra {
  margin: 2rem 0; background: var(--surface); border: 2px solid var(--navy-800); border-left-width: 8px;
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
  display: grid; gap: .5rem 1.25rem;
}
@media (min-width: 700px) { .mra { grid-template-columns: auto 1fr; align-items: start; } }
.mra-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy-800); color: var(--gold-500);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  border: 3px solid var(--gold-500);
}
.mra-kicker { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.mra h2 { font-size: 1.35rem; margin: .3rem 0 .5rem; }
.mra p { margin-bottom: .7rem; }
.mra .btn-row { margin: .9rem 0 .2rem; }
.mra-fine { font-size: .85rem; color: var(--ink-soft); }
.bio .mra { border-color: var(--bio-green, var(--navy-800)); }
.tf-page .mra { border-color: var(--floor-plum); }
.mra--hub { border-color: var(--gold-500); }

/* Our Story: the author's own words */
.story-voice { border-left: 4px solid var(--word-plum); background: var(--word-100); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0; }
.story-voice p:last-of-type { margin-bottom: 0; }
.story-voice footer { margin-top: .6rem; font-weight: 700; font-size: .95rem; color: var(--word-plum); }

/* WordSketch World (kids) — simplified nav + shelves */
.kid-topnav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.kid-topnav a {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: 2px solid rgba(255,255,255,.35);
}
.kid-topnav a:hover, .kid-topnav a[aria-current="page"] { background: var(--kid-yellow); color: var(--kid-ink); border-color: var(--kid-yellow); }
.kid-foot p { margin: 0 0 .5rem; }
.kid-foot a { color: var(--kid-plum); font-weight: 700; }
.ws-shelf { padding: 1rem 0 .5rem; }
.ws-shelf h2 { font-family: var(--kid-font); font-weight: 900; color: var(--kid-plum); text-align: center; font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: .2rem; }
.ws-shelf > .kid-wrap > p { text-align: center; font-size: 1.1rem; margin: 0; }
.az-tile .az-watch { display: block; font-size: .9rem; font-weight: 800; color: #9a6c00; padding: 0 .8rem .7rem; }
.kid-callout { font-family: var(--font-body); }

@media print {
  .mra, .social-row, .shelf-jump, .kid-topnav { display: none !important; }
}

/* harborlight-29d1060f93 */
.aa-beacon{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}

/* ==========================================================================
   22. v3.0 REORGANIZATION — dropdown nav, series/book/unit hierarchy,
       three-door shop, homepage search router. Uses existing tokens only.
       Appended; nothing above this line was changed.
   ========================================================================== */

/* ---- Sitewide nav: dropdowns (desktop) / accordion (mobile). Click/tap/keyboard;
        no hover-only paths. Built on <details>, so it works with JavaScript off. ---- */
.site-nav--drops .nav-drop > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  color: #dfe6f2; font-weight: 600; font-size: .95rem; padding: .55rem .2rem;
  border-bottom: 1px solid rgba(255,255,255,.08); min-height: 44px;
}
.site-nav--drops .nav-drop > summary::-webkit-details-marker { display: none; }
.site-nav--drops .nav-drop > summary::after { content: "▾"; font-size: .8em; color: var(--gold-500); transition: transform .15s; }
.site-nav--drops .nav-drop[open] > summary::after { transform: rotate(180deg); }
.site-nav--drops .nav-drop > summary:hover, .site-nav--drops .nav-drop > summary.is-active { color: var(--gold-500); }
.site-nav--drops .nav-item > a { min-height: 44px; display: flex; align-items: center; }
.site-nav--drops .nav-item > a.nav-cta { justify-content: center; }
.nav-panel { padding: .25rem 0 .6rem .9rem; border-left: 2px solid rgba(229,169,58,.45); margin: .2rem 0 .4rem .2rem; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: block; }
.site-nav .nav-panel a { border-bottom: 0; padding: .45rem .2rem; font-weight: 500; min-height: 40px; display: flex; align-items: center; }
.site-nav .nav-panel .nav-all, .site-nav .nav-panel .nav-series { font-weight: 700; color: #fff; }
.site-nav .nav-panel .nav-series { color: var(--gold-500); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.nav-groups { display: grid; gap: .3rem; }
.nav-group ul { padding-left: .6rem; }
@media (min-width: 960px) {
  .site-header .wrap { position: relative; }
  .site-nav--drops > ul > li { position: relative; }
  .site-nav--drops > ul > li.nav-item--mega { position: static; }
  .site-nav--drops .nav-drop > summary { border: 0; padding: .5rem .7rem; }
  .site-nav--drops .nav-drop[open] > .nav-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 240px;
    background: var(--navy-800); border: 1px solid var(--navy-700); border-top: 3px solid var(--gold-500);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: .8rem 1rem; margin: 0;
  }
  .site-nav--drops .nav-item--mega .nav-drop[open] > .nav-panel { left: var(--gutter); right: var(--gutter); top: 100%; }
  .nav-panel--books .nav-groups { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: .4rem; }
  .nav-group ul { padding-left: 0; }
  .site-nav .nav-panel a { padding: .35rem .2rem; min-height: 36px; }
}
@media print { .nav-panel { display: none !important; } }

/* ---- Hierarchy breadcrumb on /go/ pages: one line, Series › Book › Unit ---- */
.series-crumb { font-size: .82rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 .55rem; color: inherit; opacity: .92; }
.series-crumb a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.series-crumb span[aria-hidden] { margin: 0 .35rem; }
.go-head .series-crumb a, .page-head .series-crumb a { color: var(--gold-500); }
.bio-hero .series-crumb { position: relative; z-index: 1; }
.bio-hero .series-crumb a { color: var(--bio-copper-lite, var(--gold-500)); }
.kid-top .series-crumb { margin: .45rem 0 0; font-family: var(--font-body); font-size: .8rem; color: #f3e9fa; }
.kid-top .series-crumb a { color: #fff; }
@media print { .series-crumb { display: none !important; } }

/* ---- Title block for WordSketch titles without cover art ---- */
.title-block--word { background: linear-gradient(160deg, #5d3874, #4b2a5e); border-bottom: 10px solid var(--word-yellow); }

/* ---- Series pages ---- */
.series-intro p { font-size: 1.12rem; }
.series-intro p:first-child { font-size: 1.25rem; color: var(--navy-900); }
.series-schools { display: grid; gap: 1rem; align-items: center; background: var(--navy-100); border: 1px solid #c4d0e3; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 2rem; }
.series-schools p { margin: 0; }
@media (min-width: 760px) { .series-schools { grid-template-columns: 1fr auto; } }
.series-strip { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .series-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .series-strip { grid-template-columns: repeat(4, 1fr); } }
.series-strip li { margin: 0; }
.companion { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 700px) { .companion { grid-template-columns: auto 1fr; } }
.companion .title-block { width: 150px; height: 194px; font-size: .78rem; }

/* ---- Book pages: unit index + store strip ---- */
.unit-index { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.unit-index > li { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--gold-500); border-radius: 8px; padding: .85rem 1rem; scroll-margin-top: 1rem; }
.unit-index--sketch > li { border-left-color: var(--sketch-teal); }
.unit-index--word > li { border-left-color: var(--word-yellow); }
.unit-index--curr > li { border-left-color: var(--curr-rust); }
.unit-index--floor > li { border-left-color: var(--floor-plum); }
.unit-index h3 { font-size: 1.08rem; margin: 0 0 .35rem; }
.unit-index h3 .u { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-right: .45rem; }
.unit-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.unit-index ul li { margin: 0; }
.unit-index ul a { display: inline-flex; align-items: center; min-height: 36px; padding: .15rem .7rem; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); font-weight: 600; font-size: .9rem; text-decoration: none; }
.unit-index ul a:hover { background: var(--gold-500); color: var(--navy-900); }
.unit-index--letters { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .unit-index--letters { grid-template-columns: repeat(4, 1fr); } }
.store-strip { display: grid; gap: 1rem; background: var(--gold-100); border: 1px solid #ecd09a; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.store-strip h3 { margin: 0 0 .25rem; }
.store-strip p { margin: 0; }
.store-strip .btn-row { margin: 0; }
@media (min-width: 760px) { .store-strip { grid-template-columns: 1fr auto; align-items: center; } }

/* ---- Shop: three doors + unit store ---- */
.shop-doors { display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .shop-doors { grid-template-columns: repeat(3, 1fr); } }
.door-link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border-radius: var(--radius); text-decoration: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; min-height: 44px; }
.page-head .door-link, .page-head .door-link:hover { color: #fff; }
.door-link strong { font-family: var(--font-display); font-size: 1.2rem; }
.door-link span { font-size: .92rem; color: #c9d4e6; }
.door-link:hover { border-color: var(--gold-500); background: rgba(229,169,58,.14); }
.door-link.is-here { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.door-card { text-decoration: none; color: inherit; }
.door-card:hover h2 { color: var(--gold-600); }
.store-book { scroll-margin-top: 1rem; }
.store-book + .store-book { margin-top: 2.5rem; }
.store-series + .store-series { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.product-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-grid--compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .product-grid--compact { grid-template-columns: repeat(4, 1fr); } }
.product { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); scroll-margin-top: 1rem; }
.product .p-book { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.product h4 { margin: 0; font-size: 1.08rem; }
.product p { margin: 0; font-size: .93rem; }
.product .p-price { font-weight: 700; color: var(--navy-900); }
.product .btn { margin-top: auto; width: 100%; padding: .65rem 1rem; font-size: .92rem; }
.product--compact h4 { font-size: 1rem; }
.delivery-note { max-width: 70ch; }

/* ---- Homepage router (search, client-side only) ---- */
.router { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 1.75rem 0; }
.router label { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--navy-900); margin-bottom: .55rem; }
.router-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.router input[type="search"] {
  flex: 1 1 260px; min-height: 52px; font: inherit; font-size: 1.05rem; padding: .7rem 1rem;
  border: 2px solid var(--navy-800); border-radius: 8px; background: #fff; color: var(--ink);
}
.router input[type="search"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.router-hint { font-size: .88rem; color: var(--ink-soft); margin: .55rem 0 0; }
.router-results { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .5rem; }
.router-results:empty { display: none; }
.router-results li { margin: 0; }
.router-results a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 1rem; border: 1px solid var(--rule); border-left: 4px solid var(--gold-500); border-radius: 8px; background: var(--paper); text-decoration: none; }
.router-results a:hover, .router-results a:focus-visible { background: var(--gold-100); }
.router-results .r-title { font-weight: 700; color: var(--navy-900); }
.router-results .r-path { font-size: .82rem; color: var(--ink-soft); }
.router-none { font-size: .95rem; color: var(--ink-soft); margin: .8rem 0 0; }
@media print { .router { display: none !important; } }

/* v3.1 ladder pass */
.p-tpt { font-size: 0.85em; opacity: 0.75; margin-top: 0.25rem; }

/* v3.2 join hook (QR landing pages) */
.join-hook { padding: 2rem 0; text-align: center; }
.join-hook h2 { margin-bottom: 0.5rem; }

/* About & author photos (v3.4) */
.about-photo{margin:0 0 1.25rem}
.about-photo img{width:100%;height:auto;border-radius:16px;display:block}
.about-photo figcaption{font-size:.9rem;opacity:.75;margin-top:.5rem}
.about-photo--half{max-width:520px}
.author-photo{width:180px;height:auto;border-radius:14px;display:block;margin-bottom:1rem}
.book-photo{margin:1.5rem 0}
.book-photo img{width:100%;height:auto;border-radius:16px;display:block}
.book-photo figcaption{font-size:.9rem;opacity:.75;margin-top:.5rem}
