/*
Theme Name: Cap10K
Theme URI: https://www.cap10k.com
Description: Custom theme for the Statesman Capitol 10,000 — Texas' Largest 10K. Tailwind Play CDN + ACF Pro. Built 2026.
Author: Walsh Creative
Version: 1.0.0
Requires PHP: 8.1
Text Domain: cap10k
*/
/* Tokens, components and normalization are appended by W1 (design system). */

/* ═══════════════════════════════════════════════════════════════════════════
   CAP10K DESIGN SYSTEM  (owner: W1)
   Utility-first: Tailwind classes live in templates. This file holds only what
   the Play CDN can't express well — @font-face, component classes, chrome
   mechanics, and motion.
   COLOUR RE-TUNE (after CP1) = two places: the :root block below AND
   cap10k_palette() in inc/tailwind-config.php. Nothing else hard-codes a hex.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS (mirrors the 500/600/900 stops of cap10k_palette()) ───────────── */
:root {
  --c10k-lime-500:    #C2D500;  --c10k-lime-600:    #A7B700;  --c10k-lime-900:    #464D00;
  --c10k-ink-500:     #54595F;  --c10k-ink-600:     #484D52;  --c10k-ink-900:     #1E2022;
  --c10k-blue-500:    #0F4B90;  --c10k-blue-600:    #0D407C;  --c10k-blue-900:    #051B34;
  --c10k-red-500:     #E20000;  --c10k-red-600:     #C20000;  --c10k-red-900:     #510000;
  --c10k-sky-500:     #0090BA;  --c10k-sky-600:     #007CA0;  --c10k-sky-900:     #003443;
  --c10k-gold-500:    #FEC646;  --c10k-gold-600:    #DAAA3C;  --c10k-gold-900:    #5B4719;
  --c10k-sunrise-500: #FF9015;  --c10k-sunrise-600: #DB7C12;  --c10k-sunrise-900: #5C3408;
  --c10k-sand-100:    #F5F3ED;  --c10k-sand-200:    #EAE7DC;

  --c10k-line:    #D3D4D5;             /* ink-200 */
  --c10k-body:    #3B3E43;             /* ink-700 */
  --c10k-muted:   #54595F;             /* ink-500 */
  --c10k-surface: #FFFFFF;

  --c10k-header-h:      4.5rem;
  --c10k-header-h-comp: 3.75rem;
  --c10k-ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --c10k-radius-card:   1rem;
}

/* ── FONTS — self-hosted Barlow (SIL OFL 1.1, see assets/fonts/OFL.txt) ───── */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/barlow-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

/* ── BASE ────────────────────────────────────────────────────────────────── */
/* Where a jump target sits: clear of the COMPACT masthead — by the time you have scrolled
   to an anchor the header is always compressed. Defined once here (W13 pulled the duplicate
   out of sections-data.css, which only loads on some pages and moved the offset with it).
   assets/js/toc.js and assets/js/accordion.js read it. */
:root { --c10k-anchor-offset: calc(var(--c10k-header-h-comp, 3.75rem) + 0.25rem); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--c10k-anchor-offset); }
body {
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; line-height: 1.7; color: var(--c10k-body);
  overflow-x: hidden;
  /* Four years of editing left bare URLs and upload paths pasted into running copy
     ("https://www.cap10k.com/the-kindness-campaign/", "/wp-content/uploads/…/GRD_Parking_Map_26.pdf").
     Each is a single unbreakable token that pushes the page sideways at 360px and fails
     MOB-OVERFLOW. `break-word` only breaks a token that genuinely does not fit, so ordinary
     copy — headings included — is untouched. Inherited, so it also covers the route cards
     and any future component. (W13) */
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 { color: var(--c10k-ink-900); }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }

