@charset "utf-8";
/* ==========================================================================
   Williams Lake Stampede Parade — site stylesheet
   Pure static, no external font or script dependencies (works fully offline).
   Palette is derived from the original 2005 site colours
   (#E4DDC3 cream, #9E7245 / #A08060 leather browns, #800000 maroon)
   refreshed into a warm, accessible, modern western-heritage theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Warm neutrals */
  --sand-50:  #FCFAF5;
  --sand-100: #F7F1E4;
  --sand-200: #EFE6D3;
  --sand-300: #E4DDC3;   /* original site background */
  --sand-400: #D6C9A9;

  /* Leather browns */
  --brown-800: #3F2A17;
  --brown-700: #5C3E22;
  --brown-600: #7A5330;
  --brown-500: #9E7245;   /* original site accent */
  --brown-400: #A08060;   /* original site accent */
  --brown-200: #C9B394;

  /* Accents */
  --gold-600: #A9761F;
  --gold-500: #C8912F;
  --gold-300: #E4BE72;
  --maroon-700: #6E2419;
  --maroon-600: #800000;  /* original site maroon */
  --green-700: #3F6B3F;

  /* Ink */
  --ink:      #2B2118;
  --ink-soft: #55483A;
  --ink-mute: #6E6152;

  /* Surfaces */
  --white: #FFFFFF;
  --page:  var(--sand-100);
  --card:  var(--white);
  --line:  #E0D5BE;
  --line-strong: #C9B394;

  /* Typography */
  --font-display: Georgia, "Times New Roman", "Nimbus Roman", "Noto Serif", serif;
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* Rhythm */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(63, 42, 23, .07), 0 2px 6px rgba(63, 42, 23, .05);
  --shadow:    0 4px 14px rgba(63, 42, 23, .09), 0 1px 3px rgba(63, 42, 23, .06);
  --shadow-lg: 0 14px 38px rgba(63, 42, 23, .16);

  --focus: 0 0 0 3px var(--sand-100), 0 0 0 6px var(--gold-600);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--page);
  /* Subtle woven texture built from the original 43bg.jpg band + warm gradient.
     Uses only CSS gradients plus one local image so the site works offline. */
  background-image:
    linear-gradient(180deg, rgba(247, 241, 228, .93) 0%, rgba(252, 250, 245, .97) 340px, var(--sand-50) 100%),
    url("../../images/43bg.jpg");
  background-repeat: repeat-x, repeat;
  background-position: center top, center top;
  background-attachment: scroll, fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

img, picture, svg, video { max-width: 100%; height: auto; }

/* Images keep their intrinsic ratio but never overflow their column. */
img { border: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brown-700);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.05rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.18rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.09rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--maroon-600); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 2px;
  border-radius: 3px;
}

strong, b { font-weight: 700; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;          /* centred layout */
  padding-inline: 1.25rem;
}
.wrap--narrow { max-width: var(--wrap-narrow); }

main { display: block; }

.section { padding-block: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.section--tight { padding-block: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.section--tinted { background: linear-gradient(180deg, rgba(239,230,211,.72), rgba(252,250,245,.5)); }

.section-head { max-width: 62ch; margin-bottom: 1.9rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head > p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .55rem;
}

.lead { font-size: 1.14rem; color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brown-700);
  color: var(--white);
  padding: .85rem 1.3rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 245, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, var(--shadow-sm);
  backdrop-filter: saturate(140%) blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .site-header { background: var(--sand-50); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--brown-700);
  flex: 0 0 auto;
}
.brand:hover { color: var(--maroon-600); }
.brand img {
  width: auto;
  height: 46px;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.brand-text small {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .55rem .6rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  align-items: center;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brown-700);
  border-radius: 2px;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding: .5rem .72rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.primary-nav a:hover {
  background: var(--sand-200);
  color: var(--brown-800);
}
.primary-nav a[aria-current="page"] {
  background: var(--brown-700);
  color: var(--sand-100);
}

@media (max-width: 1010px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sand-50);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .6rem 1.25rem 1.1rem;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a {
    padding: .78rem .6rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }
  .primary-nav li:last-child a { border-bottom: 0; }
  .primary-nav a[aria-current="page"] { border-radius: var(--radius-sm); }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(200,145,47,.20), transparent 62%),
    linear-gradient(160deg, var(--sand-200) 0%, var(--sand-100) 55%, var(--sand-50) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  /* decorative rope rule taken from the original site's divider graphic */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25px;
  background: url("../../images/43line.jpg") center/auto 25px repeat-x;
  opacity: .5;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  align-items: center;
  padding-block: clamp(2.4rem, 1.5rem + 4vw, 4.2rem);
}
.hero-copy h1 { margin-bottom: .5rem; }
.hero-copy .lead { max-width: 46ch; }
.hero-logo {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin-bottom: 1.15rem;
}
.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.hero-photo figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--ink-mute);
  text-align: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-logo { max-width: 340px; }
}

