/* YFG – Youth Football Germany
   Design tokens + component layer, shared by the Astro site and the PHP admin.
   Derived from the "Nocturne" design system handoff, retuned to the YFG
   palette (dark ground, red accent, gold secondary). */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/saira-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/saira-latin-600-normal.woff2") format("woff2"); }

:root {
  --color-bg: #0f0e0d;
  --color-surface: #1b1a18;
  --color-surface-2: #242220;
  --color-text: #f3efe8;
  --color-accent: #d63a2f;
  --color-accent-2: #d4a643;
  --color-divider: color-mix(in srgb, #f3efe8 14%, transparent);

  --color-neutral-100: #f4f2ef; --color-neutral-200: #e6e3de; --color-neutral-300: #cfcbc4;
  --color-neutral-400: #aea9a1; --color-neutral-500: #8a857d; --color-neutral-600: #6a665f;
  --color-neutral-700: #4d4a45; --color-neutral-800: #34322f; --color-neutral-900: #211f1d;

  --color-accent-100: #fdeceb; --color-accent-200: #f9cfcc; --color-accent-300: #f2a39d;
  --color-accent-400: #e8695f; --color-accent-500: #d63a2f; --color-accent-600: #b02a21;
  --color-accent-700: #85201a; --color-accent-800: #561713; --color-accent-900: #2e0f0d;

  --color-accent-2-100: #fbf4e3; --color-accent-2-200: #f4e3b8; --color-accent-2-300: #e9cc80;
  --color-accent-2-400: #dcb455; --color-accent-2-500: #c99a34; --color-accent-2-600: #a47c24;
  --color-accent-2-700: #7a5b1a; --color-accent-2-800: #4f3b13; --color-accent-2-900: #2a200c;

  --color-ok: #4fb56f; --color-ok-bg: #12301b;
  --color-warn: #dcb455; --color-warn-bg: #2a200c;
  --color-err: #e8695f; --color-err-bg: #2e0f0d;

  --font-heading: "Chakra Petch", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Saira", system-ui, sans-serif;

  --space-1: 3px; --space-2: 6px; --space-3: 9px; --space-4: 12px;
  --space-6: 17px; --space-8: 23px; --space-12: 34px; --space-16: 46px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #34322f;
  --shadow-md: 0 0 0 1px #4d4a45, 0 6px 18px rgba(0,0,0,.6);
  --shadow-lg: 0 0 0 1px #8a857d, 0 16px 40px rgba(0,0,0,.7);

  --gutter: clamp(20px, 5vw, 72px);
  --max-w: 1200px;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--color-text);
  background:
    radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%, color-mix(in srgb, black 30%, transparent), transparent 55%),
    var(--color-bg);
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 var(--space-2); }
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 25px; } h4 { font-size: 20px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-300); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-200); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--color-accent); }
.text-muted { color: var(--color-neutral-400); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lighten { mix-blend-mode: lighten; background-color: transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; }

.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-neutral-300); }
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--color-accent); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px; line-height: 1.2;
  letter-spacing: .03em; color: var(--color-text); background: transparent; border: 1px solid transparent;
  padding: 9px 16px; border-radius: var(--radius-md); transition: background .12s, border-color .12s, color .12s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: var(--color-text); background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); color: var(--color-text); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-outline { color: var(--color-accent-300); border-color: var(--color-accent); }
.btn-outline:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent-200); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-ghost { color: var(--color-accent-300); padding-inline: 8px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent-200); }
.btn-danger { color: var(--color-err); }
.btn-danger:hover { background: color-mix(in srgb, var(--color-err) 12%, transparent); color: var(--color-accent-200); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* ── forms ────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--color-neutral-300); }
.field > span { font-size: 12px; letter-spacing: .02em; }
.input {
  width: 100%; min-height: 38px; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--color-text);
  caret-color: var(--color-accent); background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.input:disabled { opacity: .5; }
