/* ==========================================================================
   Curling club design system — shared by every club on the platform.

   Palette takes its cue from the game itself: pebbled ice, deep winter navy,
   and the red button at the centre of the house. Those defaults are Lindsay's;
   every colour below is a custom property and each club overrides the ones it
   wants in its own assets/css/theme.css, generated from its club.json.

   Nothing in here names a club. If you find yourself wanting to add a rule
   for one club only, put it in clubs/<slug>/assets/css/extra.css instead —
   the build appends that to the club's theme.css.
   ========================================================================== */

:root {
  /* Ink / navy */
  --ink-900: #071120;
  --ink-800: #0a1a2f;
  --ink-700: #102943;
  --ink-600: #1b3d5e;
  --ink-400: #4a6b8a;
  --ink-300: #7d97ae;

  /* Ice */
  --ice-50:  #f6fafd;
  --ice-100: #e9f3fa;
  --ice-200: #d3e6f4;
  --ice-300: #a9cfe9;
  --ice-500: #3ba4dd;

  /* The house */
  --red-500: #d92d3c;
  --red-600: #b81f2d;
  --gold-400: #e0a92e;

  --white: #ffffff;

  /* The three brand colours again as bare channels, so every tinted wash in
     this file can be written rgb(var(--ice-rgb) / .12) and recoloured by a
     club's theme.css along with the colour it came from. A hardcoded rgba()
     is the one thing that cannot be themed, and this stylesheet is shared by
     every club on the platform. */
  --ink-rgb: 7 17 32;
  --ice-rgb: 59 164 221;
  --red-rgb: 217 45 60;
  --gold-rgb: 224 169 46;

  /* Readable text on an --ice / --gold tinted chip. */
  --ice-ink: #14608f;
  --gold-ink: #8a6210;

  /* Semantic */
  --bg: var(--ice-50);
  /* The sticky nav is the page background at 82%, so it follows --bg. */
  --nav-bg: 246 250 253;
  --surface: var(--white);
  --text: var(--ink-800);
  --text-soft: #4d6478;
  --border: #dbe7f0;
  --accent: var(--red-500);

  /* Type */
  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Space + shape */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1200px;
  --maxw-text: 68ch;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgb(var(--ink-rgb) / .06), 0 2px 8px rgb(var(--ink-rgb) / .04);
  --shadow-md: 0 2px 4px rgb(var(--ink-rgb) / .05), 0 12px 28px rgb(var(--ink-rgb) / .08);
  --shadow-lg: 0 4px 8px rgb(var(--ink-rgb) / .06), 0 24px 60px rgb(var(--ink-rgb) / .14);

  --nav-h: 96px;
}

