:root {
  --navy: #07172b;
  --ink: #111820;
  --black: #050608;
  --gold: #c89d38;
  --gold-soft: #efe0b6;
  --paper: #fffdf8;
  --cream: #f7f4ec;
  --line: #ded7c8;
  --muted: #5d6876;
  --teal: #0e6f68;
  --white: #ffffff;
  --danger: #9f2d2d;
  --success: #1d6f4b;
  --menu-accent: #c89d38;
  --menu-accent-strong: #9f7415;
  --menu-accent-soft: #fbf5e5;
  --menu-accent-ink: #241803;
  --menu-accent-glow: rgba(200, 157, 56, .28);
  --shadow: 0 22px 60px rgba(7, 23, 43, 0.12);
  --page-hero-bg:
    linear-gradient(90deg, rgba(7, 23, 43, 0.96) 0%, rgba(7, 23, 43, 0.78) 46%, rgba(7, 23, 43, 0.4) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 28px),
    linear-gradient(120deg, #146c63 0%, #1c64a1 28%, #7d3f98 56%, #f25f5c 78%, #f2c14e 100%);
}

html[lang^="en"] {
  --menu-accent: #c89d38;
  --menu-accent-strong: #9f7415;
  --menu-accent-soft: #fbf5e5;
  --menu-accent-ink: #241803;
  --menu-accent-glow: rgba(200, 157, 56, .28);
}

html[lang^="af"] {
  --menu-accent: #2f7ed8;
  --menu-accent-strong: #1d5fae;
  --menu-accent-soft: #edf5ff;
  --menu-accent-ink: #fff;
  --menu-accent-glow: rgba(47, 126, 216, .28);
}

html[lang^="zu"] {
  --menu-accent: #7a4bc0;
  --menu-accent-strong: #59369a;
  --menu-accent-soft: #f4efff;
  --menu-accent-ink: #fff;
  --menu-accent-glow: rgba(122, 75, 192, .28);
}

/* Parser-discoverable homepage hero: avoid delaying LCP behind CSS parsing. */
.home-page .hero {
  background: #07172b !important;
}

.home-page .hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(7, 23, 43, 0.78) 38%, rgba(7, 23, 43, 0.26) 70%, rgba(7, 23, 43, 0.04) 100%);
}

.home-homeschool .hero::before {
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(7, 23, 43, 0.8) 38%, rgba(7, 23, 43, 0.32) 70%, rgba(7, 23, 43, 0.06) 100%);
}

.home-page .hero-inner {
  position: relative;
  z-index: 2;
}

.home-page .hero::after {
  z-index: 1;
}

.home-page > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

@media (max-width: 760px) {
  .home-page:not(.home-homeschool) .hero-media img { object-position: 68% top; }
  .home-homeschool .hero-media img { object-position: 72% top; }
}

.admin-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.admin-file-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.admin-file-card form {
  margin: 0;
}

.admin-file-card input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-file-history {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-order-search {
  margin-bottom: 18px;
  padding: 18px;
}

.admin-order-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.admin-order-search-row input {
  width: 100%;
}

@media (max-width: 760px) {
  .admin-file-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-search-row {
    grid-template-columns: 1fr;
  }
}

[data-content-protection="public"],
[data-content-protection="learner"] {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

[data-content-protection] input,
[data-content-protection] textarea,
[data-content-protection] select,
[data-content-protection] [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

[data-content-protection] img {
  -webkit-user-drag: none;
  user-drag: none;
}

@media print {
  html,
  body,
  body * {
    display: none !important;
    visibility: hidden !important;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html.student-instant-scroll {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

button,
input,
textarea,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid rgba(17, 24, 32, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 116px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(7, 23, 43, 0.15);
}

.home-page .header-inner:not(.has-back-button) {
  grid-template-columns: auto minmax(0, 1fr);
}

.home-page .header-inner:not(.has-back-button) .brand {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
}

.home-page .header-inner:not(.has-back-button) .nav {
  grid-column: 2;
}

.site-back-button {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px 9px 11px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(7, 23, 43, 0.08);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-back-button:hover,
.site-back-button:focus-visible {
  color: var(--navy);
  background: var(--menu-accent-soft);
  border-color: var(--menu-accent);
}

.site-back-button:hover {
  transform: translateX(-2px);
}

.site-back-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-inner.has-back-button {
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 12px;
}

.header-inner.has-back-button .brand {
  grid-column: 2;
  justify-self: start;
  justify-content: flex-start;
}

.header-inner.has-back-button .nav,
.header-inner.has-back-button .mobile-header-actions {
  grid-column: 3;
  justify-self: end;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: end;
  grid-column: 3;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a.active,
.nav a[aria-current="page"] {
  color: var(--navy);
  border-color: var(--menu-accent);
}

.nav .cart-pill,
.nav .header-finder-link {
  padding: 0;
  border: 1px solid var(--line);
}

.nav .header-course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--menu-accent);
  border-radius: 8px;
  color: var(--navy);
  background: var(--menu-accent-soft);
  white-space: nowrap;
}

.nav .header-course-link:hover,
.nav .header-course-link:focus-visible {
  color: var(--navy);
  border-color: var(--menu-accent-strong);
  background: var(--menu-accent-soft);
  box-shadow: 0 0 0 3px var(--menu-accent-glow);
  text-decoration: none;
}

.cart-pill,
.header-finder-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.header-finder-label {
  display: none;
}

.cart-pill:hover,
.header-finder-link:hover {
  color: var(--navy);
  border-color: var(--menu-accent);
  background: var(--menu-accent-soft);
}

.cart-pill.active,
.cart-pill[aria-current="page"],
.header-finder-link.active,
.header-finder-link[aria-current="page"] {
  border-color: var(--menu-accent);
  background: var(--menu-accent-soft);
}

.language-switch,
.audience-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(7, 23, 43, .15);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f4f1e9);
  box-shadow:
    0 7px 18px rgba(7, 23, 43, .12),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

.language-switch a,
.audience-switch a {
  min-width: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 2px 5px rgba(7, 23, 43, .16);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.language-switch a:nth-child(1) {
  color: #241803;
  background: linear-gradient(180deg, #fff0a1, #d6a52b);
}

.language-switch a:nth-child(2) {
  color: #fff;
  background: linear-gradient(180deg, #5ca8ff, #245fbd);
}

.language-switch a:nth-child(3) {
  color: #fff;
  background: linear-gradient(180deg, #b27cff, #6b3fbd);
}

.language-switch a:hover,
.language-switch a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  filter: brightness(1.06) saturate(1.06);
  transform: translateY(-1px);
}

.language-switch a.active {
  position: relative;
  z-index: 1;
  filter: saturate(1.14);
  transform: translateY(-2px) scale(1.08);
}

.language-switch a:nth-child(1).active {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .88),
    0 0 0 3px rgba(200, 157, 56, .32),
    0 8px 16px rgba(126, 88, 11, .28);
}

.language-switch a:nth-child(2).active {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .88),
    0 0 0 3px rgba(47, 126, 216, .3),
    0 8px 16px rgba(25, 78, 147, .3);
}

.language-switch a:nth-child(3).active {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .88),
    0 0 0 3px rgba(122, 75, 192, .3),
    0 8px 16px rgba(74, 40, 128, .3);
}

.audience-switch a {
  min-width: 76px;
  padding-inline: 12px;
  white-space: nowrap;
}

.audience-switch a.active,
.audience-switch a[aria-current="true"] {
  color: var(--menu-accent-ink);
  background: var(--menu-accent);
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--menu-accent-ink);
  background: var(--menu-accent);
  font-size: 0.8rem;
}

.mobile-header-actions {
  display: none;
}

.tablet-header-switch {
  display: none;
}

.mobile-shop-link,
.mobile-search-link,
.mobile-finder-link,
.mobile-games-link,
.mobile-course-link,
.mobile-cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
}

.mobile-shop-link.active,
.mobile-search-link.active,
.mobile-finder-link.active,
.mobile-games-link.active,
.mobile-course-link.active {
  border-color: var(--menu-accent);
  background: var(--menu-accent-soft);
}

.mobile-shop-link:hover,
.mobile-search-link:hover,
.mobile-finder-link:hover,
.mobile-games-link:hover,
.mobile-course-link:hover,
.mobile-cart-link:hover {
  color: var(--navy);
  border-color: var(--menu-accent);
}

.shop-symbol,
.search-symbol,
.finder-symbol,
.game-symbol,
.course-symbol,
.cart-symbol {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 981px) and (max-width: 1120px) {
  .header-inner.has-back-button {
    column-gap: 9px;
  }

  .header-inner.has-back-button .brand img {
    width: 104px;
  }

  .nav {
    gap: 10px;
    font-size: 0.88rem;
  }

  .nav .header-course-link {
    gap: 6px;
    padding-inline: 10px;
  }

  .audience-switch a {
    min-width: 68px;
    padding-inline: 8px;
  }
}

.mobile-cart-link .cart-count,
.cart-pill .cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
  justify-self: end;
  grid-column: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  border-color: var(--menu-accent);
  background: var(--menu-accent-soft);
  box-shadow: 0 0 0 3px var(--menu-accent-glow);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.hero {
  min-height: min(760px, calc(100svh - 178px));
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(7, 23, 43, 0.78) 38%, rgba(7, 23, 43, 0.26) 70%, rgba(7, 23, 43, 0.04) 100%),
    url("hero-caps-resources.jpg") center / cover no-repeat;
}

.home-homeschool .hero {
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(7, 23, 43, 0.8) 38%, rgba(7, 23, 43, 0.32) 70%, rgba(7, 23, 43, 0.06) 100%),
    url("hero-homeschool-family.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper));
}

.hero-inner,
.section-inner,
.page-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 76px 0 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
  margin: 0;
}

.hero h1 {
  color: var(--white);
  max-width: 600px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.6rem;
  letter-spacing: 0;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero p.hero-copy {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.62;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero p.hero-copy.secondary {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 1200px) {
  .home-page .hero {
    min-height: min(760px, calc(100svh - 178px));
    background-position: 72% center;
  }

  .home-page .hero-content {
    max-width: 560px;
    padding: 22px 0 138px;
  }

  .home-page .hero h1 {
    max-width: 560px;
    font-size: clamp(3.35rem, 4.1vw, 3.8rem);
    line-height: 1.04;
  }

  .home-page .hero p {
    max-width: 560px;
    margin-top: 16px;
    font-size: 1.02rem;
  }

  .home-page .hero p.hero-copy {
    line-height: 1.5;
  }

  .home-page .hero-actions {
    margin-top: 20px;
  }
}

@media (min-width: 981px) and (max-width: 1199px) {
  .home-page .hero {
    min-height: min(760px, calc(100svh - 178px));
    background-position: 68% center;
  }

  .home-page .hero-content {
    max-width: 540px;
    padding: 20px 0 146px;
  }

  .home-page .hero h1,
  .home-page .hero p {
    max-width: 540px;
  }

  .home-page .hero h1 {
    font-size: 3.35rem;
    line-height: 1.04;
  }

  .home-page .hero p {
    margin-top: 16px;
    font-size: 1rem;
  }

  .home-page .hero p.hero-copy {
    line-height: 1.5;
  }

  .home-page .hero p.hero-copy.secondary {
    margin-top: 10px;
  }

  .home-page .hero-actions {
    margin-top: 20px;
  }
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
button.button:hover {
  color: var(--white);
  background: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 23, 43, 0.16);
}

.button:disabled,
button.button:disabled,
.button:disabled:hover,
button.button:disabled:hover {
  color: rgba(7, 23, 43, 0.48);
  background: rgba(251, 245, 229, 0.58);
  border-color: rgba(222, 215, 200, 0.82);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.button.gold {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.button.gold:hover {
  color: var(--black);
  background: #d8b152;
}

.button.light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.64);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button.text {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
}

.section {
  padding: 74px 0;
}

.section.tint {
  background: var(--cream);
}

.section.black {
  color: var(--white);
  background: var(--black);
}

.section.black h2,
.section.black h3 {
  color: var(--white);
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h1,
.section-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.section-header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section.black .section-header p,
.section.black p {
  color: rgba(255, 255, 255, 0.72);
}

.priority-flow-section {
  background:
    linear-gradient(180deg, var(--paper), #f8f5ed);
}

.priority-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 42px 0 0;
  counter-reset: priorities;
  list-style: none;
}

.priority-flow::before {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(200, 157, 56, 0), rgba(200, 157, 56, 0.95), rgba(14, 111, 104, 0.75), rgba(200, 157, 56, 0));
  content: "";
}

.priority-flow li {
  position: relative;
  padding: 86px 18px 20px;
  min-height: 235px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.07);
}

.priority-flow li::before {
  counter-increment: priorities;
  content: counter(priorities);
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  color: var(--black);
  background: var(--gold);
  border: 5px solid var(--paper);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 23, 43, 0.14);
}

.priority-flow li span {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.resource-note {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 1.02rem;
}

.benefit-grid,
.category-grid,
.product-grid,
.blog-grid,
.games-grid,
.steps-grid,
.faq-grid,
.admin-grid {
  display: grid;
  gap: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subject-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}

.shop-mode-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.site-mode-bar {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 22px 0 0;
}

.shop-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(7, 23, 43, 0.08);
}

.shop-mode-switch button,
.shop-mode-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.shop-mode-switch button:hover,
.shop-mode-switch a:hover {
  color: var(--navy);
  background: #fbf5e5;
}

.shop-mode-switch button.active,
.shop-mode-switch button[aria-selected="true"],
.shop-mode-switch a.active,
.shop-mode-switch a[aria-current="true"] {
  color: var(--black);
  background: var(--gold);
}

.shop-panel[hidden] {
  display: none;
}

.shop-section-header {
  max-width: 760px;
  margin: 0 auto 14px;
  text-align: center;
}

.shop-section-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

.shop-section-header p:not(.eyebrow) {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.grade-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.grade-flow-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.07);
}

.grade-flow-card.is-active {
  border-color: rgba(200, 157, 56, 0.58);
  box-shadow: 0 20px 42px rgba(7, 23, 43, 0.11);
}

.grade-flow-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.grade-flow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) brightness(0.72);
  transform: scale(1.04);
}

.grade-flow-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(7, 23, 43, 0.96), rgba(7, 23, 43, 0.72) 52%, rgba(200, 157, 56, 0.48)),
    linear-gradient(180deg, rgba(7, 23, 43, 0.12), rgba(7, 23, 43, 0.78));
}

.grade-thumb-label {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 14px;
  color: var(--white);
  text-align: center;
  background: rgba(7, 23, 43, 0.62);
  border: 1px solid rgba(239, 224, 182, 0.72);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(200, 157, 56, 0.22);
}

.grade-thumb-label strong {
  display: block;
  max-width: 12rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.grade-thumb-label strong::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--gold);
}

.grade-flow-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.grade-flow-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.grade-flow-top h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.1;
}

.category-path {
  display: flex;
  align-items: center;
  gap: 10px;
}

.path-node {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(200, 157, 56, 0.45);
  border-radius: 8px;
  background: #fbf5e5;
  color: var(--navy);
  font-weight: 900;
}

.grade-node {
  white-space: nowrap;
}

.package-node {
  flex: 1;
  min-width: 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: var(--white);
}

.package-node span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
}

.package-node strong {
  font: inherit;
}

.path-arrow {
  position: relative;
  flex: 0 0 32px;
  height: 2px;
  background: var(--gold);
}

.path-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.grade-flow-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.grade-flow-body .actions {
  margin-top: auto;
}

.term-flow {
  padding: 14px;
  background: #fbf5e5;
  border: 1px solid rgba(200, 157, 56, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.term-flow strong {
  color: var(--navy);
}

.term-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.term-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  background: var(--white);
  border: 1px solid rgba(200, 157, 56, 0.35);
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.22;
}

.term-link:hover {
  color: var(--black);
  border-color: var(--gold);
  background: #fffaf0;
}

.category-branch {
  margin-bottom: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.07);
}

.category-branch .category-path {
  margin-bottom: 14px;
}

.blog-grid,
.games-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid,
.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit,
.category-card,
.product-card,
.blog-card,
.game-card,
.step,
.faq,
.panel,
.notice,
.order-summary,
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit,
.blog-card,
.step,
.faq,
.panel,
.notice,
.order-summary,
.admin-card {
  padding: 22px;
}

.benefit strong,
.step strong {
  color: var(--navy);
}

.benefit p,
.blog-card p,
.step p,
.faq p,
.panel p,
.notice p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section.black .faq h3 {
  color: var(--navy);
}

.section.black .faq p {
  color: var(--muted);
}

.page-hero.games-landing-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 23, 43, 0.96) 0%, rgba(7, 23, 43, 0.78) 46%, rgba(7, 23, 43, 0.4) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 28px),
    linear-gradient(120deg, #146c63 0%, #1c64a1 28%, #7d3f98 56%, #f25f5c 78%, #f2c14e 100%);
  border-bottom: 0;
}

.page-hero.games-landing-hero .section-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.page-hero.games-landing-hero .section-header {
  max-width: 820px;
}

.page-hero.games-landing-hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.page-hero.games-landing-hero h1 {
  color: #f7d36f;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.34);
}

.page-hero.games-landing-hero p {
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.page-hero.games-landing-hero .eyebrow::before {
  background: var(--gold);
}

.games-page {
  padding-top: 24px;
  padding-bottom: 74px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 46%, #f4fbff 100%);
}

.games-page .section-header {
  margin-bottom: 24px;
}

.games-setup-panel {
  max-width: 1060px;
  margin: 0 auto 28px;
}

.games-mode-bar {
  margin-bottom: 16px;
}

.games-grade-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 22px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(236, 251, 255, 0.96)),
    linear-gradient(90deg, rgba(30, 156, 133, 0.1), rgba(242, 193, 78, 0.16));
  border: 1px solid rgba(200, 157, 56, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(7, 23, 43, 0.08);
}

