
/* Theme for smartkidzclub.com.
   Only what is different about this site. Loads after fonts.css
   and the company base stylesheet, so it overrides the base
   where this site differs.
   Gold #FDB515 is the page primary color. Dark slate #1f2a37
   is the text, the hero button, and the stats tiles. Sections
   alternate white and light blue #f3f8fc. The footer is dark
   navy #111a26.
   This theme styles the live class names from the seven live
   index pages (.topbar, .brand, .hero, .answer, .video, .stats,
   .band, .band-white, .band-blue, .grid, .card, .faq, .cta-band,
   footer, .social-row, .social, .skip, .crumbs, .cat-hero,
   .cat-grid, .cat-card, .pill, .setlist, .covers, .cover,
   .article-feature, .recognition, .infographics, .note), plus
   the shared base class names (.site-header, .site-nav,
   .site-footer, .share-row, .cards, .breadcrumbs) so page
   builders can use either set. Where both exist they render
   the same. */

:root {
  --color-primary: #fdb515;
  --color-primary-deep: #e0a800;
  --color-link: #0a5f92;
  --color-navy: #1a2430;
  --shadow-soft: 0 2px 4px rgba(31, 42, 55, 0.05), 0 14px 32px -12px rgba(31, 42, 55, 0.2);
}

/* Page background: white. No mesh, no orbs, no glow. Light
   only: the live dark mode rules are not carried over, the
   reference rebuilds are light only too. */
body {
  background: #ffffff;
  overflow-x: hidden;
}

/* Focus outline: 3 pixel gold, as on the live pages. */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link. The live pages use class "skip", the base file
   styles class "skip-link". Both sit off screen until keyboard
   focus, then appear. This is the approved pattern and is not
   a bug. */
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1f2a37;
  color: #ffffff;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
  color: #ffffff;
}

/* Headings. The design system type scale wins over the live
   sizes: H1 38 to 62 pixels, H2 28 to 41 pixels, H3 22 pixels
   weight 600 in dark slate. The base file already sets those,
   so this theme only fixes the live blue H3 color and the live
   H2 top margin inside bands.
   H2s on this site are left aligned, as on the live pages.
   That also settles the centered H2 wrapping rule: no long
   centered H2 exists on these pages. The only centered H2s
   are the call to action band (no gold bar) and the share row
   (a short heading that fits on one line). If a page builder
   adds a long centered H2, give it .text-left instead. */
h3 {
  color: var(--color-slate);
}

.band h2 {
  margin-top: 0;
}

/* Top banner. The live pages use .topbar with a .brand link
   and a nav with id site-nav. Gold background, dark slate
   text, sticky. The logo is 48 pixels tall: the live markup
   says width 150 height 60, the CSS wins. Navigation links
   are 17 pixels, weight 500, no underline, and turn to a
   pale tint on hover. The link for the page you are on gets
   a pale tinted pill background. The base .site-header rules
   are kept in step so either markup renders the same. */
.topbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-gold);
  box-shadow: 0 2px 0 rgba(31, 42, 55, 0.08);
}

.topbar .wrap,
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand,
.site-header__inner > a {
  display: inline-block;
  flex: none;
  text-decoration: none;
}

.brand img,
.site-logo {
  width: auto;
  height: 48px;
  display: block;
}

.topbar nav,
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.topbar nav a,
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--color-slate);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.topbar nav a:hover,
.site-nav a:hover {
  background: rgba(31, 42, 55, 0.12);
  color: var(--color-slate);
}
.topbar .search-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;flex:none;border-radius:999px;color:var(--color-slate);text-decoration:none}
.topbar .search-link:hover{background:rgba(31,42,55,.12)}
.topbar .search-link:focus-visible{outline:3px solid var(--color-slate);outline-offset:2px}
.topbar .search-link svg{width:22px;height:22px;display:block}

.topbar nav a.is-active,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.55);
}

/* Hamburger bars are dark slate on the gold banner. The
   base file shows the button at 820 pixels and below. */
.menu-toggle span {
  background: var(--color-slate);
}

.menu-toggle:hover {
  background: rgba(31, 42, 55, 0.12);
}

/* Hero. The home hero uses a grid: heading and video side by
   side on desktop, answer and call to action under the heading,
   stats full width at the bottom. The grid only applies when
   the hero carries a .video card, which is the home page only;
   the other six pages use a plain stacked hero with a heading,
   an answer box, and a call to action row. .hero--home is the
   explicit class for the same grid if a builder prefers it. */
.hero {
  background: #ffffff;
  padding: 48px 0;
}

.hero--home,
.hero:has(> .wrap > .video) {
  padding: 48px 0;
}

.hero--home .wrap,
.hero:has(> .wrap > .video) .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "h1 video"
    "answer video"
    "cta video"
    "stats stats";
  grid-template-rows: auto auto 1fr auto;
  column-gap: 48px;
  row-gap: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.hero--home h1,
.hero:has(> .wrap > .video) h1 {
  grid-area: h1;
  align-self: end;
}

.hero--home .answer,
.hero:has(> .wrap > .video) .answer {
  grid-area: answer;
}

.hero--home .wrap > p,
.hero:has(> .wrap > .video) .wrap > p {
  grid-area: cta;
  align-self: start;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero--home .video,
.hero:has(> .wrap > .video) .video {
  grid-area: video;
}

.hero--home .stats,
.hero:has(> .wrap > .video) .stats {
  grid-area: stats;
}

/* Subpage hero: heading, answer box, call to action row,
   stacked. The live subpages use padding 40 pixels above
   and 48 below; the design system section padding of 48
   wins, so both use 48. */
.hero h1 {
  margin-bottom: 22px;
}

.hero--home h1,
.hero:has(> .wrap > .video) h1 {
  margin-bottom: 0;
}

.hero p.cta-row,
.hero .cta-row {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Answer box. White box with a 6 pixel gold left border,
   as on the live pages. The base .hero__answer uses a 4
   pixel border; this site uses 6. */
.answer,
.hero__answer {
  padding: 20px 24px;
  border-left: 6px solid var(--color-gold);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 1.05rem;
}

/* Hero video card. White card with a 16 by 10 figure. The
   thumbnail button fills the figure; the script swaps it for
   a youtube-nocookie iframe on click. The Play button is a
   red pill with a white triangle, centered over the image. */
.video {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  align-self: start;
}

.video .video-heading {
  margin: 0 0 12px;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-slate);
}

.video figure {
  position: relative;
  margin: 0 0 14px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-gold-soft);
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.video figure button.video-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.video figure iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 14px 24px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(224, 30, 78, 0.45);
  transition: transform 0.15s, background 0.15s;
}

.play::before {
  content: "";
  border-left: 14px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.play:hover {
  background: var(--color-red-dark);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.05);
}

