/* ════════════════════════════════════════════════════════════════════
   SCHOOLERS — shared brand CSS (tokens, nav, footer, buttons, scaffold)
   Page-specific styles stay inline on each page.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Primary anchor */
  --aubergine:        #3D0F36;
  --aubergine-deep:   #2A0925;
  --aubergine-soft:   #5C2553;

  /* Ground */
  --chalk:            #F5EFE0;
  --chalk-deep:       #EBE2CC;
  --paper:            #FBF7EC;

  /* Brights (accents only) */
  --rosette:          #E63956;
  --rosette-soft:     #F8BCD0;
  --sky:              #B8D4F0;
  --sky-deep:         #7AAFE0;

  /* Ink */
  --ink:              #1A0716;
  --ink-soft:         #4A2E45;
  --rule:             #C9B89A;

  /* Type stacks */
  --display:  'Hammersmith One', 'Helvetica Neue', sans-serif;
  --script:   'Damion', cursive;
  --body:     'Forum', Georgia, serif;
  --ui:       'DM Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Scale */
  --size-base:   18px;
  --size-sm:     15px;
  --size-md:     20px;
  --size-lg:     24px;
  --size-xl:     32px;
  --size-2xl:    52px;
  --size-3xl:    84px;
  --size-hero:   clamp(56px, 9vw, 132px);

  --col-max:    1240px;
  --gutter:     clamp(24px, 5vw, 64px);

  --track-tight:   -0.01em;
  --track-display: 0.04em;
  --track-loose:   0.18em;
  --track-extra:   0.32em;
}

/* Establish positioning context for the absolute-positioned nav band */
body { position: relative; }

/* ─── Utilities ─── */
.wrap {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-caps {
  font-family: var(--ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--size-sm);
}
.s-eyebrow {
  font-family: var(--script);
  font-size: var(--size-lg);
  color: var(--rosette);
  line-height: 1;
  display: inline-block;
}

/* ─── Section scaffold ─── */
.s-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
  font-family: var(--body);
  color: var(--ink);
}
.s-section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.s-section-head .s-eyebrow { margin-bottom: 14px; }
.s-section-head h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: var(--track-display);
  font-size: clamp(40px, 6.2vw, 80px);
  color: var(--aubergine);
  line-height: 1.04;
}
.s-section-head h2 .script {
  font-family: var(--script);
  text-transform: none;
  color: var(--rosette);
  letter-spacing: 0;
  font-weight: 400;
  font-size: 1.05em;
}
.s-section-head .s-lede {
  margin-top: 22px;
  font-size: var(--size-lg);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
}

/* ─── Buttons ─── */
.s-btn-primary {
  background: var(--rosette);
  color: var(--chalk);
  padding: 18px 36px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track-loose);
  font-size: 14px;
  transition: transform 0.2s, background 0.2s;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.s-btn-primary:hover { background: var(--aubergine); transform: translateY(-2px); }
.s-btn-ghost {
  color: var(--aubergine);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track-loose);
  font-size: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--aubergine);
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
  background: transparent;
  line-height: 1;
  display: inline-block;
}
.s-btn-ghost:hover { color: var(--rosette); border-color: var(--rosette); }
@media (prefers-reduced-motion: reduce) {
  .s-btn-primary { transition: none; }
  .s-btn-primary:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════════════
   NAV BAND — transparent, floats over whatever hero is below.
   ════════════════════════════════════════════════════════════════════ */
.nav-band {
  background: transparent;
  color: var(--chalk);
  position: absolute;
  top: 0; left: 0; right: 0;
  /* Must sit above .mobile-menu (z-index: 80) so the hamburger button
     remains visible and tappable when the menu is open. */
  z-index: 100;
}
.nav-band .nav {
  padding: 18px 0;
  /* Three-column grid with equal-weight side columns ensures nav-links is
     centered relative to the viewport, regardless of logo or nav-end width. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 32px;
}
.nav-band .logo { justify-self: start; grid-column: 1; }
.nav-band .nav-links { justify-self: center; grid-column: 2; }
.nav-band .nav-end,
.nav-band .nav-hamburger { justify-self: end; grid-column: 3; }
.nav-band .logo {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 14px;
  text-decoration: none;
  z-index: 25;
}
.nav-band .logo img,
.nav-band .logo svg {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
@media (max-width: 880px) {
  .nav-band .logo { width: 180px; height: 22px; }
  .nav-band .logo img,
  .nav-band .logo svg { top: 2px; }
  .nav-band .wrap.nav { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 540px) {
  .nav-band .wrap.nav { padding-left: 24px; padding-right: 24px; }
}

.nav-band .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-band .nav-links a,
.nav-band .nav-links .dropdown-toggle {
  font-family: var(--ui);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--chalk);
  text-decoration: none;
  transition: color 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-band .nav-links a:hover,
.nav-band .nav-links .dropdown-toggle:hover { color: var(--rosette-soft); }

/* Dropdown menu — used to nest Tests & Levels + Rules under "Enter" */
.nav-band .has-dropdown { position: relative; }
.nav-band .dropdown-toggle::after {
  content: '▾';
  font-size: 10px;
  line-height: 1;
  margin-left: 2px;
  opacity: 0.7;
}
.nav-band .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--aubergine-deep);
  padding: 12px 0;
  margin-top: 18px;
  min-width: 220px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.25s;
  list-style: none;
  z-index: 40;
}
/* Invisible bridge over the gap so cursor doesn't drop hover between
   toggle and menu */