/* --------------------------------------------------------------- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-600); text-decoration-color: var(--ice-300); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--ice-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  background: var(--ink-900); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 200; font-weight: 600;
  transition: transform .18s;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ------------------------------------------------------------- Utilities -- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow--light { color: var(--ice-300); }
.eyebrow--light::before { background: var(--ice-500); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-soft); max-width: var(--maxw-text); }
.lede--light { color: var(--ice-200); }

.section-head { max-width: var(--maxw-text); margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

/* ---------------------------------------------------------------- Button -- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: .93rem; font-weight: 600;
  border: 1px solid transparent; border-radius: 100px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); }
.btn--accent:hover { --btn-bg: var(--red-600); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink-800);
  border-color: var(--border);
}
.btn--ghost:hover { --btn-bg: var(--white); border-color: var(--ice-300); }
.btn--ghost-light {
  --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.14); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn .ico { width: 1.05em; height: 1.05em; flex: none; }

/* ------------------------------------------------------------------ Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgb(var(--nav-bg) / .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgb(var(--ink-rgb) / .06);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.25rem;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; margin-right: auto;
  flex: 0 0 auto;              /* never let the nav links squeeze the wordmark */
  min-width: 0;
}
.brand__crest {
  /* Vector, so it is sharp at any size. */
  height: 72px; width: auto; flex: none;
  filter: drop-shadow(0 1px 2px rgb(var(--ink-rgb) / .14));
  transition: transform .2s ease;
}
.brand:hover .brand__crest { transform: scale(1.04) rotate(-1.5deg); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text {
  display: flex; flex-direction: column; line-height: 1.12;
  flex: 0 0 auto; white-space: nowrap;
}
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -.025em; color: var(--ink-900); white-space: nowrap;
}
.brand__since {
  margin-top: .16rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
@media (max-width: 460px) {
  .brand__crest { height: 54px; }
  .brand__name { font-size: 1rem; }
  .brand__since { display: none; }
}

.nav__links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__links li { margin: 0; }
.nav__links a {
  display: block; padding: .55rem .8rem; border-radius: 100px;
  font-size: .9rem; font-weight: 500; color: var(--ink-700); text-decoration: none;
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--ice-100); color: var(--ink-900); }
.nav__links a[aria-current="page"] { color: var(--accent); background: rgb(var(--red-rgb) / .07); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: .5rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; color: var(--ink-800);
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; margin: 3.5px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav__toggle { display: block; }
  .nav__panel {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem var(--gutter) 1.75rem;
    display: grid; gap: 1.25rem;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav__panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__links a { padding: .8rem 1rem; font-size: 1.02rem; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 1241px) {
  .nav__panel { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
}

/* ----------------------------------------------------------------- Hero --- */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink-900);
  color: #fff;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 32%;
  opacity: .34;
  transform: scale(1.04);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 12% 8%, rgb(var(--ice-rgb) / .22), transparent 65%),
    radial-gradient(60% 50% at 92% 92%, rgb(var(--red-rgb) / .16), transparent 60%),
    linear-gradient(178deg, rgb(var(--ink-rgb) / .62) 0%, rgb(var(--ink-rgb) / .88) 62%, var(--ink-900) 100%);
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--ice-300), var(--ice-500) 55%, #7fd0f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: end; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.35fr .65fr; } }
.hero__copy { max-width: 40ch; }
.hero .lede { color: var(--ice-200); margin-bottom: 2rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .5rem;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ice-100); margin-bottom: 1.75rem;
}
.hero__badge b { color: #fff; }
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgb(var(--red-rgb) / .25);
  margin-left: .4rem;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(var(--red-rgb) / 0); } }
@media (prefers-reduced-motion: reduce) { .hero__badge .dot { animation: none; } }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; max-width: 400px; }
.countdown__cell {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  padding: .85rem .4rem; text-align: center;
  backdrop-filter: blur(8px);
}
.countdown__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block; margin-top: .35rem;
  font-size: .6rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ice-300);
}
.countdown__cap { font-size: .82rem; color: var(--ice-300); margin-top: .9rem; }

/* ------------------------------------------------------------- Stat strip -- */
.stats {
  background: var(--ink-800);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: rgba(255, 255, 255, .08);
}
.stat { background: var(--ink-800); padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem; text-align: center; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -.03em;
  color: #fff;
}
.stat__num span { color: var(--ice-500); }
.stat__label {
  display: block; margin-top: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-300);
}

/* ---------------------------------------------------------------- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ice-300); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--text-soft); font-size: .95rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem;
  background: var(--ice-100); color: var(--ink-600);
  border-radius: 100px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
}
.tag--accent { background: rgb(var(--red-rgb) / .09); color: var(--red-600); }
.tag--gold  { background: rgb(var(--gold-rgb) / .14); color: var(--gold-ink); }
.tag--ice   { background: rgb(var(--ice-rgb) / .12); color: var(--ice-ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* -------------------------------------------------------- League listing -- */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-bottom: 2rem;
}
.filters__label {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); margin-right: .35rem;
}
.chip {
  padding: .5rem 1rem;
  background: var(--white); color: var(--ink-700);
  border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--font-body); font-size: .86rem; font-weight: 500;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ice-300); }
.chip[aria-pressed="true"] {
  background: var(--ink-900); color: #fff; border-color: var(--ink-900); font-weight: 600;
}
.filter-count { font-size: .86rem; color: var(--text-soft); margin-left: auto; }

