/*
  The club site and its management panel — the same system as Yoklama and Turing Arena, so the
  club's tools read as one family.
  Palette: green-black neutrals carry the surface; one lime tone owns interaction (buttons, focus,
  links inside a story, a chosen role or picture). Amber marks something that is not live: a closed
  link, a draft. Coral is for errors and destructive actions. No other hues. Clicks are drawn in
  two steps of one green-grey ramp.
  Type: Space Grotesk for interface, JetBrains Mono for the addresses people type off posters.
  Scale 12/14/16/18/22/28/40/56.
  Layout: one column, grouped by space. Every list is the same row on a surface tone, and only
  links are rows; lines only inside tables and the home page hero.
*/
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/space-grotesk-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/space-grotesk-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/space-grotesk-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/space-grotesk-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: dark;
  --canvas: #0f1310;
  --surface: #171d18;
  --surface-2: #212922;
  --surface-3: #2b352c;
  --line: #ffffff12;
  --line-strong: #5a665b;
  --text: #eef2ea;
  --muted: #a8b2a8;
  --faint: #7f8b80;
  --accent: #b8ed9b;
  --accent-hover: #cdf7b7;
  --accent-ink: #142010;
  --accent-soft: #b8ed9b1f;
  --warning: #efcd89;
  --warning-soft: #efcd8917;
  --danger: #ffb2a8;
  --danger-soft: #ffb2a81a;

  --font-ui: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, monospace;
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px;
  --fs-22: 22px; --fs-28: 28px; --fs-40: 40px; --fs-56: 56px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 8px; --r-md: 12px;
  --dur-fast: 120ms; --dur-base: 180ms;
  --ease-out: cubic-bezier(0, 0, .2, 1);

  --icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10 3.5L5.5 8l4.5 4.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5L10.5 8 6 12.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 5v3.2l2 1.3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-bullhorn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 6.2v3.6h2.3l4.7 3V3.2L4.8 6.2z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 5.8a2.6 2.6 0 0 1 0 4.4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='5.5' y='5.5' width='7.5' height='7.5' rx='1.6' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M10.5 3.5V3a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h.5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");

  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100svh; display: flex; flex-direction: column; background: var(--canvas); font-size: var(--fs-16); line-height: 1.5; }
main { flex: 1 0 auto; width: 100%; }
main:focus { outline: none; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
p { margin: 0 0 var(--s3); overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: var(--fs-28); }
h2 { font-size: var(--fs-22); }
h3 { font-size: var(--fs-18); letter-spacing: -.01em; }
strong { font-weight: 500; }
[hidden] { display: none !important; }
noscript { display: block; max-width: 520px; padding: var(--s6) var(--s4); margin: auto; }
.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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Headings take focus only so screen readers announce a new screen; they need no ring. */
h1[tabindex='-1']:focus, main:focus { outline: none; }
.code { font-family: var(--font-code); font-weight: 500; letter-spacing: .02em; }

/* Buttons: primary (the one next step), secondary, quiet text, danger text. */
button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border: 1px solid transparent; border-radius: var(--r-sm); background: none; font-size: var(--fs-16); font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease; }
button:disabled { cursor: default; opacity: .45; }
button[aria-busy='true'] { opacity: .7; cursor: progress; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary { background: var(--surface-2); color: var(--text); }
.secondary:hover:not(:disabled) { background: var(--surface-3); }
a.secondary, a.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-sm); font-weight: 500; text-decoration: none; transition: background-color var(--dur-fast) ease; }
.text-button { min-height: 40px; padding: 0 var(--s2); color: var(--muted); font-size: var(--fs-14); }
.text-button:hover:not(:disabled) { color: var(--text); }
.danger-text { min-height: 40px; padding: 0 var(--s2); color: var(--danger); font-size: var(--fs-14); }
.danger-text:hover:not(:disabled) { background: var(--danger-soft); }
.small-button { min-height: 36px; padding: 0 var(--s3); background: var(--surface-2); font-size: var(--fs-14); }
.small-button:hover:not(:disabled) { background: var(--surface-3); }
.wide { width: 100%; }
.back-link { display: inline-flex; align-items: center; gap: var(--s1); min-height: 40px; padding: 0 var(--s2) 0 0; color: var(--muted); font-size: var(--fs-14); text-decoration: none; }
.back-link::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon-chevron-left) center / 16px no-repeat; mask: var(--icon-chevron-left) center / 16px no-repeat; }
.back-link:hover { color: var(--text); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* Copy: the icon turns into a check for a moment, since the clipboard itself shows nothing. */
.copy-button { position: relative; }
.copy-button::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon-copy) center / 16px no-repeat; mask: var(--icon-copy) center / 16px no-repeat; transition: scale var(--dur-base) var(--ease-out); }
.copy-button.is-done::before { -webkit-mask-image: var(--icon-check); mask-image: var(--icon-check); color: var(--accent); scale: 1.1; }