.nav-band .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}
.nav-band .has-dropdown:hover .dropdown-menu,
.nav-band .has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s, transform 0.2s, visibility 0s;
}
.nav-band .dropdown-menu li { margin: 0; }
.nav-band .dropdown-menu a {
  display: block;
  padding: 10px 22px;
  font-family: var(--ui);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--chalk-deep);
  text-shadow: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-band .dropdown-menu a:hover {
  background: var(--aubergine-soft);
  color: var(--rosette-soft);
}

/* Right-aligned action group: social icons clustered next to CTA */
.nav-band .nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Social icon row inside the desktop nav (Instagram, Facebook, Spotify) */
.nav-band .nav-social {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-band .nav-social a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chalk);
  border: 1px solid rgba(245, 239, 224, 0.35);
  border-radius: 50%;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-band .nav-social a:hover {
  border-color: var(--rosette-soft);
  color: var(--rosette-soft);
}

.nav-band .nav-cta {
  background: var(--rosette);
  color: var(--chalk);
  padding: 9px 18px;
  font-family: var(--ui);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.nav-band .nav-cta:hover { background: var(--aubergine); color: var(--chalk); }

/* Hamburger (mobile) */
.nav-band .nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  /* Tap target: 44x44 minimum, lines drawn inside via padding */
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 6px;
  position: relative;
  z-index: 5;
  /* iOS Safari occasionally suppresses taps on transparent buttons */
  -webkit-tap-highlight-color: rgba(245,239,224,0.2);
  touch-action: manipulation;
}
.nav-band .nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--chalk);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-band .nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-band .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-band .nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 880px) {
  .nav-band .nav-links { display: none !important; }
  .nav-band .nav-hamburger { display: flex !important; }
  .nav-band .nav-cta { display: none !important; }
  .nav-band .nav-social { display: none !important; } /* Social icons hidden on mobile — accessible via footer */
  .nav-band .nav-end { display: none !important; }
}

/* Mobile menu panel — overrides legacy */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--aubergine-deep);
  z-index: 80;
  padding: 88px var(--gutter) 40px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a,
.mobile-menu .mob-section-label {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: var(--track-display);
  color: var(--chalk);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,239,224,0.12);
  display: block;
}
.mobile-menu .mob-section-label {
  font-size: 11px;
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--rosette-soft);
  border-bottom: none;
  padding: 18px 0 6px;
}
.mobile-menu .mob-nested {
  padding-left: 16px;
  font-size: 18px;
}
.mobile-menu .mob-cta {
  margin-top: 24px;
  background: var(--rosette);
  color: var(--chalk);
  text-align: center;
  padding: 18px;
  border-bottom: none;
  font-size: 14px;
  letter-spacing: var(--track-loose);
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.s-footer {
  background: var(--aubergine-deep);
  color: var(--chalk-deep);
  padding: 72px 0 28px;
  font-family: var(--body);
}
.s-footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
.s-footer a:hover { color: var(--rosette-soft); }
.s-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .s-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .s-footer-grid { grid-template-columns: 1fr; } }
.s-footer h5 {
  font-family: var(--ui);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  color: var(--rosette-soft);
}
.s-footer ul { list-style: none; margin: 0; padding: 0; }
.s-footer li { margin-bottom: 8px; font-size: var(--size-sm); color: var(--chalk-deep); }
.s-footer-brand .footer-logo {
  display: inline-block;
  width: 200px;
  line-height: 0;
}
.s-footer-brand .footer-logo img,
.s-footer-brand .footer-logo svg {
  width: 100%;
  height: auto;
  display: block;
}
/* Footer logo wears the wordmark + ribbon only — hide the "Dressage / Online"
   Damion text that lives in the same SVG (we want a quieter mark down there). */