.leagues { display: grid; gap: 1rem; }
.league {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.league:hover { box-shadow: var(--shadow-md); border-color: var(--ice-300); }
.league[open] { border-color: var(--ice-300); box-shadow: var(--shadow-md); }
.league__summary {
  display: grid; gap: .35rem 1.25rem; align-items: center;
  grid-template-columns: 1fr auto;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  cursor: pointer; list-style: none;
}
.league__summary::-webkit-details-marker { display: none; }
.league__summary:hover .league__name { color: var(--accent); }
.league__name {
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700; letter-spacing: -.02em; color: var(--ink-900);
  transition: color .15s;
}
.league__when {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .88rem; color: var(--text-soft); margin-top: .15rem;
}
.league__when strong { color: var(--ink-700); font-weight: 600; }
.league__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.league__chev {
  grid-row: 1 / span 2; grid-column: 2;
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--ink-600); transition: transform .22s, background .15s, color .15s;
}
.league__summary:hover .league__chev { background: var(--ice-100); color: var(--accent); }
.league[open] .league__chev { transform: rotate(180deg); background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.league__body {
  padding: 0 clamp(1.1rem, 2vw, 1.5rem) clamp(1.3rem, 2vw, 1.6rem);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  animation: reveal .22s ease;
}
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }
.league__body p { font-size: .95rem; color: var(--text-soft); }
.league__body h4 { margin: 1.25rem 0 .4rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); font-family: var(--font-display); }
.league__convenor {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--ink-700);
}

/* ------------------------------------------------------------- Bonspiels -- */
.spiel-list { display: grid; gap: .6rem; }
.spiel {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.25rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.spiel:hover { transform: translateX(3px); box-shadow: var(--shadow-md); border-color: var(--ice-300); }
.spiel__date {
  width: 62px; flex: none; text-align: center;
  border-right: 1px solid var(--border); padding-right: 1rem;
}
.spiel__mon {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.spiel__day {
  display: block; font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; line-height: 1.1; color: var(--ink-900);
}
.spiel__yr { display: block; font-size: .68rem; color: var(--ink-400); }
.spiel__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-900); }
.spiel__sponsor { font-size: .85rem; color: var(--text-soft); margin-top: .1rem; }
@media (max-width: 620px) {
  .spiel { grid-template-columns: auto 1fr; gap: .9rem; }
  .spiel > .tag-row, .spiel > .btn { grid-column: 2; justify-self: start; }
}

/* -------------------------------------------------------------- Timeline -- */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(var(--ice-300), var(--ice-200) 70%, transparent);
}
.tl-item { position: relative; padding-bottom: 2.25rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -2.25rem; top: .45rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ice-500);
  box-shadow: 0 0 0 4px var(--ice-50);
}
.tl-item--major::before { border-color: var(--accent); }
.tl-year {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--accent); letter-spacing: -.01em; margin-bottom: .2rem;
}
.tl-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.tl-item p { font-size: .95rem; color: var(--text-soft); max-width: 60ch; }

/* ----------------------------------------------------------------- News --- */
.news { display: grid; gap: 1.25rem; }
.news-item {
  display: grid; gap: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .news-item { grid-template-columns: 300px 1fr; } }
.news-item__media { position: relative; background: var(--ice-100); min-height: 200px; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-item__body { padding: clamp(1.3rem, 2.4vw, 2rem); }
.news-item__date {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.news-item h3 { margin-bottom: .5rem; }
.news-item p { color: var(--text-soft); font-size: .95rem; }
.result-list { list-style: none; padding: 0; margin: .9rem 0 0; font-size: .92rem; }
.result-list li {
  display: flex; gap: .6rem; align-items: baseline;
  padding: .45rem 0; border-top: 1px dashed var(--border); margin: 0;
}
.result-list .place {
  flex: none; width: 2.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--accent);
}
.result-list .team strong { color: var(--ink-900); }
.result-list .team span { color: var(--text-soft); }

/* -------------------------------------------------------------- Gallery --- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gal-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.gal-btn:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }
.gal-btn img { width: 100%; }
.gallery figcaption {
  font-size: .82rem; color: var(--text-soft); padding: .55rem .25rem 0;
}
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgb(var(--ink-rgb) / .93);
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
}
.lightbox::backdrop { background: rgb(var(--ink-rgb) / .93); }
.lightbox img { max-width: 100%; max-height: 80dvh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: var(--ice-200); text-align: center; padding-top: 1rem; font-size: .92rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }

/* ------------------------------------------------------------- Sponsors --- */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 3rem;
  width: max-content; padding-block: .5rem;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.5rem)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 1.5rem 3rem; }
}
.marquee__item {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  color: var(--ink-400); white-space: nowrap; text-decoration: none;
  transition: color .15s;
}
.marquee__item:hover { color: var(--accent); }