/* Fields: 16px text so mobile browsers never zoom on focus. */
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: var(--s3) 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #0b0f0c; font-size: var(--fs-16); transition: border-color var(--dur-fast) ease; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--faint); }
select { appearance: none; padding-right: 40px; background: #0b0f0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a8b2a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input[type='checkbox'] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
label { display: block; font-size: var(--fs-14); font-weight: 500; }
label > input, label > select, label > textarea { margin-top: var(--s2); font-weight: 400; }
.check-label { display: flex; align-items: center; gap: var(--s3); min-height: 48px; font-size: var(--fs-16); font-weight: 400; }
.optional { color: var(--muted); font-weight: 400; }
.form-stack { display: flex; flex-direction: column; gap: var(--s4); }
.form-stack > button { margin-top: var(--s1); }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.input-action { display: flex; gap: var(--s2); }
.input-action input { flex: 1; }
.input-action button { flex: none; }

/* Text roles. */
.eyebrow { display: block; margin: 0 0 var(--s1); color: var(--muted); font-size: var(--fs-14); }
.lead { margin: var(--s2) 0 var(--s5); color: var(--muted); }
.fine-print { color: var(--muted); font-size: var(--fs-14); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Page chrome. */
.site-header { display: flex; align-items: center; gap: var(--s3); width: 100%; max-width: 1120px; min-height: 56px; margin: 0 auto; padding: var(--s2) var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-16); font-weight: 700; letter-spacing: .02em; line-height: 1; text-decoration: none; }
.brand img { width: 28px; height: 28px; flex: none; border-radius: 50%; }
.header-caption { color: var(--muted); font-size: var(--fs-14); }
.header-end { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.site-footer { width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--s3) var(--s4) max(var(--s3), env(safe-area-inset-bottom)); color: var(--faint); font-size: var(--fs-12); }

/* Floating messages are the only things with shadows. */
.notice { position: sticky; top: var(--s2); z-index: 30; margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: #24302a; font-size: var(--fs-14); box-shadow: 0 6px 20px #0006; animation: notice-in var(--dur-base) var(--ease-out); }
.notice.error { background: #33231f; color: #ffd8d1; }
@keyframes notice-in { from { opacity: 0; translate: 0 -6px; } }

.dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: var(--s5); border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: 0 24px 80px #000a; opacity: 1; translate: 0 0; transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out), overlay var(--dur-base) allow-discrete, display var(--dur-base) allow-discrete; }
@starting-style { .dialog[open] { opacity: 0; translate: 0 8px; } }
.dialog::backdrop { background: #050805c4; }
.dialog h2 { margin-bottom: var(--s2); }
.dialog .lead { margin-bottom: var(--s4); }
.dialog-actions { display: flex; gap: var(--s2); margin-top: var(--s5); }
.dialog-actions button { flex: 1; }
.dialog-wide { width: min(560px, calc(100vw - 32px)); }

.loading-state, .empty-state { padding: var(--s6) 0; }
.empty-state h3 { margin-bottom: var(--s2); }
.empty-state p { max-width: 460px; color: var(--muted); font-size: var(--fs-14); }

/* One row pattern for every list. */
.rows { display: flex; flex-direction: column; gap: 2px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--surface); }
.row-title { display: block; overflow-wrap: anywhere; }
.row-meta { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-14); overflow-wrap: anywhere; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--s2); }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s3); }
.section-heading h2, .section-heading h3 { flex: 1; }
.section-heading > span { color: var(--muted); font-size: var(--fs-14); }


.table-scroll { overflow-x: auto; margin: 0 calc(var(--s4) * -1); padding: 0 var(--s4); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--fs-14); }
th { padding: 0 var(--s3) var(--s2) 0; color: var(--faint); font-size: var(--fs-12); font-weight: 400; white-space: nowrap; vertical-align: bottom; }
td { padding: var(--s2) var(--s3) var(--s2) 0; border-top: 1px solid var(--line); vertical-align: middle; }
th:last-child, td:last-child { padding-right: 0; text-align: right; }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
td.code { color: var(--muted); font-size: var(--fs-14); }