select.input { appearance: auto; }
textarea.input { min-height: 90px; resize: vertical; }
input[type=date].input, input[type=time].input { color-scheme: dark; }
.form-grid { display: grid; gap: 12px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.form-section { font-family: var(--font-heading); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-2); margin: 10px 0 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--color-neutral-200); cursor: pointer; }
.check input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.check > span { flex: 1; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.choice label { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); cursor: pointer; background: var(--color-surface-2); transition: border-color .12s; }
.choice label:hover { border-color: var(--color-neutral-500); }
.choice label:has(input:checked) { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.choice strong { font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
.choice small { font-size: 12px; color: var(--color-neutral-400); }

.alert { padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; border: 1px solid transparent; }
.alert-err { background: var(--color-err-bg); border-color: color-mix(in srgb, var(--color-err) 45%, transparent); color: var(--color-accent-200); }
.alert-ok { background: var(--color-ok-bg); border-color: color-mix(in srgb, var(--color-ok) 45%, transparent); color: #cdefd7; }
.alert-warn { background: var(--color-warn-bg); border-color: color-mix(in srgb, var(--color-warn) 45%, transparent); color: var(--color-accent-2-200); }

/* ── cards / tags / tables ────────────────────────────────────────────── */
.card { display: flex; flex-direction: column; gap: var(--space-3); padding: 20px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .04em; padding: 3px 10px; border-radius: 6px; white-space: nowrap; font-family: var(--font-heading); text-transform: uppercase; }
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-gold { background: var(--color-accent-2-800); color: var(--color-accent-2-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag-ok { background: var(--color-ok-bg); color: #b7e7c4; }
.tag-warn { background: var(--color-warn-bg); color: var(--color-accent-2-200); }
.tag-err { background: var(--color-err-bg); color: var(--color-accent-200); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-300); }
button.tag { cursor: pointer; border: 0; font: inherit; font-family: var(--font-heading); font-size: 11px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-heading); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-400); padding: 8px 10px; border-bottom: 1px solid var(--color-divider); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); vertical-align: top; }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.table .actions { white-space: nowrap; text-align: right; }

/* ── navigation ───────────────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; padding: 14px var(--gutter); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); text-decoration: none; }
.nav-brand:hover { color: var(--color-text); }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: center; }
.nav-links a { color: var(--color-neutral-300); text-decoration: none; font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-accent-300); }

.site-footer { border-top: 1px solid var(--color-divider); margin-top: 48px; padding: 28px var(--gutter) 40px; font-size: 13px; color: var(--color-neutral-400); }
.site-footer .inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--color-neutral-300); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-300); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: var(--color-bg); }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 72%, transparent) 38%, color-mix(in srgb, var(--color-bg) 20%, transparent) 70%, color-mix(in srgb, var(--color-bg) 45%, transparent) 100%),
  linear-gradient(to right, color-mix(in srgb, var(--color-bg) 80%, transparent) 0%, transparent 60%); }
.hero-inner { position: relative; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter) 56px; display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.hero-logo { width: clamp(110px, 13vw, 170px); height: auto; flex: none; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.hero-copy { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.hero-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.hero-title em { font-style: normal; color: var(--color-accent); }
.hero-copy p { font-size: 17px; line-height: 27px; max-width: 54ch; margin: 4px 0 0; color: var(--color-neutral-200); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding: 0 0 64px; }
.anchor-pad { height: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-title { font-family: var(--font-heading); font-weight: 600; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.section-title-sm { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin: 0 0 14px; color: var(--color-neutral-300); }
.section-count { font-family: var(--font-heading); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.page-head { padding: 48px 0 28px; max-width: 70ch; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); text-transform: uppercase; letter-spacing: .02em; }
.page-head p { font-size: 16px; color: var(--color-neutral-300); }
.prose { max-width: 72ch; font-size: 15px; line-height: 1.7; color: var(--color-neutral-200); padding-bottom: 48px; }
.prose h2 { font-size: 22px; margin-top: 28px; }
.prose h3 { font-size: 17px; margin-top: 20px; }
.empty { color: var(--color-neutral-400); font-size: 15px; padding: 24px 0; }
.skeleton { min-height: 120px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-2) 50%, var(--color-surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── camps ────────────────────────────────────────────────────────────── */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.camp-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.camp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.camp-card-head { display: flex; align-items: center; gap: 14px; }
.camp-card-head > .camp-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.camp-card h3 { font-size: 19px; line-height: 1.25; margin: 0; }
.camp-logo { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-md); background: var(--color-bg); flex: none; }
.camp-logo-lg { width: 96px; height: 96px; border-radius: var(--radius-lg); background: var(--color-surface); }
.camp-logo-sm { width: 36px; height: 36px; border-radius: var(--radius-sm); opacity: .85; }
.camp-initials { display: grid; place-items: center; font-family: var(--font-heading); font-weight: 600; color: var(--color-accent-300); box-shadow: inset 0 0 0 1px var(--color-accent-700); }
.camp-initials.camp-logo { font-size: 17px; }
.camp-initials.camp-logo-lg { font-size: 28px; }
.camp-initials.camp-logo-sm { font-size: 12px; color: var(--color-neutral-400); box-shadow: inset 0 0 0 1px var(--color-neutral-800); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; line-height: 20px; margin: 0; }
.facts dt { color: var(--color-neutral-400); margin: 0; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.facts-lg { font-size: 15px; line-height: 22px; gap: 8px 22px; }
.map-link { color: inherit; text-decoration: underline; text-decoration-color: var(--color-neutral-600); text-underline-offset: 3px; }
.map-link span { color: var(--color-accent-300); font-size: 13px; white-space: nowrap; }
.map-link:hover { text-decoration-color: var(--color-accent); }
.camp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--color-divider); }
.seats { font-size: 13px; }
.seats-ok { color: var(--color-neutral-300); }
.seats-few { color: var(--color-accent-2); }
.seats-full { color: var(--color-accent-400); }
.cta-link { font-family: var(--font-heading); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent); }

