/* static/css/style.css
 *
 * Colours live in two layers, both in :root (section 1):
 *   Layer 1, palette: raw hex, one name per colour.
 *   Layer 2, purpose: --cc-* names, each one a var() of a
 *   palette colour. Rules below only use layer 2.
 * To reskin, change layer 1 (or repoint a layer 2 name).
 * One exception: the check badge in section 11 is an SVG
 * data URI, so it keeps raw hex (see the comment there).
 *
 * Sections:
 *   1. Variables
 *   2. Reset / base (2b: dark surfaces)
 *   3. Layout helpers
 *   4. Skip link
 *   5. Header / nav
 *   6. Buttons
 *   7. Hero
 *   8. Topo-divider component
 *   9. Footer
 *  10. Reduced motion
 *  11. Programs page (incl. programs dropdown)
 *  12. Registration page
 *  13. Schedule page
 *  14. Camps page
 *  15. Sponsors
 *  16. Contact
 *  17. Coaches
 *  18. Sponsor banner
 *  19. Error 404 (19a: mobile)
 *  20. About page
 *  21. Programs: build your season
 */

/* 1. Variables ----------------------------------------------- */

@font-face {
  font-family: "Cabin";
  src: url("../fonts/Cabin-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabin";
  src: url("../fonts/Cabin-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Solitreo";
  src: url("../fonts/Solitreo-Regular.ttf")
       format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {

  /* --- LAYER 1: PALETTE (raw hex lives here and nowhere else) --- */
  --navy: #1c3550;
  --night: #121a26;
  --steel: #3e6c8c;
  --mist: #9fb0b8;
  --board: #E8EDF0;
  --cream: #fbf7ec;
  --white: #ffffff;
  --royal: #4169D1;
  --red: #c0392b;
  --orange: #b45309;
  --yellow: #f5c518;

  /* --- LAYER 2: PURPOSE (only var() of the palette above) --- */

  /* Backgrounds and panels */
  --cc-bg: var(--board);               /* Page background (board) */
  --cc-bg-raised: var(--white);        /* Light band on the page */
  --cc-surface: var(--navy);           /* Cards, panels, footer */
  --cc-surface-muted: color-mix(in srgb,
                      var(--steel) 12%, var(--board)); /* Tinted panel */
  --cc-dark: var(--night);             /* Header, mobile menu, hero bg,
                                          dark text on the yellow sign */

  /* Text on the light page (panels flip these, see section 2b) */
  --cc-ink: var(--navy);               /* Body text, headings, links */
  --cc-fog: var(--steel);              /* Secondary text */

  /* Text on dark surfaces and photos */
  --cc-ink-inverse: var(--cream);      /* Main text, nav, button text */
  --cc-fog-inverse: var(--mist);       /* Secondary text, footer links */
  --cc-ink-bright: var(--white);       /* Footer titles, sign text */

  /* Structure and borders */
  --cc-line: var(--steel);             /* Borders, card outlines */
  --cc-line-soft: var(--mist);         /* Subtle borders, nav underline */

  /* Accents */
  --cc-primary: var(--steel);          /* Links, focus, active states */
  --cc-button: var(--royal);           /* CTA buttons, cream text 5.3:1 */

  /* Signs and tags */
  --cc-alert: var(--red);              /* 404 sign */
  --cc-caution: var(--yellow);         /* 404 sign */
  --cc-org-snowboard: var(--orange);   /* Schedule row edge and dot */

  /* Type. Swap --font-display for a real condensed webfont
     (Oswald, Bebas Neue) later - everything reading this
     variable updates automatically. */
  --font-body: "Lato", -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Cabin", var(--font-body);
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  /* Spacing scale, used for padding/margin/gap throughout */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --header-height: 4.6rem;
  --radius: 4px;
  --max-width: 72rem;

  --hero-slide: 2.5s;
  --hero-zoom: 1.1;
}

/* 2. Reset / base ---------------------------------------------*/

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cc-bg);
  color: var(--cc-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* Home only: transparent header floating over the hero */

body.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--cc-dark) 50%, transparent),
    transparent
  );
}

body.page-home .hero-full {
  height: 100svh;
  overflow: visible;
  background: transparent;
}

body.page-home .hero-full__slides {
  position: fixed;
  background: var(--cc-dark);
  inset: 0;
  height: 100lvh;
  overflow: hidden;
  z-index: -1;
  transform: translateZ(0);
}

body.page-home .site-footer {
  margin-top: 0;
}

/* Over the hero the bar is transparent, so nav text gets a
   shadow. The open mobile menu has a solid bar: no shadow. */