@media (min-width: 768px) {
  .site-header, .site-footer { padding-inline: var(--s6); }
}
@media (max-width: 420px) {
  .form-columns { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Public pages: not found, closed ───────────────────────────────────── */
.public-main { max-width: 520px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); }
.problem h1 { margin-bottom: var(--s3); }
.problem p { color: var(--muted); }
.problem .secondary { margin-top: var(--s2); }

/* ── Staff panel ───────────────────────────────────────────────────────── */
.panel-main { max-width: 1120px; margin: 0 auto; padding: var(--s3) var(--s4) var(--s7); }
.panel-nav { display: flex; gap: var(--s1); overflow-x: auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s4) var(--s2); scrollbar-width: none; }
.panel-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s3); border-radius: var(--r-sm); color: var(--muted); font-size: var(--fs-14); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.panel-nav a:hover { color: var(--text); }
.panel-nav a[aria-current='page'] { background: var(--surface-2); color: var(--text); }
.narrow { max-width: 420px; margin: var(--s6) auto 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.page-head > div { min-width: 0; }
.page-head .meta { margin: var(--s2) 0 0; color: var(--muted); font-size: var(--fs-14); }
.page-head .meta > span + span::before { content: '·'; margin: 0 var(--s2); color: var(--faint); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.toolbar input { flex: 1 1 220px; width: auto; }

.secret-box { margin: var(--s4) 0; padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-22); text-align: center; }
.dialog-extra { display: grid; gap: var(--s2); margin-top: var(--s4); }
.dialog-extra .fine-print { margin: 0; }
.dialog-extra .button-row { margin-left: calc(var(--s2) * -1); }
.danger-confirm { color: var(--danger); }
.danger-confirm:hover:not(:disabled) { background: var(--danger-soft); }

/* ── Charts ───────────────────────────────────────────────────────────────
   One neutral ramp carries the data: --data-1 (Linkten) and --data-2 (QR’dan) are the two steps
   of green-grey yoklama validated as an ordinal pair on the dark surface. Lime stays for controls. */
:root { --data-1: #d9e4d3; --data-2: #8a978b; --data-ref: #a8b2a8; --grid: #ffffff14; }
.chart-block { min-width: 0; }
.chart-block > .fine-print { margin: var(--s2) 0 0; }
.chart-plot { position: relative; width: 100%; min-height: 1px; }
.chart-plot svg { display: block; overflow: visible; }
.chart text { fill: var(--muted); font-family: var(--font-ui); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.chart text.value { fill: var(--text); font-size: var(--fs-14); font-weight: 500; }
.chart .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart .fill-link { fill: var(--data-1); }
.chart .fill-qr { fill: var(--data-2); }
.chart .col { transition: filter var(--dur-fast) ease; }
.chart .col.is-hot { filter: brightness(1.15); }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .hit:focus-visible { fill: #ffffff0d; }
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-bottom: var(--s2); color: var(--muted); font-size: var(--fs-14); }
.chart-legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.key { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.key-link { background: var(--data-1); }
.key-qr { background: var(--data-2); }
.chart-tip { position: fixed; z-index: 50; display: grid; gap: 2px; min-width: 120px; max-width: 260px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: #050805f2; box-shadow: 0 8px 24px #0008; font-size: var(--fs-14); pointer-events: none; }
.chart-tip div { display: flex; align-items: baseline; gap: var(--s2); }
.chart-tip strong { font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--muted); }
.chart-tip .tip-head { margin-bottom: 2px; }
.chart-table { margin-top: var(--s2); }
.chart-table > summary { min-height: 40px; color: var(--muted); font-size: var(--fs-14); font-weight: 400; }
.chart-table > summary:hover { color: var(--text); }
.chart-table table { margin-top: var(--s2); }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s2); }
.stat { display: grid; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); }
.stat-label { color: var(--muted); font-size: var(--fs-14); }
.stat-value { font-size: var(--fs-28); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.stat-note { color: var(--faint); font-size: var(--fs-12); }
/* A time in words sits one step down so it reads as a fact, not a count. */
.stat-value.is-words { font-size: var(--fs-22); }

.segments { display: inline-flex; gap: 2px; margin-bottom: var(--s3); padding: 2px; border-radius: var(--r-sm); background: var(--surface); }
.segment { min-height: 36px; padding: 0 var(--s3); border-radius: 6px; color: var(--muted); font-size: var(--fs-14); }
.segment:hover { color: var(--text); }
.segment[aria-pressed='true'] { background: var(--surface-3); color: var(--text); }
.section-heading .segments { margin-bottom: 0; }
.toolbar .segments { margin-bottom: 0; }

/* ── Links ────────────────────────────────────────────────────────────────
   A list row is one link. Its title's hit area covers the row, so the whole row opens it;
   the copy button sits above that layer and never navigates. */
.link-row { position: relative; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'main figures actions'; transition: background-color var(--dur-fast) ease; }
.link-row:hover { background: var(--surface-2); }
.link-main { grid-area: main; min-width: 0; }
.link-figures { grid-area: figures; display: flex; align-items: center; gap: var(--s3); }
.link-actions { grid-area: actions; display: flex; align-items: center; gap: var(--s1); }
.row-link { color: inherit; text-decoration: none; }
.row-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.link-actions::after { content: ''; width: 16px; height: 16px; flex: none; background: var(--faint); -webkit-mask: var(--icon-chevron-right) center / 16px no-repeat; mask: var(--icon-chevron-right) center / 16px no-repeat; }
.link-row .copy-button { position: relative; z-index: 1; }
.row-slug + .row-target::before { content: '·'; margin: 0 var(--s2); color: var(--faint); }
.row-meta .code { font-size: var(--fs-14); }
.clicks { color: var(--muted); font-size: var(--fs-14); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clicks strong { color: var(--text); }
.icon-button { width: 40px; min-height: 40px; padding: 0; color: var(--muted); }
.icon-button:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
/* A link that does not answer is the exception, so it alone gets a word: amber, with a dash. */
.state-off { display: inline-flex; align-items: center; gap: var(--s1); color: var(--warning); font-size: var(--fs-14); white-space: nowrap; }
.state-off::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon-dash) center / 16px no-repeat; mask: var(--icon-dash) center / 16px no-repeat; }
.page-head .meta .state-off { vertical-align: bottom; }
.empty-line { padding: var(--s4) 0; font-size: var(--fs-14); }
.on-home { color: var(--muted); font-size: var(--fs-14); white-space: nowrap; }

/* The name field reads as one address: the site in faint mono, then what you type. */
.slug-input { display: flex; align-items: center; margin-top: var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #0b0f0c; font-weight: 400; transition: border-color var(--dur-fast) ease; }
.slug-input:hover { border-color: var(--faint); }
.slug-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.slug-input input { min-height: 46px; margin: 0; padding-left: 0; border: 0; background: transparent; }
.slug-input input:focus-visible { outline: none; }
.slug-prefix { flex: none; padding-left: 14px; color: var(--faint); font-family: var(--font-code); font-size: var(--fs-14); white-space: nowrap; }
.slug-hint { display: block; min-height: 21px; margin-top: var(--s2); color: var(--muted); font-size: var(--fs-14); font-weight: 400; overflow-wrap: anywhere; }
.slug-hint .code { color: var(--text); }
.slug-hint.is-taken { color: var(--danger); }

/* Link page: the short address is the headline, the copy button the one next step. */
.short-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s3) var(--s3) var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); }
.short-url { flex: 1 1 240px; min-width: 0; font-size: var(--fs-22); line-height: 1.3; overflow-wrap: anywhere; user-select: all; }
.primary.copy-button.is-done::before { color: currentColor; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s5); margin: 0 0 var(--s6); font-size: var(--fs-14); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.target-link { color: var(--text); }
.old-slugs { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.old-slug { display: inline-flex; align-items: center; gap: var(--s1); }
.old-slug .text-button { min-height: 28px; }
.detail-grid { display: grid; gap: var(--s6); align-items: start; }
.stats { display: grid; gap: var(--s6); min-width: 0; }
.stats-empty { padding: 0; }
.stats-empty h2 { margin-bottom: var(--s2); font-size: var(--fs-18); }
.qr-panel h2 { margin-bottom: var(--s3); }
.qr-figure { display: grid; justify-items: center; gap: var(--s2); margin: 0; padding: var(--s4); border-radius: var(--r-md); background: #fff; color: #111; }
.qr-figure svg { width: 100%; max-width: 260px; height: auto; }
.qr-figure figcaption { font-family: var(--font-code); font-size: var(--fs-14); text-align: center; overflow-wrap: anywhere; }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.qr-panel .fine-print { margin: var(--s3) 0 0; }
.danger-zone { margin-top: var(--s7); }
.danger-zone .danger-text { margin-left: calc(var(--s2) * -1); }

/* Sources: one bar per place clicks came from, on the same ramp as the chart. */
.source-list { display: grid; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.source-row { display: grid; grid-template-columns: minmax(96px, 200px) minmax(60px, 1fr) 56px 44px; align-items: center; gap: var(--s3); min-height: 32px; font-size: var(--fs-14); }
.source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.source-fill { position: absolute; inset: 0 auto 0 0; min-width: 2px; border-radius: 5px; background: var(--data-1); }
.source-value { font-variant-numeric: tabular-nums; text-align: right; }
.source-share { color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }

@media (min-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
/* On a phone the figures drop under the name so the title and address keep the width. */
@media (max-width: 600px) {
  .link-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'main actions' 'figures actions'; row-gap: var(--s1); }
  .link-figures { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .short-line { padding: var(--s3); }
  .short-line .copy-button { flex: 1; }
  .short-url { font-size: var(--fs-18); }
  .source-row { grid-template-columns: minmax(0, 1fr) 48px 40px; grid-template-areas: 'name value share' 'track track track'; row-gap: var(--s1); }
  .source-name { grid-area: name; }
  .source-track { grid-area: track; }
  .source-value { grid-area: value; }
  .source-share { grid-area: share; }
}

/* ── Panel: posts, pictures, team, site ──────────────────────────────────────
   Same rows and surfaces as the links. A post row leads with its cover (or an empty square, so titles
   line up); a draft is the exception and gets the amber word. Pictures are the only grid. The role
   picker and a chosen picture show a lime ring, since choosing is interaction. */
input[type='radio'] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.header-who { overflow: hidden; max-width: 40vw; text-overflow: ellipsis; white-space: nowrap; }
.site-link { text-decoration: none; }
.site-link:hover { color: var(--text); }
.text-link { color: var(--text); font-size: var(--fs-14); }
.field-label { display: block; margin-bottom: var(--s2); font-size: var(--fs-14); font-weight: 500; }
.form-note { margin: var(--s2) 0 0; }
.plain-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.plain-fieldset > legend { margin-bottom: var(--s2); padding: 0; font-size: var(--fs-18); font-weight: 500; letter-spacing: -.01em; }

.row-thumb { width: 48px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.post-admin-row { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'thumb main figures'; transition: background-color var(--dur-fast) ease; }
.post-admin-row .row-thumb { grid-area: thumb; }
.post-admin-row:hover { background: var(--surface-2); }

.editor { max-width: 720px; }
.kind-segments { margin-bottom: 0; }
.body-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 40px; }
.body-head .text-button { margin-right: calc(var(--s2) * -1); }
.body-field > textarea { min-height: 220px; margin-top: var(--s2); }
.preview { min-height: 220px; margin-top: var(--s2); padding: var(--s4); border-radius: var(--r-sm); background: var(--surface); }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); margin-top: var(--s3); }
.editor-actions .fine-print { flex: 1 1 200px; margin: 0; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); }
.media-tile { display: grid; align-content: start; justify-content: stretch; gap: var(--s1); min-height: 0; padding: var(--s2); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-14); font-weight: 400; text-align: left; transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.media-tile:hover:not(:disabled) { background: var(--surface-2); }
.media-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.media-alt { display: -webkit-box; overflow: hidden; margin-top: var(--s1); overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.media-uses { color: var(--faint); font-size: var(--fs-12); }
.media-preview { margin: 0; }
.media-preview img { display: block; width: 100%; height: auto; max-height: 50svh; border-radius: var(--r-sm); object-fit: contain; background: var(--surface-2); }
.media-facts { margin: 0; color: var(--muted); font-size: var(--fs-14); }
.media-facts > span + span::before { content: '·'; margin: 0 var(--s2); color: var(--faint); }
.picker-upload { display: flex; }
.picker-grid { max-height: 46svh; overflow-y: auto; margin-top: var(--s3); padding: 2px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.pick-tile { position: relative; padding: var(--s1); }
.pick-tile[aria-pressed='true'] { background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--accent); }
/* The chosen mark: a lime disc with a dark check, drawn as two layers since the check is a mask. */
.pick-tile[aria-pressed='true']::after { content: ''; position: absolute; top: var(--s2); right: var(--s2); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.pick-tile[aria-pressed='true']::before { content: ''; position: absolute; z-index: 1; top: var(--s2); right: var(--s2); width: 24px; height: 24px; background: var(--accent-ink); -webkit-mask: var(--icon-check) center / 16px no-repeat; mask: var(--icon-check) center / 16px no-repeat; }
.media-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2); }
.strip-item { display: grid; gap: var(--s1); margin: 0; padding: var(--s2); border-radius: var(--r-md); background: var(--surface); }
.strip-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; }
.strip-item figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.strip-cover { padding: 0 var(--s2); color: var(--muted); font-size: var(--fs-14); }