.s-footer-brand .footer-logo svg text { display: none; }
.s-footer-brand .tagline {
  margin-top: 14px;
  font-size: var(--size-sm);
  line-height: 1.5;
  color: var(--chalk-deep);
  max-width: 36ch;
}
.s-footer-brand .script-tag {
  margin-top: 10px;
  color: var(--rosette-soft);
  font-family: var(--script);
  font-size: var(--size-md);
}
.s-footer-social { display: flex; gap: 14px; margin-top: 16px; }
.s-footer-social a {
  width: 32px; height: 32px;
  border: 1px solid rgba(245,239,224,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chalk-deep);
}
.s-footer-social a:hover { border-color: var(--rosette-soft); color: var(--rosette-soft); }
.s-footer-bottom {
  border-top: 1px solid rgba(245,239,224,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--chalk-deep);
  line-height: 1.4;
}
.s-footer-bottom .script {
  font-family: var(--script);
  color: var(--rosette-soft);
  font-size: var(--size-md);
}
.s-footer-credit {
  font-size: 12px;
  color: rgba(245,239,224,0.6);
  text-align: center;
}
.s-footer-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,239,224,0.2);
  transition: color 0.2s, border-color 0.2s;
}
.s-footer-credit a:hover {
  color: var(--rosette-soft);
  border-color: var(--rosette-soft);
}

/* ════════════════════════════════════════════════════════════════════
   PAGE HERO scaffold — used by interior pages (about, schedule, rules, etc.)
   Each page can override .s-page-hero internals while keeping the
   aubergine ground / chalk text pattern consistent.
   ════════════════════════════════════════════════════════════════════ */