.video p {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.video .video-heading--transcript {
  font-size: 1rem;
  margin-top: 14px;
}

.transcript {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin: 0;
}

/* Stats band. Dark slate tiles with gold numbers, as on the
   live home page. The base .stat tiles render the same. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.stats li,
.stat {
  padding: 18px 14px;
  border-radius: 18px;
  background: var(--color-slate);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stats strong,
.stat strong {
  display: block;
  color: var(--color-gold);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.1;
}

.stats span,
.stat span {
  font-size: 0.92rem;
}

/* Bands. Alternating white and light blue sections, 48 pixels
   of padding above and below per the design system. The live
   pages used 64 pixels; 48 wins. */
.band {
  padding: 48px 0;
}

.band-white {
  background: #ffffff;
}

.band-blue,
.section--alt {
  background: var(--color-light-blue);
}

.band .cta-band {
  margin-top: 0;
}

/* Buttons. The primary button is red, as on every site. The
   live .btn-outline and .btn-gold class names are aliases of
   the base .btn--secondary and .btn--gold. A paragraph holding
   buttons is a flex row, so wrapped buttons keep a 12 pixel
   gap and never overlap on a phone.
   The hero button keeps the live look: dark slate with gold
   text, turning red on hover. The call to action band button
   is dark slate with gold text too. */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--color-link);
  border-radius: 999px;
  color: var(--color-link);
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-link);
  border-color: var(--color-link);
  color: #ffffff;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-slate);
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--color-gold-light);
  color: var(--color-slate);
}

p:has(> .btn, > .btn-gold, > .btn-outline) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

p:has(> .btn, > .btn-gold, > .btn-outline) :is(.btn, .btn-gold, .btn-outline) {
  margin-left: 0;
}

.hero .btn {
  background: var(--color-slate);
  color: var(--color-gold);
  box-shadow: none;
  font-size: 1.1rem;
  min-height: 52px;
  padding: 10px 30px;
}

.hero .btn:hover {
  background: var(--color-red);
  color: #ffffff;
}

.hero .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-slate);
  border: 2px solid var(--color-slate);
  border-radius: 999px;
  min-height: 52px;
  padding: 8px 28px;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hero .btn-gold:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-slate);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Grids and cards. The live pages use .grid with .card; the
   base file uses .cards with .card. Both grids render the
   same: cards in a row, wrapping on a phone. Card top borders
   cycle teal, light yellow, light pink, light green, in that
   order, per the design system. The stretched title link
   makes the whole card clickable: the title link covers the
   card, any other link inside it sits above it. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 22px 0;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.grid .card,
.cards .card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--pill-teal);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.grid .card:nth-child(4n + 2),
.cards > .card:nth-child(4n + 2) {
  border-top-color: var(--pill-yellow);
}

.grid .card:nth-child(4n + 3),
.cards > .card:nth-child(4n + 3) {
  border-top-color: var(--pill-pink);
}

.grid .card:nth-child(4n + 4),
.cards > .card:nth-child(4n + 4) {
  border-top-color: var(--pill-green);
}

.grid .card h3,
.cards .card h3 {
  margin-top: 0;
}

.grid .card h3 a,
.cards .card h3 a {
  color: var(--color-slate);
  text-decoration: none;
}

.grid .card h3 a:hover,
.cards .card h3 a:hover {
  color: var(--color-red);
}

/* Stretched title link for the live .grid cards. The base
   file already stretches .card__title links. */
.grid .card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.grid .card a:not(h3 a) {
  position: relative;
  z-index: 2;
}

.grid .card p:last-child {
  margin: auto 0 0;
  padding-top: 12px;
}

.grid.three .card p:last-child {
  margin: 0;
}

/* Cold, hot, and "Just Right" trio. Audio only is too cold,
   animation is too hot, narrated picture books are
   "Just Right". The "Just Right" card sits 6 pixels higher
   on desktop. */
.card.cold {
  border-top-color: #138cce;
  background: var(--color-pale-teal);
}

.card.cold h3 {
  color: var(--color-link);
}

.card.hot {
  border-top-color: var(--color-red);
  background: var(--color-pale-pink);
}

.card.hot h3 {
  color: var(--color-red-deep);
}

.card.justright {
  border-top-color: var(--color-gold);
  background: var(--color-pale-yellow);
  transform: translateY(-6px);
}

.card.justright h3 {
  color: #7a5200;
}

/* Pills. The live pages use .pill.teal and friends; the base
   file uses .pill--teal. Both render the same four colors.
   Pills carry dark slate text on this site. */
.pill.teal,
.pill--teal {
  background: var(--pill-teal);
}

.pill.yellow,
.pill--yellow {
  background: var(--pill-yellow);
}

.pill.pink,
.pill--pink {
  background: var(--pill-pink);
}

.pill.green,
.pill--green {
  background: var(--pill-green);
}

.pill.teal,
.pill.yellow,
.pill.pink,
.pill.green {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-slate);
  margin: 0 0 12px;
}

/* Note text. Small soft grey text, as on the live pages. */
.note {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

/* Breadcrumbs. The live pages use nav.crumbs with an ordered
   list; the base file uses .breadcrumbs. Both render the same,
   with a right-pointing chevron between steps. */
.crumbs {
  padding-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin: 26px 0 0;
}

.crumbs ol,
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "\203A";
  margin: 0 8px;
  color: var(--color-muted);
}

.crumbs a {
  color: var(--color-link);
}

.crumbs li[aria-current="page"] {
  color: var(--color-ink-soft);
}

/* Category hero, pitch, and stripe. The Books index page
   carries them: a hero box, a pitch box with a gold left
   border, and a four-color stripe. */
.cat-hero {
  margin-top: 14px;
  padding: 34px 24px 28px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: #ffffff;
}

.cat-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: -0.01em;
}

.cat-hero .subtitle {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 500;
}

.cat-hero .actions,
.cat-hero .share {
  justify-content: flex-start;
}

.cat-hero .share__status {
  text-align: left;
}

.pitch {
  margin: 20px 0 0;
  padding: 20px 22px;
  border-left: 6px solid var(--color-gold);
  border-radius: 0 18px 18px 0;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 1.15rem;
}

.pitch p {
  margin: 0;
}

.stripe {
  height: 6px;
  margin: 28px 0 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--pill-teal) 0 25%, var(--pill-yellow) 25% 50%, var(--pill-pink) 50% 75%, var(--pill-green) 75%);
}

/* Category groups and cards. The Books index page groups its
   two section cards and its seasonal cards in .cat-group boxes
   that alternate white and light blue. A .cat-card carries a
   76 pixel icon at the left and a stretched link, so the whole
   card is clickable. */
.cat-group {
  margin: 44px 0 0;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
}

.cat-group--1,
.cat-group--3,
.cat-group--5 {
  background: var(--color-light-blue);
}

/* Even groups keep the plain white .cat-group background, so
   the boxes alternate white / light blue: 1 blue, 2 white,
   3 blue, 4 white, 5 blue. Same #ffffff as .cat-group above;
   no new colour. */
.cat-group--2,
.cat-group--4 {
  background: #ffffff;
}

.cat-group > h2 {
  margin-bottom: 6px;
}

.group-desc {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 2px 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cat-card:hover {
  border-color: var(--color-link);
  box-shadow: var(--shadow-soft);
}

.cat-card .icon {
  grid-row: 1 / 4;
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 18px;
  background: var(--color-pale-teal);
  object-fit: contain;
}

.cat-card:nth-child(4n + 2) .icon {
  background: var(--color-pale-yellow);
}

.cat-card:nth-child(4n + 3) .icon {
  background: var(--color-pale-pink);
}

.cat-card:nth-child(4n + 4) .icon {
  background: #eef3c8;
}

.cat-card a {
  align-self: end;
  color: var(--color-link);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}

.cat-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.cat-card:hover a {
  text-decoration: underline;
}

.cat-meta {
  justify-self: start;
  margin: 2px 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-light-blue);
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.cat-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Chips. Small rounded labels in the four company colors,
   cycling in order. Used in the Books hero. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--color-slate);
  font-size: 0.92rem;
  font-weight: 500;
}