.role-group + .role-group { margin-top: var(--s6); }
.role-group .section-heading { margin-bottom: var(--s1); }
.role-group .section-heading h2 { font-size: var(--fs-18); letter-spacing: -.01em; }
.role-does { margin: 0 0 var(--s3); }
.person-row { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'photo main figures edit'; }
.person-row > .avatar { grid-area: photo; }
.person-row .link-main { grid-area: main; }
.person-row .link-figures { grid-area: figures; }
.person-row > :last-child { grid-area: edit; }
.avatar > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.avatar-lg { width: 72px; height: 72px; font-size: var(--fs-22); }
.person-row > .avatar { background: var(--surface-3); }
.photo-field { display: flex; align-items: center; gap: var(--s4); }
.photo-actions { display: grid; gap: var(--s1); min-width: 0; }
.photo-actions .field-label { margin: 0; }
.photo-actions .button-row { align-items: center; }
.person-row.is-closed .row-title { color: var(--faint); }
.team-note { max-width: 560px; margin-top: var(--s6); }
/* A fold that opens under a checkbox: rows animate from 0fr so the dialog grows with it. The 2px pad
   keeps focus rings inside the clip. */
.reveal { display: grid; grid-template-rows: 0fr; margin-top: calc(var(--s4) * -1); transition: grid-template-rows var(--dur-base) var(--ease-out), margin-top var(--dur-base) var(--ease-out); }
.reveal.is-open { grid-template-rows: 1fr; margin-top: 0; }
.reveal > div { min-height: 0; overflow: hidden; margin: -2px; padding: 2px; }
.role-choices { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.role-choices > legend { margin-bottom: var(--s2); padding: 0; font-size: var(--fs-14); font-weight: 500; }
.role-choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: var(--s3); padding: var(--s3); border-radius: var(--r-sm); background: var(--surface-2); font-weight: 400; cursor: pointer; transition: box-shadow var(--dur-fast) ease; }
.role-choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.role-choice input { margin-top: 2px; }
.role-choice.is-locked { cursor: default; opacity: .55; }
.role-name { display: block; font-size: var(--fs-16); font-weight: 500; }
.role-choice .role-does { display: block; margin: 2px 0 0; color: var(--muted); font-size: var(--fs-14); }