.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
.sponsor-card {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; transition: all .18s;
}
.sponsor-card:hover { border-color: var(--ice-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sponsor-card strong { font-family: var(--font-display); font-size: .96rem; color: var(--ink-900); }
.sponsor-card span { font-size: .82rem; color: var(--text-soft); }
.sponsor-card[href]::after { content: '↗'; position: absolute; }

/* ------------------------------------------------------------ Split band -- */
.band { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band--ice { background: var(--ice-100); color: var(--text); }
.band--ice h2 { color: var(--ink-900); }
.band__house {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(46%, 520px); opacity: .07; pointer-events: none;
}
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split--flip .split__media { order: -1; }
@media (max-width: 859px) { .split--flip .split__media { order: 0; } }

/* ------------------------------------------------------------------ CTA --- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900) 55%, #04101f);
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 6vw, 4.5rem);
  color: #fff; text-align: center;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 15% 10%, rgb(var(--ice-rgb) / .25), transparent 60%),
    radial-gradient(45% 60% at 88% 90%, rgb(var(--red-rgb) / .22), transparent 60%);
}
.cta h2 { color: #fff; }
.cta p { color: var(--ice-200); max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }

/* ----------------------------------------------------------------- Table -- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: .8rem 1rem; text-align: left; }
thead th {
  background: var(--ice-100);
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-600);
  white-space: nowrap;
}
tbody tr + tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: var(--ice-50); }
td strong { color: var(--ink-900); }

/* ------------------------------------------------------------- Doc links -- */
.doc-list { display: grid; gap: .5rem; }
.doc {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; transition: all .16s;
}
.doc:hover { border-color: var(--ice-300); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.doc__ico {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  background: rgb(var(--red-rgb) / .08); color: var(--accent);
  border-radius: 10px;
}
.doc__ico svg { width: 18px; height: 18px; }
.doc__name { font-weight: 600; font-size: .94rem; color: var(--ink-900); }
.doc__note { font-size: .82rem; color: var(--text-soft); }
.doc__arrow { margin-left: auto; color: var(--ink-300); }

/* --------------------------------------------------------------- Contact -- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--border); }
.contact-line:first-of-type { border-top: 0; }
.contact-line__ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--ice-100); color: var(--ink-600); border-radius: 11px;
}
.contact-line__ico svg { width: 18px; height: 18px; }
.contact-line dt {
  font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: .1rem;
}
.contact-line dd { margin: 0; font-size: 1rem; color: var(--ink-900); font-weight: 500; }
.contact-line dd a { color: var(--ink-900); }
.map-frame {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--ice-100); aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- Footer -- */
.footer { background: var(--ink-900); color: var(--ink-300); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer a { color: var(--ice-200); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer h4 {
  color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; font-size: .92rem; }
.footer__brand {
  display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem;
}
.footer__brand img {
  height: 112px; width: auto; flex: none;
  /* The crest is dark-on-transparent, so it needs a light plate on navy. */
  background: #fff;
  padding: .55rem .7rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.footer__brand strong {
  font-family: var(--font-display); color: #fff; font-size: 1.22rem;
  display: block; letter-spacing: -.02em; line-height: 1.15;
}
.footer__brand > span > span {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
  font-weight: 600;
}
@media (max-width: 480px) {
  .footer__brand img { height: 84px; }
}
.footer__blurb { font-size: .92rem; max-width: 34ch; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%; color: var(--ice-200); transition: all .16s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer__base {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .84rem;
}

/* ---------------------------------------------------------- Page header --- */
.page-head {
  position: relative; isolation: isolate;
  background: var(--ink-900); color: #fff;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 80% at 8% 0%, rgb(var(--ice-rgb) / .2), transparent 62%),
    radial-gradient(50% 60% at 95% 100%, rgb(var(--red-rgb) / .16), transparent 60%);
}
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-head .lede { color: var(--ice-200); }
.page-head__house {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: min(34%, 340px); opacity: .09; z-index: -1; pointer-events: none;
}
.crumbs { font-size: .84rem; color: var(--ink-300); margin-bottom: 1rem; }
.crumbs a { color: var(--ice-300); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; margin-inline: .45rem; }

/* --------------------------------------------------------- Scroll reveal -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------------ Misc -- */
.prose { max-width: var(--maxw-text); }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.note {
  padding: 1.1rem 1.35rem;
  background: rgb(var(--ice-rgb) / .07);
  border-left: 3px solid var(--ice-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .94rem;
}
.note strong { color: var(--ink-900); }
.access {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem;
  background: rgb(var(--ice-rgb) / .1); color: var(--ice-ink);
  border-radius: 100px; font-size: .85rem; font-weight: 600;
}

/* ==========================================================================
   Sponsor logos
   ========================================================================== */

.logo-marquee .marquee__track { gap: 2.75rem; }
.logo-tile {
  display: grid; place-items: center;
  flex: none;
  height: 76px; width: 168px;
  padding: .55rem .75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.logo-tile img {
  max-height: 100%; max-width: 100%; width: auto;
  object-fit: contain;
}
a.logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ice-300);
}

/* Sponsor directory: the logo is the point, so give it the whole card top. */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr));
  gap: 1rem;
}
.logo-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ice-300);
}
.logo-card__frame {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.logo-card__frame img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.logo-card__body { padding: .85rem 1rem 1rem; }
.logo-card__name {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: .93rem;
  color: var(--ink-900); line-height: 1.3;
}
.logo-card__note {
  display: block; margin-top: .2rem;
  font-size: .79rem; color: var(--text-soft);
}
.logo-card__out {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .5rem;
  font-size: .76rem; font-weight: 600; color: var(--accent);
}

/* ==========================================================================
   Season calendar
   ========================================================================== */

.cal-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-bottom: 1.5rem;
}
.cal-toolbar .filters__label { margin-right: .2rem; }
.cal-months {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin-left: auto;
}

.cal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cal + .cal { margin-top: 1.5rem; }
.cal__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem;
  padding: 1.1rem clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--ice-100);
}
.cal__month {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -.02em; color: var(--ink-900);
}
.cal__year { font-size: .95rem; color: var(--text-soft); font-weight: 500; }
.cal__count { margin-left: auto; font-size: .8rem; color: var(--text-soft); }

.cal__dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}
.cal__dow span {
  padding: .55rem .5rem; text-align: center;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400);
}
.cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--border);
}
.cal__day {
  position: relative;
  min-height: 104px;
  padding: .45rem .5rem .55rem;
  background: var(--surface);
}
.cal__day--pad { background: var(--ice-50); }
.cal__num {
  display: block;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  color: var(--ink-600); margin-bottom: .3rem;
}
.cal__day--pad .cal__num { color: var(--ink-300); }
.cal__events { display: grid; gap: .22rem; }
.cal-ev {
  display: block;
  padding: .2rem .4rem;
  border-radius: 5px;
  border-left: 3px solid var(--ice-500);
  background: rgb(var(--ice-rgb) / .1);
  font-size: .71rem; line-height: 1.35; color: var(--ink-800);
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis;
}
.cal-ev:hover { background: rgb(var(--ice-rgb) / .2); color: var(--ink-900); }
.cal-ev b { font-weight: 600; }
.cal-ev time { display: block; font-size: .66rem; color: var(--text-soft); }
.cal-ev--spiel {
  border-left-color: var(--accent);
  background: rgb(var(--red-rgb) / .09);
}
.cal-ev--spiel:hover { background: rgb(var(--red-rgb) / .17); }
.cal-ev--anniv {
  border-left-color: var(--gold-400);
  background: rgb(var(--gold-rgb) / .14);
}
.cal-ev--anniv:hover { background: rgb(var(--gold-rgb) / .24); }
.cal-ev--social {
  border-left-color: var(--ink-600);
  background: rgba(27, 61, 94, .08);
}