.games-page[data-selected-mode="homeschool"] .games-grade-shell {
  border-color: rgba(30, 156, 133, 0.38);
  box-shadow: 0 18px 40px rgba(7, 23, 43, 0.1);
}

.games-page[data-selected-mode="homeschool"] {
  background:
    linear-gradient(180deg, #fcfff8 0%, #f6fff8 42%, #eef8ff 100%);
}

.games-page[data-selected-mode="homeschool"] .games-grade-shell {
  background:
    linear-gradient(135deg, rgba(248, 255, 249, 0.98), rgba(239, 249, 255, 0.96)),
    linear-gradient(90deg, rgba(95, 163, 106, 0.12), rgba(80, 143, 214, 0.14));
  border-color: rgba(95, 163, 106, 0.34);
}

.games-page[data-selected-mode="homeschool"] .game-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 255, 250, 0.96)),
    linear-gradient(135deg, var(--game-soft), transparent 62%);
}

.games-page[data-selected-mode="homeschool"] .game-card-grade {
  background: #f1fbf3;
  border-color: rgba(95, 163, 106, 0.3);
}

.games-page[data-selected-mode="homeschool"] .game-card-match {
  --game-accent: #5fa36a;
  --game-soft: rgba(95, 163, 106, 0.16);
}

.games-page[data-selected-mode="homeschool"] .game-card-match .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 7px, transparent 7px 18px),
    linear-gradient(135deg, #3f7f58 0%, #5fa36a 52%, #d8f3b0 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-sentence {
  --game-accent: #f28c6f;
  --game-soft: rgba(242, 140, 111, 0.15);
}

.games-page[data-selected-mode="homeschool"] .game-card-sentence .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #c96b73 0%, #f28c6f 52%, #ffd8a8 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-quiz {
  --game-accent: #4f8fd6;
  --game-soft: rgba(79, 143, 214, 0.16);
}

.games-page[data-selected-mode="homeschool"] .game-card-quiz .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #315c9b 0%, #4f8fd6 52%, #bfe0ff 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-spelling {
  --game-accent: #d98b39;
  --game-soft: rgba(217, 139, 57, 0.17);
}

.games-page[data-selected-mode="homeschool"] .game-card-spelling .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #c96f2d 0%, #d98b39 52%, #ffd58f 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-sort {
  --game-accent: #4e7f76;
  --game-soft: rgba(78, 127, 118, 0.14);
}

.games-page[data-selected-mode="homeschool"] .game-card-sort .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #325a5a 0%, #4e7f76 48%, #9fd5c8 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-missing {
  --game-accent: #8a6ccf;
  --game-soft: rgba(138, 108, 207, 0.15);
}

.games-page[data-selected-mode="homeschool"] .game-card-missing .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #6d57b3 0%, #8a6ccf 52%, #c8b7ff 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-opposites {
  --game-accent: #c96d8c;
  --game-soft: rgba(201, 109, 140, 0.15);
}

.games-page[data-selected-mode="homeschool"] .game-card-opposites .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #a55478 0%, #c96d8c 52%, #f5c1d4 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-rhyme {
  --game-accent: #e49b3f;
  --game-soft: rgba(228, 155, 63, 0.15);
}

.games-page[data-selected-mode="homeschool"] .game-card-rhyme .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #cf7e2c 0%, #e49b3f 48%, #ffdca8 100%);
}

.games-page[data-selected-mode="homeschool"] .game-card-trail {
  --game-accent: #4ea3a0;
  --game-soft: rgba(78, 163, 160, 0.15);
}

.games-page[data-selected-mode="homeschool"] .game-card-trail .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #2e706e 0%, #4ea3a0 44%, #b9ece9 100%);
}

.games-grade-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.08;
}

.games-grade-copy p:not(.eyebrow) {
  max-width: 540px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.games-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.games-grade-grid button {
  min-height: 62px;
  padding: 10px 8px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(200, 157, 56, 0.46);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(7, 23, 43, 0.08);
  font-weight: 950;
  line-height: 1.08;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.games-grade-grid button:hover,
.games-grade-grid button:focus-visible {
  background: #fbf5e5;
  border-color: var(--gold);
  box-shadow: 0 14px 26px rgba(7, 23, 43, 0.12);
  transform: translateY(-1px);
}

.games-grade-grid button.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.games-page .section-header [data-games-selected-heading] {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
}

.games-page .section-header [data-games-selected-text] {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-weight: 750;
}

.games-grid {
  gap: 24px;
}

.game-card {
  --game-accent: var(--gold);
  --game-soft: rgba(200, 157, 56, 0.14);
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(110px, 1fr) auto;
  gap: 18px;
  width: 100%;
  min-height: 390px;
  padding: 20px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 241, 0.96)),
    linear-gradient(135deg, var(--game-soft), transparent 62%);
  border-color: rgba(200, 157, 56, 0.28);
  font: inherit;
  text-align: left;
  appearance: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(7, 23, 43, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--game-accent);
  content: "";
}

.game-card:hover,
.game-card:focus-visible,
.game-card.active {
  border-color: var(--game-accent);
  box-shadow: 0 28px 64px rgba(7, 23, 43, 0.16);
  transform: translateY(-4px);
}

.game-card:focus-visible {
  outline: 3px solid rgba(200, 157, 56, 0.42);
  outline-offset: 3px;
}

.game-card-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  container-type: inline-size;
  min-height: 158px;
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #07172b;
  box-shadow: inset 0 -28px 44px rgba(7, 23, 43, 0.18);
}

.game-card-visual::before,
.game-card-visual::after {
  position: absolute;
  right: -18%;
  left: -18%;
  height: 42px;
  opacity: 0.24;
  content: "";
}

.game-card-visual::before {
  top: 22px;
  background: #ffffff;
  transform: rotate(-12deg);
}

.game-card-visual::after {
  bottom: 20px;
  background: #07172b;
  transform: rotate(13deg);
}

.game-card-visual span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 10px 8px;
  overflow: hidden;
  color: var(--navy);
  background: #fff8e8;
  border: 1px solid rgba(200, 157, 56, 0.62);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(7, 23, 43, 0.16);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  font-size: clamp(0.92rem, 4.8cqw, 1.12rem);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}

.game-card-match {
  --game-accent: #1e9c85;
  --game-soft: rgba(30, 156, 133, 0.16);
}

.game-card-match .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 7px, transparent 7px 18px),
    linear-gradient(135deg, #146c63 0%, #1e9c85 52%, #f2c14e 100%);
}

.game-card-visual-match {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card-sentence {
  --game-accent: #d96077;
  --game-soft: rgba(217, 96, 119, 0.15);
}

.game-card-sentence .game-card-visual {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.92fr) minmax(0, 1.36fr);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #7d3f98 0%, #d96077 52%, #ffb34d 100%);
}

.game-card-visual-sentence span:nth-child(3),
.game-card-visual-missing span:nth-child(3) {
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
  font-size: clamp(0.82rem, 4.2cqw, 1rem);
}

.game-card-visual-sentence span:nth-child(2) {
  transform: translateY(18px);
}

.game-card-quiz {
  --game-accent: #3fb7c5;
  --game-soft: rgba(63, 183, 197, 0.16);
}

.game-card-quiz .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #1c64a1 0%, #3fb7c5 52%, #a7d36f 100%);
}

.game-card-visual-quiz span {
  border-radius: 999px;
  font-size: 1.25rem;
}

.game-card-spelling {
  --game-accent: #ff9f1c;
  --game-soft: rgba(255, 159, 28, 0.17);
}

.game-card-spelling .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #f25f5c 0%, #ff9f1c 52%, #ffe066 100%);
}

.game-card-visual-spelling span {
  transform: rotate(-2deg);
}

.game-card-visual-spelling span:nth-child(2) {
  transform: translateY(16px) rotate(3deg);
}

.game-card-sort {
  --game-accent: #33658a;
  --game-soft: rgba(51, 101, 138, 0.14);
}

.game-card-sort .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #2f4858 0%, #33658a 48%, #86bbd8 100%);
}

.game-card-visual-sort span {
  border-radius: 999px;
  font-size: 1.22rem;
}

.game-card-missing {
  --game-accent: #6a4c93;
  --game-soft: rgba(106, 76, 147, 0.15);
}

.game-card-missing .game-card-visual {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.92fr) minmax(0, 1.36fr);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #6a4c93 0%, #1982c4 52%, #8ac926 100%);
}

.game-card-visual-missing span:nth-child(2) {
  color: var(--white);
  background: rgba(7, 23, 43, 0.82);
}

.game-card-opposites {
  --game-accent: #ef476f;
  --game-soft: rgba(239, 71, 111, 0.15);
}

.game-card-opposites .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #ef476f 0%, #ffd166 52%, #06d6a0 100%);
}

.game-card-visual-opposites {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card-visual-opposites span:first-child {
  transform: translateY(-8px) rotate(-4deg);
}

.game-card-visual-opposites span:last-child {
  transform: translateY(24px) rotate(4deg);
}

.game-card-rhyme {
  --game-accent: #ff7a00;
  --game-soft: rgba(255, 122, 0, 0.15);
}

.game-card-rhyme .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #ff7a00 0%, #ffbe0b 48%, #fb5607 100%);
}

.game-card-visual-rhyme {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card-visual-rhyme span {
  border-radius: 999px;
}

.game-card-trail {
  --game-accent: #00b4d8;
  --game-soft: rgba(0, 180, 216, 0.15);
}

.game-card-trail .game-card-visual {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 20px),
    linear-gradient(135deg, #03045e 0%, #0077b6 44%, #00b4d8 100%);
}

.game-card-visual-trail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card-visual-trail span {
  min-height: 54px;
  border-radius: 999px;
}

.game-card-copy {
  display: grid;
  gap: 8px;
}

.game-card-grade {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--navy);
  background: #fbf5e5;
  border: 1px solid rgba(200, 157, 56, 0.44);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.game-card-copy strong {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.15;
}

.game-card-copy span:not(.game-card-grade) {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.game-card .button {
  width: 100%;
  pointer-events: none;
}

.game-card:hover .button,
.game-card:focus-visible .button {
  color: var(--white);
  background: var(--game-accent);
  border-color: var(--game-accent);
}

.game-play-page {
  padding-top: 30px;
  padding-bottom: 74px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #fff7e8 44%, #f3fbff 100%);
}

.game-back-actions {
  margin: 0 0 18px;
}

.page-hero.game-hero {
  color: var(--white);
  border-bottom: 0;
}

.page-hero.game-hero .eyebrow,
.page-hero.game-hero h1,
.page-hero.game-hero p {
  color: var(--white);
}

.page-hero.game-hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.72);
}

.page-hero.game-hero-match {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(13, 95, 86, 0.96), rgba(30, 156, 133, 0.92) 50%, rgba(242, 193, 78, 0.9));
}

.page-hero.game-hero-sentence {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(125, 63, 152, 0.96), rgba(217, 96, 119, 0.92) 54%, rgba(255, 179, 77, 0.88));
}

.page-hero.game-hero-quiz {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(28, 100, 161, 0.96), rgba(63, 183, 197, 0.92) 52%, rgba(167, 211, 111, 0.9));
}

.page-hero.game-hero-spelling {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(242, 95, 92, 0.96), rgba(255, 159, 28, 0.92) 52%, rgba(255, 224, 102, 0.9));
}

.page-hero.game-hero-sort {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(47, 72, 88, 0.98), rgba(51, 101, 138, 0.92) 52%, rgba(134, 187, 216, 0.88));
}

.page-hero.game-hero-missing {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(106, 76, 147, 0.96), rgba(25, 130, 196, 0.92) 52%, rgba(138, 201, 38, 0.9));
}

.page-hero.game-hero-opposites {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(239, 71, 111, 0.96), rgba(255, 209, 102, 0.9) 52%, rgba(6, 214, 160, 0.9));
}

.page-hero.game-hero-rhyme {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(255, 122, 0, 0.96), rgba(255, 190, 11, 0.9) 50%, rgba(251, 86, 7, 0.92));
}

.page-hero.game-hero-trail {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(135deg, rgba(3, 4, 94, 0.96), rgba(0, 119, 182, 0.93) 50%, rgba(0, 180, 216, 0.9));
}

.game-stage-list {
  margin-top: 32px;
}

.game-title-block {
  max-width: 840px;
  margin: 0 auto 24px;
  text-align: center;
}

.game-title-block .eyebrow {
  justify-content: center;
}

.game-title-block h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
}

.game-title-block p:not(.eyebrow) {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.game-stage {
  --stage-accent: var(--gold);
  position: relative;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 248, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(7, 23, 43, 0.09);
}

.game-hero,
.game-hero *,
.games-page,
.games-page * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.game-hero img,
.game-hero svg,
.games-page img,
.games-page svg {
  -webkit-user-drag: none;
}

@media print {
  body.game-print-disabled > * {
    display: none !important;
  }

  body.game-print-disabled::before {
    display: block;
    margin: 80px auto 0;
    max-width: 560px;
    padding: 24px;
    color: #111820;
    border: 2px solid #111820;
    font: 700 18px/1.45 Arial, sans-serif;
    text-align: center;
    content: "Printing is disabled for ninty9 game pages.";
  }
}

.game-stage::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--stage-accent);
  content: "";
}

.game-stage-match {
  --stage-accent: #1e9c85;
  border-color: rgba(30, 156, 133, 0.38);
  box-shadow: 0 24px 54px rgba(20, 108, 99, 0.16);
}

.game-stage-sentence {
  --stage-accent: #d96077;
  border-color: rgba(217, 96, 119, 0.34);
  box-shadow: 0 24px 54px rgba(125, 63, 152, 0.15);
}

.game-stage-quiz {
  --stage-accent: #3fb7c5;
  border-color: rgba(63, 183, 197, 0.36);
  box-shadow: 0 24px 54px rgba(28, 100, 161, 0.15);
}

.game-stage-spelling {
  --stage-accent: #ff9f1c;
  border-color: rgba(255, 159, 28, 0.44);
  box-shadow: 0 24px 54px rgba(242, 95, 92, 0.15);
}

.game-stage-sort {
  --stage-accent: #33658a;
  border-color: rgba(51, 101, 138, 0.36);
  box-shadow: 0 24px 54px rgba(47, 72, 88, 0.15);
}

.game-stage-missing {
  --stage-accent: #6a4c93;
  border-color: rgba(25, 130, 196, 0.36);
  box-shadow: 0 24px 54px rgba(106, 76, 147, 0.14);
}

.game-stage-opposites {
  --stage-accent: #ef476f;
  border-color: rgba(239, 71, 111, 0.34);
  box-shadow: 0 24px 54px rgba(239, 71, 111, 0.14);
}

.game-stage-rhyme {
  --stage-accent: #ff7a00;
  border-color: rgba(255, 122, 0, 0.34);
  box-shadow: 0 24px 54px rgba(255, 122, 0, 0.14);
}

.game-stage-trail {
  --stage-accent: #00b4d8;
  border-color: rgba(0, 180, 216, 0.34);
  box-shadow: 0 24px 54px rgba(0, 119, 182, 0.15);
}

.game-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.game-stage-header h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.game-stage-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.game-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.game-score-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--navy);
  background: #fbf5e5;
  border: 1px solid rgba(200, 157, 56, 0.44);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(7, 23, 43, 0.08);
  font-weight: 900;
  line-height: 1;
}

.game-grade-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, rgba(251, 245, 229, 0.98), rgba(236, 251, 255, 0.96));
  border: 1px solid rgba(200, 157, 56, 0.34);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(7, 23, 43, 0.08);
}

.game-grade-picker h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.game-grade-picker p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.grade-button-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  gap: 8px;
}