.prev-list { display: flex; flex-direction: column; }
.prev-row { transition: background .15s ease, padding-left .15s ease; border-radius: var(--radius-sm); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
.prev-row > .prev-text { min-width: 0; display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: baseline; }
.prev-row .title { font-size: 15px; color: var(--color-neutral-200); }
.prev-row .loc { font-size: 13px; color: var(--color-neutral-500); }
.prev-row:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); padding-left: 8px; }
.prev-row:hover .title { color: var(--color-accent-300); }
.prev-row .date { font-size: 13px; color: var(--color-neutral-400); font-variant-numeric: tabular-nums; text-align: right; }

.pool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pool-grid figure { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; margin: 0; background: var(--color-surface); }
.pool-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.pool-grid figure { outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s ease; cursor: pointer; }
.pool-grid figure:hover img, .pool-grid figure:focus-within img { transform: scale(1.08); filter: brightness(1.15) saturate(1.1); }
.pool-grid figure:hover, .pool-grid figure:focus-within { outline-color: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .pool-grid img { transition: none; } .pool-grid figure:hover img { transform: none; } }
@media (max-width: 720px) { .pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* camp detail */
.detail { padding: 40px 0 88px; }
.back-link { font-size: 14px; text-decoration: none; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; margin-top: 24px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 22px; }
.detail-head { display: flex; align-items: center; gap: 20px; }
.detail-head > .camp-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start; }
.detail-head h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; margin: 0; }
.detail-desc { font-size: 16px; line-height: 1.7; color: var(--color-neutral-200); white-space: pre-line; }
.series-box { padding: 14px 16px; border-left: 2px solid var(--color-accent-2); background: color-mix(in srgb, var(--color-accent-2-900) 60%, transparent); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.series-box p:first-child { font-family: var(--font-heading); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-2); margin-bottom: 4px; }
.series-box p { margin: 0; font-size: 14px; color: var(--color-neutral-200); white-space: pre-line; }
.series-dates { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--color-neutral-300); display: grid; gap: 2px; }
.booking-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-md); }
.booking-card h2 { font-size: 22px; margin: 0; }
.booking-card .muted { color: var(--color-neutral-400); font-size: 13px; }
.confirm-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; padding: 14px; border-radius: var(--radius-md); background: var(--color-surface-2); margin: 0; }
.confirm-facts dt { color: var(--color-neutral-400); margin: 0; }
.confirm-facts dd { margin: 0; word-break: break-word; }

