/* Layout concept: a 200 m skating track. Lane lines run under section heads,
   lap-time numbers set in mono, slanted condensed display type for speed. */
:root {
  --ink: #0f1a2b;          /* track asphalt navy */
  --paper: #f5f7fa;        /* rink-white, cool */
  --surface: #ffffff;
  --muted: #5a6577;
  --line: #d8dee8;
  --lane: #027e7e;         /* logo teal */
  --signal: #e02a2a;       /* logo wheel red */
  --on-lane: #ffffff;
  --ph-bg: #fff4c7;
  --ph-fg: #6b4e00;

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: 0.875rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.6rem; --s3: 2.2rem; --s4: clamp(2.6rem, 7vw, 4.6rem);
  --radius: 6px;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--lane); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: var(--s4); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; }
h2 { font-size: var(--s3); font-weight: 700; font-style: italic; text-transform: uppercase; }
h3 { font-size: var(--s1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
p { margin: 0; max-width: 65ch; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Placeholder text the association still needs to fill in */
.ph { background: var(--ph-bg); color: var(--ph-fg); padding: 0 0.25em; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 120px; height: 120px; flex: none; }
.foot-logo { width: 72px; height: 72px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 4.1rem; letter-spacing: 0.02em; line-height: 1; }
.brand-sub { display: block; font-family: var(--f-mono); font-size: 1.64rem; letter-spacing: 0.05em; line-height: 1.15; text-transform: uppercase; color: var(--muted); font-style: normal; font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.03em; padding-block: 4px; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* Lane line divider: the 4 lane markings of a track */
.lanes { height: 14px; background:
  linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 6px / 100% 2px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 12px / 100% 2px no-repeat; }

/* Hero */
.hero { padding-block: 56px 40px; display: grid; gap: 32px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; align-items: center; padding-block: 80px 56px; } }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 span { color: var(--lane); }
.lede { font-size: var(--s1); color: var(--muted); }
.track-art { width: 100%; max-width: 100%; height: auto; }
.track-art .oval { fill: none; stroke: var(--line); stroke-width: 2; }
.track-art .oval-strong { fill: none; stroke: var(--lane); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 260 1200; animation: lap 6s linear infinite; }
.track-art .finish { stroke: var(--signal); stroke-width: 6; }
.track-art text { fill: var(--muted); font-family: var(--f-mono); font-size: 13px; }
@keyframes lap { to { stroke-dashoffset: -1460; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; padding: 10px 22px; border-radius: var(--radius); border: 2px solid var(--lane); cursor: pointer; }
.btn-primary { background: var(--lane); color: var(--on-lane); }
.btn-ghost { background: transparent; color: var(--lane); }
.btn:hover { filter: brightness(1.08); }

/* Sections */
.section { padding-block: 56px; display: grid; gap: 28px; }
.section-head { display: grid; gap: 8px; }
.page-head { padding-block: 48px 24px; display: grid; gap: 14px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card .eyebrow { color: var(--lane); }

/* Stat strip, like a results board */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.board div { padding: 18px 12px; display: grid; gap: 2px; }
.board div + div { border-left: 1px solid var(--line); }
@media (max-width: 560px) { .board div + div { border-left: 0; border-top: 1px solid var(--line); } }
.board .num { font-family: var(--f-mono); font-size: var(--s2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Events list */
.events { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event { display: grid; gap: 6px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 720px) { .event { grid-template-columns: 140px 1fr auto; align-items: baseline; } }
.event .date { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--lane); font-weight: 600; }
.event h3 { font-size: var(--s1); }
.event p { color: var(--muted); }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); white-space: nowrap; }
.tag.open { border-color: var(--lane); color: var(--lane); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td.mono { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* Split layout */
.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { min-width: 0; }
.stack { display: grid; gap: 14px; align-content: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 4px; background: var(--signal); transform: skewX(-20deg); }

/* Callout band */
.band { background: var(--lane); color: var(--on-lane); border-radius: var(--radius); padding: 32px 24px; display: grid; gap: 16px; }
.band h2 { color: var(--on-lane); }
.band p { opacity: 0.92; }
.band .btn { background: var(--on-lane); color: var(--lane); border-color: var(--on-lane); justify-self: start; }

/* Form */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: var(--s-1); color: var(--muted); }
.notice { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--lane); }

dl.contact { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
dl.contact dt { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
dl.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Footer */
.site-foot { margin-top: 40px; border-top: 2px solid var(--ink); padding-block: 28px 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; color: var(--muted); font-size: var(--s-1); }
.site-foot a { color: var(--muted); }

/* ---- Federation-style additions ---- */
.topbar { background: var(--lane); color: #fff; font-size: 0.8rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.topbar .login { color: #fff; font-weight: 700; background: var(--signal); padding: 0 8px; border-radius: 3px; }

.nav .cta a { background: var(--signal); color: #fff; padding: 4px 12px; border-radius: var(--radius); border-bottom: 0; }

/* Hero slider */
.slider { position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(120deg, #e2f3f2 0%, #ffffff 60%, #fdecec 100%); color: var(--ink); border: 1px solid var(--line); }
.slide { display: grid; gap: 18px; padding: 40px 24px 72px; min-height: 320px; align-content: center; }
@media (min-width: 900px) { .slide { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 40px 48px 72px; } }
.slide > * { min-width: 0; }
.slide h1, .slide h2 { color: var(--ink); font-size: clamp(1.82rem, 4.9vw, 3.22rem); }
.slide h1 span, .slide h2 span { color: var(--lane); }
.slide p { color: var(--muted); font-size: var(--s1); }
.slide .eyebrow { color: var(--lane); }




.slider-ctrl { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; gap: 10px; align-items: center; }
@media (min-width: 900px) { .slider-ctrl { left: 48px; } }
.dot { width: 34px; height: 6px; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; padding: 0; }
.dot[aria-current="true"] { background: var(--lane); }
.big-num { font-family: var(--f-mono); font-size: clamp(3rem, 10vw, 6rem); font-weight: 600; color: var(--lane); line-height: 1; }

/* Registration banner */
.reg-banner { display: grid; gap: 16px; padding: 24px; border: 2px solid var(--signal); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 760px) { .reg-banner { grid-template-columns: 1fr auto; align-items: center; } }
.reg-banner > * { min-width: 0; }

.card .btn { justify-self: start; font-size: 1rem; padding: 6px 16px; }
.card .meta { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* Category tiles (like discipline icons) */
.cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.cat { display: grid; gap: 6px; padding: 18px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--lane); }
.cat .ages { font-family: var(--f-mono); color: var(--lane); font-weight: 600; font-variant-numeric: tabular-nums; }
.cat strong { font-family: var(--f-display); font-size: 1.2rem; text-transform: uppercase; }

/* Media tiles (gallery / video placeholders) */
.media { aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--radius); background:
  repeating-linear-gradient(-20deg, color-mix(in srgb, var(--lane) 18%, var(--surface)) 0 14px, var(--surface) 14px 28px);
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; position: relative; }
.media.video::after { content: ""; width: 0; height: 0; border-left: 22px solid var(--lane); border-top: 14px solid transparent; border-bottom: 14px solid transparent; position: absolute; }
.media.video span { position: absolute; bottom: 10px; left: 12px; }

.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.medal { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; text-align: center; }
.medal .num { font-family: var(--f-mono); font-size: var(--s3); font-weight: 600; }
.medal.gold { border-top: 5px solid #d4a514; } .medal.silver { border-top: 5px solid #9aa3ad; } .medal.bronze { border-top: 5px solid #b0703a; }

/* Sub-nav tabs within a page */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { font-family: var(--f-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.subnav a:hover { border-color: var(--lane); color: var(--lane); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.result-box { padding: 16px; border-radius: var(--radius); border: 2px dashed var(--lane); background: var(--surface); display: grid; gap: 4px; }
.result-box strong { font-family: var(--f-display); font-size: var(--s2); text-transform: uppercase; color: var(--lane); }

.foot-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); width: 100%; }
.foot-cols h3 { color: var(--ink); font-size: 1rem; margin-bottom: 8px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-bottom { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.more[hidden] { display: none !important; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .site-head { position: static; } }

/* Moving news ribbon (home page) */
.ribbon { display: flex; align-items: stretch; background: #fff; border-block: 1px solid var(--line); overflow: hidden; }
.ribbon-label { flex: none; background: var(--signal); color: #fff; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 16px; display: flex; align-items: center; }
.ribbon-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 45s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon-track ul { display: flex; list-style: none; margin: 0; padding: 0; min-width: 100vw; justify-content: space-around; }
.ribbon-track li { white-space: nowrap; padding: 8px 28px; position: relative; }
.ribbon-track li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 10px; height: 3px; background: var(--lane); transform: skewX(-20deg); }
.ribbon-track a { color: var(--ink); text-decoration: none; }
.ribbon-track a:hover { color: var(--lane); text-decoration: underline; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-viewport { overflow-x: auto; } .ribbon-track ul[aria-hidden] { display: none; } }
.slide p.eyebrow { font-size: 0.8rem; }

/* Facebook Page Plugin */
.fb-feed { display: grid; gap: 10px; justify-items: start; }
.fb-feed iframe { width: 100%; max-width: 500px; height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Office bearer cards with photo */
.person { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--lane) 14%, var(--surface)); color: var(--lane); font-family: var(--f-display); font-weight: 700; font-size: 2rem; border: 3px solid var(--lane); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Skating disciplines (home) */
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .eyebrow { color: var(--signal); font-weight: 600; }
.section-head.center .eyebrow::after { content: ""; display: block; width: 40px; height: 3px; margin: 6px auto 0; background: var(--signal); border-radius: 2px; }
.section-head.center p:not(.eyebrow) { color: var(--muted); }
.disc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.disc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 16px; display: grid; justify-items: center; gap: 14px; text-align: center; transition: border-color .15s, transform .15s; }
.disc-card:hover { border-color: var(--lane); transform: translateY(-2px); }
.disc-icon { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; color: var(--lane); background: color-mix(in srgb, var(--lane) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--lane) 25%, var(--surface)); }
.disc-card h3 { font-size: 1.15rem; }

/* Hero slide: track graphic top-left, headline beneath */
.slide-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: start; gap: 12px; }
@media (min-width: 900px) { .slide-hero { grid-template-columns: 1fr; align-items: start; } }
.slide-hero .track-art { width: min(100%, 640px); margin: -12px 0 0; }
.slide-hero .track-art text { font-size: 16px; }

/* Register dropdown */
.nav .has-sub { position: relative; }
.nav .cta .sub-toggle { font: inherit; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; border: 0; background: var(--signal); color: #fff; padding: 4px 12px; border-radius: var(--radius); }
.nav .cta .sub-toggle:hover { filter: brightness(1.08); }
.nav .sub { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15, 26, 43, 0.15); }
@media (min-width: 761px) { .nav .sub { left: auto; right: 0; } }
.nav .sub[hidden] { display: none; }
.nav .sub a { display: block; padding: 8px 12px; border-bottom: 0; border-radius: 4px; background: transparent; color: var(--ink); }
.nav .sub a:hover { background: color-mix(in srgb, var(--lane) 10%, var(--surface)); color: var(--lane); }
.section.tight { padding-bottom: 0; }
.section.split h3 { margin-bottom: 4px; }
.card-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.slide-photo { width: 100%; max-width: 364px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); justify-self: center; }
.card-img.wide, .slide-photo.wide { aspect-ratio: 16 / 9; }
.slide-photo.wide { max-width: 546px; }
.card-img.photo43, .slide-photo.photo43 { aspect-ratio: 4 / 3; }
.slide-photo.photo43 { max-width: 494px; }
.card-img.wide, .slide-photo.wide { object-position: center top; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-row img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: 8px; }
.slide-row { width: 100%; max-width: 676px; justify-self: center; }
.card-img.photo32 { aspect-ratio: 3 / 2; }

/* Photo albums */
.album { display: grid; gap: 18px; margin-bottom: 32px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 800px) { .album { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } .album-grid { grid-column: 1 / -1; } }
.album-cover { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.album-body { align-content: center; justify-items: start; }
.album .credit { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
.album-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.album-grid[hidden] { display: none; }
.album-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.more-albums { margin: 8px 0 12px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10, 16, 24, 0.88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 16px; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; }
.lightbox p { color: #fff; margin: 0; text-align: center; font-size: 0.95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.92); color: #0e1a26; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 12px; right: 12px; } .lightbox .lb-prev { left: 8px; top: 50%; } .lightbox .lb-next { right: 8px; top: 50%; }

/* Skaters list filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { font-family: var(--f-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; min-height: 40px; }
.chip small { font-size: inherit; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--lane); border-color: var(--lane); color: #fff; }
.chip[aria-pressed="true"] small { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.wide { grid-column: 1 / -1; }
.field textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; resize: vertical; }
.form-sub { margin: 24px 0 12px; font-size: 1rem; }
.consent { display: grid; gap: 10px; margin: 16px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

.name-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--lane); text-decoration: underline; cursor: pointer; text-align: left; }
.name-link:hover { color: var(--signal); }
.profile { border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(92vw, 420px); background: var(--surface); color: var(--ink); }
.profile::backdrop { background: rgba(10, 16, 24, 0.6); }
.profile-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.profile-body { padding: 24px 20px 20px; }
.profile-pic { width: 160px; height: 200px; margin: 0 auto 14px; border-radius: 8px; overflow: hidden; background: var(--line); display: grid; place-items: center; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.profile-pic.empty span { color: var(--muted); font-size: 0.9rem; }
.profile-body h2 { margin: 0 0 10px; text-align: center; }
.profile-body h3 { margin: 14px 0 4px; font-size: 1rem; }
.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; }
.profile-titles { margin: 0; white-space: pre-line; }
.profile-links { display: flex; gap: 16px; margin: 14px 0 0; }
.name-thumb { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 10px; background: var(--line); }
td:has(> .name-link) { white-space: nowrap; }
@media (max-width: 560px) { .brand-mark { width: 64px; height: 64px; } }

/* Home: scrolling "Latest from DDRSA" panel. On very wide screens it sits in the empty space right of the
   banner (the banner is unchanged); on smaller screens it sits below the banner. */
.hero-grid { position: relative; padding-top: 24px; }
.hero-grid .slider { margin-top: 0; }
.updates { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.updates-title { margin: 0; padding: 12px 16px; font-size: 1.05rem; background: var(--signal); color: #fff; }
.updates-view { position: relative; height: 240px; overflow: hidden; }
.updates-track { animation: updates-up 40s linear infinite; }
.updates:hover .updates-track, .updates:focus-within .updates-track { animation-play-state: paused; }
.updates ul { list-style: none; margin: 0; padding: 0; }
.updates li { border-bottom: 1px solid var(--line); }
.updates a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.updates a:hover strong { color: var(--lane); text-decoration: underline; }
.updates a span { display: block; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.updates a strong { font-weight: 600; line-height: 1.3; }
@keyframes updates-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (min-width: 1760px) {
  .updates { position: absolute; left: calc(100% + 24px); top: 24px; bottom: 0; width: 320px; margin-top: 0; }
  .updates-view { flex: 1; height: auto; min-height: 0; }
  .updates-track { position: absolute; left: 0; right: 0; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .updates-track { animation: none; }
  .updates-view { overflow-y: auto; }
  .updates ul[aria-hidden] { display: none; }
}
.card[id] { scroll-margin-top: 24px; }
html { scroll-padding-top: 16px; }
@media (max-width: 900px) { .brand-name { font-size: 3rem; } .brand-sub { font-size: 1.1rem; } .brand-mark { width: 96px; height: 96px; } }
@media (max-width: 560px) { .brand-mark { width: 64px; height: 64px; } .brand-name { font-size: 2.2rem; } .brand-sub { font-size: 0.8rem; letter-spacing: 0.03em; } }

/* Sticky header: the large brand row scrolls away; the menu bar stays, with a compact brand block */
.nav .mini { display: none; }
.mini-brand { display: flex; align-items: center; gap: 10px; border-bottom: 0 !important; }
.mini-brand img { width: 40px; height: 40px; }
.mini-text { display: none; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.mini-text small { display: none; font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 3px; }
@media (min-width: 1000px) {
  .site-head.is-stuck .nav .mini { display: block; margin-right: auto; }
  .site-head.is-stuck .nav { flex-wrap: nowrap; align-items: center; gap: 4px 12px; }
  .site-head.is-stuck .nav a, .site-head.is-stuck .nav .sub-toggle { font-size: 1rem; }
}
@media (min-width: 1100px) { .site-head.is-stuck .mini-text { display: block; } }
@media (min-width: 1400px) {
  .site-head.is-stuck .wrap { max-width: none; padding-inline: 32px; }
  .site-head.is-stuck .mini-text small { display: block; }
  .site-head.is-stuck .nav { gap: 4px 18px; }
  .site-head.is-stuck .nav a, .site-head.is-stuck .nav .sub-toggle { font-size: 1.1rem; }
}
@media (min-width: 761px) { html { scroll-padding-top: 80px; } }
.foot-disclaimer { flex-basis: 100%; width: 100%; max-width: none; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.72rem; line-height: 1.55; color: var(--muted); }
.foot-disclaimer strong { color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }

/* The Latest ticker (home page) stays fixed directly under the slim header bar */
@media (min-width: 761px) {
  .ribbon { position: sticky; top: var(--head-h, 0px); z-index: 9; }
  html:has(.ribbon) { scroll-padding-top: 128px; }
}