/* Visible keyboard focus everywhere, never on mouse click. */
:focus-visible {
  outline: 3px solid var(--c10k-blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.c10k-footer :focus-visible,
.mobile-drawer :focus-visible,
.section-band--red :focus-visible { outline-color: var(--c10k-lime-500); }

/* ── SKIP LINK ───────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed; left: 1rem; top: -6rem; z-index: 200;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.75rem 1.5rem; border-radius: 0 0 0.75rem 0.75rem;
  background: var(--c10k-ink-900); color: #fff; text-decoration: none;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  transition: top 0.18s var(--c10k-ease);
}
.skip-link:focus { top: 0; }

/* ── TYPE HELPERS ────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.78rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--c10k-muted); margin: 0 0 0.5rem;
}
.font-display, .c10k-display {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
}

/* ── BUTTONS (CSS twins of cap10k_btn() — for converted legacy content) ───── */
.c10k-btn { text-decoration: none; }
.c10k-btn:hover { text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.95rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.09em; text-decoration: none;
  border: 0; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary   { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }
.btn--primary:hover   { background: #D4E24D; }
.btn--secondary { background: var(--c10k-blue-500); color: #fff; }
.btn--secondary:hover { background: var(--c10k-blue-600); }
.btn--outline   { background: transparent; color: var(--c10k-ink-900); box-shadow: inset 0 0 0 2px var(--c10k-ink-900); }
.btn--outline:hover   { background: var(--c10k-ink-900); color: #fff; }
.btn--ghost     { background: transparent; color: var(--c10k-body); }
.btn--ghost:hover     { color: var(--c10k-blue-600); background: #F6F7F7; }
.btn--red       { background: var(--c10k-red-500); color: #fff; }
.btn--red:hover       { background: var(--c10k-red-600); }
.btn--white     { background: #fff; color: var(--c10k-ink-900); }
.btn--white:hover     { background: #F8FAE0; }

/* ── CARD ────────────────────────────────────────────────────────────────── */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c10k-line);
  border-radius: var(--c10k-radius-card); overflow: hidden;
  transition: transform 0.3s var(--c10k-ease), box-shadow 0.3s var(--c10k-ease), border-color 0.2s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  border-color: var(--c10k-lime-500);
  box-shadow: 0 12px 40px -12px rgba(30, 32, 34, 0.28);
}
.card-media { overflow: hidden; background: var(--c10k-sand-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--c10k-ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.25rem 1.375rem 1.5rem; }

/* ── CALLOUTS ────────────────────────────────────────────────────────────── */
.callout {
  position: relative; border-radius: 0.875rem;
  border: 1px solid var(--c10k-line); border-left-width: 5px;
  background: #fff; padding: 1.125rem 1.25rem;
  margin: 1.75rem 0;
}
.callout > :first-child { margin-top: 0; }
.callout > :last-child  { margin-bottom: 0; }
.callout-title {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.callout--info    { border-left-color: var(--c10k-sky-500);  background: #F2FBFC; }
.callout--info    .callout-title { color: #00788C; }
.callout--warning { border-left-color: var(--c10k-gold-500); background: #FFFDF3; }
.callout--warning .callout-title { color: #846F08; }
.callout--success { border-left-color: var(--c10k-lime-500); background: #FCFDF2; }
.callout--success .callout-title { color: #677100; }
.callout--danger  { border-left-color: var(--c10k-red-500);  background: #FEF2F2; }
.callout--danger  .callout-title { color: #9E0000; }

/* ── TABLES ──────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c10k-line); border-radius: 0.875rem;
  margin: 1.75rem 0; background: #fff;
}
.table-wrap > table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th, .table-wrap td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--c10k-line); }
.table-wrap thead th {
  background: var(--c10k-ink-900); color: #fff; white-space: nowrap;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
}
.table-wrap tbody tr:nth-child(even) { background: #FBFAF7; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ── ACCORDION (native <details>) ─────────────────────────────────────────── */
details.accordion {
  background: #fff; border: 1px solid var(--c10k-line);
  border-radius: 0.875rem; margin: 0.625rem 0; overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
details.accordion[open] { border-color: var(--c10k-lime-500); box-shadow: 0 8px 24px -16px rgba(30,32,34,0.4); }
details.accordion > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: 0.9rem 1.125rem; cursor: pointer; list-style: none;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.15rem; font-weight: 700; line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--c10k-ink-900);
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after {
  content: "+"; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  background: var(--c10k-lime-500); color: var(--c10k-ink-900);
  font-family: Barlow, sans-serif; font-size: 1.15rem; font-weight: 500; line-height: 1;
  transition: background-color 0.2s ease;
}
details.accordion[open] > summary::after { content: "\2212"; }
details.accordion > summary:hover::after { background: #D4E24D; }
/* When a chevron SVG is used instead of the +/− marker */
details.accordion > summary:has(svg)::after,
details.accordion[open] > summary:has(svg)::after { content: none; }
details.accordion[open] > summary svg.accordion-chev,
details.accordion[open] > summary .group-open\:rotate-180 { transform: rotate(180deg); }
.accordion-body { padding: 0 1.125rem 1.125rem; }
.accordion-body > :first-child { margin-top: 0; }

/* ── SECTION BANDS ───────────────────────────────────────────────────────── */
.section-band { color: #fff; }
.section-band--lime { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }
.section-band--lime h1, .section-band--lime h2, .section-band--lime h3 { color: var(--c10k-ink-900); }
.section-band--ink  { background: var(--c10k-ink-900); }
.section-band--blue { background: var(--c10k-blue-500); }
.section-band--red  { background: var(--c10k-red-500); }
.section-band--ink h1, .section-band--ink h2, .section-band--ink h3,
.section-band--blue h1, .section-band--blue h2, .section-band--blue h3,
.section-band--red h1, .section-band--red h2, .section-band--red h3 { color: #fff; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.c10k-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c10k-line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.c10k-header.is-compact { box-shadow: 0 8px 24px -20px rgba(30, 32, 34, 0.6); }
.c10k-header-inner {
  min-height: var(--c10k-header-h);
  transition: min-height 0.25s var(--c10k-ease);
}
.c10k-header.is-compact .c10k-header-inner { min-height: var(--c10k-header-h-comp); }

.c10k-brand {
  display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
  min-height: 44px; text-decoration: none; flex: 0 0 auto;
}
.c10k-brand-logo {
  height: 2rem; width: auto;
  transition: height 0.25s var(--c10k-ease);
}
@media (min-width: 640px) { .c10k-brand-logo { height: 2.5rem; } }
.c10k-header.is-compact .c10k-brand-logo { height: 1.85rem; }
.c10k-brand-meta {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--c10k-muted);
  border-top: 2px solid var(--c10k-lime-500);
  padding-top: 0.3rem;
  max-width: max-content;
}
@media (min-width: 640px) { .c10k-brand-meta { font-size: 0.75rem; } }
.c10k-header.is-compact .c10k-brand-meta { display: none; }

/* ── PRIMARY NAV + MEGA ──────────────────────────────────────────────────── */
.c10k-navwrap { align-self: stretch; margin-left: 1.5rem; }
.c10k-nav { list-style: none; margin: 0; padding: 0; }
.c10k-nav-item { position: static; display: flex; }
.c10k-nav-link {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.1rem; position: relative;
  min-height: 44px; padding: 0.5rem 0.85rem;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c10k-ink-900); white-space: nowrap;
  transition: color 0.15s ease;
}
.c10k-nav-link > .c10k-nav-chev {
  position: absolute; right: 0.15rem; top: 50%;
  transform: translateY(-50%);
  opacity: 0.4; transition: transform 0.2s ease, opacity 0.2s ease;
}
.c10k-nav-item [aria-expanded="true"] > .c10k-nav-chev { transform: translateY(-50%) rotate(180deg); opacity: 1; }
.c10k-nav-link { padding-right: 1.3rem; }
.c10k-nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 1.3rem; bottom: -1px; height: 3px;
  background: var(--c10k-lime-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s var(--c10k-ease);
}
.c10k-nav-link:hover, .c10k-nav-item [aria-expanded="true"] { color: var(--c10k-blue-600); }
.c10k-nav-link:hover::after, .c10k-nav-item [aria-expanded="true"]::after { transform: scaleX(1); }
.c10k-nav-desc {
  font-family: Barlow, sans-serif; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.01em; text-transform: none; color: var(--c10k-muted);
}
.c10k-nav-label { display: inline-block; }

.c10k-mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 45;
  background: #fff;
  border-top: 3px solid var(--c10k-lime-500);
  border-bottom: 1px solid var(--c10k-line);
  box-shadow: 0 24px 48px -24px rgba(30, 32, 34, 0.45);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s var(--c10k-ease);
}
.c10k-mega.is-open { opacity: 1; transform: translateY(0); }
.c10k-mega ul { list-style: none; margin: 0; padding: 0; }
.c10k-mega-col--featured {
  border-radius: 0.875rem; background: #FCFDF2;
  box-shadow: inset 0 0 0 1px var(--c10k-lime-300, #E4ED8F);
  padding: 1rem 1.125rem; margin: -0.5rem -0.5rem 0;
}
.c10k-mega-head {
  margin: 0; padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--c10k-line);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.9rem; font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--c10k-muted);
}
a.c10k-mega-head--link { display: block; color: var(--c10k-ink-900); text-decoration: none; }
a.c10k-mega-head--link:hover { color: var(--c10k-blue-600); }
.c10k-mega-link {
  display: block; padding: 0.3rem 0; min-height: 1.9rem;
  font-size: 0.95rem; font-weight: 500; line-height: 1.35;
  color: var(--c10k-body); text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.c10k-mega-link:hover { color: var(--c10k-blue-600); padding-left: 0.3rem; }

/* ── HEADER CONTROLS ─────────────────────────────────────────────────────── */
.c10k-utility-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--c10k-muted); text-decoration: none;
  transition: color 0.15s ease;
}
.c10k-utility-link:hover { color: var(--c10k-blue-600); }
.c10k-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 0; border-radius: 9999px; background: transparent; cursor: pointer;
  color: var(--c10k-ink-900);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.c10k-iconbtn:hover { background: #EAEBEC; color: var(--c10k-blue-600); }
.c10k-iconbtn--quiet:hover { background: #EAEBEC; }
.c10k-register-closed {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 1.15rem; border-radius: 9999px;
  background: #EAEBEC; color: var(--c10k-muted);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.8rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.09em;
}

/* ── ANNOUNCEMENT BAR ────────────────────────────────────────────────────── */
.announcement { position: relative; z-index: 60; font-size: 0.9rem; }
.announcement-text { margin: 0; font-weight: 500; }
.announcement-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.announcement-close {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 9999px;
  background: transparent; cursor: pointer; color: inherit; opacity: 0.65;
}
.announcement-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.08); }
.announcement--lime { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }
.announcement--ink  { background: var(--c10k-ink-900);  color: #fff; }
.announcement--blue { background: var(--c10k-blue-500); color: #fff; }
.announcement--red  { background: var(--c10k-red-500);  color: #fff; }
.announcement--ink .announcement-close:hover,
.announcement--blue .announcement-close:hover,
.announcement--red .announcement-close:hover { background: rgba(255, 255, 255, 0.16); }

/* ── MOBILE DRAWER (dialog) ──────────────────────────────────────────────── */
dialog.mobile-drawer {
  position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  border: 0; background: transparent; overflow: hidden;
  /* Belt to the JS touchmove guard in theme.js: no drag that reaches the dialog
     shell may chain into the page behind it.  (W20) */
  overscroll-behavior: contain;
}
dialog.mobile-drawer::backdrop { background: rgba(11, 11, 11, 0.55); opacity: 0; transition: opacity 0.3s ease; }
dialog.mobile-drawer.is-open::backdrop { opacity: 1; }
/* position:fixed, not absolute — WebKit/iOS resolves the right-anchored offset of an
   ABSOLUTELY positioned child of a top-layer <dialog> twice, painting the panel one full
   panel-width to the left (left = 100vw - 2 x panel width) while getComputedStyle still
   reports the correct left/right. Pinning the panel to the viewport takes it off the
   dialog's mis-resolved containing block; the dialog is itself fixed at inset:0, so the
   box is identical on every other engine. Physical longhands, not the `inset` shorthand,
   so they beat the UA sheet's inset-inline-start/end on the dialog's children. (W19) */
.mobile-drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto;
  display: flex; flex-direction: column;
  width: min(23rem, 92vw);
  background: var(--c10k-ink-900); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(100%);
  transition: transform 0.32s var(--c10k-ease);
}
dialog.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
.c10k-drw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky; top: 0; background: var(--c10k-ink-900); z-index: 2;
}
.c10k-drw-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer;
}
.c10k-drw-close:hover { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }
.c10k-drw-cta { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.125rem 1.25rem; }
/* Dark-surface variant of cap10k_btn(…, 'outline'): the Tailwind utilities
   (text-ink-900 / ring-ink-900) are injected by the Play CDN after this file,
   so beating them needs !important — this is the one place that does. */
.c10k-drw-btn-outline, .c10k-footer-btn-outline {
  color: #fff !important;
  --tw-ring-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.c10k-drw-btn-outline:hover, .c10k-footer-btn-outline:hover {
  background: #fff !important;
  color: var(--c10k-ink-900) !important;
  --tw-ring-color: #fff !important;
}
.c10k-drw-nav { padding: 0 0.75rem 0.5rem; }
.c10k-drw-lvl0, .c10k-drw-lvl1, .c10k-drw-lvl2 { list-style: none; margin: 0; padding: 0; }
.c10k-drw-lvl1 { padding: 0 0 0.4rem 0.5rem; }
.c10k-drw-lvl2 { padding: 0 0 0.35rem 0.75rem; border-left: 1px solid rgba(255, 255, 255, 0.14); margin-left: 0.35rem; }
.c10k-drw-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 48px; padding: 0.6rem 0.75rem; cursor: pointer; list-style: none;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.2rem; font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff;
  border-radius: 0.5rem;
}
.c10k-drw-summary::-webkit-details-marker { display: none; }
.c10k-drw-summary:hover { background: rgba(255, 255, 255, 0.07); }
.c10k-drw-summary--sub {
  font-size: 0.95rem; letter-spacing: 0.11em; color: rgba(255, 255, 255, 0.72);
  min-height: 44px; padding: 0.45rem 0.75rem;
}
.c10k-drw-details[open] > .c10k-drw-summary { color: var(--c10k-lime-500); }
.c10k-drw-details--sub[open] > .c10k-drw-summary--sub { color: rgba(255, 255, 255, 0.85); }
.c10k-drw-link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.975rem; line-height: 1.3; color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.c10k-drw-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.c10k-drw-link--top {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.2rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #fff; min-height: 48px;
}
.c10k-drw-link--overview {
  font-size: 0.85rem; color: var(--c10k-lime-500); text-transform: uppercase;
  font-family: 'Barlow Condensed', Barlow, sans-serif; font-weight: 700; letter-spacing: 0.11em;
  margin-left: 0.5rem;
}
.c10k-drw-foot {
  margin-top: auto; padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; gap: 1.125rem;
}
.c10k-drw-date {
  display: flex; align-items: flex-start; gap: 0.55rem; margin: 0;
  font-size: 0.9rem; line-height: 1.35; color: rgba(255, 255, 255, 0.8);
}
.c10k-drw-social { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }

/* ── SOCIAL BUTTON (dark surfaces) ───────────────────────────────────────── */
.c10k-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.c10k-social-btn:hover { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }

/* ── SEARCH ──────────────────────────────────────────────────────────────── */
dialog.search-modal {
  position: fixed; inset: 0; margin: 0; padding: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  border: 0; background: transparent;
  /* The dialog is the scroller here (the panel is a normal-flow child), so the
     containment belongs on it — see the drawer note above.  (W20) */
  overscroll-behavior: contain;
}
dialog.search-modal::backdrop { background: rgba(11, 11, 11, 0.6); opacity: 0; transition: opacity 0.25s ease; }
dialog.search-modal.is-open::backdrop { opacity: 1; }
.search-modal-panel {
  width: min(40rem, 92vw); margin: 12vh auto 0;
  background: #fff; border-radius: var(--c10k-radius-card);
  padding: 1.5rem; box-shadow: 0 32px 64px -24px rgba(11, 11, 11, 0.5);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s var(--c10k-ease);
}
dialog.search-modal.is-open .search-modal-panel { opacity: 1; transform: translateY(0); }
.c10k-searchform { width: 100%; }
.c10k-searchfield {
  display: flex; align-items: center; gap: 0.6rem;
  border: 2px solid var(--c10k-line); border-radius: 9999px;
  padding: 0.25rem 0.45rem 0.25rem 1.05rem; background: #fff;
  transition: border-color 0.15s ease;
}
.c10k-searchfield:focus-within { border-color: var(--c10k-blue-500); }
.c10k-searchinput {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  border: 0; background: transparent; font-size: 1rem; color: var(--c10k-ink-900);
}
/* The pill wrapper shows pointer focus via `.c10k-searchfield:focus-within`, but a keyboard
   user needs a ring ON the control — `outline: none` on plain `:focus` removed the global
   `:focus-visible` ring too (same trap as `.c10k-carousel__track`). (W13) */
.c10k-searchinput:focus:not(:focus-visible) { outline: none; }
.c10k-searchinput::-webkit-search-cancel-button { -webkit-appearance: none; }
.c10k-searchsubmit {
  flex: 0 0 auto; min-height: 44px; padding: 0 1.25rem;
  border: 0; border-radius: 9999px; cursor: pointer;
  background: var(--c10k-lime-500); color: var(--c10k-ink-900);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
}
.c10k-searchsubmit:hover { background: #D4E24D; }
.mobile-drawer .c10k-searchfield { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.mobile-drawer .c10k-searchinput { color: #fff; }
.mobile-drawer .c10k-searchinput::placeholder { color: rgba(255, 255, 255, 0.62); }

/* ── COUNTDOWN ───────────────────────────────────────────────────────────── */
.countdown-tiles { display: flex; gap: 0.5rem; justify-content: center; }
@media (min-width: 640px) { .countdown-tiles { gap: 0.75rem; } }
.countdown-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 4.25rem; padding: 0.7rem 0.5rem 0.55rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
@media (min-width: 640px) { .countdown-tile { min-width: 5.25rem; padding: 0.85rem 0.75rem 0.65rem; } }
.countdown-num {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 2rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: #fff;
}
@media (min-width: 640px) { .countdown-num { font-size: 2.75rem; } }
.countdown-label {
  margin-top: 0.32rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.88);
}
.countdown-done {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em; color: #fff; margin: 0;
}
.countdown--on-red .countdown-tile { background: rgba(20, 0, 0, 0.34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.countdown--on-light .countdown-tile { background: var(--c10k-ink-900); box-shadow: none; }
.countdown--on-light .countdown-done { color: var(--c10k-ink-900); }
.countdown--on-dark .countdown-tile { background: rgba(255, 255, 255, 0.08); }

/* ── MARQUEE ─────────────────────────────────────────────────────────────── */
@keyframes c10k-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 3rem; width: max-content;
  animation: c10k-marquee 45s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item img {
  height: 2.75rem; width: auto; max-width: none;
  filter: grayscale(1); opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.marquee-item a:hover img, .marquee-item a:focus-visible img { filter: none; opacity: 1; }

/* ── SPONSOR STRIP ───────────────────────────────────────────────────────── */
.c10k-sponsors { background: var(--c10k-sand-100); border-top: 1px solid var(--c10k-line); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.c10k-footer { background: var(--c10k-ink-900); color: rgba(255, 255, 255, 0.75); }
.c10k-footer-head {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.85rem; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.18em; color: #fff;
}
.c10k-footer-link {
  display: flex; align-items: center; min-height: 44px; padding: 0.15rem 0;
  font-size: 0.95rem; line-height: 1.35; color: rgba(255, 255, 255, 0.68);
  text-decoration: none; transition: color 0.15s ease;
}
.c10k-footer-link:hover { color: var(--c10k-lime-500); }
.c10k-footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.c10k-legal-link {
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  transition: color 0.15s ease;
}
.c10k-legal-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.c10k-footer-legal li a { display: inline-flex; align-items: center; min-height: 44px; }
/* Customer-supplied credit line — same small print as .c10k-legal-link.  (W19) */
.author-info { margin: 0; color: rgba(255, 255, 255, 0.6); }
.author-info a { color: inherit; text-decoration: none; white-space: nowrap; transition: color 0.15s ease; }
.author-info a:hover, .author-info a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Legal band layout (W21). Mobile-first: one centred stack, the separators off so the
   links read as line breaks. At 768 the links turn into one rule-separated row; at 860
   the meta line joins them as a second row; at 1024 neither row may wrap and the meta
   spreads © · credit · network across the full measure.
   No widths are hard-coded — every row is content-sized flex. */
.c10k-legal-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.85rem; text-align: center;
}
.c10k-legal-nav { min-width: 0; }
.c10k-legal-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center;
}
.c10k-legal-meta {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; min-width: 0;
}
.c10k-legal-copy, .c10k-legal-network { margin: 0; }
/* The network tag is the same uppercase eyebrow it has always been — never broken in two. */
.c10k-legal-network { white-space: nowrap; }

@media (min-width: 768px) {
  .c10k-legal-inner { align-items: stretch; text-align: left; gap: 0.4rem; }
  .c10k-legal-list {
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center;
    row-gap: 0.15rem;
  }
  /* 1px hairline between links: an empty pseudo-element, so it is decorative to a
     screen reader by construction and needs no aria-hidden host. */
  .c10k-legal-list > li + li { position: relative; margin-left: 0.9rem; padding-left: 0.9rem; }
  .c10k-legal-list > li + li::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 0.875rem; background: rgba(255, 255, 255, 0.4);
  }
  /* Still stacked here, but left-aligned with the links above it. */
  .c10k-legal-meta { align-items: flex-start; gap: 0.35rem; }
}

/* 860 is where © + credit + network (≈716px of type) plus two 2rem gaps clear the
   px-4 gutters. Below it the three would wrap and orphan the network tag on its own
   line, which is exactly the ragged look this row was rebuilt to remove. */
@media (min-width: 860px) {
  .c10k-legal-meta {
    flex-direction: row; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 0.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .c10k-legal-inner { gap: 0.25rem; }
  .c10k-legal-list { flex-wrap: nowrap; }
  .c10k-legal-list > li + li { margin-left: 1.5rem; padding-left: 1.5rem; }
  .c10k-legal-meta { flex-wrap: nowrap; gap: 2.5rem; }
  .c10k-legal-meta > * { flex: 0 1 auto; }
}

/* ── STICKY MOBILE CTA ───────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--c10k-ink-900);
  border-top: 3px solid var(--c10k-lime-500);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 0.3s var(--c10k-ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; }
.sticky-cta-date {
  margin: 0; font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.05rem; font-weight: 700; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
}
.sticky-cta-sub { margin: 0.12rem 0 0; font-size: 0.75rem; line-height: 1; color: rgba(255, 255, 255, 0.62); }

/* ── SIDEBAR NAV + TOC (used by W5) ──────────────────────────────────────── */
.sidebar-nav { font-size: 0.95rem; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar-nav a {
  display: block; padding: 0.5rem 0.85rem; border-left: 3px solid transparent;
  color: var(--c10k-body); text-decoration: none; line-height: 1.35;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.sidebar-nav a:hover { background: #F6F7F7; color: var(--c10k-blue-600); }
.sidebar-nav .is-current > a, .sidebar-nav a[aria-current="page"] {
  border-left-color: var(--c10k-lime-500); color: var(--c10k-ink-900); font-weight: 600; background: #FCFDF2;
}
.sidebar-nav ul ul a { padding-left: 1.6rem; font-size: 0.9rem; color: var(--c10k-muted); }

.toc { border-left: 3px solid var(--c10k-lime-500); padding: 0.25rem 0 0.25rem 1.125rem; margin: 2rem 0; }
.toc-title {
  margin: 0 0 0.6rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--c10k-muted);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 0.28rem 0; font-size: 0.95rem; line-height: 1.4;
  color: var(--c10k-body); text-decoration: none;
}
.toc a:hover { color: var(--c10k-blue-600); }
.toc a.is-active { color: var(--c10k-blue-600); font-weight: 600; }

/* ── EMBEDS (used by W3b/W10) ────────────────────────────────────────────── */
.embed-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--c10k-radius-card); overflow: hidden; background: var(--c10k-ink-900);
}
.embed-frame > iframe, .embed-frame > video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.embed-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--c10k-radius-card); background: var(--c10k-ink-900);
}
.embed-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.25s ease, transform 0.5s var(--c10k-ease); }
.embed-facade:hover img { opacity: 0.9; transform: scale(1.03); }
.embed-facade-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; pointer-events: none;
}
.embed-facade-play svg { width: 4.5rem; height: 4.5rem; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5)); }
.embed-facade-label {
  position: absolute; left: 1rem; bottom: 1rem; margin: 0; color: #fff;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── REVEAL ──────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s var(--c10k-ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; transform: none !important; flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; width: 100%; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mobile-drawer-panel, .sticky-cta { transition: none !important; }
  .c10k-mega { transition: none !important; }
  video[autoplay] { display: none; }
}

/* ── PRINT ───────────────────────────────────────────────────────────────── */
@media print {
  .c10k-header, .c10k-footer, .sticky-cta, .announcement, .mobile-drawer, .search-modal { display: none !important; }
  body { color: #000; }
}

/* ------------------------------------------------------------------ */
/* Section wrapper — THE canonical definition, emitted by inc/sections.php. */
/* W3a's defensive duplicate in assets/css/sections-cards.css was removed   */
/* in W13 and its refinements (title rule, tighter callout/button rhythm,   */
/* alignment helpers) folded in here. Do not re-add a copy elsewhere.       */
/* ------------------------------------------------------------------ */
.section { position: relative; width: 100%; padding-block: 3.5rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }
.section__inner { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .section__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .section__inner { padding-inline: 2rem; } }
.section__title { position: relative; font-family: "Barlow Condensed", Barlow, system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.08; color: var(--c10k-ink-900); margin: 0 0 1.75rem; padding-top: 1.3rem; text-wrap: balance; }
h3.section__title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.section__title::before { content: ""; position: absolute; top: 0; left: 0; width: 2.75rem; height: 4px; background: var(--c10k-lime-500); border-radius: 2px; }
.section__intro { max-width: 72ch; color: var(--c10k-ink-600); margin: -0.5rem 0 2rem; }



/* Callouts and button rows are punctuation, not chapters: tighter rhythm, and a
   run of them on the same background reads as one block. */
.section--layout-callout,
.section--layout-buttons { padding-block: 2rem; }
@media (min-width: 1024px) { .section--layout-callout, .section--layout-buttons { padding-block: 2.5rem; } }
.section--layout-callout.section--default + .section--layout-callout.section--default,
.section--layout-callout.section--muted + .section--layout-callout.section--muted,
.section--layout-buttons.section--default + .section--layout-buttons.section--default { padding-top: 0; }

/* Section-title alignment (buttons rows adopt the row's own alignment). */
.c10k-sec--title-center .section__title { text-align: center; }
.c10k-sec--title-center .section__title::before { left: 50%; transform: translateX(-50%); }
.c10k-sec--title-right .section__title { text-align: right; }
.c10k-sec--title-right .section__title::before { left: auto; right: 0; }
.section--layout-cta-band .section__title,
.section--layout-stats .section__title,
.section--layout-icon-triads .section__title,
.section--layout-logo-grid .section__title { text-align: center; }
.section--layout-cta-band .section__title::before,
.section--layout-stats .section__title::before,
.section--layout-icon-triads .section__title::before,
.section--layout-logo-grid .section__title::before { left: 50%; transform: translateX(-50%); }

/* The lime rule disappears on a lime band. */
.section-band--lime .section__title::before { background: var(--c10k-ink-900); }
/* Tones */
.section--muted { background: var(--c10k-sand-100, #F5F3ED); }
.section--lime  { background: var(--c10k-lime-500); color: var(--c10k-ink-900); }
.section--lime .section__title::before { background: var(--c10k-ink-900); }
.section--ink, .section--blue, .section--red, .section--image { color: #fff; }
.section--ink   { background: var(--c10k-ink-900); }
.section--blue  { background: var(--c10k-blue-600); }
.section--red   { background: var(--c10k-red-600); }
/* The band photograph. `--section-bg` is set by cap10k_section_wrapper_open() as `url(…)` on any
   row that carries a `background_image`; before W13d this rule named no image at all, so five
   converted bands (the athlete portrait on /elite-athletes/ among them) stored a picture and
   painted a flat ink rectangle. Longhands, not the shorthand, so an unset `--section-bg` falls
   back to `none` instead of invalidating the whole declaration. */
.section--image {
  background-color: var(--c10k-ink-900);
  background-image: var(--section-bg, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Any OTHER tone with a photograph behind it: the tone still owns the colour scheme, so the
   picture goes under a scrim in the band's own ground colour. At .82 the darkest possible
   photograph composites to #D1D1D1, which keeps ink-700 body copy (#54595F) at 5.0:1 — above the
   4.5:1 AA floor — so a band can gain a photograph without any text on it becoming a contrast
   failure. `.section--image` above is the tone that inverts that bargain: dark scrim, white text. */
.section--has-bg {
  background-image: linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)), var(--section-bg, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.55), rgba(11,11,11,.75)); }
.section--image > * { position: relative; }
.section--ink .section__title, .section--blue .section__title, .section--red .section__title, .section--image .section__title,
.section--ink h2, .section--ink h3, .section--blue h2, .section--blue h3, .section--red h2, .section--red h3, .section--image h2, .section--image h3,
.section--ink .section__intro, .section--blue .section__intro, .section--red .section__intro, .section--image .section__intro { color: #fff; }
.section--ink .prose, .section--blue .prose, .section--red .prose, .section--image .prose { color: rgba(255,255,255,.88); }
.section--ink .prose a, .section--blue .prose a, .section--red .prose a, .section--image .prose a { color: #fff; }
.section--ink .prose h2, .section--ink .prose h3, .section--blue .prose h2, .section--blue .prose h3, .section--red .prose h2, .section--red .prose h3, .section--image .prose h2, .section--image .prose h3 { color: #fff; }

/* ── PASSWORD-PROTECTED DOCUMENTS (inc/protected.php) ─────────────────────
   The gate replaces the whole body, so it carries its own hero ground rather
   than depending on assets/css/page.css — that file is only enqueued for sub
   pages, and a protected POST renders through single.php. Kept in style.css so
   the gate looks the same on every content type. */
.c10k-page--protected .c10k-phero { background: var(--c10k-sand-100); border-bottom: 1px solid var(--c10k-sand-200); }
.c10k-page--protected .c10k-page__main { max-width: 42rem; margin-inline: auto; padding: 2.5rem var(--c10k-page-gutter, 1rem) 4rem; }
.c10k-protected .post-password-form { margin: 0; }
.c10k-protected .post-password-form p { margin: 0 0 1rem; color: var(--c10k-ink-700); }
.c10k-protected .post-password-form label {
  display: block; font-family: 'Barlow Condensed', Barlow, sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--c10k-ink-900);
}
.c10k-protected .post-password-form input[type="password"] {
  display: block; width: 100%; max-width: 22rem; min-height: 44px; margin-top: 0.4rem;
  padding: 0.6rem 0.9rem; border: 2px solid var(--c10k-ink-900); border-radius: 8px;
  background: #fff; color: var(--c10k-ink-900); font-size: 1rem;
}
.c10k-protected .post-password-form input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 1rem; padding: 0.75rem 1.5rem; border: 0; border-radius: 9999px;
  background: var(--c10k-lime-500); color: var(--c10k-ink-900); cursor: pointer;
  font-family: 'Barlow Condensed', Barlow, sans-serif; font-size: 0.95rem; font-weight: 700;
  line-height: 1; text-transform: uppercase; letter-spacing: 0.09em;
}
.c10k-protected .post-password-form input[type="submit"]:hover { background: #D4E24D; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMAGE RECOVERY  (owner: W17b-A — plans/image-audit.md rules R1b · R2 · R3 · R8)
   Five bands the rebuild had no styling for, plus one guard. Every rule is
   additive: nothing here fires unless the matching field/attachment is present,
   so a route or listing without one renders exactly as it did before.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── R1b · the route's own 2000×500 header band (template-parts/route/banner.php) ──
   Full bleed, no crop, no frame — the live page shows the whole artwork. Ink
   ground so a slow connection never flashes white through the band. */
.c10k-rt-banner {
  display: block;
  width: 100%;
  background: var(--c10k-ink-900);
  line-height: 0;
}
.c10k-rt-banner__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── R2 · the RunGo wordmark on the promo card ──────────────────────────────
   A 500×500 badge: capped, never stretched, and it keeps its own aspect. */
.c10k-rt-rungo__logo { margin: 0 0 0.9rem; line-height: 0; }
.c10k-rt-rungo__logoimg {
  display: block;
  width: auto;
  max-width: 5rem;
  height: auto;
}

/* ── R3 · per-route PERKS artwork in place of the gift glyph ────────────────
   The glyph chip is a 2.75rem lime square; route art is bigger and unframed,
   so it reads as illustration rather than as an icon in a button. */
.c10k-rt-card__icon.c10k-rt-card__icon--art {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  background: none;
  overflow: hidden;
}
.c10k-rt-card__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── R8 · hero banner on the listing templates ─────────────────────────────
   templates/feed.php and templates/route-index.php were handed hero_image and
   never drew it. Same picture + scrim as .c10k-phero--image in page.css. */
.c10k-listhead-shell { position: relative; isolation: isolate; }
.c10k-listhead-shell__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--c10k-ink-900);
}
.c10k-listhead-shell__img { width: 100%; height: 100%; object-fit: cover; }
.c10k-listhead-shell--image { color: #fff; border-bottom: 4px solid var(--c10k-lime-500); }
.c10k-listhead-shell--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--c10k-ink-900) 94%, transparent) 0%,
      color-mix(in srgb, var(--c10k-ink-900) 86%, transparent) 48%,
      color-mix(in srgb, var(--c10k-ink-900) 60%, transparent) 100%);
}
.c10k-listhead-shell--image > .c10k-listhead {
  position: relative;
  z-index: 2;
  background: none;
}
.c10k-listhead-shell--image .c10k-listhead-title { color: #fff; }
.c10k-listhead-shell--image .c10k-listhead-intro { color: color-mix(in srgb, #fff 88%, transparent); }
.c10k-listhead-shell--image .eyebrow { color: var(--c10k-lime-500); }
.c10k-listhead-shell--image .c10k-rss-link { color: #fff; }
.c10k-listhead-shell--image .c10k-rss-link:hover { color: var(--c10k-lime-500); }

.c10k-rt-idxhero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.c10k-rt-idxhero__img { width: 100%; height: 100%; object-fit: cover; }
/* The listing hero is already ink; the picture sits under the same wash so the
   lime halo (.c10k-rt-idxhero::after) and the white type keep their contrast. */
.c10k-rt-idxhero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--c10k-ink-900) 92%, transparent) 0%,
      color-mix(in srgb, var(--c10k-ink-900) 84%, transparent) 48%,
      color-mix(in srgb, var(--c10k-ink-900) 62%, transparent) 100%);
}
.c10k-rt-idxhero--image > .c10k-rt-wrap { position: relative; z-index: 2; }

/* ── An icon is never full width (template-parts/sections/image.php) ────────
   ≤600 px wide or ≤300 px tall = a glyph or a sponsor lockup. Natural size,
   centred, no sand frame; two class selectors so it beats .c10k-media--full
   and .c10k-media--icon in sections-media.css, which loads after this file. */
.c10k-media.c10k-media--natural {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.c10k-media.c10k-media--natural .c10k-figure__frame {
  width: auto;
  max-width: var(--c10k-media-natural, 100%);
  background: none;
  border-radius: 0;
}
.c10k-media.c10k-media--natural .c10k-figure__img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Print parity with page.css: a dark photo band is not printed. (W17b-A) */
@media print {
  .c10k-listhead-shell--image { color: inherit; border-bottom: 1px solid #000; }
  .c10k-listhead-shell--image::after,
  .c10k-listhead-shell__bg,
  .c10k-rt-idxhero__bg,
  .c10k-rt-idxhero--image::before { display: none; }
  .c10k-listhead-shell--image .c10k-listhead-title,
  .c10k-listhead-shell--image .c10k-listhead-intro { color: #000; }
}