.s-page-hero {
  position: relative;
  padding: clamp(148px, 16vw, 210px) 0 clamp(56px, 8vw, 96px);
  background: var(--aubergine);
  color: var(--chalk);
  overflow: hidden;
  text-align: left;
}
.s-page-hero .wrap { position: relative; z-index: 2; }
.s-page-hero .s-eyebrow {
  color: var(--rosette-soft);
  font-size: var(--size-md);
  margin-bottom: 14px;
}
.s-page-hero h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--chalk);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.s-page-hero h1 .script {
  font-family: var(--script);
  text-transform: none;
  color: var(--rosette-soft);
  letter-spacing: 0;
  font-size: 1.05em;
}
.s-page-hero p {
  font-size: var(--size-lg);
  color: var(--chalk-deep);
  max-width: 56ch;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════
   JOIN THE SCHOOLERS — email subscriber CTA (canonical from index.html).
   Rosette ground; the one place rosette is the ground colour.
   Drop this section above the footer on every interior page.
   ════════════════════════════════════════════════════════════════════ */
.s-join {
  background: var(--rosette);
  color: var(--chalk);
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.s-join .diagram-grid-bg {
  position: absolute;
  inset: 0;
  background-image: url('Images/diagrams/advanced-6-1-grid-chalk.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.25;
  pointer-events: none;
}
.s-join-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 720px) {
  .s-join-inner { grid-template-columns: 1fr; }
}
.s-join h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: var(--track-display);
  font-size: var(--size-2xl);
  color: var(--chalk);
  margin: 0 0 6px;
  line-height: 1.05;
}
.s-join h3 .script {
  font-family: var(--script);
  text-transform: none;
  color: var(--aubergine);
  letter-spacing: 0;
  display: block;
  font-size: 0.7em;
  margin-bottom: 4px;
}
.s-join p {
  color: var(--chalk);
  font-size: var(--size-base);
  font-family: var(--body);
  line-height: 1.5;
  margin-top: 10px;
  max-width: 38ch;
}
.s-join-form {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.s-join-form input {
  flex: 1;
  min-width: 200px;
  padding: 16px 18px;
  border: 2px solid var(--chalk);
  background: var(--chalk);
  color: var(--aubergine);
  font-family: var(--body);
  font-size: var(--size-base);
  outline: none;
  border-radius: 0;
}
.s-join-form input::placeholder { color: var(--ink-soft); opacity: 0.6; }
.s-join-form button {
  background: var(--aubergine);
  color: var(--chalk);
  border: 2px solid var(--aubergine);
  padding: 16px 28px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: var(--track-loose);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}
.s-join-form button:hover { background: var(--aubergine-deep); }
.s-join-thanks {
  color: var(--chalk);
  font-style: italic;
  margin-top: 10px;
  font-family: var(--body);
}

/* ════════════════════════════════════════════════════════════════════
   LEGACY-CLASS BRAND OVERRIDES
   Catches the common legacy class names (.subscribe-*, .about-*,
   .offer-*, .nz-card-*, .wn-*, .gradient-text, .card) on pages that
   still carry the original Spark markup. Keeps them visually in step
   with the canonical home page without needing to rewrite every page.
   ════════════════════════════════════════════════════════════════════ */

/* Strip the Spark sunset gradient from any inline emphasis — it was the
   old brand. Plain rosette colour matches the home page. */
.gradient-text,
.about-lead-tag,
.about-closing-line {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--rosette) !important;
  font-style: normal !important;
  font-family: var(--script) !important;
}

/* Legacy "subscribe-bar" CTA — neutralised so old markup still renders
   if a page hasn't been migrated to .s-join yet. */
.subscribe-bar {
  background: var(--rosette) !important;
  color: var(--chalk) !important;
  padding: clamp(56px, 8vw, 96px) var(--gutter) !important;
  border: none !important;
}
.subscribe-inner {
  max-width: var(--col-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 720px) { .subscribe-inner { grid-template-columns: 1fr; gap: 24px; } }
.subscribe-eyebrow {
  font-family: var(--script) !important;
  color: var(--aubergine) !important;
  font-size: var(--size-md) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
  display: block;
  margin-bottom: 4px !important;
}
.subscribe-title {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  font-size: var(--size-2xl) !important;
  color: var(--chalk) !important;
  line-height: 1.05 !important;
}
.subscribe-form { display: flex; gap: 0; flex-wrap: wrap; }
.subscribe-input {
  flex: 1 !important;
  min-width: 200px !important;
  padding: 16px 18px !important;
  border: 2px solid var(--chalk) !important;
  background: var(--chalk) !important;
  color: var(--aubergine) !important;
  font-family: var(--body) !important;
  font-size: var(--size-base) !important;
  border-radius: 0 !important;
}
.subscribe-btn {
  background: var(--aubergine) !important;
  color: var(--chalk) !important;
  border: 2px solid var(--aubergine) !important;
  padding: 16px 28px !important;
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--track-loose) !important;
  font-size: 14px !important;
  border-radius: 0 !important;
}
.subscribe-btn:hover { background: var(--aubergine-deep) !important; }
.subscribe-thanks {
  color: var(--chalk) !important;
  font-style: italic !important;
  font-family: var(--body) !important;
  font-size: var(--size-base) !important;
}

/* Legacy body/card typography — map Cormorant/Barlow onto Forum/Hammersmith */
.about-section,
.about-wrap,
.about-block,
.about-lead,
.about-para,
.offer-body,
.nz-meta-value {
  font-family: var(--body) !important;
}
.about-para,
.offer-body { font-size: var(--size-base) !important; line-height: 1.65 !important; color: var(--ink) !important; }
.about-lead p { font-family: var(--body) !important; font-style: normal !important; color: var(--ink) !important; }

.about-section-title,
.nz-card-title,
.offer-title,
.subscribe-title {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  color: var(--aubergine) !important;
  line-height: 1.1 !important;
}
.about-section-title em,
.nz-card-title em,
.offer-title em {
  font-family: var(--script) !important;
  text-transform: none !important;
  color: var(--rosette) !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  font-size: 1.05em !important;
  background: none !important;
  -webkit-text-fill-color: var(--rosette) !important;
}
.about-section-label,
.offer-mark,
.nz-meta-label {
  font-family: var(--ui) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  color: var(--rosette) !important;
  font-size: 11px !important;
}
.about-section-label::before { background: var(--rosette) !important; }

.nz-card,
.offer {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
}
.nz-card::before { background: var(--rosette) !important; }
.about-quote {
  background: var(--chalk-deep) !important;
  border-left: 2px solid var(--rosette) !important;
  font-family: var(--body) !important;
  color: var(--aubergine) !important;
}

.about-closing { border-top: 1px solid var(--rule) !important; }
.about-closing-line {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  color: var(--aubergine) !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  font-size: clamp(34px, 5.2vw, 60px) !important;
}
.about-closing-line .script {
  font-family: var(--script) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--rosette) !important;
  font-size: 1.05em !important;
  display: block;
}