/* people */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person figure { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; margin: 0; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.person:hover img { transform: scale(1.04); filter: brightness(1.08); }
.person figure { transition: box-shadow .2s ease; }
.person:hover figure { box-shadow: 0 0 0 1px var(--color-accent); }
.person .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-heading); font-size: 40px; color: var(--color-neutral-700); background: repeating-linear-gradient(135deg, var(--color-neutral-900) 0 10px, var(--color-surface) 10px 20px); }
.person .name { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.person .role { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-2); }
.person .bio { font-size: 14px; color: var(--color-neutral-300); line-height: 1.55; white-space: pre-line; }

/* ── admin ────────────────────────────────────────────────────────────── */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--color-divider); margin: 0 0 24px; }
.admin-nav a { padding: 10px 14px; text-decoration: none; color: var(--color-neutral-300); font-family: var(--font-heading); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a:hover { color: var(--color-text); }
.admin-nav a[aria-current="page"] { color: var(--color-accent-300); border-bottom-color: var(--color-accent); }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 18px; }
.admin-head h1 { font-size: 30px; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: var(--color-neutral-400); }
.toolbar form { display: inline; }
.inline-form { display: inline; }
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--color-neutral-300); }
.stat-row strong { font-family: var(--font-heading); color: var(--color-text); font-size: 18px; margin-right: 4px; }
.admin-form { max-width: 760px; display: grid; gap: 14px; }
.thumb { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-sm); background: var(--color-bg); }
.thumb-lg { width: 120px; height: 120px; object-fit: contain; border-radius: var(--radius-md); background: var(--color-bg); box-shadow: var(--shadow-sm); }
.upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.admin-pool figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); }
.admin-pool img { width: 100%; height: 100%; object-fit: cover; }
.admin-pool form { position: absolute; right: 6px; bottom: 6px; }
.small { font-size: 12px; color: var(--color-neutral-500); }
.login-box { max-width: 380px; margin: 80px auto; }
.cell-sub { font-size: 12px; color: var(--color-neutral-500); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── mobile navigation (hamburger) ────────────────────────────────────── */
.site-header { position: relative; z-index: 50; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
.nav-toggle:hover { border-color: var(--color-accent); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .site-nav:has(.nav-toggle) { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .site-nav:has(.nav-toggle) .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 0 10px; background: var(--color-surface); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); box-shadow: 0 16px 32px rgba(0,0,0,.55); }
  .site-nav:has(.nav-toggle) .nav-links.open { display: flex; animation: nav-drop .18s ease-out; }
  .site-nav:has(.nav-toggle) .nav-links a { padding: 13px var(--gutter); font-size: 15px; border-left: 3px solid transparent; }
  .site-nav:has(.nav-toggle) .nav-links a:hover, .site-nav:has(.nav-toggle) .nav-links a[aria-current="page"] { border-left-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
}
.nav-brand .brand-short { display: none; }
@media (max-width: 760px) { .nav-brand .brand-full { display: none; } .nav-brand .brand-short { display: inline; } }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── date picker (book several dates of a series) ────────────────────── */
.date-picker { display: grid; gap: 6px; margin-top: 10px; padding: 12px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface-2); }
.date-option { padding: 6px 4px; border-radius: var(--radius-sm); }
.date-option:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.date-option.disabled { opacity: .5; cursor: not-allowed; }
.date-option strong { font-family: var(--font-heading); font-weight: 600; }
.date-option .muted { color: var(--color-neutral-400); font-size: 12px; }
.date-sum { margin: 6px 0 0; font-size: 13px; color: var(--color-accent-2); font-family: var(--font-heading); }
.series-dates li.current { color: var(--color-text); font-weight: 500; }
.date-picker[hidden] { display: none; }

/* ── overflow guards (long words, URLs, pasted text must never widen the page) ── */
html, body { overflow-x: clip; max-width: 100%; }
.detail-desc, .series-box p, .prose, .prose p, .person .bio, .facts dd, .confirm-facts dd, .camp-card h3, .detail-head h1, .booking-card, .hero-copy p, .alert { overflow-wrap: anywhere; word-break: normal; }
.facts dd, .confirm-facts dd, .camp-text, .prev-text { min-width: 0; }
.input, select.input, textarea.input { min-width: 0; max-width: 100%; }
.form-grid > *, .form-grid-2 > *, .form-grid-3 > * { min-width: 0; }
.table-wrap { max-width: 100%; }

/* ── admin: wider canvas + booking table without sideways scrolling ───── */
body.admin { --max-w: 1680px; }
.booking-table td { overflow-wrap: anywhere; }
.booking-table td:nth-child(1) { width: 120px; }
.booking-table td:nth-child(7) { width: 110px; white-space: nowrap; }
.booking-actions { width: 150px; }
.booking-actions > * { display: block; }
.booking-actions .btn { width: 100%; justify-content: flex-start; }
.booking-actions details summary { list-style: none; cursor: pointer; }
.booking-actions details summary::-webkit-details-marker { display: none; }
.note-form { display: flex; gap: 6px; margin-top: 6px; }
@media (max-width: 1100px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: auto !important; }
  .table-cards tr { margin-bottom: 14px; padding: 14px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
  .table-cards tbody tr:hover { background: var(--color-surface); }
  .table-cards td { padding: 6px 0; border-bottom: 0; white-space: normal !important; }
  .table-cards td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-heading); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-500); margin-bottom: 2px; }
  .booking-actions { width: auto; display: flex !important; flex-wrap: wrap; gap: 4px; padding-top: 10px !important; border-top: 1px solid var(--color-divider) !important; margin-top: 6px; }
  .booking-actions > * { display: inline-block; }
  .booking-actions .btn { width: auto; }
  .booking-actions details { flex-basis: 100%; }
}
.pay-note { display: block; margin-top: 6px; font-size: 13px; color: var(--color-accent-2); }