body.page-home .brand-name,
body.page-home .site-nav > ul > li > a {
  color: var(--cc-ink-inverse);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

body.page-home .site-header:has(.nav-toggle-input:checked) .brand-name,
body.page-home .site-header:has(.nav-toggle-input:checked)
  .site-nav > ul > li > a {
  text-shadow: none;
}

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

a {
  color: var(--cc-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cc-primary);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--cc-ink);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

/* 2b. Dark surfaces -----------------------------------------------
   The page is light, so anything sitting on a navy panel flips the
   text variables. Everything inside then reads the flipped values
   with no markup changes. Add a selector here when a new component
   gets a --cc-surface background. */

.program-card,
.camp-card,
.coach-face,
.dropdown-menu,
.sched-pill label {
  --cc-ink: var(--cc-ink-inverse);
  --cc-fog: var(--cc-fog-inverse);
  color: var(--cc-ink);
}

/* Schedule rows become navy cards on small screens */
@media (max-width: 640px) {
  .schedule-table tr {
    --cc-ink: var(--cc-ink-inverse);
    --cc-fog: var(--cc-fog-inverse);
    color: var(--cc-ink);
  }
}

/* The 404 text sits on a photo, not on the page */
.error-404 {
  --cc-ink: var(--cc-ink-inverse);
  --cc-fog: var(--cc-fog-inverse);
  color: var(--cc-ink);
}

/* 3. Layout helpers ------------------------------------------ */

.header-inner,
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Shared intro block for every content page (programs, about,
   camps, etc.) under the nav. Reconcile with coaches.html if it
   already has its own header markup/class for this job. */
/* Base Layout (Desktop / Tablet) */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-sm);

  /* Grid Layout Setup */
  display: grid;
  grid-template-columns: 1fr auto; /* Text left, image right */
  gap: var(--space-sm) var(--space-md);
  align-items: center;
}

.page-header h1 {
  font-size: 2rem;
  grid-column: 1 / -1; /* Spans full width across top */
  margin: 0;
}

.page-header .lede {
  grid-column: 1; /* Sits in column 1 */
  margin: 0;
  max-width: 42rem;
  color: var(--cc-fog);
  font-size: 1.05rem;
}


.page-header .season-title {
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
}

.page-header--season {
  grid-template-columns: 1fr;
}

.page-header--season .season-title {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  font-size: clamp(2.63rem,
            calc((100vw - 3rem) / 15.5), 3.5rem);
}

.season-art {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: end;
  width: min(33.1rem, calc((100vw - 3rem) * 0.61));
  max-width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .page-header.page-header--season {
    --season-fs: 2.25rem;
  }

  .page-header .season-art {
    grid-area: 2 / 1;
    width: min(85%, 20rem);
    margin-top: var(--space-sm);
  }
}

.header-img {
  grid-column: 2; /* Sits in column 2 */
  width: 240px;
  height: 180px;
  object-fit: cover;
}

/* Mobile Layout (Screens 600px and smaller) */
@media (max-width: 600px) {
  .page-header {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-header .lede {
    grid-column: 1; /* Drops to its own row */
  }

  .header-img {
    grid-column: 1; /* Drops below the text */
    width: 100%;    /* Spans full width of container */
    max-width: 240px; /* Optional: cap maximum width on mobile */
    height: auto;   /* Maintains aspect ratio */
  }
}
/* Monospace "data callout" utility - stat numbers, day counts,
   dollar figures. Reusable anywhere per the site's data-forward
   "conditions report" direction, not just on one page. */

.stat {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cc-ink);
}

/* Small muted disclaimer/caveat text - dates that need
   confirming, exclusions, etc. Reusable anywhere, not just on
   the programs page it started on. */

.fine-print {
  color: var(--cc-fog);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
}

.container {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Optional photo at the foot of a content page. */
.page-banner {
  margin: var(--space-lg) auto;
}

.page-banner img {
  width: auto;
  max-width: 100%;
  max-height: 24rem;
  margin: 0 auto;
}

/* 4. Skip link -------------------------------------------------
   Visually hidden until focused - keyboard users can jump past
   the nav straight to content. */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cc-ink);
  color: var(--cc-ink-inverse);
  padding: var(--space-xs) var(--space-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* 5. Header / nav ---------------------------------------------*/

.site-header {
  background: var(--cc-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  position: relative;
  z-index: 101;  /* stays above the full-screen mobile menu */
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--cc-ink-inverse);
}

/* Mobile menu toggle - pure CSS checkbox hack, no JS needed */

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-xs);
  position: relative;
  z-index: 101;  /* stays above the full-screen mobile menu */
}