.cal-legend {
  display: flex; flex-wrap: wrap; gap: .45rem 1.1rem;
  margin-bottom: 1.5rem; font-size: .84rem; color: var(--text-soft);
}
.cal-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
/* Scoped modifier names: bare `.spiel` / `.social` already belong to the
   bonspiel row and the footer icon list. */
.cal-key {
  display: block;
  width: 12px; height: 12px; padding: 0;
  border-radius: 3px; flex: 0 0 auto;
  background: rgb(var(--ice-rgb) / .25);
  border-left: 3px solid var(--ice-500);
}
.cal-key--spiel  { background: rgb(var(--red-rgb) / .18);  border-left-color: var(--accent); }
.cal-key--anniv  { background: rgb(var(--gold-rgb) / .28); border-left-color: var(--gold-400); }
.cal-key--social { background: rgba(27, 61, 94, .14);   border-left-color: var(--ink-600); }

/* Below tablet a month grid stops being readable, so switch to an agenda. */
@media (max-width: 720px) {
  .cal__dow { display: none; }
  .cal__grid { grid-template-columns: 1fr; gap: 0; background: transparent; }
  .cal__day { min-height: 0; padding: .7rem clamp(1rem, 3vw, 1.25rem); border-bottom: 1px solid var(--border); }
  .cal__day--pad, .cal__day--empty { display: none; }
  .cal__num { font-size: .9rem; color: var(--accent); }
  .cal-ev { font-size: .84rem; padding: .35rem .55rem; }
  .cal-ev time { font-size: .74rem; }
}