/* ── admin: bulk mail ─────────────────────────────────────────────────── */
.mail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .mail-layout { grid-template-columns: minmax(0, 1fr); } }
.recipient-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 460px; overflow-y: auto; display: grid; gap: 8px; font-size: 14px; }
.recipient-list li { display: flex; flex-direction: column; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--color-surface-2); color: var(--color-accent-2-200); }

/* ── home: keyword headline, about text, FAQ ──────────────────────────── */
.hero-h1 { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: inherit; line-height: inherit; letter-spacing: 0; font-weight: inherit; }
.hero-h1 .hero-title { display: block; }
.about-copy { max-width: 75ch; font-size: 16px; line-height: 1.7; color: var(--color-neutral-200); margin: 18px 0 24px; }
.about-copy p { margin: 0 0 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.feature { padding: 20px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); border-top: 2px solid var(--color-accent); }
.feature h3 { font-size: 18px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-neutral-300); }
.faq-list { display: grid; gap: 8px; margin-top: 18px; }
.faq-list details { border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--color-accent); font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:hover { color: var(--color-accent-300); }
.faq-list details p { margin: 0; padding: 0 18px 16px; font-size: 15px; line-height: 1.65; color: var(--color-neutral-300); }
.page-head p a { color: var(--color-accent-300); }

/* ══════════════════════════════════════════════════════════════════════════
   YFG Nation – community: navigation, auth, profiles, directories, badges
   ══════════════════════════════════════════════════════════════════════ */
.nav-user { display: inline-flex; align-items: center; gap: var(--space-6); }
.nav-links .nav-cta { color: var(--color-text); background: var(--color-accent); padding: 7px 14px; border-radius: var(--radius-md); }
.nav-links .nav-cta:hover { background: var(--color-accent-600); color: var(--color-text); }
@media (max-width: 760px) {
  .site-nav:has(.nav-toggle) .nav-user { display: flex; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--color-divider); margin-top: 6px; padding-top: 6px; }
  .site-nav:has(.nav-toggle) .nav-links .nav-cta { background: transparent; border-radius: 0; color: var(--color-accent-300); }
}
/* messages after an action (logout, profile saved …): an overlay below the navigation that does not move the page */
.toast-stack { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(560px, calc(100vw - 2 * var(--gutter))); pointer-events: none; }
.toast-stack .alert { margin: 0; pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.55); animation: toast-in .25s ease-out, toast-out .4s ease-in 6s forwards; }
.toast-stack .alert::after { content: "×"; font-size: 18px; line-height: 1; opacity: .7; }
.toast-stack .alert-err { animation: toast-in .25s ease-out; }   /* errors stay until they are closed */
.toast-stack .alert.is-closed { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }
.ssr-main { min-height: 50vh; }
.plain-list { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--color-neutral-200); }