/* --------------------------------------------------------------------------
   6. Buttons & calls to action
   -------------------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--brown-700);
  color: var(--sand-100);
  border-color: var(--brown-700);
}
.btn--primary:hover { background: var(--brown-800); color: var(--white); border-color: var(--brown-800); }
.btn--gold {
  background: var(--gold-500);
  color: #3A2708;
  border-color: var(--gold-500);
}
.btn--gold:hover { background: var(--gold-600); color: var(--white); border-color: var(--gold-600); }
.btn--ghost {
  background: transparent;
  color: var(--brown-700);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--white); color: var(--brown-800); border-color: var(--brown-500); }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3, .card h2 { margin-bottom: .45rem; }
.card p { color: var(--ink-soft); }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--sand-200), var(--sand-300));
  color: var(--brown-700);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  margin-bottom: .9rem;
  border: 1px solid var(--line);
}
.card__link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: .95rem;
}

/* Feature list with custom markers */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .6rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: .68rem; height: .68rem;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200,145,47,.22);
}

/* Fact / stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 1.25rem 1.1rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 700;
  color: var(--brown-700);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* Callout / notice */
.note {
  border-left: 5px solid var(--gold-500);
  background: linear-gradient(90deg, rgba(200,145,47,.10), rgba(200,145,47,.02));
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4rem 0;
}
.note--maroon { border-left-color: var(--maroon-600); background: linear-gradient(90deg, rgba(128,0,0,.09), rgba(128,0,0,.015)); }
.note > :last-child { margin-bottom: 0; }
.note strong { color: var(--brown-800); }

/* --------------------------------------------------------------------------
   8. Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  background:
    radial-gradient(760px 320px at 85% -20%, rgba(200,145,47,.18), transparent 60%),
    linear-gradient(165deg, var(--sand-200), var(--sand-100) 78%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
}
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--ink-soft); max-width: 68ch; margin-bottom: 0; font-size: 1.06rem; }

.breadcrumb {
  font-size: .84rem;
  margin-bottom: .85rem;
  color: var(--ink-mute);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: .4rem;
  color: var(--brown-200);
}
.breadcrumb a { color: var(--brown-600); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--maroon-600); }
.breadcrumb [aria-current="page"] { color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   9. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.15rem .2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brown-700);
  font-size: 1.08rem;
}
th, td {
  padding: .72rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--sand-200);
  color: var(--brown-800);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(239,230,211,.34); }
td.place { white-space: nowrap; font-weight: 700; color: var(--gold-600); width: 4.5rem; }
td.winner { font-weight: 600; color: var(--brown-700); }

/* --------------------------------------------------------------------------
   10. Photo gallery & lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery li { margin: 0; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand-200);
  transition: transform .35s ease;
}
.gallery button:hover img { transform: scale(1.05); }
.gallery button:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .5rem .65rem;
  font-size: .8rem;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(43,33,24,.82));
  text-align: left;
}

/* Historic (black & white) photo strip */
.photo-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .35rem .35rem 1rem;
  list-style: none;
  margin: 0;
  scroll-snap-type: x proximity;
}
.photo-strip li { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.photo-strip img {
  display: block;
  border-radius: var(--radius-sm);
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  filter: sepia(.14);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(30, 21, 13, .93);
  padding: clamp(1rem, 4vw, 3rem);
  overscroll-behavior: contain;
}
.lightbox[open], .lightbox.is-open { display: grid; place-items: center; }
.lightbox__figure {
  margin: 0;
  max-width: min(1080px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.lightbox__caption {
  color: var(--sand-200);
  font-size: .92rem;
  text-align: center;
}
.lightbox__count {
  color: var(--brown-200);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__btn--prev { left: clamp(.5rem, 2vw, 1.6rem); }
.lightbox__btn--next { right: clamp(.5rem, 2vw, 1.6rem); }
.lightbox__close {
  position: absolute;
  top: clamp(.6rem, 2vw, 1.6rem);
  right: clamp(.6rem, 2vw, 1.6rem);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   11. Carousel / slideshow (replaces the legacy Dynamic Drive scripts)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); }
.carousel__track {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform .45s cubic-bezier(.4,.0,.2,1);
  will-change: transform;
}
.carousel__track > li { flex: 0 0 auto; margin: 0; }
.carousel__track img {
  display: block;
  height: 118px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
  background: var(--sand-200);
}
.carousel__controls {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: .9rem;
}
.carousel__controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--brown-700);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel__controls button:hover { background: var(--sand-200); }
.carousel__controls button[disabled] { opacity: .4; cursor: default; }

/* Fade slideshow (event.html historic photos) */
.fader {
  position: relative;
  background: var(--brown-800);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.fader__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 200 / 116;
  max-width: 420px;
  margin-inline: auto;
}
.fader__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 1s ease;
}
.fader__stage img.is-active { opacity: 1; }
.fader p { color: var(--sand-200); text-align: center; margin: .9rem 0 0; font-size: .9rem; }

/* --------------------------------------------------------------------------
   12. Definition / FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .35rem 0;
}
.faq summary {
  cursor: pointer;
  padding: .95rem .2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown-700);
  list-style: none;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-600);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--maroon-600); }
.faq .faq__body { padding: 0 2rem 1.2rem .2rem; color: var(--ink-soft); }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* Two-column definition list */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem 1.6rem;
  margin: 0;
}
.dl-grid dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.dl-grid dd {
  margin: .2rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown-700);
}