/* Map view switcher ------------------------------------------------------- */
.map-switch {
  display: inline-flex; gap: 2px; margin-bottom: .8rem;
  padding: 3px;
  background: var(--ice-100);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.map-switch__btn {
  padding: .42rem 1rem;
  background: transparent; color: var(--ink-700);
  border: 0; border-radius: 100px;
  font-family: var(--font-body); font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: background .15s, color .15s;
}
.map-switch__btn:hover { color: var(--ink-900); }
.map-switch__btn[aria-pressed="true"] {
  background: var(--white); color: var(--ink-900); font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Polish -------------------------------------------------------------------- */

/* A page header already provides plenty of air; the first section below it
   does not need a full section's worth as well. */
.page-head + .section { padding-top: clamp(2.25rem, 4.5vw, 3.25rem); }

/* Keep every sponsor card the same height with the link pinned to the bottom. */
.logo-grid { align-items: stretch; }
.logo-card { height: 100%; }
.logo-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.logo-card__out { margin-top: auto; padding-top: .5rem; }

/* ==========================================================================
   Registration form
   ========================================================================== */

.reg { max-width: 760px; margin-inline: auto; }

/* Progress along the top, so it is obvious how much is left. */
.reg-steps {
  display: flex; gap: .3rem; margin-bottom: 2rem;
  counter-reset: step;
}
.reg-steps li {
  flex: 1; list-style: none; margin: 0; position: relative;
  padding-top: 1.5rem; text-align: center;
  font-size: .76rem; font-weight: 600; color: var(--ink-300);
}
.reg-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ice-100); color: var(--ink-400);
  font-size: .72rem; line-height: 22px;
}
.reg-steps li::after {
  content: ''; position: absolute; top: 10px; left: 50%; width: 100%;
  height: 2px; background: var(--ice-200); z-index: -1;
}
.reg-steps li:last-child::after { display: none; }
.reg-steps li[aria-current="step"] { color: var(--ink-900); }
.reg-steps li[aria-current="step"]::before {
  background: var(--accent); color: #fff;
}
.reg-steps li.done { color: var(--ink-600); }
.reg-steps li.done::before { background: var(--green-500, #178a5a); color: #fff; content: '✓'; }
.reg-steps li.done::after { background: var(--ice-300); }

.reg-panel { display: none; }
.reg-panel.is-active { display: block; animation: reveal .25s ease; }

.reg-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .reg-grid--2 { grid-template-columns: 1fr 1fr; } }

.reg-field { display: grid; gap: .35rem; }
.reg-field label { font-size: .85rem; font-weight: 600; color: var(--ink-700); }
.reg-field label .req { color: var(--accent); }
.reg-field input, .reg-field select, .reg-field textarea {
  font: inherit; font-size: 1rem;
  padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); width: 100%;
}
.reg-field input:focus, .reg-field select:focus, .reg-field textarea:focus {
  outline: none; border-color: var(--ice-500);
  box-shadow: 0 0 0 3px rgb(var(--ice-rgb) / .18);
}
.reg-field .hint { font-size: .82rem; color: var(--text-soft); }
.reg-field .err { font-size: .82rem; color: var(--red-600); font-weight: 500; }
.reg-field.is-bad input, .reg-field.is-bad select { border-color: var(--accent); }