/* YFG badge + star levels */
.yfg-badge { display: inline-flex; align-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; color: #1a1408; background: linear-gradient(135deg, var(--color-accent-2-300), var(--color-accent-2-500)); box-shadow: 0 0 0 1px var(--color-accent-2-600); white-space: nowrap; }
.camp-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.camp-card.is-yfg { box-shadow: 0 0 0 1px var(--color-accent-2-700); }
.camp-card.is-yfg:hover { box-shadow: 0 0 0 1px var(--color-accent-2-500), 0 6px 18px rgba(0,0,0,.6); }
.camp-card[hidden] { display: none; }
.star-badge { display: inline-flex; align-items: center; gap: 0; border-radius: 6px; overflow: hidden; font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 1px var(--color-accent-2-700); }
.star-badge .star-count { padding: 3px 8px; background: var(--color-accent-2-900); color: var(--color-accent-2-300); }
.star-badge .star-label { padding: 3px 9px; background: var(--color-accent-2-800); color: var(--color-accent-2-100); }
.star-badge.level-senior .star-label { background: var(--color-accent-2-600); color: #1a1408; }
.star-badge.level-allstar { box-shadow: 0 0 0 1px var(--color-accent-2-400), 0 0 14px color-mix(in srgb, var(--color-accent-2) 45%, transparent); }
.star-badge.level-allstar .star-label { background: linear-gradient(135deg, var(--color-accent-2-300), var(--color-accent-2-500)); color: #1a1408; }
.star-big { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.star-num { font-family: var(--font-heading); font-weight: 700; font-size: 34px; color: var(--color-accent-2); line-height: 1; }

/* cards on photos */
.person figure { position: relative; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
a.profile-card { text-decoration: none; color: inherit; }
a.profile-card:hover .name { color: var(--color-accent-300); }
.people-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.people-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
a.profile-card .bio { white-space: normal; }

/* filter bars (home camp filter, directories) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; margin: 0 0 22px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.filter-bar .field { min-width: 170px; }
.filter-bar .field-grow { flex: 1; min-width: 200px; }
.filter-bar .filter-check { align-self: center; padding-top: 16px; }
.filter-bar .btn { min-height: 38px; }

/* home: join box, info boxes */
.join-box { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-lg); background: radial-gradient(900px 400px at 100% 0%, color-mix(in srgb, var(--color-accent-800) 80%, transparent), transparent 70%), var(--color-surface); box-shadow: 0 0 0 1px var(--color-accent-700); }
.join-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.join-copy p { font-size: 16px; line-height: 1.65; color: var(--color-neutral-200); margin: 0; max-width: 56ch; }
.stars-box { padding: 20px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-bg) 70%, transparent); box-shadow: 0 0 0 1px var(--color-accent-2-700); display: flex; flex-direction: column; gap: 10px; }
.stars-box h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-accent-2); margin: 0; }
.stars-box p { margin: 0; font-size: 14px; color: var(--color-neutral-200); }
.star-levels { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.star-levels .star-badge { font-size: 13px; }
.star-levels .star-count, .star-levels .star-label { padding: 6px 12px; }
@media (max-width: 800px) { .join-box { grid-template-columns: minmax(0, 1fr); } }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.info-box { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); border-top: 2px solid var(--color-accent); }
.info-box h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--color-neutral-200); flex: 1; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent-2); font-weight: 700; }