.settings-form { max-width: 560px; }
.settings-form > fieldset + fieldset { margin-top: var(--s5); }
.settings-form .editor-actions { justify-content: flex-start; }
/* The form is long now, so Kaydet stays in reach at the bottom of the screen. */
.save-bar { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(var(--s4) * -1); padding: var(--s3) var(--s4) max(var(--s3), env(safe-area-inset-bottom)); background: var(--canvas); }
.list-items { display: grid; gap: var(--s2); }
.list-items:empty { display: none; }
.list-item { display: grid; gap: var(--s3); padding: var(--s4) var(--s4) var(--s1); border-radius: var(--r-md); background: var(--surface); }
.list-item textarea { min-height: 72px; field-sizing: content; }
.list-item.is-new { transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
@starting-style { .list-item.is-new { opacity: 0; translate: 0 6px; } }
.list-item-actions { display: flex; justify-content: space-between; margin: 0 calc(var(--s2) * -1); }
.list-add { align-self: flex-start; }
.settings-help { max-width: 560px; margin-top: var(--s7); }
.settings-help h2 { margin-bottom: var(--s3); font-size: var(--fs-18); letter-spacing: -.01em; }
.help-list { display: grid; gap: var(--s2); margin: 0; padding-left: 1.2em; color: var(--muted); font-size: var(--fs-14); }
.help-list a { color: var(--text); }

@media (max-width: 600px) {
  .post-admin-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'thumb main' 'thumb figures'; row-gap: var(--s1); }
  .post-admin-row .row-thumb { grid-area: thumb; align-self: start; }
  .post-admin-row .link-main { grid-area: main; }
  .post-admin-row .link-figures { grid-area: figures; }
  .post-admin-row .link-figures:empty { display: none; }
  .person-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'photo main edit' 'photo figures edit'; row-gap: var(--s1); }
  .person-row .link-main { grid-area: main; }
  .person-row .link-figures { grid-area: figures; }
  .person-row .link-figures:empty { display: none; }
  .person-row > :last-child { grid-area: edit; }
  .site-link { display: none; }
}