.nav-toggle-label span {
  width: 24px;
  height: 2px;
  background: var(--cc-ink-inverse);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Burger -> X when open. 7px = bar height (2) + gap (5). */
.nav-toggle-input:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-input:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--cc-ink-inverse);
  font-size: 0.95rem;
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cc-ink-inverse);
  border-bottom-color: var(--cc-line-soft);
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  /* Full-screen menu panel. Header row (logo + X) sits above
     it at z-index 101, so the padding-top clears that row. */
  .site-nav {
    display: flex;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s ease,
        visibility 0s linear 0.5s;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--cc-dark);
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: calc(var(--header-height) + var(--space-md))
             var(--space-md) var(--space-lg);
  }

  /* Lock page scroll behind the open menu */
  body:has(.nav-toggle-input:checked) {
    overflow: hidden;
  }

  .site-nav .btn {
    text-align: center;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
      display: inline-block;
      padding-block: 0.35em 0.3em;
      border-bottom: 2px solid transparent;
      line-height: 1;
  }

  .nav-toggle-input:checked ~ .site-nav {
    display: flex;
    transform: none;
    visibility: visible;
    transition: transform 0.5s ease,
               visibility 0s;
  }
}

/* 6. Buttons ---------------------------------------------------*/

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-cta {
  background: var(--cc-button);
  color: var(--cc-ink-inverse);
}

.btn-cta:hover {
    background: color-mix(in srgb, var(--cc-button) 90%, black);
}

/* Keep light text on the button now that nav links are dark */
.site-nav a.btn-cta,
.site-nav a.btn-cta:hover {
  color: var(--cc-ink-inverse);
  border-bottom-color: transparent;
}
.btn.btn-cta {
    padding: .7rem 1.4rem;
}

/* 7. Hero -------------------------------------------------------
   Full-viewport photo with a text overlay (index.html). */

 .hero-full {
   position: relative;
   height: calc(100svh - var(--header-height));
   min-height: 400px;
   overflow: hidden;
   background: var(--cc-dark);
 }

 .hero-full__img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   opacity: 0;
   animation: hero-in calc(var(--hero-slide) * 5) infinite;
 }

.hero-full__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  color: var(--cc-ink-inverse);
}

.hero-full__overlay::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--cc-dark) 90%, transparent) 55%,
    transparent
  );
}

.hero-full__content {
  position: relative;
  padding: var(--space-sm) var(--space-sm) var(--space-md)
           clamp(1rem, 4vw, 3rem);
}

.hero-full__overlay h1 {
  color: var(--cc-ink-inverse);
  margin: 0;
  white-space: nowrap;
  font-size: clamp(2rem, 6vw, 5rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-full__overlay p {
  margin: var(--space-xs) 0 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.hero-btn-ghost {
  background: transparent;
  color: var(--cc-ink-inverse);
  border: 2px solid var(--cc-ink-inverse);
}

@media (max-width: 800px) {
  .hero-full__overlay h1 {
    white-space: normal;
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

.hero-slide-2 { animation-delay: var(--hero-slide); animation-name: hero-out; }
.hero-slide-3 { animation-delay: calc(var(--hero-slide) * 2); }
.hero-slide-4 { animation-delay: calc(var(--hero-slide) * 3); animation-name: hero-out; }
.hero-slide-5 { animation-delay: calc(var(--hero-slide) * 4); }

@keyframes hero-in {
  0%    { opacity: 0; transform: scale(1); }
  8%  { opacity: 1; }
  20%   { opacity: 1; }
  28% { opacity: 0; transform: scale(var(--hero-zoom)); }
  100%  { opacity: 0; transform: scale(var(--hero-zoom)); }
}
@keyframes hero-out {
  0%    { opacity: 0; transform: scale(var(--hero-zoom)); }
  8%  { opacity: 1; }
  20%   { opacity: 1; }
  28% { opacity: 0; transform: scale(1); }
  100%  { opacity: 0; transform: scale(1); }
}

.hero-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--cc-ink-inverse);
  text-shadow: none;
}

.hero-divider {
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-sm) 0 0;
  background: var(--cc-ink-inverse);
}

.hero-full__overlay h1,
.hero-divider,
.hero-full__overlay p {
  animation: hero-rise 0.9s ease-out both;
}
.hero-divider { animation-delay: 0.3s; }
.hero-full__overlay p { animation-delay: 0.6s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full__img { animation: none; }
  .hero-slide-1 { opacity: 1; }
  .hero-full__overlay h1,
  .hero-divider,
  .hero-full__overlay p { animation: none; }
}

/* 8. Topo-divider component --------------------------------------
   Reusable signature element - drop an inline SVG with this
   class between sections, no stroke/fill needed in the markup:

   <svg class="topo-divider" viewBox="0 0 680 34"
        preserveAspectRatio="none" aria-hidden="true">
     <path d="M0,17 Q56,4 112,17 T224,17 T336,17 T448,17
              T560,17 T680,17" />
     <path d="M0,25 Q56,15 112,25 T224,25 T336,25 T448,25
              T560,25 T680,25" />
   </svg>
*/

.topo-divider {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: var(--space-xl);    /* Adds space ABOVE the divider (below coaches) */
  margin-bottom: var(--space-xl);
}

.topo-divider path {
  fill: none;
  stroke: var(--cc-line);
  stroke-width: 1;
}

/* 9. Footer -----------------------------------------------------*/

.site-footer {
  background: var(--cc-surface);
  color: var(--cc-ink-bright);
  margin-top: var(--space-xl);
}

/* Three columns: club blurb, contact, community links. */
.footer-inner {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-md);
}

.footer-title {
  font-size: 1.1rem;
  color: var(--cc-ink-bright);
  margin: 0 0 var(--space-sm);
}

.footer-tagline {
  color: var(--cc-ink-inverse);
  font-size: 0.9rem;
  margin: 0;
  max-width: 30ch;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cc-fog-inverse);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--cc-ink-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Inline SVG bullets: follow the link colour, match text size */
.footer-icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--cc-primary);
  margin: 0;
  padding-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--cc-ink-inverse);
}