.chips li:nth-child(4n + 1) {
  background: var(--pill-teal);
}

.chips li:nth-child(4n + 2) {
  background: var(--pill-yellow);
}

.chips li:nth-child(4n + 3) {
  background: var(--pill-pink);
}

.chips li:nth-child(4n + 4) {
  background: var(--pill-green);
}

.cat-hero .chips {
  justify-content: flex-start;
}

/* Count line above a grid. */
.count {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin: 30px 0 16px;
  color: var(--color-muted);
  font-weight: 600;
}

.count strong {
  color: var(--color-slate);
  font-size: 1.3rem;
}

/* Actions row. A centered flex row of buttons. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

/* Share box on the Books page. The live Books page carries a
   small share box with a status line; the new share row at the
   bottom of each page uses the base .share-row pattern. */
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 15px;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-slate);
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.share__btn:hover {
  border-color: var(--color-link);
  color: var(--color-link);
}

.share__btn[hidden] {
  display: none;
}

.share__status {
  flex-basis: 100%;
  min-height: 1.4em;
  font-size: 0.88rem;
  text-align: center;
  color: var(--color-muted);
}

/* Share row. At the bottom of the main content, before the
   footer. The base file styles it; this theme keeps the
   heading centered with its gold bar centered under it, and
   the heading stays left aligned if it wraps, per the H2
   wrapping rule. */
.share-row h2 {
  text-align: center;
}

/* FAQ. The live smartkidzclub.com style: each question is
   its own box with a light border and 14 pixel corners, 12
   pixels apart. The plus sign sits in a 30 pixel gold circle
   with dark slate text, and turns to a minus when open. An
   open question carries a full gold border on all four sides.
   The base file already sets the plus and minus through
   details[open]; this theme keeps the live boxed layout and
   the live dark text in the circle. */
.faq {
  max-width: 1120px;
  margin: 1.75rem auto 0;
}

.faq details {
  margin: 0 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
}

.faq details[open] {
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--color-primary);
  border-radius: 14px;
  background: #ffffff;
}

.faq summary {
  position: relative;
  padding: 16px 56px 16px 20px;
  font-size: 1.1rem;
}

.faq summary::after {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-slate);
}

.faq details[open] summary::after {
  transform: translateY(-50%);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
}

.faq summary:hover {
  color: var(--color-link);
}

/* Call to action band. Gold with dark slate text, rounded
   corners, centered. Its H2 carries no gold bar. The button
   inside is dark slate with gold text, turning red on hover.
   The base file styles a dark blue band; this theme is the
   gold Smart Kidz Club band, as on the live pages. The live
   .cta class name is an alias. */
.cta-band,
.cta {
  padding: clamp(2.2rem, 5vw, 3.6rem) 24px;
  margin-top: 72px;
  border-radius: 32px;
  background: var(--color-gold);
  color: var(--color-slate);
  text-align: center;
}

.cta-band h2,
.cta h2 {
  color: var(--color-slate);
  margin: 0 0 10px;
  padding: 0;
}

.cta-band h2::after,
.cta h2::after {
  display: none;
}

.cta-band p,
.cta p {
  color: var(--color-slate);
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}

.cta-band p:last-child,
.cta p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-band .btn,
.cta .btn {
  background: var(--color-slate);
  color: var(--color-gold);
  box-shadow: none;
  margin-left: 0;
}

.cta-band .btn:hover,
.cta .btn:hover {
  background: var(--color-red);
  color: #ffffff;
}

/* Article feature. A gold bordered box on the home page
   holding the featured research article. */
.article-feature {
  margin-top: 8px;
  padding: 28px 30px;
  border: 2px solid var(--color-gold);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-feature h2,
.article-feature h3 {
  margin-top: 0;
}

.article-feature h3 {
  font-size: 1.4rem;
}

.article-feature .btn-row .btn + .btn-outline {
  margin-left: 0;
}

/* Book covers grid. The From the Library section on the home
   page: cover figures in a wrapping grid, each with a caption
   link under it. */
.covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.cover {
  margin: 0;
  padding: 10px 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}

.cover:hover {
  transform: translateY(-4px);
}

.cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.cover figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.cover figcaption a {
  color: var(--color-slate);
  text-decoration: none;
}

.cover figcaption a:hover {
  color: var(--color-red);
}

/* Quote. A plain blockquote with a gold left border, as on
   the live home page. The base .quote card is a different
   component and is untouched. */
blockquote {
  margin: 20px 0;
  padding: 18px 24px;
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-gold);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 1.12rem;
  font-weight: 500;
}

blockquote .note {
  display: block;
  margin-top: 6px;
}

/* Survey infographics. Two figures side by side, one column
   on a phone. */
.infographics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.infographics figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.infographics img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.infographics figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

/* Setlist. A two column list of boxed links, one column on
   a phone. Used by Learn More on the home page. */
.setlist {
  columns: 2;
  column-gap: 20px;
  padding: 0;
  list-style: none;
  max-width: none;
}

.setlist li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.setlist a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-slate);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.setlist a:hover {
  border-color: var(--color-gold);
  transform: translateX(4px);
  color: var(--color-slate);
}

/* App pages. Top app cards carry a graphic at the top that
   bleeds to the card edges. App meta lines, price lines, and
   store links sit under the title. Price lists are rows with
   the price at the right. */
.card a.app-graphic-link {
  display: block;
  margin: -22px -22px 16px;
  line-height: 0;
}

.card img.app-graphic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
}

.app-meta {
  margin: 0 0 10px;
}

.app-meta strong {
  color: var(--color-slate);
}

.price-line {
  margin: 0 0 10px;
}

.store-links {
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.store-links a {
  margin-right: 14px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
  font-weight: 500;
}

.price-list li span:last-child {
  color: var(--color-slate);
  white-space: nowrap;
}

/* Footer. Dark navy #111a26, as the base file sets. The live
   footer markup uses plain paragraphs, .values, .note,
   .social-row, and .social links with a letter span. The base
   footer classes render the same. Gold links, social circles 44 pixels wide with a
   white ring and white letters on gold, legal line on top of
   a faint divider. The white letters on gold are a known
   contrast question already flagged for Harry. */
footer {
  margin-top: 64px;
  padding: 44px 0 48px;
  background: var(--color-footer-navy);
  color: #cfd6e0;
  font-size: 0.95rem;
  text-align: center;
}

footer p {
  margin: 0 0 14px;
  color: #ffffff;
}

footer strong {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
}

footer a {
  color: var(--color-gold);
  margin-right: 18px;
  margin-bottom: 6px;
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}


.site-footer__tagline {
  color: #ffffff;
}

.social-row,
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 16px 0 0;
  justify-content: center;
}

footer .social,
.social-circle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  margin: 0;
  text-decoration: none;
}

footer .social span,
.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--color-gold);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

footer .social:hover span,
.social-circle:hover {
  color: #ffffff;
}

.site-footer__legal {
  color: rgba(255, 255, 255, 0.85);
}

/* Horizontal overflow guard. Clipping on the hero and on
   bands keeps decoration inside the page. overflow-x clip
   does not create a scroll container, so the sticky banner
   and vertical scrolling are unaffected. */
.hero,
.band {
  overflow-x: clip;
}