/* ── Public site ──────────────────────────────────────────────────────────────
   Home, one post, the two lists. One 720px column grouped by space; each list is the panel row on a
   surface tone, because every row is something to press (a link, or a question that opens). Team
   names and what the club does are not links, so they sit on the canvas. The join button is the
   page's one lime fill. Announcements lead with a date token, since when it happens is what people
   scan for; a day already behind dims to muted. News leads with its picture. On load the emblem's
   human and machine halves meet and the ring turns into place, once; otherwise only hover tone, the
   row chevron's 2px nudge and an opening question move. */
.site { max-width: 720px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s6); }
.site-inner { padding-top: var(--s2); }
.site-top, .site-foot { max-width: 720px; padding-inline: var(--s4); }
/* On a phone the emblem sits beside the name, so the first announcement shows without scrolling. */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s4); }
.emblem { position: relative; width: 72px; aspect-ratio: 1; flex: none; }
.emblem > span { position: absolute; inset: 0; background: var(--text); }
.emblem-ring { -webkit-mask: url(/link/assets/emblem-ring.webp) center / contain no-repeat; mask: url(/link/assets/emblem-ring.webp) center / contain no-repeat; }
.emblem-human { -webkit-mask: url(/link/assets/emblem-human.webp) center / contain no-repeat; mask: url(/link/assets/emblem-human.webp) center / contain no-repeat; }
.emblem-machine { -webkit-mask: url(/link/assets/emblem-machine.webp) center / contain no-repeat; mask: url(/link/assets/emblem-machine.webp) center / contain no-repeat; }
.wordmark h1 { display: grid; gap: 2px; font-size: var(--fs-22); line-height: 1.1; letter-spacing: -.02em; }
.wordmark-uni { font-size: var(--fs-18); font-weight: 400; }
.wordmark-club { font-weight: 700; }
.wordmark-tag { margin: var(--s2) 0 0; color: var(--faint); font-size: var(--fs-12); letter-spacing: .32em; text-transform: uppercase; }
.intro { margin-top: var(--s5); }
.about { max-width: 52ch; margin: 0; color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); margin-top: var(--s4); }
.social { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.social a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-14); font-weight: 500; text-decoration-color: var(--line-strong); }
.social a:hover { text-decoration-color: currentColor; }