@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline {
    margin-inline: auto;
  }

  .footer-list {
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .footer-col:not(:last-child)::after {
    content: "";
    display: block;
    width: 100%;
    margin: var(--space-lg) auto 0;
    border-top: 1px solid var(--cc-primary);
  }
  .footer-copy {
      border-top: 0;
      padding-top: 0;
  }
}

/* 10. Reduced motion ---------------------------------------------*/

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

/* 11. Programs page ---------------------------------------------
   Program, camp and competition cards on /programs. Sizing/reset
   lives here; shared identity (font, colour, weight) for .stat
   lives in Layout helpers so other pages can reuse the same
   data-callout look. One card style for all three sections. */

.program-section-title {
  max-width: var(--max-width);
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-md);
  font-size: 1.6rem;
}

.program-section-note {
  max-width: var(--max-width);
  margin: calc(var(--space-md) * -1) auto var(--space-lg);
  padding: 0 var(--space-md);
}

/* auto-fill keeps every card the same width, so a row with one
   or two cards does not stretch. The 19rem minimum fits 2 cards
   in the 1000px container but never 3, and drops to 1 column
   below about 730px. */
.program-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--space-md);
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.program-card > .btn {
  margin-top: var(--space-sm);
  align-self: stretch;
  text-align: center;
}

.program-card-header h3 {
  margin-bottom: 0.15rem;
  font-size: 1.25rem;
}

.program-card h4 {
  margin: var(--space-xs) 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
  color: var(--cc-ink);
}

.program-card-date {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--cc-ink);
}

.program-card-location {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-fog);
}

.program-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.program-summary {
  color: var(--cc-ink);
}

.program-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xs) 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--cc-line);
}

.program-stat {
  min-width: 5.5rem;
}

/* Divider between the two stats, as in the board mockup */
.program-stat + .program-stat {
  padding-left: var(--space-md);
  border-left: 1px solid var(--cc-line);
}

.program-stat dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cc-fog);
  margin: 0;
}

.program-stat dd {
  font-size: 1.3rem;
  margin: 0;
}

.program-includes,
.program-requirements,
.program-addon-list {
  list-style: none;
  margin: 0 0 var(--space-xs);
  padding: 0;
}

.program-includes li,
.program-requirements li,
.program-addon-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.1rem;
  font-size: 0.95rem;
}

.program-requirements li::before,
.program-addon-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--cc-primary);
}

/* "Also included" gets a check badge (cream disc, navy tick).
   The badge is an SVG data URI, which cannot read CSS variables,
   so it keeps raw hex: cream #fbf7ec (%23fbf7ec) and navy
   #1c3550 (%231c3550). If the palette changes, edit them here. */
.program-includes li {
  padding-left: 1.9rem;
}

.program-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23fbf7ec'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231c3550' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.program-addons {
  border-top: 1px solid var(--cc-line);
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
}

.program-addons summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cc-ink);
  padding: var(--space-xs) 0;
}

.programs-fine-print {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-xl);
  border-top: 1px solid var(--cc-line);
}

.programs-fine-print p {
  color: var(--cc-fog);
  font-size: 0.85rem;
}