/* --------------------------------------------------------------------------
   13. People / sponsors
   -------------------------------------------------------------------------- */
.people {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1rem;
}
.person {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.person__mark {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brown-600), var(--brown-800));
  color: var(--sand-100);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.person__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--brown-700);
  display: block;
}
.person__role { font-size: .9rem; color: var(--ink-mute); }
.person__contact { font-size: .92rem; margin-top: .35rem; }

.tier { margin-bottom: 2rem; }
.tier__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.tier__head h3 { margin: 0; }
.badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge--platinum { background: #EEF1F4; color: #4A5A68; border-color: #C6D0D8; }
.badge--gold     { background: #FBF0D8; color: #8A5F13; border-color: #E7CD8E; }
.badge--silver   { background: #F2F3F5; color: #5C6670; border-color: #D2D7DD; }
.badge--bronze   { background: #F6EBE1; color: #7D4E27; border-color: #DFC0A4; }

.sponsor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: .55rem 1.4rem;
}
.sponsor-list li {
  margin: 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: .96rem;
  color: var(--ink-soft);
}
.sponsor-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .5rem; height: .5rem;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   14. Forms & registration sheets
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1.6vw, 2.3rem);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--sand-50);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .6rem .7rem;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--white);
  border-color: var(--gold-600);
}

/* Printable rule lines (mimics the paper form) */
.rule {
  display: block;
  border-bottom: 1px solid var(--line-strong);
  height: 1.5rem;
}

.print-fee {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}
.print-fee li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  margin: 0;
}
.print-fee .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--brown-700);
}

@media print {
  .site-header, .site-footer, .btn-row, .skip-link, .to-top, .breadcrumb { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .form-card, .table-wrap { box-shadow: none; border-color: #999; }
  a { color: #000; text-decoration: none; }
  .print-hide { display: none !important; }
  .page-head { padding-block: .5rem; background: none; border: 0; }
  h1 { font-size: 20pt; }
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2rem, 1.4rem + 2.5vw, 3.4rem);
  background:
    linear-gradient(180deg, var(--brown-800), #2E1E10);
  color: var(--sand-200);
  padding-block: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem) 0;
  border-top: 6px solid var(--gold-500);
}
.site-footer h2 {
  color: var(--sand-100);
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.site-footer p { color: var(--brown-200); font-size: .93rem; }
.site-footer a { color: var(--gold-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .48rem; font-size: .93rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(201,179,148,.28);
  padding-block: 1.15rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--brown-200); }

/* --------------------------------------------------------------------------
   16. Back-to-top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--brown-700);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.frame {
  border: 6px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  height: auto;
}
.article-body { max-width: 72ch; }
.article-body h2 { margin-top: 1.8rem; }
.article-body h3 { margin-top: 1.4rem; }
.prose-list { color: var(--ink-soft); }
.center-block { margin-inline: auto; }
.narrow-60 { max-width: 60ch; }
.note-small { font-size: .85rem; color: var(--ink-mute); }
.logo-sm { height: 76px; width: auto; }
.figure-flush { margin: 0; }
.figcaption-note { margin-top: .7rem; font-size: .85rem; color: var(--ink-mute); }
.icon-inline { vertical-align: middle; }
.note-icon { float: right; margin: 0 0 .6rem 1.1rem; }
.address-plain { font-style: normal; }
.footer-address { font-style: normal; font-size: .93rem; color: var(--brown-200); }

/* Grid alignment helpers (replaces inline styles so a strict CSP can apply) */
.grid--start { align-items: start; }
.grid--center { align-items: center; }
.btn-row--center { justify-content: center; }

/* Bare button used for zoomable images outside the .gallery grid */
.zoom-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