.block { margin-top: var(--s7); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.block-head h2 { font-size: var(--fs-18); font-weight: 500; letter-spacing: -.01em; }
.block-head a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-size: var(--fs-14); text-decoration: none; }
.block-head a:hover { color: var(--text); }
.home-row, .post-row, .news-row { color: inherit; text-decoration: none; transition: background-color var(--dur-fast) ease; }
.home-row:hover, .post-row:hover, .news-row:hover { background: var(--surface-2); }
.home-row .row-title, .post-row .row-title, .news-row .row-title { font-size: var(--fs-18); }
.home-row .row-meta.code { font-size: var(--fs-14); }
.row-end::after { content: ''; width: 16px; height: 16px; flex: none; background: var(--faint); -webkit-mask: var(--icon-chevron-right) center / 16px no-repeat; mask: var(--icon-chevron-right) center / 16px no-repeat; transition: translate var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease; }
a:hover > .row-end::after { translate: 2px 0; background: var(--text); }
.post-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); }
.post-text { min-width: 0; }
.when { display: grid; place-content: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--surface-2); line-height: 1; text-align: center; }
.when-day { font-size: var(--fs-18); font-weight: 500; font-variant-numeric: tabular-nums; }
.when-month { margin-top: 2px; color: var(--muted); font-size: var(--fs-12); }
.when.is-past .when-day { color: var(--muted); }
.when.is-undated::before { content: ''; width: 20px; height: 20px; background: var(--muted); -webkit-mask: var(--icon-bullhorn) center / 20px no-repeat; mask: var(--icon-bullhorn) center / 20px no-repeat; }
.news-thumb { width: 72px; height: 54px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.news-lead { display: grid; gap: var(--s1); margin-bottom: var(--s3); color: inherit; text-decoration: none; }
.news-lead img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: var(--s2); border-radius: var(--r-md); object-fit: cover; background: var(--surface); }
.news-lead-title { font-size: var(--fs-22); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.news-lead:hover .news-lead-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* What the club does: a short definition list, two columns once there is room. */
.does { display: grid; gap: var(--s4) var(--s6); margin: 0; }
.does div { display: grid; gap: 2px; align-content: start; }
.does dt { font-size: var(--fs-18); font-weight: 500; letter-spacing: -.01em; }
.does dd { margin: 0; color: var(--muted); }
/* Questions: the summary is the row; its chevron turns down when the answer is open. */
.faq { border-radius: var(--r-sm); background: var(--surface); transition: background-color var(--dur-fast) ease; }
.faq:hover, .faq[open] { background: var(--surface-2); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border-radius: inherit; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .row-title { font-size: var(--fs-18); }
.faq-mark { width: 16px; height: 16px; background: var(--faint); -webkit-mask: var(--icon-chevron-right) center / 16px no-repeat; mask: var(--icon-chevron-right) center / 16px no-repeat; transition: rotate var(--dur-base) var(--ease-out), background-color var(--dur-fast) ease; }
.faq:hover .faq-mark, .faq[open] .faq-mark { background: var(--text); }
.faq[open] .faq-mark { rotate: 90deg; }
.faq-answer { padding: 0 var(--s4) var(--s4); color: var(--muted); }
@supports selector(::details-content) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-base) cubic-bezier(.4, 0, .2, 1), content-visibility var(--dur-base) allow-discrete; }
  .faq[open]::details-content { block-size: auto; }
}
/* The team reads like a short table: one row per role, hairlines between, its people side by side
   with a photo or their initials. The role sits above on a phone and in a column beside them otherwise. */