.programs-requirements-note {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  padding: 1.25rem var(--space-md);
  border-left: 3px solid var(--cc-primary);
  background: var(--cc-surface-muted);
}

.programs-requirements-note h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cc-ink);
}

.programs-requirements-note .program-requirements {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.programs-requirements-note .program-requirements li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .programs-requirements-note .program-requirements {
    columns: 1;
  }
}

@media (max-width: 600px) {
  .program-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .program-card {
    width: 100%;
    max-width: 24rem;
  }
}

/* Programs dropdown ---------------------------------------- */

.has-dropdown {
  position: relative;
}
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.site-nav .dropdown-menu {
  display: none;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: none;
  color: var(--cc-ink);
}

.dropdown-menu a:hover {
  color: var(--cc-ink);
  background: color-mix(in srgb,
              var(--cc-primary) 45%, var(--cc-surface));
}

.dropdown-menu a.active {
  color: var(--cc-ink-inverse);
  background: var(--cc-primary);
  font-weight: 600;
}

.dropdown-menu a.active:hover {
  background: var(--cc-primary);
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .site-nav .dropdown-menu {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: var(--space-md);
  }

  .dropdown-menu a {
    color: var(--cc-ink-inverse);
  }

  .dropdown-menu a:hover {
    color: var(--cc-ink-inverse);
    background: transparent;
  }

  /* Current page: small rounded pill, no underline. Parents of
     the current page (Why Join, Programs) are not marked. */
  .site-nav > ul > li > a.active {
    border-bottom-color: transparent;
  }

  .dropdown-menu a {
    width: fit-content;
  }

  .dropdown-menu a.active,
  .dropdown-menu a.active:hover,
  .site-nav > ul > li:not(.has-dropdown) > a.active {
    background: color-mix(in srgb,
                var(--cc-primary) 18%, transparent);
    color: var(--cc-ink-inverse);
    font-weight: 400;
    border-radius: 999px;
  }

  /* Schedule has no submenu: pad the pill, keep text aligned */
  .site-nav > ul > li:not(.has-dropdown) > a.active {
    padding: 0.5rem 1rem;
    margin-inline: -1rem;
  }
}


.climb {
  font-family: "Solitreo", cursive;
  font-size: 1.15em;
  color: var(--cc-primary);   /* steel */
}

.climb-ch {
  display: inline-block;
  position: relative;
  top: calc(var(--i) * -0.05em);
}

/* 12. Registration page ------------------------------------------
   Numbered step list for /registration. */

.registration-steps {
  list-style: none;
  margin: var(--space-md) auto var(--space-xl);
  padding: 0 var(--space-md);
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.registration-step {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.registration-step-number {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--cc-ink);
  color: var(--cc-ink-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
}

.registration-step-body h3 {
  margin: 0 0 0.15rem;
}

.registration-step-body p {
  margin: 0 0 var(--space-xs);
}

.registration-step-link {
  color: var(--cc-primary);
  font-weight: 600;
}

.registration-contact {
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-xl);
  border-top: 1px solid var(--cc-line);
}

/* 13. Schedule page ----------------------------------------------
*/

.schedule-table {
  margin: 0 auto var(--space-md);
}

.schedule-table-footnote {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xs);
  padding: 0 var(--space-md);
}

.schedule-notes {
  max-width: var(--max-width);
  margin: var(--space-md) auto;
  padding: 0 var(--space-md);
}

.schedule-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
}

.camps-see-also {
  max-width: var(--max-width);
  margin: var(--space-md) auto var(--space-xl);
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid var(--cc-line);
  color: var(--cc-fog);
  font-size: 0.9rem;
}

/* Generic comparison table - standard desktop view */
.data-table {
  width: 100%;
  max-width: var(--max-width);
  border-collapse: collapse;
  padding: 0 var(--space-md);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--cc-line);
}

.data-table thead th {
  color: var(--cc-fog);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.data-table tbody th {
  color: var(--cc-ink);
  font-family: var(--font-display);
}

.schedule-table tbody tr {
  --org-color: var(--cc-primary);
}

.schedule-table tbody tr[data-org="bc-snowboard"] {
  --org-color: var(--cc-org-snowboard);
}

/* display: flex on mobile rows beats the hidden attribute */
.schedule-table tbody tr[hidden] {
  display: none !important;
}

/* Filters */

.sched-filters {
  max-width: var(--max-width);
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-md);
  display: grid;
  gap: var(--space-sm);
}

.sched-filters[hidden] {
  display: none;
}