.game-grade-button {
  min-height: 54px;
  padding: 10px 12px;
  color: var(--navy);
  background: #fffdf8;
  border: 1px solid rgba(200, 157, 56, 0.46);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(7, 23, 43, 0.08);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.game-grade-button:hover,
.game-grade-button:focus-visible {
  background: #fbf5e5;
  border-color: var(--gold);
  box-shadow: 0 12px 24px rgba(7, 23, 43, 0.12);
  transform: translateY(-1px);
}

.game-grade-button.active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.game-stage-quiz[data-selected-grade] .game-grade-picker {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
}

.game-stage-quiz[data-selected-grade] .game-grade-picker h3 {
  margin: 0;
  font-size: 1rem;
}

.game-stage-quiz[data-selected-grade] .game-grade-picker p {
  display: none;
}

.game-stage-quiz[data-selected-grade] .grade-button-grid {
  grid-template-columns: repeat(6, minmax(50px, 1fr));
}

.game-stage-quiz[data-selected-grade] .game-grade-button {
  min-height: 42px;
  padding: 8px 10px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.memory-card,
.word-bank button,
.quiz-options button,
.spelling-options button,
.sort-options button,
.missing-options button,
.opposites-options button,
.rhyme-options button,
.trail-letters button {
  min-height: 70px;
  padding: 12px;
  color: var(--navy);
  background: #fffdf8;
  border: 1px solid rgba(200, 157, 56, 0.42);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(7, 23, 43, 0.08);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.memory-card {
  min-height: 94px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.memory-card:not(.revealed):not(.matched) {
  color: transparent;
  background:
    linear-gradient(135deg, #146c63, #1e9c85 70%, #f2c14e);
  font-size: 0;
}

.memory-card:not(.revealed):not(.matched)::after {
  color: var(--white);
  content: "?";
  font-size: 1.7rem;
}

.memory-card.revealed,
.memory-card.matched,
.word-bank button:hover,
.word-bank button:focus-visible,
.quiz-options button:hover,
.quiz-options button:focus-visible,
.spelling-options button:hover,
.spelling-options button:focus-visible,
.sort-options button:hover,
.sort-options button:focus-visible,
.missing-options button:hover,
.missing-options button:focus-visible,
.opposites-options button:hover,
.opposites-options button:focus-visible,
.rhyme-options button:hover,
.rhyme-options button:focus-visible,
.trail-letters button:hover,
.trail-letters button:focus-visible {
  background: #fbf5e5;
  border-color: var(--gold);
  box-shadow: 0 12px 24px rgba(7, 23, 43, 0.12);
  transform: translateY(-1px);
}

.game-stage-sentence .word-bank button {
  border-color: rgba(217, 96, 119, 0.38);
  background: #fff5f0;
}

.game-stage-sentence .word-bank button:hover,
.game-stage-sentence .word-bank button:focus-visible {
  background: #ffe4dc;
  border-color: #d96077;
}

.game-stage-quiz .quiz-options button {
  border-color: rgba(63, 183, 197, 0.42);
  background: #eefaff;
}

.game-stage-quiz .quiz-options button:hover,
.game-stage-quiz .quiz-options button:focus-visible {
  background: #dff6f7;
  border-color: #3fb7c5;
}

.game-stage-spelling .spelling-options button {
  border-color: rgba(255, 159, 28, 0.44);
  background: #fff7dc;
}

.game-stage-spelling .spelling-options button:hover,
.game-stage-spelling .spelling-options button:focus-visible {
  background: #ffe9b4;
  border-color: #ff9f1c;
}

.game-stage-sort .sort-options button {
  border-color: rgba(51, 101, 138, 0.42);
  background: #eef7fb;
}

.game-stage-sort .sort-options button:hover,
.game-stage-sort .sort-options button:focus-visible {
  background: #dceef7;
  border-color: #33658a;
}

.game-stage-missing .missing-options button {
  border-color: rgba(25, 130, 196, 0.38);
  background: #f0f7ff;
}

.game-stage-missing .missing-options button:hover,
.game-stage-missing .missing-options button:focus-visible {
  background: #e8f3ff;
  border-color: #1982c4;
}

.game-stage-opposites .opposites-options button {
  border-color: rgba(239, 71, 111, 0.38);
  background: #fff0f4;
}

.game-stage-opposites .opposites-options button:hover,
.game-stage-opposites .opposites-options button:focus-visible {
  background: #ffe4ec;
  border-color: #ef476f;
}

.game-stage-rhyme .rhyme-options button {
  border-color: rgba(255, 122, 0, 0.38);
  background: #fff5df;
}

.game-stage-rhyme .rhyme-options button:hover,
.game-stage-rhyme .rhyme-options button:focus-visible {
  background: #ffe9c2;
  border-color: #ff7a00;
}

.game-stage-trail .trail-letters button {
  min-height: 76px;
  border-color: rgba(0, 180, 216, 0.38);
  border-radius: 999px;
  background: #ecfbff;
  font-size: 1.32rem;
}

.game-stage-trail .trail-letters button:hover,
.game-stage-trail .trail-letters button:focus-visible {
  background: #d9f7ff;
  border-color: #00b4d8;
}

.memory-card.matched {
  color: var(--white);
  background: #146c63;
  border-color: #146c63;
}

.memory-card.match-pair-0 { --match-pair-bg: #146c63; --match-pair-border: #0f5f56; }
.memory-card.match-pair-1 { --match-pair-bg: #1c64a1; --match-pair-border: #164d7d; }
.memory-card.match-pair-2 { --match-pair-bg: #7d3f98; --match-pair-border: #613075; }
.memory-card.match-pair-3 { --match-pair-bg: #d96077; --match-pair-border: #ad3f57; }
.memory-card.match-pair-4 { --match-pair-bg: #d39f2f; --match-pair-border: #a97c20; }
.memory-card.match-pair-5 { --match-pair-bg: #2f7f62; --match-pair-border: #236149; }
.memory-card.match-pair-6 { --match-pair-bg: #33658a; --match-pair-border: #274d69; }
.memory-card.match-pair-7 { --match-pair-bg: #ef476f; --match-pair-border: #ba2f50; }
.memory-card.match-pair-8 { --match-pair-bg: #6a4c93; --match-pair-border: #503871; }
.memory-card.match-pair-9 { --match-pair-bg: #0b7285; --match-pair-border: #075866; }

.memory-card.matched[class*="match-pair-"],
.memory-card.answer-revealed[class*="match-pair-"] {
  color: var(--white);
  background: var(--match-pair-bg);
  border-color: var(--match-pair-border);
}

.sentence-prompt,
.sentence-answer,
.quiz-question,
.spelling-question,
.sort-word,
.missing-sentence,
.opposites-prompt,
.rhyme-prompt,
.trail-clue,
.trail-answer {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(200, 157, 56, 0.08) 0 2px, transparent 2px 18px),
    #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 10px 24px rgba(7, 23, 43, 0.06);
}

.sentence-prompt,
.quiz-question,
.spelling-question,
.sort-word,
.missing-sentence,
.opposites-prompt,
.rhyme-prompt,
.trail-clue,
.trail-answer {
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 900;
}

.spelling-question,
.sort-word,
.opposites-prompt,
.rhyme-prompt {
  display: grid;
  min-height: 132px;
  place-items: center;
  max-width: 100%;
  font-size: clamp(1.75rem, 6vw, 4.2rem);
  letter-spacing: 0.04em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-align: center;
}

.game-card-visual-opposites span,
.game-card-visual-rhyme span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .opposites-prompt,
  .rhyme-prompt {
    min-height: 112px;
    padding: 14px 10px;
    font-size: clamp(1.3rem, 6.8vw, 2.15rem);
    letter-spacing: 0.01em;
    hyphens: auto;
  }

  .game-card-visual-opposites span,
  .game-card-visual-rhyme span {
    padding-inline: 6px;
    font-size: clamp(0.72rem, 3.8vw, 1rem);
  }
}

.missing-sentence,
.trail-clue {
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.18;
}

.trail-answer {
  min-height: 86px;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 4.6rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
}

.trail-answer:empty::before {
  color: var(--muted);
  content: "...";
}

.sentence-answer {
  min-height: 74px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.sentence-answer:empty::before {
  color: var(--muted);
  content: "...";
}

.sentence-answer.answer-correct {
  color: #0a4d39;
  border-color: #0c5b45;
  background:
    repeating-linear-gradient(135deg, rgba(12, 91, 69, 0.16) 0 3px, transparent 3px 18px),
    linear-gradient(180deg, #ecfbf1 0%, #d6f3e0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 0 0 2px rgba(12, 91, 69, 0.12),
    0 10px 24px rgba(12, 91, 69, 0.18);
}

.sentence-answer.answer-wrong {
  color: #7f2424;
  border-color: #a33131;
  background:
    repeating-linear-gradient(135deg, rgba(163, 49, 49, 0.16) 0 3px, transparent 3px 18px),
    linear-gradient(180deg, #fff2f2 0%, #ffdede 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 0 0 2px rgba(163, 49, 49, 0.12),
    0 10px 24px rgba(163, 49, 49, 0.18);
}

.quiz-progress-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.quiz-progress-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--navy);
  background: #fbf5e5;
  border: 1px solid rgba(200, 157, 56, 0.44);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.quiz-streak-pill {
  background: #eefaff;
  border-color: rgba(63, 183, 197, 0.42);
}

.word-bank,
.quiz-options,
.spelling-options,
.sort-options,
.missing-options,
.opposites-options,
.rhyme-options,
.trail-letters {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.word-bank {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quiz-options,
.spelling-options,
.sort-options,
.missing-options,
.opposites-options,
.rhyme-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trail-letters {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quiz-badges {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  background: rgba(236, 251, 255, 0.74);
  border: 1px solid rgba(63, 183, 197, 0.28);
  border-radius: 8px;
}

.quiz-badge-label {
  color: var(--navy);
  font-weight: 950;
}

.quiz-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quiz-badge,
.quiz-badge-empty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.quiz-badge {
  color: var(--white);
  background: #0e6f68;
  border: 1px solid #0e6f68;
}

.quiz-badge-empty {
  color: var(--muted);
  background: var(--white);
  border: 1px dashed rgba(93, 104, 118, 0.42);
}

.game-review {
  margin-top: 18px;
  padding: 16px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(200, 157, 56, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(7, 23, 43, 0.06);
}

.game-review[hidden] {
  display: none;
}

.game-review h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 950;
}

.game-review ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.game-review li {
  line-height: 1.45;
}

.word-bank button:disabled,
.quiz-options button:disabled,
.spelling-options button:disabled,
.sort-options button:disabled,
.missing-options button:disabled,
.opposites-options button:disabled,
.rhyme-options button:disabled,
.trail-letters button:disabled {
  color: rgba(7, 23, 43, 0.35);
  background: rgba(251, 245, 229, 0.48);
  cursor: not-allowed;
  transform: none;
}

.quiz-options button.correct,
.spelling-options button.correct,
.sort-options button.correct,
.missing-options button.correct,
.opposites-options button.correct,
.rhyme-options button.correct,
.trail-letters button.correct {
  color: var(--white);
  background: #0c5b45;
  border-color: #0c5b45;
}

.quiz-options button.wrong,
.spelling-options button.wrong,
.sort-options button.wrong,
.missing-options button.wrong,
.opposites-options button.wrong,
.rhyme-options button.wrong,
.trail-letters button.wrong {
  color: var(--white);
  background: #8a2f2f;
  border-color: #8a2f2f;
}

.quiz-question.quiz-result {
  border-color: rgba(12, 91, 69, 0.28);
  background:
    repeating-linear-gradient(135deg, rgba(12, 91, 69, 0.08) 0 2px, transparent 2px 18px),
    #f3fbf6;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.game-share-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.game-share-symbol {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-share-panel {
  margin-top: 12px;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid rgba(63, 183, 197, 0.3);
  border-radius: 8px;
}

.game-share-panel[hidden] {
  display: none;
}

.game-share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-share-option {
  flex: 1 1 118px;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.game-share-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.game-status {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.06);
}

.search-panel label {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: stretch;
}

.search-row input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.results-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.06);
}

.blog-card h2 {
  margin-top: 14px;
  font-size: 1.35rem;
}

.blog-card.is-coming-soon {
  background: rgba(250, 247, 239, 0.76);
  box-shadow: 0 10px 26px rgba(7, 23, 43, 0.04);
}

.product-card.is-coming-soon,
.category-card.is-coming-soon,
.grade-flow-card.is-coming-soon {
  background: rgba(250, 247, 239, 0.76);
  box-shadow: 0 10px 26px rgba(7, 23, 43, 0.05);
}

.coming-soon-tag {
  background: rgba(200, 157, 56, 0.18);
  border-color: rgba(200, 157, 56, 0.45);
  color: var(--navy);
}

.coming-soon-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}

.planned-price-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible {
  color: var(--gold-dark);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.muted-tag {
  background: var(--cream);
  color: var(--muted);
  border-color: var(--border);
}

.blog-card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.blog-article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 900;
}

.blog-article-meta span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
}

.article-page {
  max-width: 1120px;
}

.article-title-block {
  max-width: 980px;
  margin: 0 auto 26px;
  text-align: center;
}

.article-title-block .eyebrow {
  justify-content: center;
}

.article-title-block h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.article-summary {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.62;
}

.article-featured-image {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 20px 50px rgba(7, 23, 43, 0.09);
}

.article-featured-image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.24), rgba(7, 23, 43, 0.06), rgba(255, 253, 248, 0.24));
  content: "";
  pointer-events: none;
}

.article-featured-image picture,
.article-featured-image img {
  display: block;
}

.article-featured-image-backdrop,
.article-featured-image-artwork {
  position: absolute;
  inset: 0;
}

.article-featured-image-backdrop {
  z-index: 0;
}

.article-featured-image-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) saturate(0.82);
  opacity: 0.62;
  transform: scale(1.12);
}

.article-featured-image-artwork {
  z-index: 2;
}

.article-featured-image-artwork img,
.article-featured-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-guide {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 34px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}

.article-guide h2 {
  color: var(--white);
  font-size: 1.35rem;
}

.article-guide ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding-left: 22px;
}

.article-guide li {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.article-guide a {
  color: inherit;
  text-decoration: none;
}

.article-guide a:hover {
  color: var(--gold);
}

.blog-article {
  display: grid;
  max-width: 920px;
  gap: 30px;
  margin: 0 auto;
}

.article-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-highlight {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 23, 43, 0.06);
}

.article-highlight span,
.article-product-callout span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-highlight h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
}

.article-highlight p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.article-product-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(200, 157, 56, 0.42);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fbf5e5;
}

.article-product-callout h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1.45rem;
}

.article-product-callout p {
  margin: 10px 0 0;
  color: var(--muted);
}

.article-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
}

.article-section p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-resource-links {
  padding: 26px;
  border: 1px solid rgba(200, 157, 56, 0.4);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffdf8, #f7f0df);
  box-shadow: 0 18px 42px rgba(7, 23, 43, 0.07);
}

.article-resource-links > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.article-resource-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-resource-link {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.article-resource-link:hover,
.article-resource-link:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(7, 23, 43, 0.1);
  transform: translateY(-2px);
}

.article-resource-link strong {
  line-height: 1.35;
}

.article-resource-link span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.library-source-evidence {
  display: grid;
  gap: 20px;
  margin: 24px 0;
  border-left: 5px solid var(--gold);
}

.library-source-evidence > div:first-child p:last-child {
  max-width: 760px;
  color: var(--muted);
}

.library-source-evidence dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.library-source-evidence dl div,
.library-source-archives article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.library-source-evidence dt,
.library-source-archives span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.library-source-evidence dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.library-source-archives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.library-source-archives article {
  display: grid;
  gap: 7px;
}

.library-source-archives code {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .article-resource-link-grid,
  .library-source-evidence dl,
  .library-source-archives {
    grid-template-columns: 1fr;
  }
}

.article-faq {
  padding: 26px;
  border: 1px solid rgba(200, 157, 56, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 245, 229, 0.92), rgba(255, 253, 248, 0.98));
}

.article-faq .eyebrow {
  margin-bottom: 8px;
}

.article-faq h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.article-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.article-faq-item {
  padding: 18px;
  border: 1px solid rgba(222, 215, 200, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.article-faq-item h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.article-faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.related-articles {
  margin-top: 58px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.related-article-grid {
  display: grid;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.07);
}

.category-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 16px 36px rgba(7, 23, 43, 0.07);
}

.category-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subject-grid .category-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.subject-grid .category-image img {
  filter: saturate(0.84) brightness(0.72);
  transform: scale(1.04);
}

.subject-grid .category-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(7, 23, 43, 0.96), rgba(7, 23, 43, 0.72) 52%, rgba(200, 157, 56, 0.48)),
    linear-gradient(180deg, rgba(7, 23, 43, 0.12), rgba(7, 23, 43, 0.78));
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.category-content h2 {
  margin-top: 12px;
  font-size: 1.35rem;
}

.category-content p {
  color: var(--muted);
}

.category-content .actions {
  margin-top: auto;
}

.shop-page .shop-mode-bar {
  margin-bottom: 14px;
}

.shop-page .shop-section-header,
.grade-page .shop-section-header {
  margin-bottom: 12px;
}

.shop-page .shop-section-header {
  max-width: 1120px;
}

.shop-page .shop-section-header h2,
.grade-page .shop-section-header h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
}

.shop-page .shop-section-header p:not(.eyebrow),
.grade-page .shop-section-header p:not(.eyebrow) {
  margin-top: 6px;
  font-size: 0.95rem;
}

.shop-page .grade-flow-thumb,
.grade-page .subject-grid .category-image {
  height: clamp(140px, 13vw, 168px);
  aspect-ratio: auto;
}

.shop-page .grade-flow-body,
.grade-page .category-content {
  padding: 16px;
}

.shop-page .grade-flow-body {
  gap: 10px;
}

.shop-page .grade-flow-top h3 {
  font-size: 1.35rem;
}

.grade-page .category-content h2 {
  margin: 8px 0 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.grade-page .category-content p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.grade-page .product-meta {
  margin: 10px 0;
}

.grade-page .category-content .actions {
  margin-top: 10px;
}

.product-term-cover {
  --term-base: #07172b;
  --term-mid: #0e6f68;
  --term-accent: #c89d38;
  --term-glow: rgba(200, 157, 56, 0.62);
  --term-shadow: rgba(14, 111, 104, 0.72);
  --term-border: rgba(239, 224, 182, 0.72);
  position: relative;
  overflow: hidden;
  display: block;
  height: clamp(140px, 13vw, 168px);
  color: var(--white);
  background:
    radial-gradient(circle at 14% 16%, var(--term-glow), transparent 24%),
    radial-gradient(circle at 88% 74%, var(--term-shadow), transparent 30%),
    linear-gradient(135deg, var(--term-base), var(--term-mid));
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.category-page .category-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-term-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(7, 23, 43, 0.76), rgba(7, 23, 43, 0.26) 52%, rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 12px);
}

.product-term-cover:hover {
  color: var(--white);
}

.product-term-cover.term-1 {
  --term-base: #0e6f68;
  --term-mid: #174f63;
  --term-accent: #d4ad49;
  --term-glow: rgba(212, 173, 73, 0.66);
  --term-shadow: rgba(23, 79, 99, 0.78);
  --term-border: rgba(239, 224, 182, 0.74);
}

.product-term-cover.term-2 {
  --term-base: #315a9c;
  --term-mid: #15376b;
  --term-accent: #7fc4d6;
  --term-glow: rgba(127, 196, 214, 0.64);
  --term-shadow: rgba(21, 55, 107, 0.78);
  --term-border: rgba(188, 225, 233, 0.72);
}

.product-term-cover.term-3 {
  --term-base: #3f6f4f;
  --term-mid: #173f35;
  --term-accent: #d2ad57;
  --term-glow: rgba(210, 173, 87, 0.64);
  --term-shadow: rgba(23, 63, 53, 0.78);
  --term-border: rgba(223, 209, 158, 0.72);
}

.product-term-cover.term-4 {
  --term-base: #7a3d56;
  --term-mid: #341b35;
  --term-accent: #e2c46f;
  --term-glow: rgba(226, 196, 111, 0.62);
  --term-shadow: rgba(52, 27, 53, 0.8);
  --term-border: rgba(232, 211, 154, 0.72);
}

/* One product family, one cover language: homepage navy with the Term 2 blue accent. */
.product-term-cover:is(.term-1, .term-2, .term-3, .term-4) {
  --term-base: #315a9c;
  --term-mid: #07172b;
  --term-accent: #7fc4d6;
  --term-glow: rgba(127, 196, 214, 0.64);
  --term-shadow: rgba(7, 23, 43, 0.82);
  --term-border: rgba(188, 225, 233, 0.72);
}

.product-term-label {
  flex-direction: column;
  gap: 4px;
  border-color: var(--term-border);
  background: rgba(7, 23, 43, 0.58);
}

.product-term-label strong {
  max-width: 13rem;
  font-size: 1.34rem;
}

.product-term-label strong::after {
  background: var(--term-accent);
}

.product-term-kicker,
.product-term-subject {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-term-subject {
  font-size: 0.76rem;
  text-transform: none;
}

.product-term-weeks {
  display: block;
  margin-top: 5px;
  color: var(--term-accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-term-cover {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 6px;
}

.detail-term-cover .product-term-label {
  inset: clamp(18px, 5vw, 44px);
}

.detail-term-cover .product-term-label strong {
  max-width: 18rem;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.detail-term-cover .product-term-kicker,
.detail-term-cover .product-term-subject,
.detail-term-cover .product-term-weeks {
  font-size: clamp(0.8rem, 1.3vw, 1rem);
}

.category-page .product-content {
  padding: 16px;
}

.category-page .product-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.category-page .product-content p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.42;
}

.category-page .product-meta {
  margin: 10px 0;
}

.category-page .price {
  font-size: 1.18rem;
}

.category-page .product-actions {
  gap: 8px;
}

.category-page .product-actions .button {
  min-height: 42px;
  padding-block: 10px;
}

.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 10px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.product-content h3 {
  font-size: 1.08rem;
}

.product-content p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.product-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(200, 157, 56, 0.4);
  border-radius: 999px;
  color: var(--navy);
  background: #fbf5e5;
  font-size: 0.78rem;
  font-weight: 800;
}

.price {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
}

.detail-copy .price {
  margin-top: 18px;
  font-size: 1.45rem;
}

.price-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid rgba(200, 157, 56, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.detail-copy .price-buy-row .price {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.quick-cart-form {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.product-quantity-field {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-quantity-field input,
.cart-quantity-input {
  width: 4.75rem;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--navy);
  font: inherit;
}

.cart-quantity-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.cart-quantity-button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.price-buy-row .button,
.quick-cart-form .button {
  min-height: 44px;
  white-space: nowrap;
}

.product-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field label {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field .hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-hero {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 34px 0 14px;
  color: var(--white);
  border-bottom: 0;
  background: var(--page-hero-bg);
}

/* Keep non-homepage titles available to assistive technology without showing banners. */
.page-hero,
.coming-soon-hero {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-hero.game-hero,
.page-hero.games-landing-hero {
  background: var(--page-hero-bg);
}

.page-hero .section-inner {
  width: min(1240px, calc(100% - 48px));
}

.page-hero .section-header {
  max-width: 820px;
  margin-bottom: 0;
}

.page-hero .eyebrow,
.page-hero.game-hero .eyebrow {
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.page-hero .eyebrow::before,
.page-hero.game-hero .eyebrow::before {
  background: var(--gold);
}

.page-hero .section-header h1,
.page-hero .section-header h2 {
  color: #f7d36f;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.03;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.34);
}

.page-hero .section-header p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 8px;
  color: var(--white);
  font-size: 0.94rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.page-hero.blog-article-hero .section-header {
  max-width: 820px;
}

.page-hero.blog-article-hero .section-header h1 {
  max-width: 1040px;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
}

.page-hero.blog-article-hero .section-header p {
  max-width: 700px;
}

@media (min-width: 900px) {
  .page-hero.blog-article-hero .section-header {
    text-align: left;
  }
}

.coming-soon-hero {
  padding: 34px 0 14px;
  border-bottom: 1px solid rgba(222, 215, 200, 0.8);
  background:
    linear-gradient(135deg, rgba(247, 244, 236, 0.96), rgba(255, 253, 248, 0.98) 48%, rgba(239, 246, 248, 0.95));
}

.coming-soon-hero .section-header {
  width: auto;
  max-width: 840px;
  margin: 0;
  text-align: left;
}

.coming-soon-hero .eyebrow {
  justify-content: flex-start;
}

.coming-soon-hero .section-header h1 {
  max-width: 820px;
  margin: 0;
}

.coming-soon-hero .section-header p {
  max-width: 700px;
  margin: 10px 0 0;
}

.page-inner {
  padding: 42px 0 72px;
}

.shop-page,
.grade-page,
.category-page {
  padding-top: 24px;
}

.product-page {
  padding-top: 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.quick-interest {
  display: none;
  padding: 18px 0 0;
  background: var(--paper);
}

.quick-interest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  color: var(--black);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-interest-link:hover {
  color: var(--black);
  background: #d8b152;
}

.quick-interest-link span {
  font-size: 1.05rem;
  font-weight: 900;
}

.coming-soon-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
}

.coming-soon-progress,
.interest-panel {
  display: grid;
  gap: 18px;
}

.interest-panel {
  scroll-margin-top: 104px;
}

.coming-soon-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  aspect-ratio: 16 / 10;
}

.coming-soon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coming-soon-copy {
  display: grid;
  gap: 8px;
}

.coming-soon-copy .eyebrow,
.coming-soon-copy h2,
.interest-panel h2 {
  margin: 0;
}

.resource-flow {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.resource-flow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.resource-flow span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-weight: 900;
}

.resource-flow strong {
  color: var(--navy);
}

.resource-flow p {
  margin: 0;
  color: var(--muted);
}

.interest-form {
  display: grid;
  gap: 16px;
}

.interest-result {
  margin: 0;
}

.interest-result h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.25rem;
}

.interest-summary {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}

.interest-summary li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(29, 111, 75, 0.22);
}

.interest-summary strong {
  color: var(--navy);
}

.interest-summary span {
  max-width: 60%;
  color: var(--ink);
  text-align: right;
  font-weight: 800;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  padding: 12px;
}

.gallery-open {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-strip > img,
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-strip > img {
  object-fit: contain;
}

.gallery-thumb {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.active {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(7, 23, 43, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav,
.gallery-lightbox-nav,
.gallery-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(222, 215, 200, 0.9);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.94);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7, 23, 43, 0.14);
}

.gallery-nav {
  width: 44px;
  height: 44px;
}

.gallery-controls,
.gallery-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-counter {
  min-width: 64px;
  padding: 5px 10px;
  border: 1px solid rgba(222, 215, 200, 0.9);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.94);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(7, 23, 43, 0.12);
}

.gallery-open:focus-visible {
  outline: 3px solid rgba(200, 157, 56, 0.45);
  outline-offset: 2px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 6, 8, 0.82);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-panel {
  position: relative;
  width: min(92vw, 820px);
  display: grid;
  place-items: center;
  gap: 12px;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: min(86vh, 820px);
  object-fit: contain;
  padding: 14px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 44px;
  height: 44px;
}

.gallery-lightbox-nav {
  width: 46px;
  height: 46px;
}

.gallery-lightbox-nav[hidden] {
  display: none;
}

.gallery-lightbox-counter {
  min-width: 64px;
  padding: 6px 12px;
  border: 1px solid rgba(222, 215, 200, 0.9);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 253, 248, 0.96);
  text-align: center;
  font-weight: 900;
}

body.has-lightbox {
  overflow: hidden;
}

.detail-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.06;
  text-wrap: balance;
}

.detail-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.product-description {
  margin-top: 22px;
}

.description-text {
  display: grid;
  gap: 12px;
}

.description-text p,
.description-text ul {
  margin: 0;
}

.description-text p {
  color: var(--muted);
}

.description-kicker {
  color: var(--navy) !important;
  font-weight: 900;
}

.description-list {
  padding-left: 20px;
  color: var(--ink);
}

.description-list li {
  margin: 7px 0;
}

.included-list,
.plain-list {
  padding-left: 19px;
}

.included-list li,
.plain-list li {
  margin: 8px 0;
}

.cart-table,
.orders-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-table th,
.cart-table td,
.orders-table th,
.orders-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.cart-table th,
.orders-table th {
  color: var(--navy);
  background: #f9f3e4;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-table tr:last-child td,
.orders-table tr:last-child td {
  border-bottom: 0;
}

.cart-remove-form {
  margin: 0;
}

.cart-remove-heading {
  width: 56px;
}

.cart-remove-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(159, 45, 45, 0.16);
  border-radius: 8px;
  color: var(--danger);
  background: #fff8f6;
  font-weight: 900;
}

.cart-remove-button:hover,
.cart-remove-button:focus-visible {
  color: var(--danger);
  background: #fff1ed;
  border-color: rgba(159, 45, 45, 0.36);
  text-decoration: none;
}

.cart-remove-heading .trash-symbol,
.cart-remove-button .trash-symbol {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.qty-input {
  width: 76px;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.compact-notice {
  margin: 0;
  padding: 16px;
  background: #f9f3e4;
}

.compact-notice h3 {
  margin: 0;
  color: var(--navy);
}

.confirmation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.confirmation-heading h2 {
  margin: 4px 0 0;
}

.confirmation-heading .eyebrow {
  margin: 0;
}

.grand-total {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.payment-panel {
  position: sticky;
  top: 104px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.total-line:last-child {
  border-bottom: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.alert {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #d8b152;
  color: #5e4210;
  background: #fff8e5;
}

.alert.error {
  border-color: #d9a3a3;
  color: var(--danger);
  background: #fff1f1;
}

.alert.success {
  border-color: #a6d8b8;
  color: var(--success);
  background: #f0fff5;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.bank-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.bank-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.bank-list strong {
  color: var(--navy);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-awaiting {
  color: #684508;
  background: #fff0c6;
}

.status-paid {
  color: #0e5940;
  background: #dff8ec;
}

.status-completed {
  color: #0c4b7c;
  background: #e3f1ff;
}

.status-cancelled {
  color: #7d1f1f;
  background: #ffe1e1;
}

.admin-header {
  background: var(--black);
  color: var(--white);
}

.admin-header .header-inner {
  min-height: 68px;
}

.admin-header a:hover {
  color: var(--gold-soft);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 74px;
}

.login-panel {
  max-width: 430px;
  margin: 48px auto;
}

.resource-finder-hero {
  padding: 34px 0 14px;
  color: var(--white);
  background: var(--page-hero-bg);
  border-bottom: 0;
}

.finder-hero-copy {
  max-width: 820px;
}

.finder-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #f7d36f;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.02;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.34);
}

.finder-hero-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--white);
  font-size: 0.94rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.finder-band-section {
  padding: 32px 0 0;
}

.finder-band,
.finder-inline-callout,
.finder-product-nudge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(7, 23, 43, 0.09);
}

.finder-band {
  padding: 22px;
}

.finder-band .eyebrow,
.finder-band h2,
.finder-band p,
.finder-inline-callout h2,
.finder-inline-callout p,
.finder-product-nudge p {
  margin: 0;
}

.finder-band h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.finder-band p,
.finder-inline-callout p,
.finder-product-nudge p {
  color: var(--muted);
}

.finder-layout,
.finder-why {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.68fr);
  gap: 24px;
  align-items: start;
}

.finder-panel,
.finder-result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.finder-controls {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.finder-question {
  display: grid;
  gap: 12px;
}

.finder-question .eyebrow {
  margin: 0;
}

.finder-choice-grid {
  display: grid;
  gap: 10px;
}

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

.finder-choice-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finder-choice {
  min-height: 104px;
  padding: 14px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid rgba(222, 215, 200, 0.95);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.finder-choice.compact {
  min-height: 58px;
  text-align: center;
}

.finder-choice strong,
.finder-choice span {
  display: block;
}

.finder-choice strong {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.2;
}

.finder-choice span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.finder-choice:hover,
.finder-choice:focus-visible {
  border-color: rgba(200, 157, 56, 0.72);
  background: #fbf5e5;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 23, 43, 0.1);
}

.finder-choice.active,
.finder-choice[aria-pressed="true"] {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.finder-choice.active span,
.finder-choice[aria-pressed="true"] span {
  color: rgba(5, 6, 8, 0.72);
}

.finder-result-panel {
  position: sticky;
  top: 118px;
  overflow: hidden;
}

.finder-result-image {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: clamp(10px, 1.8vw, 18px);
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 157, 56, 0.18), transparent 58%),
    var(--navy);
}

.finder-result-image img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.finder-result-copy {
  padding: 22px;
}

.finder-result-copy .eyebrow,
.finder-result-copy h2,
.finder-result-copy h3,
.finder-result-copy p {
  margin: 0;
}

.finder-result-copy h2 {
  color: var(--navy);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.08;
}

.finder-result-copy [data-finder-result-text] {
  margin-top: 10px;
  color: var(--muted);
}

.finder-price-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(200, 157, 56, 0.38);
  border-radius: 8px;
  background: #fbf5e5;
}

.finder-price-line span {
  color: var(--muted);
  font-weight: 800;
}

.finder-price-line strong {
  color: var(--black);
  font-size: 1.15rem;
}

.finder-result-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 10px 0 14px;
  list-style: none;
}

.finder-result-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.finder-result-list li::before {
  position: absolute;
  top: 0.64em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  content: "";
}

.finder-result-copy .actions {
  margin-top: 18px;
}

.finder-why {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.finder-why h2,
.finder-why p {
  margin: 0;
}

.finder-why h2 {
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.finder-why ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.finder-why li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  font-weight: 800;
}

.finder-inline-callout {
  width: min(920px, 100%);
  margin: 0 auto 28px;
  padding: 18px;
}

.finder-inline-callout h2 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.15;
}

.finder-product-nudge {
  margin: 18px 0 0;
  padding: 16px;
  box-shadow: none;
}

.finder-product-nudge strong {
  display: block;
  color: var(--navy);
}

.footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(200, 157, 56, 0.78);
  background:
    radial-gradient(circle at 89% 66%, rgba(209, 160, 45, 0.2), transparent 24%),
    radial-gradient(circle at 18% 22%, rgba(19, 72, 104, 0.2), transparent 31%),
    #050608;
}

.footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background: linear-gradient(115deg, transparent 49.7%, rgba(200, 157, 56, 0.16) 50%, transparent 50.3%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand-line strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.4vw, 2.05rem);
  line-height: 1;
}

.footer-brand-line span {
  width: 64px;
  height: 1px;
  background: rgba(200, 157, 56, 0.86);
}

.footer-brand > p {
  max-width: 500px;
  margin: 0;
  color: rgba(235, 239, 244, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

.footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer a:hover {
  color: var(--gold-soft);
}

.footer a.footer-highlight {
  color: var(--gold);
}

.footer a.footer-highlight:hover {
  color: var(--gold-soft);
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(225, 194, 113, 0.58);
}

.footer-discovery {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.8fr) minmax(200px, 0.52fr);
  gap: 42px;
  align-items: center;
}

.footer-discovery-copy {
  min-width: 0;
}

.footer-rock-stage {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
}

.footer-rock-stage::before {
  position: absolute;
  width: min(230px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(226, 180, 62, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(226, 180, 62, 0.035),
    0 0 72px rgba(226, 180, 62, 0.11);
  content: "";
}

.footer-rock {
  position: relative;
  z-index: 1;
  width: clamp(190px, 18vw, 245px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
}

.footer-discovery-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-discovery h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

.footer-discovery-copy > p:last-child {
  margin-bottom: 0;
}

.footer-discovery-copy > p:not(.footer-discovery-label) {
  color: rgba(235, 239, 244, 0.86);
  line-height: 1.6;
}

.footer-payment-note {
  margin: 22px 0 0;
  color: rgba(150, 162, 178, 0.82) !important;
  line-height: 1.55 !important;
}

.footer-discovery-links {
  display: grid;
  gap: 0;
  margin: 0;
}

.footer-discovery-links a {
  position: relative;
  padding: 13px 8px 13px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.footer-discovery-links a::before {
  position: absolute;
  left: 7px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(225, 194, 113, 0.82);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.footer-discovery-links a:hover,
.footer-discovery-links a:focus-visible {
  color: var(--gold-soft);
  border-color: rgba(225, 194, 113, 0.5);
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-discovery {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  }

  .footer-discovery-copy {
    grid-column: 1 / -1;
  }

  .header-inner {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    transform: none;
  }

  .home-page .header-inner:not(.has-back-button) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-page .header-inner:not(.has-back-button) .brand {
    grid-column: 1;
    justify-self: start;
    justify-content: flex-start;
  }

  .mobile-header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .home-page .header-inner:not(.has-back-button) .mobile-header-actions {
    grid-column: 2;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: 78px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav .cart-pill,
  .nav .header-finder-link {
    display: none;
  }

  .nav .header-course-link {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a,
  .cart-pill,
  .language-switch,
  .audience-switch {
    justify-content: space-between;
    width: 100%;
  }

  .language-switch,
  .audience-switch {
    justify-content: center;
  }

  .audience-switch a {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .finder-band,
  .finder-inline-callout,
  .finder-product-nudge,
  .finder-layout,
  .finder-why {
    grid-template-columns: 1fr;
  }

  .finder-result-panel {
    position: static;
  }

  .finder-product-nudge .button {
    width: 100%;
  }

  .benefit-grid,
  .category-grid,
  .product-grid,
  .blog-grid,
  .games-grid,
  .steps-grid,
  .faq-grid,
  .admin-grid,
  .filter-bar,
  .split,
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .payment-panel {
    position: static;
  }

  .game-stage-header {
    grid-template-columns: 1fr;
  }

  .game-score-row {
    justify-content: flex-start;
  }

  .quick-interest {
    display: block;
    text-align: center;
  }

  .product-page {
    padding-top: 28px;
  }

  .product-detail {
    gap: 26px;
  }

  .detail-gallery {
    width: min(100%, 560px);
    justify-self: center;
  }

  .gallery-strip {
    display: grid;
    gap: 8px;
  }

  .detail-copy {
    width: min(100%, 680px);
    justify-self: center;
  }

  .detail-copy .tag-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin: 0 0 18px;
    border: 1px solid rgba(200, 157, 56, 0.38);
    border-radius: 8px;
    background: #fbf5e5;
  }

  .detail-copy .tag {
    min-height: 38px;
    justify-content: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    line-height: 1.2;
  }

  .detail-copy .tag:nth-child(odd) {
    border-right: 1px solid rgba(200, 157, 56, 0.28);
  }

  .detail-copy .tag:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(200, 157, 56, 0.28);
  }

  .detail-copy h1 {
    font-size: 2.45rem;
  }

  .detail-copy > p {
    max-width: 46rem;
  }

  .detail-copy .price {
    padding: 14px 16px;
    border: 1px solid rgba(200, 157, 56, 0.36);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: #fbf5e5;
    font-size: 1.45rem;
  }

  .detail-copy > .actions,
  .detail-copy form.panel .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .detail-copy .actions .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
    text-align: center;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .grade-flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-page .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-link-grid {
    grid-template-columns: 1fr;
  }

  .category-image {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-page .hero {
    min-height: 720px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.08) 0%, rgba(7, 23, 43, 0.36) 42%, rgba(5, 6, 8, 0.94) 100%),
      url("hero-caps-resources.jpg") 68% center / cover no-repeat;
  }

  .home-homeschool .hero {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.08) 0%, rgba(7, 23, 43, 0.36) 42%, rgba(5, 6, 8, 0.94) 100%),
      url("hero-homeschool-family.jpg") center center / cover no-repeat;
  }

  .home-page .hero-content {
    max-width: 520px;
    padding: 214px 0 82px;
  }

  .home-page .hero h1 {
    max-width: 520px;
    font-size: 3.15rem;
  }

  .home-page .hero p {
    max-width: 520px;
  }

  .priority-flow {
    max-width: 760px;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-left: auto;
    margin-right: auto;
  }

  .priority-flow::before {
    left: 30px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(200, 157, 56, 0), rgba(200, 157, 56, 0.95), rgba(14, 111, 104, 0.72), rgba(200, 157, 56, 0));
  }

  .priority-flow li {
    min-height: auto;
    padding: 20px 20px 20px 76px;
  }

  .priority-flow li::before {
    top: 50%;
    left: 30px;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .home-page .hero {
    min-height: calc(100svh - 178px);
    align-items: end;
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.1) 0%, rgba(7, 23, 43, 0.38) 40%, rgba(5, 6, 8, 0.95) 100%),
      url("hero-caps-resources.jpg") 70% center / cover no-repeat;
  }

  .home-homeschool .hero {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.1) 0%, rgba(7, 23, 43, 0.38) 40%, rgba(5, 6, 8, 0.95) 100%),
      url("hero-homeschool-family.jpg") center center / cover no-repeat;
  }

  .home-page .hero-content {
    max-width: 470px;
    padding: 134px 0 42px;
  }

  .home-page .hero h1 {
    max-width: 470px;
    font-size: 2.75rem;
  }

  .home-page .hero p {
    max-width: 470px;
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .home-page .hero p.hero-copy {
    line-height: 1.5;
  }

  .home-page .hero p.hero-copy.secondary {
    margin-top: 10px;
  }

  .home-page .hero-actions {
    margin-top: 18px;
  }

  .detail-copy .tag-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-copy .tag:nth-child(odd),
  .detail-copy .tag:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 0;
  }

  .detail-copy .tag:not(:last-child) {
    border-right: 1px solid rgba(200, 157, 56, 0.28);
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .mobile-header-actions {
    gap: 4px;
  }

  .mobile-header-actions .tablet-header-switch {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    padding: 2px;
    justify-content: center;
  }

  .mobile-header-actions .tablet-header-switch a {
    flex: 0 0 auto;
    width: auto;
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .mobile-header-actions .tablet-audience-switch a {
    min-width: 64px;
  }

  .mobile-header-actions .tablet-language-switch a {
    min-width: 30px;
  }

  .nav .audience-switch,
  .nav .language-switch {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 720px) {
  .mobile-header-actions {
    gap: 4px;
  }

  .mobile-header-actions .tablet-language-switch {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    padding: 2px;
    justify-content: center;
  }

  .mobile-header-actions .tablet-language-switch a {
    flex: 0 0 auto;
    width: auto;
    min-width: 30px;
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .nav .language-switch {
    display: none;
  }
}

@media (max-width: 640px) {
  .mobile-finder-link {
    display: none;
  }

  .nav .header-finder-link {
    display: inline-flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 8px 12px;
  }

  .nav .header-finder-label {
    display: inline;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .site-mode-bar,
  .page-inner,
  .footer-inner,
  .admin-shell {
    width: min(100% - 24px, 1180px);
  }

  .resource-finder-hero {
    padding: 24px 0 10px;
  }

  .finder-hero-copy h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  }

  .finder-hero-copy p:not(.eyebrow) {
    font-size: 0.94rem;
  }

  .finder-band,
  .finder-inline-callout,
  .finder-controls,
  .finder-result-copy {
    padding: 16px;
  }

  .finder-choice-grid.two,
  .finder-choice-grid.four {
    grid-template-columns: 1fr;
  }

  .finder-choice,
  .finder-choice.compact {
    min-height: 58px;
  }

  .finder-result-copy .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finder-result-copy .button {
    width: 100%;
  }

  .brand img {
    width: 106px;
  }

  .site-back-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
  }

  .site-back-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-back-button svg {
    width: 19px;
    height: 19px;
  }

  .mobile-shop-link,
  .mobile-search-link,
  .mobile-finder-link,
  .mobile-games-link,
  .mobile-course-link,
  .mobile-cart-link,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .header-inner.has-back-button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-inner.has-back-button .brand {
    display: none;
  }

  .header-inner.has-back-button .mobile-header-actions {
    grid-column: 2;
  }

  .shop-symbol,
  .search-symbol,
  .finder-symbol,
  .game-symbol,
  .course-symbol,
  .cart-symbol {
    width: 19px;
    height: 19px;
  }

  .game-play-page {
    padding-top: 22px;
  }

  .games-grade-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .games-grade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-back-actions {
    justify-content: center;
  }

  .game-stage {
    padding: 20px 14px;
  }

  .game-grade-picker {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    text-align: center;
  }

  .grade-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-stage-quiz[data-selected-grade] .game-grade-picker {
    gap: 12px;
    text-align: left;
  }

  .game-stage-quiz[data-selected-grade] .grade-button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .word-bank,
  .quiz-options,
  .spelling-options,
  .sort-options,
  .missing-options,
  .opposites-options,
  .rhyme-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trail-letters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-actions .button {
    flex: 1 1 140px;
  }

  .quiz-badges {
    grid-template-columns: 1fr;
  }

  .home-page .hero {
    min-height: 0;
    align-items: start;
    background:
      linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(7, 23, 43, 0.9) 34%, rgba(7, 23, 43, 0.5) 58%, rgba(7, 23, 43, 0.16) 100%),
      linear-gradient(180deg, rgba(5, 6, 8, 0.02) 0%, rgba(5, 6, 8, 0.12) 52%, rgba(5, 6, 8, 0.92) 100%),
      url("hero-caps-resources.jpg") 54% top / cover no-repeat;
  }

  .home-homeschool .hero {
    background:
      linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(7, 23, 43, 0.9) 34%, rgba(7, 23, 43, 0.5) 58%, rgba(7, 23, 43, 0.16) 100%),
      linear-gradient(180deg, rgba(5, 6, 8, 0.02) 0%, rgba(5, 6, 8, 0.12) 52%, rgba(5, 6, 8, 0.92) 100%),
      url("hero-homeschool-family.jpg") 62% top / cover no-repeat;
  }

  .home-page .hero-content {
    width: min(70vw, 300px);
    max-width: none;
    padding: 48px 0 74px;
  }

  .home-page .hero .eyebrow {
    max-width: 250px;
    margin-bottom: 10px;
    font-size: 0.6rem;
    line-height: 1.25;
  }

  .home-page .hero h1 {
    max-width: 240px;
    font-size: 1.48rem;
    line-height: 1.04;
  }

  .home-page .hero p {
    margin-top: 10px;
    max-width: 270px;
  }

  .home-page .hero p.hero-copy {
    font-size: 0.81rem;
    line-height: 1.34;
  }

  .home-page .hero p.hero-copy.secondary {
    margin-top: 7px;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(72vw, 310px);
    max-width: none;
    margin-top: 12px;
    gap: 8px;
  }

  .home-page .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .section {
    padding: 54px 0;
  }

  .section-header h1,
  .section-header h2 {
    font-size: 2.25rem;
  }

  .page-hero {
    padding: 24px 0 10px;
  }

  .page-hero .section-inner {
    width: min(100% - 24px, 1180px);
  }

  .article-featured-image {
    aspect-ratio: 4 / 3;
  }

  .article-guide,
  .article-product-callout {
    grid-template-columns: 1fr;
  }

  .article-guide {
    padding: 20px;
  }

  .article-guide ol,
  .article-highlight-grid,
  .article-faq-grid {
    grid-template-columns: 1fr;
  }

  .article-product-callout .button {
    width: 100%;
  }

  .shop-page {
    padding-top: 26px;
  }

  .shop-mode-bar {
    margin-bottom: 24px;
  }

  .shop-mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-mode-switch button,
  .shop-mode-switch a {
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
    line-height: 1.15;
  }

  .shop-section-header {
    margin-bottom: 20px;
  }

  .shop-section-header h2 {
    font-size: 2rem;
  }

  .games-setup-panel {
    margin-bottom: 22px;
  }

  .games-grade-shell {
    padding: 16px;
  }

  .games-grade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grade-flow-list {
    grid-template-columns: 1fr;
  }

  .category-page .category-product-grid {
    grid-template-columns: 1fr;
  }

  .grade-flow-card {
    min-height: 100%;
  }

  .grade-flow-thumb {
    aspect-ratio: 16 / 9;
  }

  .grade-thumb-label {
    inset: 12px;
    padding: 12px;
  }

  .grade-thumb-label strong {
    max-width: 11rem;
    font-size: 1.25rem;
  }

  .grade-flow-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .category-path {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .package-node {
    min-width: 0;
  }

  .path-arrow {
    flex-basis: auto;
    width: 2px;
    height: 18px;
    margin-left: 18px;
  }

  .path-arrow::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%) rotate(135deg);
  }

  .coming-soon-image {
    aspect-ratio: 4 / 3;
  }

  .product-page {
    padding-top: 22px;
  }

  .product-detail {
    gap: 20px;
  }

  .detail-gallery,
  .detail-copy {
    width: 100%;
  }

  .detail-image {
    padding: 8px;
  }

  .detail-copy .tag-row {
    margin-bottom: 16px;
  }

  .detail-copy .tag {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .detail-copy h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .detail-copy > p {
    margin-top: 12px;
    font-size: 0.97rem;
  }

  .detail-copy .price {
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 1.34rem;
  }

  .price-buy-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
  }

  .detail-copy .price-buy-row .price {
    padding: 0;
    text-align: center;
  }

  .price-buy-row .button,
  .quick-cart-form,
  .quick-cart-form .button {
    width: 100%;
  }

  .detail-copy .panel,
  .detail-copy .notice {
    padding: 18px;
  }

  .detail-copy .panel h2,
  .detail-copy .notice h2 {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .benefit-grid,
  .category-grid,
  .product-grid,
  .blog-grid,
  .games-grid,
  .steps-grid,
  .faq-grid,
  .admin-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table td {
    border-bottom: 0;
    padding: 9px 14px;
  }

  .cart-table td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .cart-table td.cart-remove-cell::before {
    display: none;
  }

  .cart-remove-cell {
    display: flex;
    justify-content: flex-start;
  }

  .cart-table tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .field-row,
  .confirmation-heading {
    grid-template-columns: 1fr;
  }

  .confirmation-heading {
    display: grid;
  }

  .bank-list li {
    display: grid;
    gap: 4px;
  }

  .orders-table {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-discovery {
    width: min(100% - 24px, 1180px);
    padding: 34px 0 28px;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-discovery-copy {
    grid-column: auto;
  }

  .footer-discovery h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .footer-discovery-links a {
    padding-block: 12px;
  }

  .footer-rock-stage {
    min-height: 220px;
  }

  .footer-rock-stage::before {
    width: 210px;
  }

  .footer-rock {
    width: 210px;
  }

  .word-bank,
  .quiz-options,
  .spelling-options,
  .sort-options,
  .missing-options,
  .opposites-options,
  .rhyme-options,
  .trail-letters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-grid,
  .trail-letters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (min-width: 421px) and (max-width: 480px) {
  .brand img {
    width: 128px;
  }

  .mobile-header-actions {
    gap: 3px;
  }

  .mobile-shop-link,
  .mobile-search-link,
  .mobile-finder-link,
  .mobile-games-link,
  .mobile-course-link,
  .mobile-cart-link,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .shop-symbol,
  .search-symbol,
  .finder-symbol,
  .game-symbol,
  .course-symbol,
  .cart-symbol {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 8px;
  }

  .header-inner.has-back-button {
    column-gap: 8px;
  }

  .brand img {
    width: 92px;
  }

  .site-back-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .site-back-button svg {
    width: 17px;
    height: 17px;
  }

  .mobile-header-actions {
    gap: 3px;
  }

  .mobile-shop-link,
  .mobile-search-link,
  .mobile-finder-link,
  .mobile-games-link,
  .mobile-course-link,
  .mobile-cart-link,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .shop-symbol,
  .search-symbol,
  .finder-symbol,
  .game-symbol,
  .course-symbol,
  .cart-symbol {
    width: 16px;
    height: 16px;
  }

  .detail-copy > .actions,
  .detail-copy form.panel .actions {
    grid-template-columns: 1fr;
  }

  .home-page .hero-content,
  .home-page .hero-actions {
    width: min(70vw, 270px);
  }

  .home-page .hero h1 {
    max-width: 230px;
    font-size: 1.42rem;
  }

  .interest-summary li {
    display: grid;
    gap: 3px;
  }

  .interest-summary span {
    max-width: none;
    text-align: left;
  }

  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    width: 17px;
  }
}

@media (min-width: 390px) and (max-width: 420px) {
  .brand img {
    width: 120px;
  }

  .mobile-header-actions {
    gap: 3px;
  }

  .mobile-shop-link,
  .mobile-search-link,
  .mobile-finder-link,
  .mobile-games-link,
  .mobile-course-link,
  .mobile-cart-link,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .shop-symbol,
  .search-symbol,
  .finder-symbol,
  .game-symbol,
  .course-symbol,
  .cart-symbol {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-inner.has-back-button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .brand {
    grid-column: 1;
    justify-self: start;
  }

  .header-inner.has-back-button .brand {
    display: none;
  }

  .mobile-header-actions {
    grid-column: 2;
  }

  .header-inner.has-back-button .mobile-header-actions {
    grid-column: 2;
  }

  .home-page .hero-content,
  .home-page .hero-actions {
    width: min(68vw, 220px);
  }

  .home-page .hero-content {
    padding-top: 44px;
  }

  .home-page .hero .eyebrow {
    max-width: 190px;
    font-size: 0.56rem;
  }

  .home-page .hero h1 {
    max-width: 205px;
    font-size: 1.32rem;
  }

  .home-page .hero p.hero-copy {
    font-size: 0.76rem;
    line-height: 1.32;
  }

}

@media (max-width: 340px) {
  .brand img {
    width: 78px;
  }

  .mobile-header-actions {
    gap: 3px;
  }

  .mobile-shop-link,
  .mobile-search-link,
  .mobile-games-link,
  .mobile-course-link,
  .mobile-cart-link,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .shop-symbol,
  .search-symbol,
  .game-symbol,
  .course-symbol,
  .cart-symbol {
    width: 16px;
    height: 16px;
  }
}

/* IsiZulu audience labels need more horizontal room than EN/AF. Keep the
   complete controls in the menu until a genuinely wide desktop viewport. */
@media (min-width: 641px) and (max-width: 720px) {
  html[lang^="zu"] .mobile-header-actions .tablet-language-switch {
    display: none;
  }

  html[lang^="zu"] .nav .language-switch {
    display: inline-flex;
  }
}

@media (min-width: 721px) and (max-width: 735px) {
  html[lang^="zu"] .mobile-header-actions .tablet-language-switch {
    display: none;
  }

  html[lang^="zu"] .nav .language-switch {
    display: inline-flex;
  }
}

@media (min-width: 721px) and (max-width: 1279px) {
  html[lang^="zu"] .mobile-header-actions .tablet-audience-switch {
    display: none;
  }

  html[lang^="zu"] .nav .audience-switch {
    display: inline-flex;
  }
}

@media (min-width: 981px) and (max-width: 1279px) {
  html[lang^="zu"] .mobile-header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  html[lang^="zu"] .home-page .header-inner:not(.has-back-button) .mobile-header-actions {
    grid-column: 2;
  }

  html[lang^="zu"] .menu-toggle {
    display: inline-flex;
  }

  html[lang^="zu"] .nav {
    position: absolute;
    z-index: 2;
    inset: 78px 16px auto auto;
    width: min(360px, calc(100% - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  html[lang^="zu"] .nav.open {
    display: flex;
  }

  html[lang^="zu"] .nav .cart-pill,
  html[lang^="zu"] .nav .header-finder-link {
    display: none;
  }

  html[lang^="zu"] .nav .header-course-link {
    justify-content: flex-start;
    width: 100%;
  }

  html[lang^="zu"] .nav > a,
  html[lang^="zu"] .nav .language-switch,
  html[lang^="zu"] .nav .audience-switch {
    width: 100%;
  }

  html[lang^="zu"] .nav .language-switch,
  html[lang^="zu"] .nav .audience-switch {
    justify-content: center;
  }

  html[lang^="zu"] .nav .audience-switch a {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  html[lang^="zu"] .home-page .section-header h2 {
    overflow-wrap: anywhere;
  }
}

/* Homepage hero consistency contract.
   Keeps the existing art direction while reserving stable content rows for
   different languages and for the School/Homeschooling variants. */
.home-page .hero-content {
  box-sizing: border-box;
  display: grid;
  grid-template-rows:
    auto
    minmax(var(--home-hero-title-slot, 253px), auto)
    minmax(var(--home-hero-copy-slot, 74px), auto)
    minmax(var(--home-hero-copy-slot, 74px), auto)
    auto;
  align-content: start;
  row-gap: var(--home-hero-row-gap, 14px);
}

.home-page .hero-content > .eyebrow,
.home-page .hero-content > h1,
.home-page .hero-content > .hero-copy,
.home-page .hero-content > .hero-actions {
  margin-top: 0;
  margin-bottom: 0;
}

.home-page .hero h1,
.home-page .hero-copy {
  overflow-wrap: break-word;
}

.home-page .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
}

.home-page .hero-actions .button {
  width: 100%;
  min-height: 64px;
  padding-inline: 16px;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 981px) and (max-width: 1199px) {
  .home-page .hero-content {
    --home-hero-title-slot: 224px;
    --home-hero-copy-slot: 72px;
    --home-hero-row-gap: 12px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .home-page .hero {
    min-height: 650px;
  }

  .home-page .hero-content {
    --home-hero-title-slot: 190px;
    --home-hero-copy-slot: 71px;
    --home-hero-row-gap: 12px;
  }

  .home-page .hero-actions .button {
    min-height: 64px;
  }
}

@media (max-width: 640px) {
  .home-page .hero {
    min-height: clamp(760px, 112svh, 900px);
  }

  .home-page .hero-inner {
    min-height: inherit;
    align-items: stretch;
  }

  .home-page .hero-content {
    display: flex;
    flex-direction: column;
    width: min(78vw, 320px);
    min-height: inherit;
    padding-top: clamp(56px, 9svh, 80px);
    padding-bottom: clamp(72px, 11svh, 96px);
  }

  .home-page .hero-content > .eyebrow {
    margin-bottom: 10px;
  }

  .home-page .hero-content > .hero-copy {
    margin-top: 10px;
  }

  .home-page .hero-content > .hero-copy.secondary {
    margin-top: 7px;
  }

  .home-page .hero-content > .hero-actions {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    gap: 8px;
  }

  .home-page .hero-actions .button {
    min-height: 44px;
    padding: 8px 10px;
  }
}

/* Keep the ninty9 brand visible on every public page. On narrow inner-page
   headers the full navigation remains available from the menu, so only the
   cart and menu controls stay beside the logo and Back button. */
@media (max-width: 980px) {
  .header-inner.has-back-button .mobile-shop-link,
  .header-inner.has-back-button .mobile-games-link,
  .header-inner.has-back-button .mobile-course-link,
  .header-inner.has-back-button .mobile-finder-link {
    display: none;
  }

  .header-inner.has-back-button .brand {
    min-width: max-content;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 640px) {
  .header-inner.has-back-button {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
  }

  .header-inner.has-back-button .brand {
    display: inline-flex;
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
  }

  .header-inner.has-back-button .brand img {
    width: 92px;
  }

  .header-inner.has-back-button .mobile-header-actions {
    grid-column: 3;
  }

}

/* The logo must never have less visual height than the header controls. */
.header-inner .brand img,
.header-inner.has-back-button .brand img {
  width: auto;
  height: 44px;
}

@media (max-width: 520px) {
  .header-inner .mobile-shop-link,
  .header-inner .mobile-games-link,
  .header-inner .mobile-course-link,
  .header-inner .mobile-finder-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner .brand img,
  .header-inner.has-back-button .brand img {
    height: 40px;
  }
}

/* Unified public product-card contract.
   Every listing uses the same comparison order: image, type, title, summary,
   key attributes, price, reassurance, and actions. */
.product-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.product-card {
  position: relative;
  min-width: 0;
  height: 100%;
  border-color: rgba(200, 157, 56, 0.28);
  box-shadow: 0 16px 38px rgba(7, 23, 43, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 157, 56, 0.7);
  box-shadow: 0 22px 46px rgba(7, 23, 43, 0.13);
}

.product-card-media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.product-card-media:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.product-card .product-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 10px;
  object-fit: cover;
  border: 0;
  transition: transform 0.25s ease;
}

.product-card:hover .product-image {
  transform: scale(1.018);
}

.product-card .product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-card .product-card-type {
  min-height: 1.25em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #8b6717;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card .product-content .product-card-title {
  display: -webkit-box;
  min-height: 3.75em;
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card .product-content .product-card-title a:hover {
  color: #8b6717;
}

.product-card .product-content .product-card-summary {
  display: -webkit-box;
  min-height: 4.35em;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card .product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 34px;
  margin: 14px 0 0;
}

.product-card .product-meta .tag {
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  justify-content: center;
  overflow: hidden;
  padding: 5px 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-purchase {
  margin-top: auto;
  padding: 15px 0 0;
  border-top: 1px solid rgba(200, 157, 56, 0.28);
}

.product-card-price-label {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-card .product-card-purchase .price {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.2;
}

.product-card-payment-note {
  display: block;
  min-height: 1.3em;
  margin-top: 4px;
  color: #38625e;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.product-card .product-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.product-card .product-actions form,
.product-card .product-actions .button {
  width: 100%;
  margin: 0;
}

.product-card .product-actions .button {
  min-height: 46px;
}

.product-card .product-card-primary {
  border-color: #a87b17;
  box-shadow: 0 9px 20px rgba(168, 123, 23, 0.16);
}

.product-card .product-actions .button.secondary {
  min-height: 42px;
  padding-block: 9px;
}

@media (max-width: 640px) {
  .product-card .product-content {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .product-card .product-meta {
    grid-template-columns: 1fr;
  }

  .product-card .product-meta .tag {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card .product-image {
    transition: none;
  }

  .product-card:hover,
  .product-card:hover .product-image {
    transform: none;
  }
}

/* Home hero: readable multilingual copy beside a dedicated editorial image. */
.home-page .hero {
  min-height: 0;
  padding: clamp(28px, 4vw, 58px) 0;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 4%, rgba(200, 157, 56, 0.2), transparent 28%),
    radial-gradient(circle at 94% 88%, rgba(14, 111, 104, 0.15), transparent 30%),
    #f4f0e7 !important;
}

.home-page .hero::before {
  position: absolute;
  z-index: 0;
  inset: auto;
  top: clamp(20px, 4vw, 62px);
  right: max(4vw, calc((100vw - 1260px) / 2));
  width: clamp(90px, 12vw, 170px);
  aspect-ratio: 1;
  border: 1px solid rgba(200, 157, 56, 0.26);
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
  content: "";
  transform: translate(42%, -42%);
}

.home-page .hero::after {
  display: none;
}

.home-page .hero > .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  min-height: clamp(570px, 46vw, 650px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(200, 157, 56, 0.34);
  border-radius: clamp(22px, 2.4vw, 32px);
  background: var(--navy);
  box-shadow:
    0 32px 74px rgba(7, 23, 43, 0.2),
    0 4px 14px rgba(7, 23, 43, 0.1);
}

.home-page .hero > .hero-inner::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 56.2%;
  width: 72px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--navy), rgba(7, 23, 43, 0));
  content: "";
  transform: translateX(-2px);
}

.home-page .hero-content {
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  padding: clamp(44px, 5vw, 76px);
}

.home-page .hero .eyebrow {
  max-width: 34rem;
  margin: 0 0 18px;
  color: #f0d276;
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  line-height: 1.35;
}

.home-page .hero h1 {
  max-width: 10.8em;
  color: var(--white);
  font-size: clamp(3.05rem, 4.25vw, 4.65rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: pretty;
  text-shadow: 0 15px 38px rgba(0, 0, 0, 0.32);
}

.home-page .hero p {
  max-width: 35rem;
  margin-top: 22px;
}

.home-page .hero p.hero-copy {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.58;
  text-shadow: none;
}

.home-page .hero p.hero-copy.secondary {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.94rem, 1vw, 1rem);
}

.home-page .hero-actions {
  display: flex;
  grid-template-columns: none;
  width: auto;
  margin-top: 28px;
  padding-top: 0;
  gap: 12px;
}

.home-page .hero-actions .button {
  width: auto;
  min-height: 50px;
  padding-inline: 20px;
}

.home-page .hero-actions .button.light {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.home-page .hero-actions .button.light:hover,
.home-page .hero-actions .button.light:focus-visible {
  border-color: var(--white);
  color: var(--navy);
  background: var(--white);
}

.home-page .hero-media {
  display: block;
  min-width: 0;
  width: auto;
  min-height: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
  inset: auto;
  background: #d7d0c2;
}

.home-page .hero-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 23, 43, 0.03), rgba(7, 23, 43, 0.16)),
    linear-gradient(90deg, rgba(7, 23, 43, 0.16), transparent 36%);
  content: "";
}

.home-page .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 70% 50%;
}

.home-homeschool .hero-media img {
  object-position: 67% 50%;
}

html[lang^="af"] .home-page .hero h1,
html[lang^="zu"] .home-page .hero h1 {
  font-size: clamp(2.7rem, 3.75vw, 4.05rem);
}

@media (max-width: 980px) {
  .home-page .hero {
    min-height: 0;
    padding: 24px 0 38px;
  }

  .home-page .hero::before {
    display: none;
  }

  .home-page .hero > .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-page .hero > .hero-inner::before {
    display: none;
  }

  .home-page .hero-content {
    grid-row: 2;
    width: auto;
    min-height: 0;
    padding: clamp(34px, 5vw, 50px);
  }

  .home-page .hero-media {
    grid-row: 1;
    height: clamp(230px, 34vw, 320px);
    min-height: clamp(230px, 34vw, 320px);
  }

  .home-page .hero-media::after {
    background: linear-gradient(0deg, rgba(7, 23, 43, 0.24), transparent 28%);
  }

  .home-page .hero-media img,
  .home-homeschool .hero-media img {
    min-height: clamp(230px, 34vw, 320px);
    object-position: 64% 48%;
  }

  .home-page .hero h1 {
    max-width: 13em;
    font-size: clamp(2.8rem, 7vw, 4.4rem);
  }

  html[lang^="af"] .home-page .hero h1,
  html[lang^="zu"] .home-page .hero h1 {
    font-size: clamp(2.55rem, 6.2vw, 3.85rem);
  }

  .home-page .hero p,
  .home-page .hero p.hero-copy {
    max-width: 42rem;
  }
}

@media (max-width: 640px) {
  .home-page .hero {
    min-height: 0;
    padding: 14px 0 28px;
  }

  .home-page .hero > .hero-inner {
    width: min(100% - 24px, 1180px);
    min-height: 0;
    align-items: normal;
    border-radius: 20px;
  }

  .home-page .hero-content,
  .home-page .hero-actions {
    width: auto;
  }

  .home-page .hero-content {
    min-height: 0;
    padding: 27px 20px 25px;
  }

  .home-page .hero .eyebrow {
    max-width: none;
    margin-bottom: 13px;
    font-size: 0.67rem;
  }

  .home-page .hero h1,
  html[lang^="af"] .home-page .hero h1 {
    max-width: 12em;
    font-size: clamp(2rem, 8.8vw, 2.45rem);
    line-height: 1.04;
  }

  html[lang^="zu"] .home-page .hero h1 {
    max-width: 12em;
    font-size: clamp(1.85rem, 8.2vw, 2.25rem);
    line-height: 1.04;
  }

  .home-page .hero p {
    max-width: none;
    margin-top: 17px;
  }

  .home-page .hero p.hero-copy {
    max-width: none;
    font-size: 0.93rem;
    line-height: 1.48;
  }

  .home-page .hero p.hero-copy.secondary {
    margin-top: 9px;
    font-size: 0.87rem;
  }

  .home-page .hero-actions,
  .home-page .hero-content > .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    gap: 9px;
    margin-top: 22px;
    padding-top: 0;
  }

  .home-page .hero-actions .button {
    width: 100%;
    min-height: 46px;
  }

  .home-page .hero-media,
  .home-page .hero-media img,
  .home-homeschool .hero-media img {
    height: clamp(220px, 62vw, 290px);
    min-height: clamp(220px, 62vw, 290px);
  }

  .home-page .hero-media img,
  .home-homeschool .hero-media img {
    object-position: 65% 50%;
  }
}

/* Editorial book design system shared by every public page. */
:root {
  --book-paper: #fffdf8;
  --book-paper-warm: #f7f1e4;
  --book-paper-deep: #eadfc8;
  --book-edge: #cdb680;
  --book-ink: #0a1b31;
  --book-gold: #c89d38;
  --book-shadow: 0 22px 54px rgba(7, 23, 43, 0.12);
  --book-shadow-soft: 0 12px 32px rgba(7, 23, 43, 0.08);
  --book-radius: 18px;
}

body {
  background:
    radial-gradient(circle at 8% 2%, rgba(200, 157, 56, 0.1), transparent 26rem),
    linear-gradient(180deg, #fffdf8, #f7f1e5 58%, #fffdf8);
}

main {
  position: relative;
  overflow: clip;
}

.site-header {
  border-bottom: 1px solid rgba(151, 119, 51, 0.25);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 26px rgba(7, 23, 43, 0.06);
}

.header-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
}

.brand img,
.header-inner .brand img,
.header-inner.has-back-button .brand img {
  width: 112px;
  border: 1px solid rgba(140, 96, 18, 0.58);
  border-radius: 9px;
  box-shadow:
    0 4px 0 rgba(121, 83, 18, 0.2),
    0 10px 24px rgba(7, 23, 43, 0.12);
}

.nav {
  gap: 9px;
}

.nav > a:not(.header-course-link):not(.header-finder-link):not(.cart-pill) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
}

.nav > a:not(.header-course-link):not(.header-finder-link):not(.cart-pill):hover,
.nav > a:not(.header-course-link):not(.header-finder-link):not(.cart-pill):focus-visible {
  color: var(--navy);
  background: var(--book-paper-warm);
}

.nav > a.active:not(.header-course-link),
.nav > a[aria-current="page"]:not(.header-course-link) {
  color: var(--navy);
  background: linear-gradient(180deg, #fffdf8, #f5ead1);
  box-shadow: inset 0 -2px 0 var(--menu-accent);
}

.nav .header-course-link {
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 9px;
  box-shadow: inset 0 -2px 0 rgba(200, 157, 56, 0.2);
}

.header-preferences {
  position: relative;
  flex: 0 0 auto;
}

.header-preferences summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.header-preferences summary::-webkit-details-marker {
  display: none;
}

.header-preferences summary::marker {
  content: "";
}

.header-preferences summary:hover,
.header-preferences summary:focus-visible,
.header-preferences[open] summary {
  border-color: var(--menu-accent);
  background: var(--menu-accent-soft);
  box-shadow: 0 0 0 3px var(--menu-accent-glow);
}

.preferences-symbol {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-preferences-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.header-preferences-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  right: 0;
  width: min(310px, calc(100vw - 24px));
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--book-edge);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(200, 157, 56, 0.08), transparent 24px),
    var(--book-paper);
  box-shadow:
    0 5px 0 var(--book-paper-deep),
    0 22px 54px rgba(7, 23, 43, 0.2);
}

.header-preference-group {
  display: grid;
  gap: 8px;
}

.header-preference-group + .header-preference-group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.header-preference-group > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-preferences-panel .language-switch,
.header-preferences-panel .audience-switch {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-color: rgba(7, 23, 43, 0.12);
  border-radius: 10px;
  background: #f0eadc;
  box-shadow: inset 0 1px 3px rgba(7, 23, 43, 0.08);
}

.header-preferences-panel .language-switch a,
.header-preferences-panel .language-switch a:nth-child(1),
.header-preferences-panel .language-switch a:nth-child(2),
.header-preferences-panel .language-switch a:nth-child(3),
.header-preferences-panel .audience-switch a {
  width: auto;
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--navy);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.header-preferences-panel .language-switch a:hover,
.header-preferences-panel .audience-switch a:hover {
  outline: 0;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  transform: none;
}

.header-preferences-panel .language-switch a.active,
.header-preferences-panel .audience-switch a.active,
.header-preferences-panel .audience-switch a[aria-current="true"] {
  color: var(--menu-accent-ink);
  background: var(--menu-accent);
  filter: none;
  box-shadow: 0 4px 10px var(--menu-accent-glow);
  transform: none;
}

.cart-pill,
.header-finder-link,
.mobile-finder-link,
.mobile-cart-link,
.menu-toggle {
  border-radius: 10px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* Desktop navigation: primary destinations stay visible; preferences collapse. */
@media (min-width: 1081px) {
  .header-inner:not(.has-back-button),
  .home-page .header-inner:not(.has-back-button) {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
  }

  .header-inner:not(.has-back-button) .brand,
  .home-page .header-inner:not(.has-back-button) .brand {
    grid-column: 1;
    justify-self: start;
  }

  .header-inner:not(.has-back-button) .nav,
  .home-page .header-inner:not(.has-back-button) .nav {
    grid-column: 2;
    justify-self: end;
  }

  .header-inner.has-back-button {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .header-inner.has-back-button .brand {
    grid-column: 2;
  }

  .header-inner.has-back-button .nav {
    grid-column: 3;
  }

  .mobile-header-actions,
  html[lang^="zu"] .mobile-header-actions {
    display: none;
  }

  .nav,
  html[lang^="zu"] .nav {
    position: static;
    inset: auto;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav .header-finder-link,
  .nav .cart-pill,
  html[lang^="zu"] .nav .header-finder-link,
  html[lang^="zu"] .nav .cart-pill {
    display: inline-flex;
  }
}

/* Tablet and phone navigation: one compact utility row and one book-page menu. */
@media (max-width: 1080px) {
  html.site-menu-open {
    overflow: hidden;
  }

  .header-inner,
  .home-page .header-inner:not(.has-back-button) {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .header-inner .brand,
  .home-page .header-inner:not(.has-back-button) .brand {
    grid-column: 1;
    justify-self: start;
  }

  .mobile-header-actions,
  html[lang^="zu"] .mobile-header-actions,
  .home-page .header-inner:not(.has-back-button) .mobile-header-actions,
  html[lang^="zu"] .home-page .header-inner:not(.has-back-button) .mobile-header-actions {
    grid-column: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .header-inner.has-back-button {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .header-inner.has-back-button .brand {
    grid-column: 2;
  }

  .header-inner.has-back-button .mobile-header-actions {
    grid-column: 3;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav,
  html[lang^="zu"] .nav {
    position: absolute;
    z-index: 55;
    inset: calc(100% + 8px) 0 auto auto;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--book-edge);
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(200, 157, 56, 0.08), transparent 26px),
      var(--book-paper);
    box-shadow:
      0 5px 0 var(--book-paper-deep),
      0 24px 60px rgba(7, 23, 43, 0.24);
  }

  .nav.open,
  html[lang^="zu"] .nav.open {
    display: grid;
  }

  .nav > a,
  html[lang^="zu"] .nav > a,
  .nav .header-course-link,
  html[lang^="zu"] .nav .header-course-link {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
  }

  .nav > a:hover,
  .nav > a:focus-visible {
    border-color: rgba(200, 157, 56, 0.28);
    background: #f5edda;
  }

  .nav .header-course-link {
    border-color: rgba(200, 157, 56, 0.42);
  }

  .nav .cart-pill,
  html[lang^="zu"] .nav .cart-pill,
  .nav .header-finder-link,
  html[lang^="zu"] .nav .header-finder-link {
    display: none;
  }

  .header-preferences {
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .header-preferences > summary {
    display: none;
  }

  .header-preferences-panel {
    position: static;
    width: 100%;
    display: grid;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-preferences:not([open]) > .header-preferences-panel {
    display: grid;
  }

  .header-preferences-panel .language-switch,
  .header-preferences-panel .audience-switch {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .mobile-finder-link {
    display: none;
  }

  .nav .header-finder-link,
  html[lang^="zu"] .nav .header-finder-link {
    display: inline-flex;
    gap: 10px;
    height: auto;
  }

  .nav .header-finder-label {
    display: inline;
  }

  .brand img,
  .header-inner .brand img,
  .header-inner.has-back-button .brand img {
    width: 104px;
  }

  .mobile-cart-link,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .header-inner.has-back-button .brand {
    display: none;
  }

  .header-inner.has-back-button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-inner.has-back-button .mobile-header-actions {
    grid-column: 2;
  }

  .nav,
  html[lang^="zu"] .nav {
    right: -1px;
  }
}

@media (max-width: 350px) {
  .brand img,
  .header-inner .brand img {
    width: 88px;
  }

  .mobile-cart-link,
  .menu-toggle {
    width: 39px;
    height: 39px;
  }
}

/* The homepage spread becomes an open illustrated book on desktop. */
@media (min-width: 981px) {
  .home-page .hero {
    padding: clamp(48px, 5vw, 72px) 0 clamp(58px, 6vw, 84px);
    perspective: 1600px;
  }

  .home-page .hero > .hero-inner {
    overflow: visible;
    border: 0;
    border-radius: 18px 24px 24px 18px;
    background: transparent;
    box-shadow:
      0 4px 0 #b48a31,
      0 8px 0 #f1e2ba,
      0 12px 0 #8d661d,
      0 38px 78px rgba(7, 23, 43, 0.24);
    transform: rotateX(0.35deg);
    transform-origin: center bottom;
  }

  .home-page .hero > .hero-inner::before {
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 54%;
    width: 34px;
    display: block;
    background:
      linear-gradient(90deg,
        rgba(2, 9, 18, 0.5),
        rgba(200, 157, 56, 0.34) 42%,
        rgba(255, 244, 212, 0.48) 52%,
        rgba(7, 23, 43, 0.28));
    box-shadow:
      -8px 0 18px rgba(0, 0, 0, 0.22),
      9px 0 16px rgba(0, 0, 0, 0.14);
    content: "";
    transform: translateX(-50%);
  }

  .home-page .hero > .hero-inner::after {
    position: absolute;
    z-index: 6;
    top: 14px;
    bottom: 14px;
    left: 54%;
    width: 1px;
    background: rgba(255, 238, 188, 0.76);
    box-shadow: 0 0 11px rgba(255, 238, 188, 0.48);
    content: "";
  }

  .home-page .hero-content {
    overflow: hidden;
    border: 1px solid rgba(239, 224, 182, 0.3);
    border-right: 0;
    border-radius: 18px 0 0 18px;
    background:
      radial-gradient(circle at 12% 12%, rgba(200, 157, 56, 0.13), transparent 28%),
      linear-gradient(90deg, #0b1e36, #07172b 76%, #04101f);
    box-shadow:
      inset -24px 0 30px rgba(0, 0, 0, 0.24),
      inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  }

  .home-page .hero-media {
    overflow: hidden;
    border: 1px solid rgba(151, 119, 51, 0.42);
    border-left: 0;
    border-radius: 0 24px 24px 0;
    box-shadow:
      inset 24px 0 28px rgba(7, 23, 43, 0.22),
      inset -7px 0 12px rgba(255, 247, 224, 0.18);
  }

  .home-page .hero-media::after {
    background:
      linear-gradient(90deg, rgba(4, 15, 28, 0.36), transparent 16%, transparent 82%, rgba(55, 36, 9, 0.16)),
      linear-gradient(180deg, rgba(255, 246, 220, 0.08), rgba(7, 23, 43, 0.16));
  }
}

@media (max-width: 980px) {
  .home-page .hero > .hero-inner {
    border-color: rgba(151, 119, 51, 0.5);
    box-shadow:
      0 4px 0 var(--book-edge),
      0 8px 0 var(--book-paper-deep),
      0 22px 52px rgba(7, 23, 43, 0.18);
  }

  .home-page .hero-media {
    border-bottom: 1px solid rgba(200, 157, 56, 0.38);
  }

  .home-page .hero-content {
    background:
      radial-gradient(circle at 10% 8%, rgba(200, 157, 56, 0.12), transparent 30%),
      var(--navy);
  }
}

/* Chapter rhythm, paper surfaces, and page-edge cards across the public site. */
.section {
  position: relative;
  padding: clamp(58px, 6vw, 86px) 0;
  border-top: 1px solid rgba(151, 119, 51, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(249, 245, 235, 0.94));
}

.section.tint,
.priority-flow-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(14, 111, 104, 0.07), transparent 23rem),
    linear-gradient(180deg, #f3ecdd, #fbf8f0);
}

.section.black {
  border-top-color: rgba(200, 157, 56, 0.32);
  background:
    radial-gradient(circle at 88% 16%, rgba(200, 157, 56, 0.12), transparent 28rem),
    #050608;
}

.section-header {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-header h1,
.section-header h2,
.shop-section-header h2,
.finder-band h2 {
  color: var(--book-ink);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.section-header p {
  max-width: 690px;
  font-size: 1.04rem;
  line-height: 1.68;
}

.eyebrow {
  color: #9c741d;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  width: 42px;
  background: var(--book-gold);
}

.finder-band,
.finder-inline-callout,
.finder-product-nudge,
.benefit,
.blog-card,
.game-card,
.step,
.faq,
.panel,
.notice,
.order-summary,
.grade-flow-card,
.category-branch,
.finder-panel,
.finder-result-panel {
  border-color: rgba(175, 151, 100, 0.48);
  border-radius: var(--book-radius);
  background:
    linear-gradient(90deg, rgba(200, 157, 56, 0.055), transparent 26px),
    linear-gradient(180deg, #fffefb, #faf5e9);
  box-shadow:
    0 3px 0 var(--book-paper-deep),
    var(--book-shadow-soft);
}

.benefit,
.blog-card,
.game-card,
.step,
.faq,
.panel,
.notice,
.grade-flow-card,
.category-branch {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.benefit:hover,
.blog-card:hover,
.game-card:hover,
.grade-flow-card:hover,
.category-branch:hover {
  border-color: rgba(200, 157, 56, 0.62);
  box-shadow:
    0 4px 0 var(--book-paper-deep),
    0 20px 44px rgba(7, 23, 43, 0.12);
  transform: translateY(-2px);
}

.priority-flow li {
  border-color: rgba(175, 151, 100, 0.48);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(200, 157, 56, 0.06), transparent 28px),
    var(--book-paper);
  box-shadow:
    0 3px 0 var(--book-paper-deep),
    var(--book-shadow-soft);
}

.priority-flow li::before {
  border-color: var(--book-paper-warm);
  box-shadow:
    0 3px 0 #9c741d,
    0 12px 24px rgba(7, 23, 43, 0.16);
}

.finder-band {
  padding: clamp(22px, 3vw, 32px);
  border-left-width: 7px;
  box-shadow:
    0 4px 0 var(--book-paper-deep),
    0 22px 50px rgba(7, 23, 43, 0.11);
}

.finder-band-section {
  padding-top: 42px;
}

.product-card {
  border-color: rgba(175, 151, 100, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefb, #faf5e9);
  box-shadow:
    0 3px 0 var(--book-paper-deep),
    var(--book-shadow-soft);
}

.product-card-media,
.product-card .product-image {
  border-radius: 17px 17px 0 0;
}

.shop-mode-switch {
  border-color: rgba(175, 151, 100, 0.5);
  border-radius: 12px;
  background: var(--book-paper);
  box-shadow:
    0 3px 0 var(--book-paper-deep),
    var(--book-shadow-soft);
}

.shop-mode-switch button,
.shop-mode-switch a {
  border-radius: 8px;
}

.button,
button.button {
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(5, 6, 8, 0.18);
}

.button.gold {
  border-color: #a77d1f;
  background: linear-gradient(180deg, #deb84f, #c89d38);
}

.button.secondary {
  background: linear-gradient(180deg, #fffefb, #f6efdf);
}

.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border-color: #cfc2a8;
  border-radius: 10px;
  background: #fffefb;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--menu-accent-glow);
  outline-offset: 1px;
  border-color: var(--menu-accent);
}

.resource-finder-hero {
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 5px solid var(--book-edge);
  background:
    radial-gradient(circle at 86% 18%, rgba(200, 157, 56, 0.2), transparent 25rem),
    linear-gradient(135deg, #0c223d, #07172b 68%, #102c4b);
}

.resource-finder-hero .finder-hero-copy {
  padding-left: clamp(20px, 4vw, 48px);
  border-left: 3px solid var(--gold);
}

.footer {
  border-top: 5px solid #9d7621;
  box-shadow: inset 0 4px 0 #ead7a3;
}

@media (max-width: 980px) {
  .section {
    padding: 58px 0;
  }

  .section-header h1,
  .section-header h2 {
    font-size: clamp(2.25rem, 6vw, 3.25rem);
  }

  .footer-discovery,
  .footer-inner {
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 26px;
  }

  .section-header h1,
  .section-header h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .section-header p {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .finder-band,
  .finder-inline-callout,
  .finder-product-nudge,
  .benefit,
  .blog-card,
  .game-card,
  .step,
  .faq,
  .panel,
  .notice,
  .order-summary,
  .grade-flow-card,
  .category-branch,
  .finder-panel,
  .finder-result-panel,
  .product-card {
    border-radius: 14px;
  }

  .finder-band {
    padding: 20px;
  }

  .resource-finder-hero {
    padding: 34px 0;
  }

  .resource-finder-hero .finder-hero-copy {
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit,
  .blog-card,
  .game-card,
  .grade-flow-card,
  .category-branch {
    transition: none;
  }

  .benefit:hover,
  .blog-card:hover,
  .game-card:hover,
  .grade-flow-card:hover,
  .category-branch:hover {
    transform: none;
  }
}

/* Signature rounded-book language for public content surfaces. */
main :is(
  .finder-band,
  .finder-inline-callout,
  .finder-product-nudge,
  .product-card,
  .blog-card,
  .game-card,
  .benefit,
  .step,
  .panel,
  .notice,
  .order-summary,
  .grade-flow-card,
  .category-branch,
  .finder-panel,
  .finder-result-panel,
  .shop-mode-switch
) {
  border-radius: clamp(20px, 2vw, 28px);
}

main :is(.product-card, .blog-card, .game-card, .grade-flow-card, .category-branch) {
  overflow: hidden;
}

main :is(.product-card-media, .product-card .product-image, .blog-card img, .game-card img) {
  border-radius: clamp(18px, 1.8vw, 25px) clamp(18px, 1.8vw, 25px) 10px 10px;
}

main :is(.button, button.button, .shop-mode-switch button, .shop-mode-switch a) {
  border-radius: 13px;
}

/* The homepage is the site's opening chapter, not another catalogue page. */
.home-page main {
  background:
    linear-gradient(90deg, rgba(200, 157, 56, 0.025) 1px, transparent 1px) 50% 0 / 80px 100%,
    var(--book-paper);
}

.home-page .hero {
  padding-bottom: clamp(78px, 7vw, 110px);
}

.home-page .hero-content::after {
  position: absolute;
  right: clamp(22px, 3vw, 42px);
  bottom: clamp(20px, 2.8vw, 34px);
  color: rgba(239, 224, 182, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  content: "N99  ·  01";
}

.home-page .hero-content::before {
  position: absolute;
  top: clamp(26px, 3vw, 44px);
  bottom: clamp(26px, 3vw, 44px);
  left: clamp(20px, 2.6vw, 38px);
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(200, 157, 56, 0.48) 18%, rgba(200, 157, 56, 0.18) 82%, transparent);
  content: "";
}

.home-bookmark-section {
  z-index: 9;
  margin-top: clamp(-72px, -5vw, -48px);
  padding: 0 0 clamp(68px, 7vw, 96px);
  border: 0;
  background: transparent;
}

.home-bookmark-section .finder-band {
  position: relative;
  isolation: isolate;
  width: min(1030px, calc(100% - 56px));
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(25px, 3vw, 34px) clamp(28px, 4vw, 52px);
  border: 1px solid rgba(232, 207, 143, 0.48);
  border-left: 8px solid var(--book-gold);
  border-radius: 10px 28px 28px 10px;
  color: var(--white);
  background:
    radial-gradient(circle at 94% 10%, rgba(200, 157, 56, 0.22), transparent 16rem),
    linear-gradient(120deg, #102b4a, #07172b 72%);
  box-shadow:
    0 5px 0 #9f7415,
    0 26px 64px rgba(7, 23, 43, 0.24);
}

.home-bookmark-section .finder-band::before {
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid rgba(239, 224, 182, 0.16);
  border-radius: 8px 21px 21px 8px;
  content: "";
}

.home-bookmark-section .finder-band::after {
  position: absolute;
  z-index: -1;
  top: -52px;
  right: 13%;
  width: 124px;
  height: 190px;
  border: 1px solid rgba(239, 224, 182, 0.14);
  border-radius: 999px;
  content: "";
  transform: rotate(22deg);
}

.home-bookmark-section .finder-band .eyebrow {
  color: #efd378;
}

.home-bookmark-section .finder-band h2 {
  color: var(--white);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

.home-bookmark-section .finder-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.home-bookmark-section .finder-band .button {
  min-width: 190px;
  box-shadow: 0 4px 0 #8d661d, 0 14px 30px rgba(0, 0, 0, 0.2);
}

.home-principles-section {
  overflow: hidden;
  padding: clamp(76px, 8vw, 118px) 0;
  border-top: 1px solid rgba(200, 157, 56, 0.36);
  border-bottom: 5px solid #9f7415;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 14%, rgba(200, 157, 56, 0.18), transparent 26rem),
    radial-gradient(circle at 8% 92%, rgba(14, 111, 104, 0.18), transparent 24rem),
    linear-gradient(135deg, #0d2a49, #07172b 58%, #04101f);
}

.home-principles-section::before {
  position: absolute;
  top: 8%;
  left: 46%;
  width: min(52vw, 720px);
  aspect-ratio: 1.55;
  border: 1px solid rgba(239, 224, 182, 0.08);
  border-radius: 48%;
  pointer-events: none;
  content: "";
  transform: rotate(-8deg);
}

.home-principles-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

.home-principles-section .section-header {
  position: sticky;
  top: 110px;
  margin: 0;
  text-align: left;
}

.home-principles-section .section-header h2 {
  max-width: 9em;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.96;
}

.home-principles-section .section-header p:not(.eyebrow) {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.68);
}

.home-principles-pages {
  position: relative;
}

.home-principles-section .priority-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.home-principles-section .priority-flow::before {
  display: none;
}

.home-principles-section .priority-flow li {
  min-height: 230px;
  padding: 92px 26px 28px;
  overflow: hidden;
  border-color: rgba(239, 224, 182, 0.62);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(200, 157, 56, 0.08), transparent 42%),
    linear-gradient(180deg, #fffefa, #f4ead4);
  box-shadow:
    0 5px 0 #b99751,
    0 24px 50px rgba(0, 0, 0, 0.2);
}

.home-principles-section .priority-flow li:nth-child(even) {
  transform: translateY(28px);
}

.home-principles-section .priority-flow li::before {
  top: 24px;
  left: 26px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #a47920;
  background: transparent;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
  transform: none;
}

.home-principles-section .priority-flow li::after {
  position: absolute;
  top: 31px;
  left: 75px;
  width: 44px;
  height: 1px;
  background: var(--book-gold);
  content: "";
}

.home-principles-section .priority-flow li span {
  color: var(--book-ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.home-principles-section .resource-note {
  max-width: none;
  margin: 54px 0 0;
  padding: 24px 28px;
  border: 1px solid rgba(239, 224, 182, 0.3);
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  backdrop-filter: blur(10px);
}

.home-benefits-section {
  overflow: hidden;
  padding: clamp(84px, 9vw, 132px) 0;
  background:
    radial-gradient(circle at 8% 24%, rgba(200, 157, 56, 0.11), transparent 23rem),
    radial-gradient(circle at 92% 82%, rgba(14, 111, 104, 0.08), transparent 24rem),
    linear-gradient(180deg, #fffdf8, #f6efdf);
}

.home-benefits-section::after {
  position: absolute;
  top: 54px;
  right: max(24px, calc((100vw - 1180px) / 2));
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 157, 56, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(200, 157, 56, 0.04);
  pointer-events: none;
  content: "";
}

.home-benefits-section .section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.home-benefits-section .section-header h2 {
  max-width: 12em;
  margin-inline: auto;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.home-benefits-section .benefit-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  counter-reset: home-benefits;
}

.home-benefits-section .benefit {
  position: relative;
  grid-column: span 2;
  min-height: 210px;
  padding: 68px 28px 28px;
  overflow: hidden;
  border-radius: 30px;
}

.home-benefits-section .benefit:nth-child(4) {
  grid-column: 2 / span 2;
}

.home-benefits-section .benefit::before {
  position: absolute;
  top: 24px;
  left: 28px;
  color: #a47920;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 800;
  counter-increment: home-benefits;
  content: "0" counter(home-benefits);
}

.home-benefits-section .benefit::after {
  position: absolute;
  top: 34px;
  left: 68px;
  width: 46px;
  height: 1px;
  background: rgba(200, 157, 56, 0.7);
  content: "";
}

.home-benefits-section .benefit strong {
  display: block;
  color: var(--book-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1;
}

.home-benefits-section .benefit p {
  margin-top: 13px;
  line-height: 1.62;
}

.home-page .home-featured-section.section.tint {
  overflow: hidden;
  padding: clamp(82px, 8vw, 118px) 0 clamp(98px, 9vw, 138px);
  border-top: 1px solid rgba(200, 157, 56, 0.3);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 157, 56, 0.16), transparent 25rem),
    radial-gradient(circle at 88% 78%, rgba(14, 111, 104, 0.18), transparent 24rem),
    linear-gradient(145deg, #102b4a, #07172b 58%, #050d18);
}

.home-featured-section .section-header h2 {
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.home-featured-section .section-header p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.home-featured-section .product-grid {
  position: relative;
  gap: 24px;
  padding-bottom: 22px;
}

.home-featured-section .product-grid::after {
  position: absolute;
  z-index: 0;
  right: -20px;
  bottom: 0;
  left: -20px;
  height: 13px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8b357, #8d661d);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  content: "";
}

.home-featured-section .product-card {
  z-index: 1;
  border-color: rgba(239, 224, 182, 0.52);
  border-radius: 28px 28px 18px 18px;
  box-shadow:
    0 5px 0 #b99751,
    0 24px 48px rgba(0, 0, 0, 0.3);
}

.home-order-section {
  overflow: hidden;
  padding: clamp(84px, 9vw, 126px) 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 157, 56, 0.11), transparent 22rem),
    var(--book-paper);
}

.home-order-section > .section-inner {
  position: relative;
  padding: clamp(38px, 5vw, 70px);
  border: 1px solid rgba(175, 151, 100, 0.5);
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(200, 157, 56, 0.055), transparent 32px),
    linear-gradient(180deg, #fffefb, #f6eddb);
  box-shadow:
    0 6px 0 var(--book-paper-deep),
    0 34px 76px rgba(7, 23, 43, 0.14);
}

.home-order-section > .section-inner::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 22px;
  width: 1px;
  background: rgba(200, 157, 56, 0.32);
  content: "";
}

.home-order-section .section-header h2 {
  max-width: 10em;
  margin-inline: auto;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.home-order-section .steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: home-steps;
}

.home-order-section .step {
  position: relative;
  min-height: 190px;
  padding: 68px 24px 26px;
  border-radius: 26px;
  counter-increment: home-steps;
}

.home-order-section .step::before {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #a47920;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 800;
  content: "0" counter(home-steps);
}

.home-order-section .step::after {
  position: absolute;
  top: 33px;
  left: 64px;
  width: 38px;
  height: 1px;
  background: var(--book-gold);
  content: "";
}

.home-order-section .step strong {
  color: var(--book-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

@media (max-width: 980px) {
  .home-page .hero {
    padding-bottom: 64px;
  }

  .home-bookmark-section {
    margin-top: -44px;
    padding-bottom: 68px;
  }

  .home-principles-layout {
    grid-template-columns: 1fr;
  }

  .home-principles-section .section-header {
    position: static;
    text-align: center;
  }

  .home-principles-section .section-header h2,
  .home-principles-section .section-header p:not(.eyebrow) {
    margin-inline: auto;
  }

  .home-principles-section .priority-flow {
    max-width: 780px;
    margin-inline: auto;
  }

  .home-benefits-section .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-benefits-section .benefit,
  .home-benefits-section .benefit:nth-child(4) {
    grid-column: auto;
  }

  .home-benefits-section .benefit:last-child {
    grid-column: 1 / -1;
  }

  .home-featured-section .product-grid,
  .home-order-section .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-page .hero {
    padding-bottom: 42px;
  }

  .home-page .hero-content::before,
  .home-page .hero-content::after {
    display: none;
  }

  .home-bookmark-section {
    margin-top: -22px;
    padding-bottom: 52px;
  }

  .home-bookmark-section .finder-band {
    width: min(100% - 24px, 1030px);
    padding: 24px 20px;
    border-left-width: 5px;
    border-radius: 8px 22px 22px 8px;
  }

  .home-bookmark-section .finder-band .button {
    width: 100%;
    min-width: 0;
  }

  .home-principles-section,
  .home-benefits-section,
  .home-featured-section,
  .home-order-section {
    padding: 64px 0;
  }

  .home-principles-section .priority-flow,
  .home-benefits-section .benefit-grid,
  .home-order-section .steps-grid {
    grid-template-columns: 1fr;
  }

  .home-principles-section .priority-flow li,
  .home-principles-section .priority-flow li:nth-child(even) {
    min-height: 0;
    transform: none;
  }

  .home-principles-section .resource-note {
    margin-top: 26px;
    padding: 22px;
  }

  .home-benefits-section .benefit,
  .home-benefits-section .benefit:nth-child(4),
  .home-benefits-section .benefit:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .home-featured-section .product-grid {
    display: flex;
    gap: 16px;
    margin-inline: -12px;
    padding: 6px 12px 28px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 12px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: rgba(200, 157, 56, 0.72) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
  }

  .home-featured-section .product-card {
    flex: 0 0 min(84vw, 420px);
    scroll-snap-align: start;
  }

  .home-featured-section .product-grid::after {
    right: -6px;
    left: -6px;
  }

  .home-order-section > .section-inner {
    width: min(100% - 24px, 1180px);
    padding: 34px 20px;
    border-radius: 28px;
  }

  .home-order-section > .section-inner::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-principles-section .priority-flow li:nth-child(even) {
    transform: none;
  }
}

/* Modern Editorial Book: carry the homepage palette through every public chapter. */
body:not(.auth-page):not(.student-area):not(.admin-area) main {
  --chapter-paper: #fffdf8;
  --chapter-paper-warm: #f7f0df;
  --chapter-navy: #07172b;
  --chapter-blue: #102b4a;
  --chapter-gold: #c89d38;
  --chapter-edge: #d8c9a7;
  --chapter-radius: clamp(22px, 2.2vw, 30px);
  background:
    radial-gradient(circle at 8% 5%, rgba(200, 157, 56, 0.09), transparent 22rem),
    linear-gradient(90deg, rgba(7, 23, 43, 0.018) 1px, transparent 1px) 50% 0 / 80px 100%,
    #f7f4ec;
}

body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero,
body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero.games-landing-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-bottom: 5px solid #9f7415;
  background:
    radial-gradient(circle at 88% 18%, rgba(200, 157, 56, 0.24), transparent 20rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 26px),
    linear-gradient(120deg, #102b4a, #07172b 68%, #04101f);
  box-shadow: inset 0 -1px rgba(239, 224, 182, 0.24);
}

body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero::after {
  position: absolute;
  right: clamp(22px, 5vw, 82px);
  bottom: -62px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  border: 1px solid rgba(239, 224, 182, 0.12);
  border-radius: 50%;
  content: "";
}

body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero :is(h1, h2),
body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero.games-landing-hero h1 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.24);
}

body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero :is(.eyebrow, .eyebrow::before),
body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero.games-landing-hero .eyebrow {
  color: #efd378;
}

body:not(.auth-page):not(.student-area):not(.admin-area) .page-hero p {
  color: rgba(255, 255, 255, 0.76);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-detail,
  .detail-gallery,
  .search-panel,
  .search-row,
  .checkout-form,
  .payment-panel,
  .confirmation-layout,
  .contact-topic-card,
  .contact-form-card,
  .contact-topic-help,
  .article-summary,
  .article-highlight,
  .article-product-callout,
  .article-faq,
  .article-faq-item,
  .game-stage,
  .games-grade-shell,
  .games-setup-panel,
  .course-form-hero,
  .course-information-form,
  .download-panel,
  .access-review-card,
  .access-review-next,
  .entry-gate-card,
  .entry-gate-help-panel,
  .security-gate-panel,
  .security-gate-closed-panel
) {
  border-color: var(--chapter-edge);
  border-radius: var(--chapter-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 240, 223, 0.94)),
    var(--chapter-paper);
  box-shadow:
    0 5px 0 rgba(168, 130, 47, 0.38),
    0 22px 52px rgba(7, 23, 43, 0.11);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-detail,
  .detail-gallery,
  .article-summary,
  .article-highlight,
  .article-product-callout,
  .article-faq,
  .game-stage,
  .games-grade-shell,
  .course-form-hero,
  .course-information-form,
  .confirmation-layout
) {
  overflow: hidden;
}

/* Online-course imagery opens on the same navy “page” as the homepage hero. */
body:not(.auth-page):not(.student-area):not(.admin-area) main
  .detail-gallery[data-product-gallery="online-course"] {
  padding: 14px;
  border: 1px solid rgba(200, 157, 56, 0.68);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 157, 56, 0.18), transparent 18rem),
    linear-gradient(145deg, #102b4a, var(--chapter-navy) 72%);
  box-shadow:
    0 5px 0 #9f7415,
    0 22px 48px rgba(7, 23, 43, 0.22);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main
  .detail-gallery[data-product-gallery="online-course"] .detail-image {
  border-color: rgba(239, 224, 182, 0.62);
  border-radius: 16px;
  background: var(--chapter-paper);
  box-shadow: none;
}

body:not(.auth-page):not(.student-area):not(.admin-area) main
  .detail-gallery[data-product-gallery="online-course"] :is(.gallery-open, .detail-image img) {
  border-radius: 12px;
}

body:not(.auth-page):not(.student-area):not(.admin-area) main
  .detail-gallery[data-product-gallery="online-course"] .gallery-counter {
  color: #fff;
  border-color: rgba(239, 224, 182, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main
  .detail-gallery[data-product-gallery="online-course"] .gallery-thumb {
  border-color: rgba(239, 224, 182, 0.6);
  border-radius: 14px;
  background: var(--chapter-paper);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main
  .detail-gallery[data-product-gallery="online-course"] .gallery-thumb:is(:hover, :focus-visible, .active) {
  border-color: var(--chapter-gold);
  box-shadow: 0 0 0 3px rgba(200, 157, 56, 0.2);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .detail-image,
  .article-featured-image,
  .finder-result-image,
  .game-hero
) {
  overflow: hidden;
  border-radius: clamp(18px, 1.8vw, 25px);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  input,
  select,
  textarea
) {
  border-color: #cfc3ab;
  border-radius: 13px;
  background-color: #fffefa;
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  input,
  select,
  textarea
):focus {
  border-color: var(--chapter-gold);
  box-shadow: 0 0 0 4px rgba(200, 157, 56, 0.14);
}

/* The shop is a shelf of coordinated covers: paper and gold, then homepage blue. */
body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card) {
  position: relative;
  border-color: #d7c9a8;
  border-left: 6px solid var(--chapter-gold);
  border-radius: var(--chapter-radius);
  box-shadow:
    0 5px 0 rgba(168, 130, 47, 0.34),
    0 20px 44px rgba(7, 23, 43, 0.1);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) {
  border-color: rgba(200, 157, 56, 0.76);
  border-left-color: #102b4a;
  background: var(--chapter-navy);
  box-shadow:
    0 5px 0 #9f7415,
    0 22px 48px rgba(7, 23, 43, 0.2);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) :is(
  .product-content,
  .grade-flow-body,
  .category-content
) {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 157, 56, 0.18), transparent 13rem),
    linear-gradient(145deg, #102b4a, #07172b 72%);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) :is(
  h2,
  h3,
  h2 a,
  h3 a,
  .price
) {
  color: #fff;
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) :is(
  p,
  .product-card-type,
  .product-card-price-label,
  .product-card-payment-note
) {
  color: rgba(255, 255, 255, 0.7);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) .tag {
  color: #f5df9a;
  border-color: rgba(239, 211, 120, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) .button.secondary:hover {
  color: var(--chapter-navy);
  background: #fff;
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(odd) .button.gold {
  color: #161006;
  background: var(--chapter-gold);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) .button.gold {
  color: #fff;
  border-color: #31516f;
  background: #102b4a;
  box-shadow: inset 0 0 0 1px rgba(239, 211, 120, 0.34);
}

body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
  .product-grid,
  .grade-flow-list,
  .subject-grid
) > :is(.product-card, .grade-flow-card, .category-card):nth-child(even) .button.gold:hover {
  color: #07172b;
  background: #efd378;
}

@media (max-width: 640px) {
  body:not(.auth-page):not(.student-area):not(.admin-area) main {
    --chapter-radius: 20px;
  }

  body:not(.auth-page):not(.student-area):not(.admin-area) main :is(
    .product-detail,
    .detail-gallery,
    .search-panel,
    .search-row,
    .checkout-form,
    .payment-panel,
    .confirmation-layout,
    .contact-topic-card,
    .contact-form-card,
    .article-summary,
    .article-highlight,
    .article-product-callout,
    .article-faq,
    .article-faq-item,
    .game-stage,
    .games-grade-shell,
    .course-form-hero,
    .course-information-form,
    .download-panel
  ) {
    border-radius: 20px;
    box-shadow:
      0 4px 0 rgba(168, 130, 47, 0.3),
      0 16px 34px rgba(7, 23, 43, 0.09);
  }
}

/* Session 44: keep proof-upload guidance child-readable on narrow screens. */
.contact-form-card .eyebrow,
.contact-form-card .field label,
.contact-form-card .field .hint {
  font-size: 0.875rem;
}