/* "Where to next" cross-link cards — chalk-deep ground, paper cards */
.wn-sec {
  background: var(--chalk-deep) !important;
  border-top: 1px solid var(--rule) !important;
  padding: clamp(48px, 7vw, 80px) 0 !important;
}
.wn-sec .wn-in,
.wn-in {
  max-width: var(--col-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--gutter) !important;
}
.wn-eyebrow {
  font-family: var(--ui) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  letter-spacing: 0.16em !important;
  color: var(--rosette) !important;
}
.wn-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  color: var(--aubergine) !important;
  padding: 28px 30px !important;
}
.wn-card:hover {
  background: var(--paper) !important;
  border-color: var(--aubergine) !important;
}
.wn-label {
  font-family: var(--ui) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  color: var(--rosette) !important;
}
.wn-title {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  color: var(--aubergine) !important;
}
.wn-title span { color: var(--rosette) !important; font-family: var(--script) !important; }

/* ════════════════════════════════════════════════════════════════════
   GLOBAL FONT NUKE — every interior page still carries a legacy
   `<style>` block that references Cormorant Garamond / Barlow /
   Barlow Condensed. These attribute selectors catch every inline
   font-family declaration on `body *` and force the brand stack.
   The override is intentionally aggressive: brand says no
   substitutions outside the four-family system.
   ════════════════════════════════════════════════════════════════════ */
body [style*="Cormorant"],
body [class*="cormorant"] { font-family: var(--body) !important; }
body [style*="Barlow Condensed"] { font-family: var(--ui) !important; }
body [style*="font-family:'Barlow'"],
body [style*="font-family: 'Barlow'"] { font-family: var(--body) !important; }

/* Catch the page-level style blocks via class selectors — these are
   the most common containers on the rebranded interior pages. */
.contact-section, .contact-section *,
.about-section, .about-section *,
.rules-section, .rules-section *,
.page-body, .page-body *,
.schedule-section, .schedule-section *,
.tests-section, .tests-section *,
.games-section, .games-section *,
.enter-section, .enter-section *,
.faq-section, .faq-section *,
.article-content, .article-content *,
.article-cta, .article-cta *,
.article-bio, .article-bio * {
  font-family: var(--body);
}
.contact-section h1, .contact-section h2, .contact-section h3, .contact-section h4,
.about-section h1, .about-section h2, .about-section h3, .about-section h4,
.rules-section h1, .rules-section h2, .rules-section h3, .rules-section h4,
.page-body h1, .page-body h2, .page-body h3, .page-body h4,
.schedule-section h1, .schedule-section h2, .schedule-section h3, .schedule-section h4,
.tests-section h1, .tests-section h2, .tests-section h3, .tests-section h4,
.games-section h1, .games-section h2, .games-section h3, .games-section h4,
.enter-section h1, .enter-section h2, .enter-section h3, .enter-section h4,
.faq-section h1, .faq-section h2, .faq-section h3, .faq-section h4,
.article-content h1, .article-content h2, .article-content h3, .article-content h4,
.article-cta h1, .article-cta h2, .article-cta h3, .article-cta h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  color: var(--aubergine);
}
/* Damion script accents wherever <em> or .script is used inside a heading */
.contact-section h1 em, .contact-section h2 em, .contact-section h3 em, .contact-section h4 em,
.about-section h1 em, .about-section h2 em, .about-section h3 em, .about-section h4 em,
.rules-section h1 em, .rules-section h2 em, .rules-section h3 em, .rules-section h4 em,
.page-body h1 em, .page-body h2 em, .page-body h3 em, .page-body h4 em,
.schedule-section h1 em, .schedule-section h2 em, .schedule-section h3 em, .schedule-section h4 em,
.tests-section h1 em, .tests-section h2 em, .tests-section h3 em, .tests-section h4 em,
.games-section h1 em, .games-section h2 em, .games-section h3 em, .games-section h4 em,
.enter-section h1 em, .enter-section h2 em, .enter-section h3 em, .enter-section h4 em,
.faq-section h1 em, .faq-section h2 em, .faq-section h3 em, .faq-section h4 em,
.article-content h1 em, .article-content h2 em, .article-content h3 em, .article-content h4 em,
.article-cta h1 em, .article-cta h2 em, .article-cta h3 em, .article-cta h4 em,
.s-page-hero h1 em, .page-title em {
  font-family: var(--script);
  text-transform: none;
  font-style: normal;
  color: var(--rosette);
  letter-spacing: 0;
  font-size: 1.05em;
  background: none;
  -webkit-text-fill-color: var(--rosette);
}
/* On dark grounds (aubergine hero) the script accent goes rosette-soft */
.s-page-hero h1 em,
.page-header h1 em,
.page-title em {
  color: var(--rosette-soft);
  -webkit-text-fill-color: var(--rosette-soft);
}