.sched-filter {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.sched-filter legend {
  padding: 0;
  margin-bottom: var(--space-xs);
  color: var(--cc-fog);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sched-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.sched-pill {
  position: relative;
}

.sched-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sched-pill label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-sm);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  background: var(--cc-surface);
  color: var(--cc-ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sched-pill input:checked + label {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: var(--cc-ink-inverse);
}

.sched-pill input:focus-visible + label {
  outline: 2px solid var(--cc-primary);
  outline-offset: 2px;
}

.sched-pill input:disabled + label {
  opacity: 0.4;
  border-style: dashed;
  cursor: not-allowed;
}

/* Org badge and row edge */

.sched-dates {
  display: block;
}

.org-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  color: var(--cc-fog);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.org-dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--org-color);
}

/* Desktop: border-left on tr breaks with border-collapse */
.schedule-table tbody th[scope="row"] {
  border-left: 4px solid var(--org-color);
}

/* Responsive Table: Converts rows to clean cards on small screens */
@media (max-width: 640px) {
  .schedule-table {
    display: block;
    padding: 0 var(--space-md);
  }

  /* Hide table header on mobile */
  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Turn each row into a distinct navy card */
  .schedule-table tr {
    display: flex;
    flex-direction: column;
    background: var(--cc-surface);
    border: 1px solid var(--cc-line);
    border-radius: var(--radius);
    padding: var(--space-sm) var(--space-md);
  }

  /* Package Title Banner */
  .schedule-table th[scope="row"] {
    display: block;
    font-size: 1.1rem;
    padding: 0 0 var(--space-xs) 0;
    margin-bottom: var(--space-xs);
    border-bottom: 1px solid var(--cc-line);
    color: var(--cc-ink);
  }

  /* Key-Value rows inside the card */
  .schedule-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px dashed var(--cc-line);
    font-size: 0.95rem;
  }

  .schedule-table td:last-child {
    border-bottom: none;
  }

  /* Render label using data-label attribute */
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--cc-fog);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .schedule-table tbody tr {
    border-left: 4px solid var(--org-color);
  }

  .schedule-table tbody th[scope="row"] {
    border-left: 0;
  }
}

/* 14. Camps page ---------------------------------------------------
   Multi-day camp timeline for /camps. */

.camp-list {
  list-style: none;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-md);
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}


.camp-card {
  display: flex;
  gap: var(--space-md);
  border: 1px solid var(--cc-line);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  background: var(--cc-surface);
}

.camp-card-date {
  flex: none;
  width: 9rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--cc-ink);
  font-size: 0.85rem;
  line-height: 1.4;
}

.camp-card-body h3 {
  margin: 0 0 0.15rem;
}

.camp-card-body p {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.camp-card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-ink);
}

.camp-card-tag-addon {
  color: var(--cc-fog);
  font-weight: 400;
}

.camps-trip-note,
.camps-register {
  max-width: 42rem;
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-md);
}

@media (max-width: 600px) {
  .camp-card {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .camp-card-date {
    width: auto;
  }
}

/* 15. Sponsors ------------------------------------------------
   Component styles for the sponsors page. */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  text-decoration: none;
  color: var(--cc-ink);
  border: 1px solid var(--cc-line-soft);
  border-radius: var(--radius);
  transition: box-shadow 0.15s ease-in-out;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sponsor-logo {
  max-width: 100%;
  height: 96px;
  object-fit: contain;
}

.sponsor-name {
  font-size: 0.9rem;
  text-align: center;
}

/* 16. Contact ------------------------------------------------ */

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.contact-instagram a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* 17. Coaches ------------------------------------ */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 18rem));
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--max-width);
  box-sizing: border-box;
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.coach-card {
  perspective: 1200px;
  width: 100%;
}

.coach-card-inner {
  position: relative;
  width: 100%;
  min-height: 25rem; /* Flexible height so the button stays inside */
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1),
              box-shadow 0.25s ease;
  border-radius: var(--radius);
}

/* Lift only while the front is showing. The back has one
   clickable thing (Back), so the card must not look clickable. */
.coach-card:not(.is-flipped):hover .coach-card-inner {
  transform: translateY(-0.35rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18),
              0 0 0 0.125rem var(--cc-primary);
}

/* Same look for keyboard focus (separate rule: older browsers
   without :has would otherwise drop the hover rule too). */
.coach-card:not(.is-flipped):has(.coach-flip-open:focus-visible)
  .coach-card-inner {
  transform: translateY(-0.35rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18),
              0 0 0 0.125rem var(--cc-primary);
}

.coach-card.is-flipped .coach-card-inner {
  transform: rotateY(180deg);
}

.coach-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
}

.coach-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
}

.coach-name {
  font-size: 1.15rem;
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}