/* auth + account */
.auth-page { max-width: calc(600px + 2 * var(--gutter)); }   /* one centred column for login, registration, reset, report */
.auth-page .page-head { max-width: none; }
.auth-card { margin-bottom: 64px; }
.guardian-box { padding: 12px; border-radius: var(--radius-md); background: var(--color-warn-bg); box-shadow: 0 0 0 1px var(--color-accent-2-700); }
.guardian-box[hidden] { display: none; }
.account { padding-bottom: 72px; }
.account-nav { margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.dash-profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: var(--color-bg); font-size: 20px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; font-size: 13px; }
.profile-edit { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-media { display: grid; gap: 16px; }
@media (max-width: 900px) { .profile-edit { grid-template-columns: minmax(0, 1fr); } }
.photo-preview { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg); box-shadow: var(--shadow-sm); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.photo-preview .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-heading); font-size: 44px; color: var(--color-neutral-700); background: repeating-linear-gradient(135deg, var(--color-neutral-900) 0 10px, var(--color-surface) 10px 20px); }
.gallery-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery-edit figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg); }
.gallery-edit img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit form { position: absolute; top: 4px; right: 4px; }
.gallery-edit .btn { padding: 2px 8px; font-size: 16px; line-height: 1; background: rgba(15,14,13,.82); }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--color-divider); font-family: var(--font-heading); font-size: 13px; color: var(--color-neutral-200); background: var(--color-surface-2); transition: border-color .12s, background .12s; }
.chip:hover span { border-color: var(--color-neutral-500); }
.chip input:checked + span { border-color: var(--color-accent); background: var(--color-accent-800); color: var(--color-accent-100); }
.chip input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--color-neutral-400); background: var(--color-surface); border: 1px solid var(--color-divider); border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix .input { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.hl-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }

/* public profile */
.profile-page { padding-top: 32px; padding-bottom: 56px; }
/* two columns like the athlete page of Coach-Grid: the profile on the left, film/links and contact in an aside that stays in view */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 4vw, 48px); align-items: start; margin: 22px 0 40px; }
.profile-main { min-width: 0; }
.profile-aside { display: grid; gap: 14px; position: sticky; top: 20px; }
@media (max-width: 980px) { .profile-layout { grid-template-columns: minmax(0, 1fr); } .profile-aside { position: static; } }
.profile-head { display: flex; gap: clamp(18px, 3vw, 28px); align-items: flex-start; flex-wrap: wrap; }
.profile-head .profile-photo { flex: none; width: 168px; aspect-ratio: 4 / 5; }
.profile-head .profile-intro { flex: 1 1 320px; }
.profile-headline { margin: 0; display: flex; flex-wrap: wrap; gap: 0 10px; font-family: var(--font-heading); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-300); }
.profile-headline span + span::before { content: "·"; margin-right: 10px; color: var(--color-neutral-500); }
.profile-headline .class-of { color: var(--color-accent-2); }
.profile-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--color-neutral-300); }
.profile-section { margin-top: 40px; }
.profile-section > h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 14px; }
.profile-note { margin-top: 10px; }
.profile-section .profile-tags + .profile-text { margin-top: 12px; }
.profile-section .star-big + .small { margin-top: 6px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.metric-card { padding: 16px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.metric-card .k { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-400); }
.metric-card .k .icon { flex: none; width: 16px; height: 16px; color: var(--color-accent); }
.metric-card .v { margin-top: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-card .v small { font-size: 14px; font-weight: 500; color: var(--color-neutral-400); }
.honors { width: 100%; border-collapse: collapse; font-size: 15px; }
.honors th { text-align: left; padding: 8px 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-400); border-bottom: 1px solid var(--color-neutral-800); }
.honors th:first-child, .honors td:first-child { width: 90px; font-variant-numeric: tabular-nums; }
.honors td { padding: 11px 10px; border-bottom: 1px solid var(--color-neutral-900); vertical-align: top; overflow-wrap: anywhere; }
.honors td:first-child { color: var(--color-neutral-300); }
.honors .icon { width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; color: var(--color-accent-2); }
.aside-h { font-family: var(--font-heading); font-size: 20px; margin: 0 0 4px; }
.aside-label { margin: 0 0 4px; font-family: var(--font-heading); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-400); }
.link-tiles { display: grid; gap: 8px; }
.link-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-neutral-800); text-decoration: none; color: var(--color-text); transition: box-shadow .15s ease; }
.link-tile:hover { box-shadow: inset 0 0 0 1px var(--color-accent); }
.link-tile .icon { flex: none; width: 20px; height: 20px; color: var(--color-accent-300); }
.link-tile .ext { margin-left: auto; width: 16px; height: 16px; color: var(--color-neutral-500); }
.link-tile .lt-name { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 500; }
.link-tile .lt-name small { font-size: 12px; font-weight: 400; color: var(--color-neutral-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-rows { display: grid; gap: 8px; font-size: 14px; }
.contact-rows > div { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.contact-rows .icon { flex: none; width: 16px; height: 16px; color: var(--color-accent-300); }
.btn .icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.profile-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-md); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.profile-photo .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-heading); font-size: 64px; color: var(--color-neutral-700); background: repeating-linear-gradient(135deg, var(--color-neutral-900) 0 10px, var(--color-surface) 10px 20px); }
.profile-intro { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.profile-intro h1 { font-size: clamp(28px, 4.4vw, 44px); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.profile-sub { margin: 0; font-family: var(--font-heading); font-size: 18px; color: var(--color-accent-2); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.profile-tags .class-of { font-size: 13px; padding: 4px 10px; letter-spacing: .06em; }
.profile-bio, .profile-text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--color-neutral-200); white-space: pre-line; max-width: 70ch; overflow-wrap: anywhere; }
.profile-text { font-size: 15px; }
@media (max-width: 520px) { .profile-head .profile-photo { width: 132px; } }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.link-list a, .link-list .link-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--color-surface-2); text-decoration: none; color: var(--color-text); }
.link-list a:hover { box-shadow: inset 0 0 0 1px var(--color-accent); }
.link-list a span, .link-list .link-row span { color: var(--color-neutral-400); font-size: 13px; }
.camp-history strong { font-weight: 500; font-size: 14px; }
.camp-history a span, .camp-history .link-row span { white-space: nowrap; }
.card-sub { margin: 14px 0 8px; font-family: var(--font-heading); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-400); }
.mini-profile { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mini-profile:hover strong { color: var(--color-accent-300); }
.gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-grid figure { aspect-ratio: 1; }
.gallery-grid a, .pool-grid a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.report-link { margin: 4px 0 0; font-size: 13px; }
.report-link a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.report-link .icon { width: 15px; height: 15px; }
.report-link a { color: var(--color-neutral-500); }
.cta-inline { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
/* directory: how many profiles only members can see – the reason to register */
.members-teaser { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 0 0 22px; padding: 16px 20px; border-radius: var(--radius-lg); background: radial-gradient(600px 200px at 0% 0%, color-mix(in srgb, var(--color-accent-2-800) 55%, transparent), transparent 70%), var(--color-surface); box-shadow: 0 0 0 1px var(--color-accent-2-700); }
.members-teaser .mt-num { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 34px; line-height: 1; color: var(--color-accent-2); font-variant-numeric: tabular-nums; }
.members-teaser .mt-num .icon { width: 26px; height: 26px; }
.members-teaser p { flex: 1 1 280px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-neutral-200); }
.members-teaser p strong { color: var(--color-text); }
.members-teaser .mt-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* upload progress + lightbox */
.upload-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(8,8,7,.78); backdrop-filter: blur(3px); }
.upload-box { width: min(360px, calc(100% - 40px)); padding: 24px; border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg); display: grid; gap: 12px; text-align: center; }
.upload-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; }
.upload-bar { height: 10px; border-radius: 999px; background: var(--color-neutral-800); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--color-accent-600), var(--color-accent-400), var(--color-accent-600)); transition: width .2s ease; background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.upload-pct { font-size: 13px; color: var(--color-neutral-300); font-variant-numeric: tabular-nums; }
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(6,6,5,.93); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: calc(100vw - 32px); max-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 0 20px; }
.lightbox img { max-width: min(1400px, calc(100vw - 32px)); max-height: calc(100vh - 110px); object-fit: contain; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.lightbox figcaption { font-family: var(--font-heading); font-size: 13px; letter-spacing: .1em; color: var(--color-neutral-300); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--color-divider); background: rgba(27,26,24,.85); color: var(--color-text); font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.lb-btn:hover { background: var(--color-accent); border-color: var(--color-accent); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lightbox img { max-height: calc(100vh - 170px); } }

/* attribute "hidden" always wins over component display rules */
[hidden] { display: none !important; }
.report-list { display: grid; gap: 14px; max-width: 980px; }
.account-nav a, .admin-nav a { white-space: nowrap; }

/* admin: member list */
.member-table td { overflow-wrap: break-word; }
.member-table td:first-child { min-width: 230px; }
.member-table td:nth-child(2), .member-table td:nth-child(3) { min-width: 200px; }