.team { display: grid; margin: 0; }
.team-row { display: grid; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.team-row:first-child { padding-top: 0; border-top: 0; }
.team-row dt { color: var(--muted); font-size: var(--fs-14); }
.team-row dd { margin: 0; }
.team-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); margin: 0; padding: 0; list-style: none; }
.person { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.team-people > .person:only-child { grid-column: 1 / -1; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: var(--fs-14); font-weight: 500; letter-spacing: .02em; object-fit: cover; }
.person-name { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
/* The footer says whose site this is and where else to find the club; the staff doors sit last. */
.site-foot { display: grid; gap: var(--s1); padding-top: var(--s7); padding-bottom: max(var(--s5), env(safe-area-inset-bottom)); }
.foot-club { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s4); }
.foot-name { color: var(--muted); font-size: var(--fs-14); }
.foot-social, .staff-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); }
.foot-social a, .staff-links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.foot-social a { color: var(--muted); font-size: var(--fs-14); }
.staff-links a { color: var(--muted); }
.foot-social a:hover, .staff-links a:hover { color: var(--text); }

.list-title { margin: var(--s2) 0 var(--s5); }
.list-group { margin: var(--s6) 0 var(--s3); color: var(--muted); font-size: var(--fs-14); font-weight: 500; letter-spacing: 0; }
.list-title + .list-group { margin-top: 0; }
.article .eyebrow { margin: var(--s4) 0 var(--s2); }
.event-facts { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin: var(--s5) 0 0; }
.event-facts div { display: grid; gap: 2px; }
.event-facts dt { color: var(--muted); font-size: var(--fs-14); }
.event-facts dd { margin: 0; }
.action { margin-top: var(--s5); }
.past-note { display: flex; align-items: center; gap: var(--s2); margin: var(--s5) 0 0; color: var(--muted); font-size: var(--fs-14); }
.past-note::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon-clock) center / 16px no-repeat; mask: var(--icon-clock) center / 16px no-repeat; }
.past-note + .action { margin-top: var(--s4); }
.cover { margin: var(--s6) 0 0; }
.cover img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--surface); }
.article > .prose { margin-top: var(--s6); }
.prose { max-width: 65ch; line-height: 1.6; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s1); }
.prose a { color: var(--accent); }
.prose strong { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s6); }
.gallery a { display: block; border-radius: var(--r-sm); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-sm); object-fit: cover; background: var(--surface); }

@media (min-width: 560px) {
  .team-row { grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: var(--s4); }
  .team-row:first-child { padding-top: var(--s1); }
}
@media (min-width: 720px) {
  .site { padding-top: 96px; }
  .block-head h2 { font-size: var(--fs-22); letter-spacing: -.02em; }
  .link-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .link-tiles .row { align-items: start; }
  .site-inner { padding-top: var(--s4); }
  .hero { grid-template-columns: auto 1px minmax(0, 1fr); gap: var(--s6); }
  .hero::before { content: ''; grid-column: 2; grid-row: 1; align-self: stretch; justify-self: stretch; margin-block: var(--s3); background: var(--line-strong); }
  .emblem { grid-column: 1; grid-row: 1; width: 144px; }
  .wordmark { grid-column: 3; grid-row: 1; }
  .wordmark h1 { gap: var(--s1); font-size: var(--fs-40); line-height: 1.05; letter-spacing: -.03em; }
  .wordmark-uni { font-size: var(--fs-28); }
  .wordmark-tag { margin-top: var(--s3); letter-spacing: .42em; }
  .intro { margin-top: var(--s6); }
  .does { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article h1 { font-size: var(--fs-40); }
  .article > .prose { font-size: var(--fs-18); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* A wide screen holds the club's name and door still on the left while the rest scrolls on the right. */
@media (min-width: 1024px) {
  .site.home { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 80px; max-width: 1120px; padding-inline: var(--s6); }
  .home-side { position: sticky; top: 96px; }
  .home .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .home .hero::before { display: none; }
  .home .emblem, .home .wordmark { grid-column: 1; grid-row: auto; }
  .home .emblem { width: 120px; }
  .home .intro { margin-top: var(--s5); }
  .home-main > .block:first-child { margin-top: 0; }
  .site-foot.is-wide { max-width: 1120px; padding-inline: var(--s6); }
}
@media (max-width: 480px) {
  .post-row { gap: var(--s3); padding-inline: var(--s3); }
  .post-row .row-end { display: none; }
  .news-thumb { width: 64px; height: 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .emblem-human { animation: emblem-half 900ms cubic-bezier(.2, .8, .2, 1) both; --from: -16%; }
  .emblem-machine { animation: emblem-half 900ms cubic-bezier(.2, .8, .2, 1) both; --from: 16%; }
  .emblem-ring { animation: emblem-ring 1100ms cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes emblem-half { from { translate: var(--from) 0; opacity: 0; } }
@keyframes emblem-ring { from { rotate: -50deg; scale: .94; opacity: 0; } }