.coach-name-back {
  margin-bottom: var(--space-xs);
}

.coach-nickname {
  font-weight: 400;
  color: var(--cc-fog);
}

.coach-title {
  font-size: 0.85rem;
  color: var(--cc-fog);
  margin-bottom: var(--space-xs);
}

.coach-face-front {
  transform: rotateY(0deg);
}

.coach-face-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  overflow: hidden;
  cursor: default;
}

/* Bio scrolls on its own; name and Back button stay put. */
.coach-bio-scroll {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  text-align: left;
  padding-right: 0.25rem;
}

.coach-bio {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 var(--space-xs);
}

/* Flip buttons */
.coach-flip {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cc-fog-inverse);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  min-height: 2.75rem;
  -webkit-tap-highlight-color: transparent;
}

.coach-flip-open {
  margin-top: auto;
}

/* Stretch the button's hit area over the whole front face.
   The button stays position: static, so ::after resolves
   against .coach-face-front (absolute). */
.coach-flip-open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

/* The card lift and ring act as the focus indicator. */
.coach-flip-open:focus-visible {
  outline: none;
}

/* Once flipped, the front must not catch the cursor or clicks.
   backface-visibility alone is unreliable for hit testing. */
.coach-card.is-flipped .coach-face-front {
  pointer-events: none;
}

.coach-card.is-flipped .coach-flip-open::after {
  display: none;
}

.coach-flip-close:focus-visible,
.coach-bio-scroll:focus-visible {
  outline: 2px solid var(--cc-primary);
  outline-offset: 2px;
}

/* Respect reduced-motion users: no flip, show one face at a time */
@media (prefers-reduced-motion: reduce) {
  .coach-card-inner,
  .coach-card.is-flipped .coach-card-inner {
    transition: box-shadow 0.25s ease;
    transform: none;
  }

  .coach-face {
    backface-visibility: visible;
    transform: none !important;
  }

  .coach-face-back {
    display: none;
  }

  .coach-card.is-flipped .coach-face-front {
    display: none;
  }

  .coach-card.is-flipped .coach-face-back {
    display: flex;
  }
}

/* Coaches intro, section headings and CTA ----------------- */

.coaches-intro,
section:has(> .coach-grid) > h2 {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.coaches-intro {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

section:has(> .coach-grid) > h2 {
  margin-bottom: var(--space-sm);
}

.coaches-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  margin: 0 0 var(--space-xs);
}

.coaches-intro p,
.coach-cta p {
  font-family: var(--font-body);
  font-size: 17px;
  max-width: 46rem;
}

.coaches-intro .coaches-tagline,
.coach-cta .coaches-tagline {
  color: var(--cc-fog);
  font-size: 21px;
}

/* CTA: last block on the page, room above the sponsor band */
.coach-cta {
  max-width: 42rem;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--cc-line);
}

.coach-cta h2 {
  font-size: 1.75rem;
}

.coach-cta p {
  margin-inline: auto;
}

.coach-cta .btn {
  margin-top: var(--space-xs);
}

@media (max-width: 600px) {
  .coaches-intro h1 {
    font-size: 32px;
  }

  .coaches-intro .coaches-tagline,
  .coach-cta .coaches-tagline {
    font-size: 18px;
  }
}

/* 18. Sponsor banner ------------------------------------------ */

.sponsor-banner {
  background: var(--cc-bg-raised);
  border-top: 1px solid var(--cc-line-soft);
  padding: var(--space-md) var(--space-sm);
}

.sponsor-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.sponsor-banner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.sponsor-banner-item {
  display: flex;
  align-items: center;
}

.sponsor-banner-logo {
  max-height: 3rem;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.sponsor-banner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* 19. Error 404 ------------------------------------------- */
.error-404 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem var(--space-sm) 2rem;
}
.error-404__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  filter: brightness(0.9);
}
.error-404__layers {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.error-404__layer {
  position: absolute;
  will-change: transform;
}
.error-404__boundary {
  width: 100%;
  height: auto;
  left: 0;
  bottom: 0;
  z-index: 2;
}
.error-404__patrol {
  width: min(28%, 260px);
  height: auto;
  right: -3%;
  bottom: -2%;
  z-index: 3;
}
.error-404__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background: transparent;
  padding: var(--space-md) var(--space-md) 2rem;
  border-radius: var(--radius);
  max-width: 480px;
}
.error-404__message {
  font-weight: 600;
  margin: var(--space-xs) 0 0;
  text-transform: uppercase;
}
/* SIGNAGE */
.error-404__sign {
  width: 100%;
  max-width: 340px;
  border: 4px solid var(--cc-caution);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
  position: relative;
  will-change: transform;
}
.error-404__sign-red {
  background: var(--cc-alert);
  color: var(--cc-ink-bright);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.75rem var(--space-xs);
}
.error-404__sign-yellow {
  background: var(--cc-caution);
  padding: 0.75rem var(--space-xs) var(--space-sm);
  border: 4px solid var(--cc-alert);
}
.error-404__code {
  color: var(--cc-dark);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0;
}
/* 19a. Error 404, mobile adjustments ------------------- */
@media (max-width: 600px) {
  .error-404 {
    min-height: auto;
    height: 85svh;
    padding-top: 2rem;
  }
  .error-404__bg {
    background-attachment: scroll;
  }
  .error-404__code {
    font-size: 1.5rem;
  }
  .error-404__content {
    padding: 1.25rem var(--space-sm) var(--space-md);
    max-width: 92vw;
  }
.error-404__boundary {
    bottom: -3%;
  }
  .error-404__patrol {
    width: min(40%, 260px);
    bottom: -5%;
    right: -6%;
  }
}