/* Plain lists keep the live 1.3em left padding. Component
   lists set their own padding and are untouched. */
ul {
  padding-left: 1.3em;
}

/* Phones. */
@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .grid.three {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 40px;
  }

  .hero--home,
  .hero:has(> .wrap > .video) {
    padding: 36px 0 40px;
  }

  .hero--home .wrap,
  .hero:has(> .wrap > .video) .wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "h1"
      "answer"
      "cta"
      "video"
      "stats";
    grid-template-rows: auto;
  }

  .hero--home h1,
  .hero:has(> .wrap > .video) h1 {
    align-self: start;
  }

  .card.justright {
    transform: none;
  }

  .topbar .wrap,
  .site-header__inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .topbar nav,
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 6px 0 4px;
  }

  .topbar nav.open,
  .site-nav.open {
    display: flex;
  }

  .topbar nav a,
  .site-nav a {
    padding: 10px 14px;
  }

  .topbar .search-link {
    margin-left: auto;
  }

  .infographics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .setlist {
    columns: 1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .brand img {
    width: 110px;
    height: auto;
  }

  h2 {
    margin-top: 52px;
  }

  .band h2 {
    margin-top: 0;
  }

  .article-feature {
    padding: 22px 20px;
  }
}

@media (max-width: 360px) {
  .cat-card {
    grid-template-columns: 64px 1fr;
  }

  .cat-card .icon {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Books index hero meta row (from the Books preview, verbatim):
   the pills sit on the first line; the Share button sits on its own
   line below them (.cat-hero__meta .share { flex-basis: 100%; }),
   at its standard size. Wraps cleanly on mobile. */


/* Hero meta row. The three pills sit on the first line; the Share
   button sits on its own line below them, at its standard size.
   Wraps cleanly on mobile. */
.cat-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.cat-hero__meta .chips {
  margin: 0;
  justify-content: flex-start;
}

.cat-hero__meta .share {
  flex-basis: 100%;
}
/* The Books hero carries the share row, so it takes 20px bottom
   padding instead of the shared 28px (Books preview hero change).
   :has() scoping is already used in the base file (:has(.cover-row)). */
.cat-hero:has(.cat-hero__meta) {
  padding: 34px 24px 20px;
}


/* ============================================================
   Book pages (individual /books/<id>-<slug>.html pages).
   From the Napoleon design-system preview, reconciled
   against the base + theme above. Every rule is scoped
   under .book-page, so the book look never leaks onto
   index or leaf pages and the index look never leaks
   onto book pages. BOOK PAGES MUST CARRY
   <body class="book-page"> (phase 4 builder rule).
   Book variables live in :root below (book namespace:
   --ink, --gold, --red, --blue-ink, ...); they do not
   clash with the base --color-* variables.
   ============================================================ */









/* v5 restyle (2026-11-08): v5 homepage design tokens applied to the book-page design. Inlined CSS; this page does not use an external stylesheet. */
:root{
  --ink:#1f2a37;--muted:#4a5565;--bg:#fff;--surface:#fff;--line:#e1e7ef;
  --blue:#0a5f92;--blue-ink:#0a5f92;--blue-strong:#0a5f92;
  --yellow:#FDB515;--gold:#FDB515;--gold-deep:#E5A000;--gold-soft:#FFF4D1;
  --band-alt:#f3f8fc;--foot:#111a26;--foot-fg:#cfd6e0;
  --red:#e01e4e;--red-dark:#be1a42;
  --teal:#6bc2bc;--sun:#fde689;--pink:#efa7a8;--lime:#ccd963;
  --t1:#d9efee;--t2:#fdf3c4;--t3:#fbe3e4;--t4:#eef3c8;
  --shadow:0 2px 4px rgba(31,42,55,.05),0 14px 32px -12px rgba(31,42,55,.2);
  --on-gold:#1f2a37;--head:Roboto,"Helvetica Neue",Arial,sans-serif;--body:Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light dark}
.book-page .skip{position:absolute;left:-999px;top:8px;z-index:100;padding:10px 16px;border-radius:8px;background:#1f2a37;color:#fff;text-decoration:none}
.book-page .skip:focus{left:12px;color:#fff}
html{scroll-padding-top:16px}
.book-page{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.7 Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-text-size-adjust:100%}
.book-page a{color:var(--blue-ink);text-underline-offset:3px}
.book-page a:hover{color:var(--red)}
.book-page a:focus-visible, .book-page button:focus-visible, .book-page summary:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:8px}
.book-page h1, .book-page h2, .book-page h3{margin:0;line-height:1.2;font-weight:500;font-family:Roboto,"Helvetica Neue",Arial,sans-serif}
.book-page h2{font-size:clamp(1.4rem,3.4vw,1.8rem);color:var(--ink);margin-bottom:16px;position:relative;padding-bottom:16px}
.book-page h2::after{content:"";position:absolute;left:0;bottom:0;width:64px;height:6px;border-radius:6px;background:var(--gold)}
.book-page h3{font-size:1.2rem;margin:26px 0 10px;color:var(--blue-ink)}
.book-page p{margin:0 0 1em}
.book-page .wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.book-page .sec{margin:52px 0;padding:28px;border-radius:18px;background:var(--surface)}
.book-page .sec#details, .book-page .sec#inside, .book-page .sec.faq{background:var(--band-alt)}
.book-page .crumbs{padding:16px 0 0;font-size:.9rem;color:var(--muted)}
.book-page .crumbs a{color:inherit}
.book-page .book-hero{display:grid;gap:26px;justify-items:center;text-align:center;margin-top:14px;padding:30px 20px;border-radius:28px;background:var(--surface);border:1px solid var(--line)}
.book-page .book-cover{width:min(250px,64%);padding-left:14px;border-radius:12px 8px 8px 12px;box-shadow:var(--shadow);
  background:linear-gradient(to bottom,var(--teal) 0 25%,var(--sun) 25% 50%,var(--pink) 50% 75%,var(--lime) 75%) left top/14px 100% no-repeat}
.book-page .book-cover img{display:block;width:100%;border-radius:0 8px 8px 0}
.book-page .book-hero h1{font-size:clamp(1.8rem,5vw,2.7rem);color:var(--ink);letter-spacing:-.01em}
.book-page .tagline{margin:10px 0 18px;font-size:1.15rem;font-weight:500}
.book-page .chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 22px;padding:0;list-style:none}
.book-page .chips li{display:flex;gap:6px;align-items:center;padding:6px 14px;border-radius:999px;font-size:.92rem;font-weight:500;color:#1f2a37}
.book-page .chips li:nth-child(4n+1){background:#6bc2bc}
.book-page .chips li:nth-child(4n+2){background:#fde689}
.book-page .chips li:nth-child(4n+3){background:#efa7a8}
.book-page .chips li:nth-child(4n+4){background:#ccd963}
.book-page .actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:18px}
.book-page .stripe{height:6px;margin:28px 0 0;border-radius:3px;background:linear-gradient(to right,var(--teal) 0 25%,var(--sun) 25% 50%,var(--pink) 50% 75%,var(--lime) 75%)}
.book-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:2px solid transparent;border-radius:999px;background:var(--red);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.book-page .btn:hover{background:var(--red-dark)}
.book-page .btn-gold{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:2px solid transparent;border-radius:999px;background:var(--yellow);color:#17212F;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.book-page .btn-gold:hover{background:#FFC83D}
.book-page .pills{display:flex;gap:8px;overflow-x:auto;margin:0;padding:16px 0 4px;scrollbar-width:none}
.book-page .pills::-webkit-scrollbar{display:none}
.book-page .pills a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:.93rem;font-weight:500;text-decoration:none}
.book-page .pills a:hover{border-color:var(--blue);color:var(--blue-ink)}
.book-page .pills--wrap{flex-wrap:wrap;overflow:visible;margin-top:20px;padding:0}
.book-page .share{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.book-page .share__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 15px;border:2px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-size:.92rem;font-weight:500;text-decoration:none;cursor:pointer}
.book-page .share__btn:hover{border-color:var(--blue);color:var(--blue-ink)}
.book-page .share__btn[hidden]{display:none}
.book-page .share__status{flex-basis:100%;min-height:1.4em;font-size:.88rem;text-align:center;color:var(--muted)}
.book-page .pitch{margin:0;padding:20px 22px;border-left:6px solid var(--yellow);border-radius:0 18px 18px 0;background:var(--surface);box-shadow:var(--shadow);font-size:1.15rem}
.book-page .pitch p, .book-page .angle p{margin:0}
.book-page .specs{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.book-page .specs th, .book-page .specs td{padding:13px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.book-page .specs tr:last-child>*{border-bottom:0}
.book-page .specs th{width:32%;background:rgba(10,95,146,.08);color:var(--blue-ink);font-weight:700}
.book-page .apps{display:grid;gap:16px;margin-top:8px}
.book-page .app{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.book-page .app p{margin:0 0 14px}
.book-page .talk{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.book-page .talk li{position:relative;padding:16px 18px 16px 68px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.book-page .talk li::before{content:"?";position:absolute;left:16px;top:14px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--t1);color:var(--blue-ink);font-size:1.2rem;font-weight:500}
.book-page .talk li:nth-child(2)::before{background:var(--t2)}
.book-page .talk li:nth-child(3)::before{background:var(--t3)}
.book-page .quote{margin:24px 0 0;padding:22px 26px;border-radius:20px 20px 20px 4px;background:var(--t1);font-size:1.25rem;font-weight:500;line-height:1.4}
.book-page .quote p{margin:0}
.book-page .vocab{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.book-page .vocab li{padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:.98rem;line-height:1.55}
.book-page .vocab li strong{color:var(--blue-ink)}
@media (min-width:760px){.book-page .vocab{grid-template-columns:1fr 1fr}}
.book-page .book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:22px 18px;margin:0;padding:0;list-style:none}
.book-page .book-card{position:relative;display:flex;flex-direction:column;gap:6px}
.book-page .book-card img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:6px 12px 12px 6px;box-shadow:var(--shadow)}
.book-page .book-card a{font-weight:500;line-height:1.3;color:var(--blue-ink);text-decoration:none}
.book-page .book-card a::after{content:"";position:absolute;inset:0}
.book-page .book-card:hover a{text-decoration:underline}
.book-page .book-card:hover img{box-shadow:0 0 0 3px var(--blue)}
.book-page .book-card small{font-size:.83rem;color:var(--muted);line-height:1.4}
.book-page .badge{align-self:flex-start;padding:1px 10px;border-radius:999px;background:var(--t1);font-size:.78rem;font-weight:500}
.book-page .badge--audio{background:var(--t3)}
.book-page .faq details{margin-bottom:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.book-page .faq details[open]{border-color:var(--gold)}
.book-page .faq summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 18px;cursor:pointer;list-style:none}
.book-page .faq summary::-webkit-details-marker{display:none}
.book-page .faq summary::after{content:"+";flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--gold);color:#1f2a37;font-size:1.25rem;font-weight:500;line-height:1}
.book-page .faq details[open] summary::after{content:"\2212"}
.book-page .faq summary h3{margin:0;font-size:1.05rem;color:var(--ink)}
.book-page .faq details p{margin:0;padding:0 18px 16px}
.book-page .cta{margin:52px 0 0;padding:clamp(2.2rem,5vw,3.6rem) 24px;border-radius:32px;background:var(--gold);color:#1f2a37;text-align:center}
.book-page .cta h2{margin:0 0 10px;padding:0;color:#1f2a37;font-size:clamp(1.6rem,4vw,2.2rem)}
.book-page .cta h2::after{display:none}
.book-page .cta p{margin:0 0 20px;color:#1f2a37;font-size:1.15rem}
.book-page .cta .actions{margin-bottom:24px}
.book-page .cta .btn{background:#1f2a37;color:#FDB515;box-shadow:none}
.book-page .cta .btn:hover{background:var(--red);color:#fff}
@media (min-width:760px){.book-page .book-hero{grid-template-columns:250px 1fr;gap:40px;justify-items:stretch;align-items:center;padding:38px;text-align:left}.book-page .book-cover{width:250px}.book-page .chips, .book-page .actions, .book-page .share{justify-content:flex-start}.book-page .share__status{text-align:left}}
@media (max-width:640px){.book-page .specs th, .book-page .specs td{display:block;width:auto}.book-page .specs th{padding-bottom:2px;border-bottom:0}.book-page .specs td{padding-top:0}}
.book-page .cta .actions, .book-page .cta .share{justify-content:center}
.book-page .cta .share__status{text-align:center}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.book-page{overflow-x:hidden}
@media (max-width:480px){.book-page .wrap{padding:0 16px}.book-page .sec{margin:40px 0;padding:20px}.book-page .book-hero{padding:24px 16px}.book-page .book-cover{width:min(220px,72%)}.book-page .actions .btn{flex:1 1 100%}.book-page .cta{padding:32px 16px}.book-page .cta .actions .btn{flex:1 1 100%}.book-page .book-grid{grid-template-columns:repeat(2,1fr);gap:16px 12px}.book-page .book-card small{font-size:.8rem}.book-page .talk li{padding:14px 14px 14px 58px}.book-page .talk li::before{left:12px;top:12px;width:34px;height:34px}.book-page .quote{padding:18px 20px;font-size:1.15rem}.book-page .pitch{padding:16px 18px;font-size:1.08rem}}
@media (max-width:360px){.book-page .book-grid{grid-template-columns:repeat(2,1fr);gap:14px 10px}}
.book-page .topbar{background:var(--gold);color:var(--on-gold);padding:10px 0;position:sticky;top:0;z-index:50;box-shadow:0 2px 0 rgba(31,42,55,.08)}
.book-page .topbar .wrap{display:flex;gap:12px 28px;align-items:center;justify-content:space-between}
.book-page .topbar nav{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none;margin-left:auto}
.book-page .topbar nav::-webkit-scrollbar{display:none}
.book-page .topbar nav a{color:var(--on-gold);text-decoration:none;font-size:15px;font-weight:500;padding:9px 14px;border-radius:999px;white-space:nowrap;transition:background .15s}
.book-page .topbar nav a:hover{background:rgba(31,42,55,.12);color:var(--on-gold)}
.book-page .topbar .search-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;flex:none;border-radius:999px;color:var(--on-gold);text-decoration:none}
.book-page .topbar .search-link:hover{background:rgba(31,42,55,.12)}
.book-page .topbar .search-link:focus-visible{outline:3px solid var(--on-gold);outline-offset:2px}
.book-page .topbar .search-link svg{width:22px;height:22px;display:block}
.book-page .menu-toggle{display:none;background:none;border:0;cursor:pointer;padding:10px 12px;border-radius:8px}
.book-page .menu-toggle span{display:block;width:24px;height:3px;background:var(--on-gold);margin:5px 0;border-radius:2px}
.book-page .menu-toggle:hover{background:rgba(31,42,55,.12)}
@media(max-width:820px){.book-page .topbar .wrap{flex-wrap:wrap}.book-page .menu-toggle{display:inline-flex;flex-direction:column;align-items:center;justify-content:center}.book-page .topbar nav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;overflow:visible;padding:6px 0 4px}.book-page .topbar nav.open{display:flex}.book-page .topbar nav a{padding:10px 14px}.book-page .topbar .search-link{margin-left:auto}}
.book-page .brand{display:inline-block;flex:none}
.book-page .brand img{width:130px;height:auto;display:block}
.book-page footer{margin-top:64px;padding:44px 0 48px;color:var(--foot-fg);font-size:.95rem;background:var(--foot);text-align:center}
.book-page footer p{margin:0 0 14px;color:#fff}
.book-page footer strong{color:#fff;font:600 1rem var(--head)}
.book-page footer a{color:var(--gold);margin-right:18px;display:inline-block;margin-bottom:6px;text-decoration:none;font-weight:500}
.book-page footer a:hover{color:#fff;text-decoration:underline}
.book-page footer .legal{margin:18px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);font-size:14px;color:#aeb7c4}
.book-page .social-row{display:flex;flex-wrap:wrap;gap:10px 14px;margin:16px 0 0;justify-content:center}
.book-page footer .social{display:inline-flex;align-items:center;gap:8px;color:#fff;margin:0}
.book-page .social span{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:2px solid #ffffff;border-radius:50%;background:var(--gold);color:#ffffff;font-size:13px;font-weight:500}
@media(max-width:560px){.book-page .brand img{width:110px}}
.book-page .hero-cover{display:flex;flex-direction:column;align-items:center}
.book-page .hero-main{display:flex;flex-direction:column;gap:12px;justify-content:center}
.book-page .book-hero #where-to-read .where-heading{margin:0 0 12px;font-family:Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1.2rem;font-weight:500;line-height:1.2;color:var(--blue-ink)}
.book-page .book-hero .apps{grid-template-columns:1fr}
.book-page .book-hero .app--rmk{background:#FDB515;border-color:transparent}
.book-page .book-hero .app--rmk p{color:#1A2430}
.book-page .book-hero .app--rmk strong{color:#1A2430}
.book-page .book-hero .app--ra{background:#0a5f92;border-color:transparent}
.book-page .book-hero .app--ra p{color:#fff}
.book-page .book-hero .app--ra strong{color:#fff}
.book-page .book-hero .store-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.book-page .book-hero .app{text-align:left}
.book-page .book-hero .store-badges{justify-content:flex-start}
.book-page .book-hero .store-badges img{display:block;height:44px;width:auto}
@media (min-width:760px){.book-page .book-hero{grid-template-columns:170px 1fr;gap:12px 28px;align-items:center;padding:32px 20px}.book-page .book-hero .book-cover{width:170px}.book-page .hero-cover{grid-column:1;grid-row:1}.book-page .hero-main{grid-column:2;grid-row:1}.book-page .hero-main .share{justify-content:flex-start}.book-page .hero-main .share__status{text-align:left}.book-page .book-hero #where-to-read{grid-column:1/-1}}
.book-page .book-hero .tagline{font-size:1.0625rem;margin:0}
.book-page .book-hero .chips{margin:0}
.book-page .book-hero{background:#fff;border-color:#e1e7ef}
.book-page .book-hero h1{color:#1A2430}
.book-page .book-hero .tagline{color:#1A2430}
.book-page .book-hero .tagline strong{color:#1A2430}

/* ============================================================
   Search page (/search/).
   Rules for the live search page, adapted from the inline
   <style> of the search proof (preview-search/search.html).
   Restated in design-system terms: Roboto comes from
   fonts.css, gold is var(--color-gold) (#FDB515), link blue
   is var(--color-link) (#0a5f92), the search button is
   var(--color-red) (#E01E4E), and text/borders use the
   theme's --color-slate, --color-muted, --color-ink-soft,
   --color-border and --color-surface. No new palette.
   Result cards are scoped under .results, so they never
   touch the .grid/.cards .card rules or the .card.cold /
   .card.hot / .card.justright temperature cards above.
   The count line is scoped as .searchbox + .count (it
   follows the search box on this page only), so the shared
   .count rule used above category grids is untouched.
   ============================================================ */

/* Search box: input plus Clear button, in one flex row. */
.searchbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.searchbox input[type="search"] {
  flex: 1;
  font-family: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  background: var(--color-surface);
  color: var(--color-slate);
}

.searchbox input[type="search"]:focus {
  border-color: var(--color-gold);
}

.searchbox button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-red);
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
}

.searchbox button.clear {
  background: #6b7280;
}

/* Count line under the search box ("N books in the library"
   or "N results for ..."). Scoped to this page only. */
.searchbox + .count {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
}

/* Result grid: cards wrap, at least 260px wide each. */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Search result cards. Scoped under .results: these are not
   the .grid/.cards cards and never carry .cold/.hot/
   .justright, so none of those rules applies here. */
.results .card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  /* Padding lives on the whole-card link below, not the article, so
     the entire card is the tap target (not just its content). */
  padding: 0;
  background: var(--color-surface);
}

.results .card h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 6px;
}

/* Whole-card link: the anchor wraps the cover and the text, so the
   entire result card is clickable (matches the live BookTile). The
   anchor is the flex row: cover on the left, text on the right —
   the same 12px gap / top-aligned pattern as the leaf book cards
   (.cards .card .cover-row). */
.results .card > a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  color: var(--color-slate);
  text-decoration: none;
}

.results .card > a:hover h2 {
  color: var(--color-link);
  text-decoration: underline;
}

/* Search result cover thumbnail: same 90px pattern as the leaf
   book cards (.cards .card .cover-thumb). */
.results .card .cover-thumb {
  width: 90px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Text column beside the cover: grows to fill the card, and may
   shrink below content width so long titles wrap inside the card. */
.results .card .card-text {
  flex: 1;
  min-width: 0;
}

.results .card .meta {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.results .card .meta b {
  color: var(--color-ink-soft);
  font-weight: 500;
}

/* "No results found!" message. */
.noresult {
  font-size: 17px;
  color: var(--color-ink-soft);
  padding: 24px 0;
}

/* "Loading the book list..." indicator. */
.loading {
  font-size: 17px;
  color: var(--color-muted);
  padding: 24px 0;
}

/* Infinite-scroll sentinel: a 1px marker the observer
   watches; it renders nothing visible. */
.sentinel {
  height: 1px;
}

/* Search page intro line ("Search the Smart Kidz Club library...").
   Proof rule: 17px, #374151 (mapped to --color-ink-soft, as for
   .noresult), margin 0 0 20px. Only the search page uses .intro. */
.intro {
  font-size: 17px;
  color: var(--color-ink-soft);
  margin: 0 0 20px;
}

/* ============================================================
   Leaf-page (browse) rules — defect fix D5, 2026-11-26.
   The 130 leaf pages use book cards (<ul class="cards">)
   whose meta line, cover thumbnail and button alignment had
   no rules. Sources, nothing invented:
   - .meta: same 14px / muted / no-margin treatment as the
     search result cards (.results .card .meta above), scoped
     under .cards so it cannot touch book or search pages
     (neither uses .cards or .meta: 0 occurrences each).
   - .cover-row / .cover-thumb: November hub preview
     (decodable-books.html in ~/workspace/skc-samples/
     november-hubs-2026/): the row is a flex row and the
     thumbnail is 90px wide, auto height, 6px radius,
     never shrunk.
   - p:last-child: the .grid card rule above
     (margin auto 0 0, 12px top padding) adapted to
     <ul class="cards">. Every leaf book card (13,186)
     ends with the "See this book" button paragraph, so
     the buttons line up across a row.
   ============================================================ */

/* Book-card meta line ("Level N ... Ages ..."). */
.cards .card .meta {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

/* Book-card cover row: thumbnail beside the (empty) cover
   panel slot, aligned at the top. */
.cards .card .cover-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Book-card cover thumbnail. */
.cards .card .cover-thumb {
  width: 90px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Button on leaf book cards: pinned to the bottom of the card.
   margin-top: auto pushes the button down so every card in a
   row ends at the same line. (Harry, 2026-11-27: equal card
   heights with the button at the bottom. This reverses the
   2026-11-26 no-pinning call; short cards will show slack
   above the button, which is the accepted trade-off.) */
.cards:has(.cover-row) .card p:last-child {
  margin: auto 0 0;
  padding-top: 12px;
}

/* Leaf book-card grids: stretch cards to the row height, so
   every card in a row is the same height and the button sits
   at the bottom of each card. (Harry, 2026-11-27, reversing
   the 2026-11-26 align-items: start call.)
   (The grid columns stay defined by the base .cards:has rule.) */
.cards:has(.cover-row) {
  align-items: stretch;
}

/* Pills inside leaf book cards: left-aligned like the title,
   level line and button. The general .chips rule stays centered
   for the book-page hero and cat-hero chips. The bottom margin
   is removed here so the only space above the button is the
   button's own 12px top padding. */
.cards .card .chips {
  justify-content: flex-start;
  margin-bottom: 0;
}

/* Home page card grids (Browse Books, For Schools, Book
   Collections): no override here on purpose. The grid
   default (align-items: stretch) keeps every card in a row
   the same height, and the general .grid .card p:last-child
   rule (margin-top: auto) pins each button to the bottom of
   its card. Do not add align-items: start or margin: 0 here:
   that was tried 2026-11-26 and left the cards at different
   heights with the buttons at different levels. */

/* ============================================================
   Search rebuild — 2026-11-26. Age buttons, shelves, facet
   sidebar, sort, filter chips. Adapted from the redesign
   prototype's structure; the prototype's fonts and
   cream/navy palette were NOT used. Everything here
   uses the design system: Roboto from fonts.css, gold
   var(--color-gold) (#FDB515), red var(--color-red) (#E01E4E),
   link blue var(--color-link), and the theme's --color-slate,
   --color-muted, --color-ink-soft, --color-border and
   --color-surface. No new palette, no inline CSS.
   ============================================================ */

/* Sort dropdown in the search box row. */
.searchbox select {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-slate);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 12px;
  cursor: pointer;
}

/* Filters toggle (mobile only): same neutral treatment as the
   sort, NOT the red .searchbox button rule. */
.searchbox .toggle-filters {
  display: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-slate);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
}

/* Age group buttons: the main way in. Five buttons, one per
   catalog age band. Active button is gold with dark text. */
.ages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 4px 0 20px;
}
.age {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--color-surface);
  color: var(--color-slate);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.age b { display: block; font-size: 17px; font-weight: 700; }
.age span { font-size: 14px; color: var(--color-muted); }
.age[aria-pressed="true"] {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #1f2a37;
}
.age[aria-pressed="true"] span { color: #1f2a37; }

/* Two-column search layout: facet sidebar + results. */
.search-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  padding-bottom: 60px;
}
.search-layout aside {
  align-self: start;
  position: sticky;
  top: 12px;
}
.search-layout aside details {
  border-top: 1px solid var(--color-border);
  padding: 10px 0;
}
.search-layout aside summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-slate);
  font-size: 16px;
}
.search-layout aside label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-slate);
}
.search-layout aside input[type="checkbox"] { accent-color: var(--color-red); }
.facet-count { color: var(--color-muted); font-size: 14px; }
.clear-all {
  margin-top: 10px;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  color: var(--color-link);
  font-family: inherit;
  font-size: 15px;
}

/* Filter chips above the results. */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chips:empty { margin-bottom: 0; }
.chip {
  font-family: inherit;
  font-size: 14px;
  color: var(--color-slate);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.chip::after { content: " \00d7"; }
.chip-clear::after { content: ""; }
.chip-clear { font-weight: 700; }

/* Count line inside the new layout (the old .searchbox + .count
   rule no longer matches: the age strip sits between them). */
.search-main .count {
  display: block;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-muted);
}

/* Shelves: one horizontal scrolling row per age band. */
.shelf { margin-bottom: 34px; }
.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.shelf-head h2 {
  font-size: 20px;
  margin: 0;
  color: var(--color-slate);
}
.shelf-head button {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  color: var(--color-link);
  font-family: inherit;
  font-size: 15px;
  white-space: nowrap;
}
.shelf-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}
/* Compact vertical shelf card: cover on top, title and author
   below. Chosen over the horizontal grid card because a 160px
   vertical card fits several across a scrolling row, where the
   260px-minimum horizontal card would show only one or two. */
.shelf-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--color-slate);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
}
.shelf-card:hover h3 { color: var(--color-link); text-decoration: underline; }
.shelf-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.shelf-card h3 { font-size: 16px; line-height: 1.35; margin: 0; }
.shelf-card .meta { font-size: 14px; color: var(--color-muted); margin: 0; }

@media (max-width: 820px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-layout aside { position: static; display: none; }
  .search-layout aside.open { display: block; }
  .searchbox .toggle-filters { display: inline-block; }
}

/* ============================================================
   Leaf book cards, RMK science-page style (2026-11-26).
   The cards copy the Reading and Math for Kids science
   collection cards exactly: a vertical card with a navy cover
   block (type, title, author) beside the 90px thumbnail, then
   the title, the facts line, the description, and a red
   "See this book" button. These rules override the SKC theme
   leaf-card tweaks where they differ; same specificity, later
   in source order, so they win.
   ============================================================ */

/* RMK card: 20px padding, warm beige border, 6px top border,
   12px radius. (Border first, then top, so the shorthand does
   not wipe out the 6px top the way it would on its own.) */
.cards .card {
  padding: 20px;
  border: 1px solid #eadfbc;
  border-top: 6px solid var(--pill-teal);
  border-radius: 12px;
}

/* Cover row: thumbnail beside the navy cover block, stretched
   to the same height. */
.cards .card .cover-row {
  align-items: stretch;
}

.cards .card .cover-thumb {
  object-fit: cover;
}

/* Navy cover block: type, title, author, centred. */
.card__cover {
  padding: 0.6rem 0.625rem;
  border-radius: 12px;
  background: var(--color-navy);
  color: #ffffff;
  text-align: center;
}

.cover-row .card__cover {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card__cover .cover-type {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fdb515;
  font-weight: 700;
}

.card__cover .cover-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.card__cover .cover-author {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #dbe8fb;
  margin-top: 4px;
}

/* Title under the cover row keeps the 1rem breathing room.
   The theme's ".cards .card h3" (margin-top 0) would otherwise
   kill the base rule. */
.cards .card .cover-row + .card__title {
  margin-top: 1rem;
}

/* Button paragraph: back to the RMK spacing. The card-layout
   fix set margin 0 + 12px top padding; RMK lets the button's
   own 1rem top margin do the spacing, with the paragraph's
   normal 1rem bottom margin below it. */
.cards .card p:last-child {
  margin: 0 0 1rem;
  padding-top: 0;
}

/* Dark mode must stay last in this file. It overrides the book-page
   :root variables, and rules with the same specificity are decided by
   source order, so a :root block placed after this one would win and
   the book pages would render light in dark mode. Do not move this
   block above the book :root. */
@media (prefers-color-scheme:dark){
  :root{
    /* Book-page variables (same dark palette, book namespace). */
    --ink:#e9eef5;--muted:#a9b5c4;--bg:#0e1621;--surface:#1a2535;--line:#2b394d;--blue-ink:#7cc8f5;--band-alt:#12283b;
  --t1:#12283b;--t2:#2f2813;--t3:#2e1822;--t4:#1f2a1e;
  --shadow:0 2px 4px rgba(0,0,0,.3),0 14px 32px -12px rgba(0,0,0,.6);

    --color-slate:#e9eef5;--color-ink:#e9eef5;--color-ink-soft:#c3ccd8;--color-muted:#a9b5c4;
    --color-surface:#1a2535;--color-line:#2b394d;--color-border:#6b7c93;
    --color-link:#7cc8f5;--color-blue:#5eb3e6;--color-blue-deep:#4a90c2;--color-blue-bright:#33c5f5;
    --color-pale-blue:#12283b;--color-light-blue:#12283b;
    --color-cream:#2f2813;--color-pale-yellow:#2f2813;--color-pale-pink:#2e1822;--color-pale-teal:#12283b;
    --color-navy:#0e1621;
    --shadow-soft:0 12px 32px rgba(0,0,0,.35);--shadow-card:0 20px 50px rgba(0,0,0,.45);--shadow-large:0 28px 70px rgba(0,0,0,.5);
    color-scheme:light dark}
  body{background:#0e1621}
  .band-white{background:var(--color-surface)}
  .hero{background:var(--color-surface)}
  .answer,.hero__answer{background:var(--color-surface)}
  .video{background:var(--color-surface)}
  .grid .card:not(.cold):not(.hot):not(.justright),.cards .card:not(.cold):not(.hot):not(.justright){background:var(--color-surface)}
  .quote,.r2m-quote{background:linear-gradient(165deg,#1a2535 0%,rgba(26,37,53,.88) 100%)}
  .faq details[open],.r2m-faq details[open]{background:rgba(255,255,255,.06)}
  /* Phase 1 dark-mode audit fix (2026-11-26): these boxes kept hardcoded
     #ffffff in dark mode while their text flipped light via the dark :root
     vars (1.17:1-2.08:1). Give them the dark surface, as .band-white does.
     .cat-group--2/--4 need the doubled class: their light rule is (0,2,0). */
  .faq details,.cat-hero,.pitch,.cat-group,.cat-group.cat-group--2,.cat-group.cat-group--4,.cat-card,.article-feature,.cover,blockquote,.setlist a,.infographics figure{background:var(--color-surface)}
  .stat,.r2m-stat,.stats li{background:var(--color-surface)}
  .share__btn{background:var(--color-surface)}
  /* Keep dark text on the gold topbar, gold buttons, gold call-to-action band, and pastel pills. */
  .topbar nav a,.site-nav a,.topbar nav a:hover,.site-nav a:hover,.topbar .search-link{color:#1f2a37}
  .menu-toggle span{background:#1f2a37}
  .btn-gold,.btn-gold:hover,.btn--gold,.btn--gold:hover{color:#1f2a37}
  .hero .btn-gold:hover{color:#1f2a37}
  .cta-band h2,.cta h2,.cta-band p,.cta p{color:#1f2a37}
  .cta-band .btn,.cta .btn,.hero .btn{background:#1f2a37}
  .pill.teal,.pill.yellow,.pill.pink,.pill.green,.chips li{color:#1f2a37}
  .card.hot h3,.card.justright h3{color:var(--color-ink)}
  .faq summary::after,.r2m-faq summary::after{color:#1f2a37}

  /* Book hero stays light in dark mode (Harry's hero light fix):
     re-pin the hero's text variables to dark-on-white. */
  .book-page .book-hero{--ink:#1f2a37;--muted:#4a5565;--blue-ink:#0a5f92;--surface:#fff;--line:#e1e7ef;--bg:#fff}

  /* Search page in dark mode: the input and result cards use
     the dark surface and border; title links stay readable
     ink, meta and status lines use the dark muted tones.
     The gold focus ring and red search button are unchanged. */
  .searchbox input[type="search"]{background:var(--color-surface);border-color:var(--color-border);color:var(--color-ink)}
  .results .card{background:var(--color-surface);border-color:var(--color-border)}
  .results .card > a{color:var(--color-ink)}
  .results .card .meta{color:var(--color-muted)}
  .results .card .meta b{color:var(--color-ink-soft)}
  .searchbox + .count{color:var(--color-muted)}
  .noresult{color:var(--color-ink-soft)}
  .loading{color:var(--color-muted)}
  .intro{color:var(--color-ink-soft)}
  /* Leaf-page book-card meta line: same dark muted tone as
     the search result meta above. */
  .cards .card .meta{color:var(--color-muted)}

  /* Search rebuild in dark mode (2026-11-26): age buttons,
     shelves, facets, sort, chips. The active age button stays
     gold with dark text; everything else uses the dark surface,
     border and inks. */
  .searchbox select{background:var(--color-surface);border-color:var(--color-border);color:var(--color-ink)}
  .searchbox .toggle-filters{background:var(--color-surface);border-color:var(--color-border);color:var(--color-ink)}
  .age{background:var(--color-surface);border-color:var(--color-border);color:var(--color-ink)}
  .age span{color:var(--color-muted)}
  .age[aria-pressed="true"]{background:var(--color-gold);border-color:var(--color-gold);color:#1f2a37}
  .age[aria-pressed="true"] span{color:#1f2a37}
  .search-layout aside summary{color:var(--color-ink)}
  .search-layout aside label{color:var(--color-ink)}
  .facet-count{color:var(--color-muted)}
  .clear-all{color:var(--color-link)}
  .chip{background:var(--color-surface);border-color:var(--color-border);color:var(--color-ink)}
  .search-main .count{color:var(--color-muted)}
  .shelf-head h2{color:var(--color-ink)}
  .shelf-head button{color:var(--color-link)}
  .shelf-card{background:var(--color-surface);border-color:var(--color-border);color:var(--color-ink)}
  .shelf-card .meta{color:var(--color-muted)}
  /* Leaf book cards, RMK style: warm beige border becomes
     dark slate; the navy cover block goes darker still. The
     top border keeps cycling teal/yellow/pink/green through
     the nth-child rules, which outrank this rule. */
  .cards .card {
    border-color: #2b394d;
    border-top-color: var(--pill-teal);
  }

  .card__cover {
    background: #111a26;
  }
}