/* Selectable cards, for fee categories and leagues. */
.reg-options { display: grid; gap: .6rem; }
.reg-option {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .95rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.reg-option:hover { border-color: var(--ice-300); }
.reg-option input { margin-top: .2rem; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.reg-option:has(input:checked) {
  border-color: var(--accent); background: rgb(var(--red-rgb) / .04);
  box-shadow: 0 0 0 1px var(--accent);
}
.reg-option__body { flex: 1; min-width: 0; }
.reg-option__title {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--ink-900);
}
.reg-option__price {
  margin-left: auto; font-family: var(--font-display); font-weight: 700;
  color: var(--ink-900); white-space: nowrap;
}
.reg-option__note { font-size: .86rem; color: var(--text-soft); margin-top: .2rem; }
.reg-option--closed { opacity: .55; cursor: not-allowed; }

/* Waivers: a scrollable statement plus a tick. */
.reg-waiver {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; padding: 1rem 1.1rem; margin-bottom: .7rem;
}
.reg-waiver h4 { margin: 0 0 .3rem; font-size: .98rem; }
.reg-waiver__meta { font-size: .8rem; color: var(--text-soft); margin-bottom: .6rem; }
.reg-waiver__tick {
  display: flex; gap: .7rem; align-items: flex-start;
  padding-top: .6rem; border-top: 1px dashed var(--border); font-size: .92rem;
}
.reg-waiver__tick input { margin-top: .15rem; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.reg-summary {
  background: var(--ice-100); border-radius: var(--r-md);
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.reg-summary dl { display: grid; gap: .45rem; margin: 0; }
.reg-summary .line {
  display: flex; gap: 1rem; justify-content: space-between;
  font-size: .93rem; padding-bottom: .45rem;
  border-bottom: 1px solid var(--ice-200);
}
.reg-summary .line:last-child { border-bottom: 0; padding-bottom: 0; }
.reg-summary dt { color: var(--text-soft); margin: 0; }
.reg-summary dd { margin: 0; font-weight: 600; color: var(--ink-900); text-align: right; }
.reg-summary .total { font-family: var(--font-display); font-size: 1.15rem; }

.reg-nav {
  display: flex; gap: .75rem; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.reg-nav .spacer { margin-left: auto; }

.reg-alert {
  padding: .9rem 1.1rem; border-radius: var(--r-md); margin-bottom: 1.25rem;
  font-size: .93rem; border: 1px solid transparent;
}
.reg-alert--error { background: #fdeaec; border-color: #f5c6cb; color: #8a1b26; }
.reg-alert--good { background: #e2f4ec; border-color: #b8e2ce; color: #0f5c3c; }
.reg-alert--info { background: var(--ice-100); border-color: var(--ice-200); color: var(--ink-700); }
.reg-alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

.reg-loading { text-align: center; padding: 3rem 1rem; color: var(--text-soft); }
.reg-spinner {
  width: 26px; height: 26px; margin: 0 auto 1rem; border-radius: 50%;
  border: 3px solid var(--ice-200); border-top-color: var(--ice-500);
  animation: reg-spin .8s linear infinite;
}
@keyframes reg-spin { to { transform: rotate(360deg); } }

.reg-done { text-align: center; padding: 1rem 0; }
.reg-done__tick {
  width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: #e2f4ec; color: #0f5c3c;
  display: grid; place-items: center; font-size: 2rem;
}

/* Signature pad ----------------------------------------------------------- */
.sig-pad {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; overflow: hidden;
}
.sig-pad.is-bad { border-color: var(--accent); }
.sig-pad canvas {
  display: block; width: 100%; height: 150px;
  cursor: crosshair; background: transparent; position: relative; z-index: 1;
}
/* A ruled line, so it reads as somewhere to sign. */
.sig-pad::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 38px;
  border-bottom: 1px dashed var(--ice-300); pointer-events: none;
}
.sig-pad__hint {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; font-size: .82rem; color: var(--ink-300);
  pointer-events: none; transition: opacity .15s;
}
.sig-pad.has-ink .sig-pad__hint { opacity: 0; }
.sig-pad__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-top: 1px solid var(--border);
  background: var(--ice-50);
}
.sig-pad__bar .spacer { margin-left: auto; }
.sig-pad__clear {
  font: inherit; font-size: .82rem; font-weight: 600;
  background: none; border: 0; color: var(--ink-600); cursor: pointer;
  padding: .2rem .4rem; border-radius: 6px;
}
.sig-pad__clear:hover { color: var(--accent); background: #fff; }
.sig-pad__count { font-size: .76rem; color: var(--ink-300); }

/* Signing block inside a waiver card ------------------------------------- */
.reg-sign {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.reg-sign h5 {
  margin: 0 0 .75rem; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-600);
}
.reg-sign__label {
  display: block; margin: .9rem 0 .35rem;
  font-size: .88rem; font-weight: 600; color: var(--ink-700);
}
.reg-sign__legal {
  margin: .7rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--ink-300);
}

/* Tabular, unambiguous — for verification codes read off a printed waiver. */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ==========================================================================
   Waiver documents rendered as a form
   --------------------------------------------------------------------------
   A waiver is an ordered list of blocks: prose to read and fields to fill in.
   The prose has to read like a document rather than like form furniture, so
   content blocks get real paragraph measure and the fields sit between them.
   ========================================================================== */

.wf { display: grid; gap: 1.35rem; }

.wf-content { color: var(--ink-700); }
.wf-content h3 {
  margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.3; color: var(--ink-900);
}
.wf-content p { margin: 0 0 .7rem; line-height: 1.65; font-size: .95rem; }
.wf-content p:last-child { margin-bottom: 0; }

/* The three ways a clause can be set off from the prose around it. */
.wf-content--border,
.wf-content--shadow,
.wf-content--filled {
  padding: 1rem 1.15rem; border-radius: var(--r-md);
}
.wf-content--border { border: 1px solid var(--border); }
.wf-content--shadow { background: #fff; box-shadow: 0 2px 12px rgba(10, 26, 47, .08); }
.wf-content--filled { background: var(--ice-50); border: 1px solid var(--ice-100, var(--border)); }

/* A consent clause. The label IS the thing being agreed to, so it is set at
   reading size rather than as a small form label. */
.wf-consent {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: .9rem 1rem; background: #fff;
}
.wf-consent label {
  display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  font-size: .94rem; line-height: 1.55; color: var(--ink-700);
}
.wf-consent input {
  margin-top: .2rem; flex: none; width: 19px; height: 19px; accent-color: var(--accent);
}
.wf-consent:has(input:checked) { border-color: var(--ice-300); background: var(--ice-50); }
.wf-consent.is-bad { border-color: var(--accent); }
.wf-consent .req { color: var(--accent); }

.wf-help {
  display: block; margin-top: .3rem;
  font-size: .82rem; color: var(--text-soft); line-height: 1.5;
}

.wf-choice__label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700);
}
.wf-choice__label .req { color: var(--accent); }
.wf-choice__options {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem;
}
.wf-radio {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .85rem; cursor: pointer; font-size: .9rem;
  background: #fff;
}
.wf-radio:has(input:checked) {
  border-color: var(--accent); background: var(--ice-50); font-weight: 600;
}
.wf-radio input { accent-color: var(--accent); }
.wf-choice.is-bad .wf-radio { border-color: var(--accent); }

.wf-sign__label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700);
  margin-bottom: .5rem;
}
.wf-sign__label .req { color: var(--accent); }
.wf-sign .reg-field { margin-bottom: .7rem; }
.wf-sign.is-bad .sig-pad { border-color: var(--accent); }

/* Initials need a fraction of the room a signature does, and a box the width
   of the page invites someone to write their whole name in it. */
.sig-pad--initials { max-width: 230px; }
.sig-pad--initials canvas { height: 100px; }

.wf .err { display: block; font-size: .82rem; color: var(--red-600); font-weight: 500; }

/* Who is signing, on the public link where nobody is signed in ------------ */
.wf-identity {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.1rem 1.15rem; background: var(--ice-50); margin-bottom: 1.5rem;
}
.wf-identity h3 { margin: 0 0 .2rem; font-size: 1rem; }
.wf-identity p { margin: 0 0 .9rem; font-size: .87rem; color: var(--text-soft); }
.wf-identity .reg-grid { gap: .8rem; }

@media (min-width: 640px) {
  .wf-identity .reg-grid { grid-template-columns: 1fr 1fr; }
}

/* The receipt shown once a waiver is signed ------------------------------- */
.wf-done {
  border: 1px solid var(--ice-300); border-radius: var(--r-md);
  background: var(--ice-50); padding: 1.25rem;
}
.wf-done h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.wf-code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 1.15rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-900); background: #fff;
  border: 1px dashed var(--ice-300); border-radius: 8px;
  padding: .45rem .8rem; display: inline-block; margin: .35rem 0 .6rem;
}

/* ---------------------------------------------------------------- video --
   A responsive 16:9 embed. `aspect-ratio` on the wrapper rather than the old
   padding-top trick, because every browser the club's members actually use
   supports it, and the iframe is absolutely positioned so it fills the box
   however wide the column is.
   ------------------------------------------------------------------------ */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video__note {
  font-size: .84rem;
  color: var(--text-soft);
  margin-top: .75rem;
}