/* 20. About page ---------------------------------------------
   Narrow text column, full-width images. */

.about section,
.about .page-header > :not(img) {
  max-width: 65ch;
  margin-inline: auto;
}

.about img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 8px;
}

/* Hero: small portrait, text wraps around it */
.about .hero-img {
  float: right;
  width: 240px;
  aspect-ratio: 9 / 5;
  margin: 0.25rem 0 1rem 1.5rem;
}

.about .intro::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 600px) {
  .about .hero-img {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.25rem;
  }
}

.about p {
  line-height: 1.65;
  margin-block: 0 1.2em;
}

.about section {
  margin-top: 3rem;
}

.about .intro {
  margin-top: 2rem;
}

.about .intro p {
  font-size: 1.1em;
}

.about h2 {
  margin-bottom: 0.25em;
}

.about .subtitle {
  font-size: 1.25em;
  margin-block: 0 0.5em;
}

.about .tagline {
  font-size: 0.95em;
  opacity: 0.7;
  margin-bottom: 1.25em;
}

.about ul {
  padding-left: 1.2em;
  margin-block: 0 1.2em;
}

.about li {
  margin-bottom: 0.4em;
  line-height: 1.55;
}

.about .page-banner {
  margin-inline: auto;
  margin-block: 2.5rem;
}

/* Podium: medium, taller */
.about .page-banner--podium {
  max-width: 320px;
}
.about .page-banner--podium img {
  aspect-ratio: 3 / 4;
}

/* Travel: wide, a bit taller than before */
.about .page-banner--travel {
  max-width: 600px;
}
.about .page-banner--travel img {
  aspect-ratio: 3 / 2;
}

.about .closing p {
  font-size: 1.15em;
  font-weight: 600;
}

/* 21. Programs: build your season ---------------------------------
   Heading, 4 step guide and note at the top of /programs. Step
   icons are webp in static/img/logo/. The brush blob behind each
   icon is an inline SVG background; the arrows are inline SVG in
   the template. */

.season-title {
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
}

.season-title .climb {
  display: inline-block;
  margin-top: 0.1em;
}

.build-steps {
  list-style: none;
  max-width: 46rem;
  margin: var(--space-md) auto var(--space-sm);
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.build-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: calc(var(--n) * 1.25rem);
}

.build-step-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 5rem;
  background: url("../img/logo/brush-a.webp")
    center / contain no-repeat;
}

.build-step-icon img {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
}

.build-step-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--cc-ink);
}

.build-step-text {
  margin: 0;
}

/* Pulls the text back in line when the icon steps back (step 4) */
.build-step-body {
  margin-left: calc((var(--t) - var(--n)) * 1.25rem);
}

/* Curved arrow from one step down to the next */
.build-arrow {
  position: absolute;
  left: 0.25rem;
  top: calc(100% - 0.5rem);
  width: 2rem;
  height: 3rem;
  fill: none;
  stroke: var(--cc-primary);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build-note {
  max-width: 46rem;
  margin: var(--space-md) auto 0;
  padding: 0 var(--space-md);
  text-align: center;
}

@media (max-width: 600px) {
  .build-step {
    margin-left: calc(var(--n) * 0.6rem);
    gap: var(--space-sm);
  }

  .build-step-icon {
    width: 5rem;
    height: 4rem;
  }

  .build-step-icon img {
    width: 3rem;
    height: 3rem;
  }

  .build-step-body {
    margin-left: calc((var(--t) - var(--n)) * 0.6rem);
  }

  .build-arrow {
    left: 0;
    width: 1.6rem;
    height: 2.4rem;
  }
}