/* Generic card scaffold for legacy page-body cards — paper bg, rule
   border, no radius, no glow. Catches `.game-card`, `.faq-card`,
   `.schedule-card`, `.test-card`, `.contact-card`, `.rules-card`. */
.game-card,
.faq-card,
.schedule-card,
.test-card,
.test-row,
.contact-card,
.rules-card,
.sidebar-card,
.form-card,
.card,
.feature-card,
.level-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ink);
}
.sidebar-card h3, .sidebar-card h4,
.form-card h2, .form-card h3 {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  color: var(--aubergine) !important;
  line-height: 1.1 !important;
}
.sidebar-card h3 em, .sidebar-card h4 em,
.form-card h2 em, .form-card h3 em {
  font-family: var(--script) !important;
  text-transform: none !important;
  font-style: normal !important;
  color: var(--rosette) !important;
  letter-spacing: 0 !important;
  background: none !important;
  -webkit-text-fill-color: var(--rosette) !important;
}
.sidebar-card p,
.form-card p,
.form-card label {
  font-family: var(--body) !important;
  color: var(--ink) !important;
}
.game-card-title,
.faq-card-title,
.schedule-card-title,
.test-card-title,
.contact-card-title,
.rules-card-title,
.card h1, .card h2, .card h3,
.feature-card h3,
.level-card h3 {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  color: var(--aubergine) !important;
  line-height: 1.1 !important;
}
.game-card-title em,
.feature-card h3 em,
.level-card h3 em,
.test-card-title em {
  font-family: var(--script) !important;
  text-transform: none !important;
  font-style: normal !important;
  color: var(--rosette) !important;
  letter-spacing: 0 !important;
  font-size: 1.05em !important;
  background: none !important;
  -webkit-text-fill-color: var(--rosette) !important;
}

/* Rules-section + about-section structural headings (the big block
   numbers and section titles) — common pattern across interior pages */
.rules-number,
.rules-section-label,
.about-section-label,
.section-number {
  font-family: var(--ui) !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  color: var(--rosette) !important;
}
.rules-section-title,
.rules-section-header h2,
.contact-card-title,
.faq-question {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  color: var(--aubergine) !important;
}
.rules-section-title em,
.faq-question em {
  font-family: var(--script) !important;
  text-transform: none !important;
  font-style: normal !important;
  color: var(--rosette) !important;
  letter-spacing: 0 !important;
  font-size: 1.05em !important;
  background: none !important;
  -webkit-text-fill-color: var(--rosette) !important;
}

/* "rules-intro" / "schedule-intro" / "contact-intro" — the lede
   paragraph at the top of body content */
.rules-intro,
.schedule-intro,
.contact-intro,
.games-intro,
.enter-intro,
.about-intro {
  font-family: var(--body) !important;
  font-size: var(--size-lg) !important;
  line-height: 1.5 !important;
  color: var(--ink-soft) !important;
}

/* Strip any legacy gold border-image or accent that leaks through */
[style*="border-image"][style*="F5B247"],
[style*="border-image"][style*="F58A9A"] {
  border-image: none !important;
}

/* ════════════════════════════════════════════════════════════════════
   GAME STRIP — slim shimmer band that lives on the Games page.
   Re-uses the home-page game-bar gradient (rosette-soft → sky →
   rosette-soft). 14s loop. The blue is the brand cue this section
   exists to deliver.
   ════════════════════════════════════════════════════════════════════ */
.s-game-strip {
  background: linear-gradient(90deg, var(--rosette-soft) 0%, var(--sky) 50%, var(--rosette-soft) 100%);
  background-size: 200% 100%;
  animation: gameShimmer 14s ease infinite;
  padding: clamp(28px, 5vw, 48px) 0;
  position: relative;
  overflow: hidden;
}
@keyframes gameShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .s-game-strip { animation: none; }
}
.s-game-strip-inner {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.s-game-strip-eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--aubergine);
}
.s-game-strip h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: var(--track-display);
  font-size: clamp(24px, 3.4vw, 36px);
  color: var(--aubergine);
  line-height: 1.1;
  margin: 0;
}
.s-game-strip h3 .script {
  font-family: var(--script);
  text-transform: none;
  color: var(--rosette);
  letter-spacing: 0;
  font-size: 1.08em;
  background: none;
  -webkit-text-fill-color: var(--rosette);
}

/* GAMES GRID — match the home page offer-grid scale: 2 columns,
   generous gap, paper cards with rule border (no rounded corners or
   floating drop-shadows). */
.games-section {
  background: var(--chalk);
  padding: clamp(56px, 8vw, 96px) 0 !important;
}
.games-section .games-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(28px, 4vw, 40px) !important;
  margin-bottom: 0 !important;
}
@media (max-width: 760px) {
  .games-section .games-grid { grid-template-columns: 1fr !important; }
}
.games-section .game-card {
  background: var(--paper) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.games-section .game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -24px rgba(61,15,54,0.25);
}
@media (prefers-reduced-motion: reduce) {
  .games-section .game-card { transition: none; }
  .games-section .game-card:hover { transform: none; }
}
.games-section .game-card-thumb {
  background: var(--aubergine);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.games-section .game-card-thumb img,
.games-section .game-card-thumb svg {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.games-section .game-card-thumb--coming {
  background: var(--chalk-deep) !important;
  display: flex; align-items: center; justify-content: center;
}
.games-section .game-card-tag {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--ui) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--chalk) !important;
  background: var(--rosette) !important;
  padding: 6px 12px !important;
  border-radius: 0 !important;
}
.games-section .coming-soon-label {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--ui) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--rosette) !important;
  border: 1px solid var(--rosette) !important;
  background: var(--paper) !important;
  padding: 5px 11px !important;
  border-radius: 0 !important;
}
.games-section .game-card-body {
  padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; flex: 1;
}
.games-section .game-card-title {
  font-family: var(--display) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display) !important;
  font-size: clamp(24px, 2.8vw, 32px) !important;
  color: var(--aubergine) !important;
  line-height: 1.1 !important;
  margin-bottom: 14px !important;
}
.games-section .game-card-title em {
  font-family: var(--script) !important;
  text-transform: none !important;
  font-style: normal !important;
  color: var(--rosette) !important;
  letter-spacing: 0 !important;
  font-size: 1.05em !important;
  background: none !important;
  -webkit-text-fill-color: var(--rosette) !important;
}
.games-section .game-card-desc {
  font-family: var(--body) !important;
  font-size: var(--size-base) !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  line-height: 1.55 !important;
  margin-bottom: 22px !important;
}
.games-section .game-card-meta {
  list-style: none; padding: 0; margin: 0 0 24px;
  border-top: 1px solid var(--rule);
}
.games-section .game-card-meta li {
  font-family: var(--ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ink-soft) !important;
  padding: 12px 0 12px 18px !important;
  border-bottom: 1px solid var(--rule) !important;
  position: relative;
}
.games-section .game-card-meta li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--rosette);
  border-radius: 0;
}
.games-section .game-card-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 28px !important;
  background: var(--rosette) !important;
  color: var(--chalk) !important;
  font-family: var(--display) !important;
  font-size: 14px !important;
 