/* =========================================================
   SKG – Studenten Klimvereniging Gent
   Huisstijl: groen (bos, beweging) & grijs (rots, zandsteen)

   Vormregels (bewust beperkt gehouden):
   - 2 hoekstralen: --radius-sm (knoppen, velden, kleine beelden, galerijtegels) en --radius (kaarten, grote foto's)
   - pillen (999px) enkel voor tags, badges en filterchips
   - kaarten zijn vlak met een rand; klikbare kaarten krijgen enkel een randkleur bij hover
   - één labelstijl (.label) voor details en tabelkoppen; hoofdletters enkel in het datumblok
   - lettergroottes: --fs-xs t/m --fs-2xl voor tekst en titels, --fs-title voor paginatitels
   ========================================================= */
:root {
  --green-950: #0d2617;
  --green-900: #123620;
  --green-800: #17502e;
  --green-700: #1f6b3a;
  --green-600: #2a8048;
  --green-400: #5dbb76;
  --green-300: #8dd3a0;
  --green-100: #e3f2e7;
  --green-50: #f1f8f3;

  --grey-950: #141817;
  --grey-900: #1e2321;
  --grey-800: #2b312f;
  --grey-700: #3a413e;
  --grey-600: #545c59;
  --grey-500: #6e7773;
  --grey-400: #9aa39f;
  --grey-300: #c6ccc9;
  --grey-200: #dde2df;
  --grey-100: #eef1ef;

  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: var(--grey-900);
  --muted: var(--grey-600);
  --line: var(--grey-200);
  --primary: var(--green-700);
  --primary-hover: var(--green-800);

  /* semantische uitzonderingen op groen/grijs */
  --danger: #b4372f;
  --danger-bg: #fdf2f1;
  --danger-line: #ecc6c2;
  --danger-fg: #7e231c;
  --amber-bg: #fbf3e2;
  --amber-line: #ead6ab;
  --amber-fg: #6e4706;

  --font-head: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.375rem;
  --fs-3xl: 1.5rem;
  --fs-4xl: 1.8rem;
  --fs-title: clamp(2rem, 4vw, 2.8rem);

  --radius-sm: 8px;
  --radius: 12px;
  --shadow: 0 12px 32px -12px rgb(20 24 23 / .25), 0 2px 6px rgb(20 24 23 / .06);
  --header-h: 72px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; color: inherit; text-wrap: balance; }
.page-lead, .section-lead, .hero-lead { text-wrap: pretty; }
h1 { font-size: var(--fs-title); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
.h-sm { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--grey-100); padding: .1em .4em; border-radius: var(--radius-sm); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.measure > * { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }

/* Eén label-stijl voor details en tabelkoppen (gewone letters, gedempt) */
.label, .facts dt, .table th, .table.table-stack td[data-label]::before {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--grey-300);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-md)/1 var(--font-body);
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1.5px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn-primary { --btn-bg: var(--green-700); --btn-fg: #fff; --btn-border: var(--green-700); }
.btn-primary:hover { --btn-bg: var(--green-800); --btn-border: var(--green-800); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--grey-800); --btn-border: var(--grey-300); }
.btn-ghost:hover { --btn-bg: var(--grey-100); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--green-800); --btn-border: #fff; }
.btn-light:hover { --btn-bg: var(--green-50); }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--danger); --btn-border: var(--danger-line); }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: var(--danger); }
.btn-lg { padding: 15px 26px; }
.btn-sm { min-height: 40px; padding: 8px 15px; font-size: var(--fs-sm); }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-xs { min-height: 36px; padding: 7px 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.link-button.link-danger { color: var(--grey-600); }
.link-button.link-danger:hover, .link-button.link-danger:focus-visible { color: var(--danger); }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .15s; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 70; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-home .site-header {
  position: fixed; left: 0; right: 0; color: #fff; border-color: transparent; background: transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.page-home .site-header.is-scrolled, .page-home .site-header.nav-open { background: var(--bg); border-color: var(--line); color: var(--text); }
.site-header.nav-open, .page-home .site-header.nav-open { background: var(--surface); }
.page-home .site-header:not(.is-scrolled):not(.nav-open) :is(.nav-links a, .nav-login, .brand, .user-menu summary) { text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand:hover { color: inherit; }
.logo-mark { width: 44px; height: 44px; color: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-size: var(--fs-3xl); font-weight: 800; letter-spacing: .02em; }
@media (max-width: 430px) { .site-header .brand-text small { display: none; } }
.brand-text small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em; opacity: .75; margin-top: 4px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; font-weight: 500; font-size: var(--fs-md); }
.nav-links a:hover, .nav-login:hover { background: rgb(127 140 135 / .16); }
.nav-links a.active, .nav-login.active, .user-menu summary.active { background: var(--green-100); color: var(--green-800); }
.page-home .site-header:not(.is-scrolled):not(.nav-open) .nav-links a.active { background: rgb(255 255 255 / .16); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; font-weight: 600; font-size: var(--fs-md); }
.nav-login:hover { color: inherit; }
.nav-toggle { display: none; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-md); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgb(127 140 135 / .14); }
.user-menu .chev { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.user-menu[open] .chev { transform: rotate(180deg); }
.user-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.user-menu-panel a, .user-menu-panel button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  color: var(--text); text-decoration: none; font: 500 var(--fs-sm)/1.6 var(--font-body); cursor: pointer;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--grey-100); }
.user-menu-panel a.active { background: var(--green-100); color: var(--green-800); }
.user-menu-panel form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; flex-shrink: 0;
    width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px; border-radius: var(--radius-sm);
  }
  .nav-toggle .bar { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--surface); color: var(--text); padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; max-height: calc(100dvh - var(--header-h)); overflow: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-header.nav-open::after { content: ''; position: fixed; inset: var(--header-h) 0 0 0; z-index: -1; background: rgb(20 24 23 / .45); }
  .nav-links { flex-direction: column; }
  .nav-links a, .nav-login { padding: 12px 14px; font-size: var(--fs-md); }
  .nav-actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
  /* gebruikersmenu staat open in het mobiele paneel i.p.v. als zwevende dropdown */
  .user-menu { width: 100%; }
  .user-menu summary { pointer-events: none; padding: 4px 14px; border-radius: var(--radius-sm); }
  .user-menu summary:hover, .user-menu summary.active { background: none; color: inherit; }
  .user-menu .chev { display: none; }
  .user-menu-panel { position: static; display: block; box-shadow: none; border: 0; padding: 8px 0 0; min-width: 0; }
  .user-menu-panel a, .user-menu-panel button { padding: 12px 14px; font-size: var(--fs-md); }
  .user-menu:not([open]) .user-menu-panel { display: block; }
}

/* ---------- Flash (meldingen: vaste toast onder de header) ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); left: 0; right: 0; z-index: 60; display: grid; gap: 8px; pointer-events: none; }
.flash-stack .flash { pointer-events: auto; box-shadow: var(--shadow); max-width: 560px; margin-left: auto; cursor: pointer; transition: opacity .3s; }
.flash-stack .flash.is-hiding { opacity: 0; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; font-size: var(--fs-md); background: var(--surface); }
.flash-success { border-color: var(--green-300); background: var(--green-50); color: var(--green-900); }
.flash-error { border-color: var(--danger-line); background: var(--danger-bg); color: var(--danger-fg); }
.flash-info { border-color: var(--grey-300); background: var(--grey-100); color: var(--grey-800); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-tight { padding: clamp(32px, 5vw, 48px) 0 clamp(56px, 8vw, 88px); }
.section-alt { background: var(--grey-100); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 12px; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.section-lead { font-size: var(--fs-lg); color: var(--grey-600); margin: 0; }
.empty { color: var(--muted); margin: 0; padding: 4px 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  color: #fff; background: var(--grey-900); overflow: hidden; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(20 24 23 / .7) 0, rgb(20 24 23 / .4) 72px, rgb(20 24 23 / 0) 200px),
    linear-gradient(90deg, rgb(20 24 23 / .78) 0%, rgb(20 24 23 / .4) 45%, rgb(20 24 23 / 0) 75%),
    linear-gradient(0deg, rgb(20 24 23 / .6) 0%, rgb(20 24 23 / 0) 40%);
}
.hero-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(56px, 10vh, 104px); }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); max-width: 22ch; margin-bottom: 20px; letter-spacing: -.025em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 540px; color: rgb(255 255 255 / .88); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Volgende activiteit: zelfde datumblok als de agenda, in groen omdat het op een donkere foto staat */
.hero-next {
  display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .22);
  color: #fff; text-decoration: none;
}
.hero-next:hover { color: #fff; }
.hero-next .date-block { background: var(--green-700); width: 60px; padding: 7px 0; }
.hero-next .date-block .dow { color: var(--green-100); }
.hero-next .date-block .dnum { font-size: var(--fs-3xl); }
.hero-next-text { display: grid; gap: 3px; min-width: 0; }
.hero-next-label { font-size: var(--fs-sm); font-weight: 600; color: var(--green-300); }
.hero-next-title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); line-height: 1.15; }
.hero-next:hover .hero-next-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hero-next-meta { font-size: var(--fs-sm); color: rgb(255 255 255 / .75); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-img { object-position: 72% 40%; }
  .hero-shade { background: linear-gradient(180deg, rgb(20 24 23 / .7) 0, rgb(20 24 23 / .35) 90px, rgb(20 24 23 / .35) 40%, rgb(20 24 23 / .88) 100%); }
  .hero-inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; }
  .hero-next { margin-top: 32px; padding-top: 20px; }
}

/* ---------- Wat we doen: rijen met wanneer | wat | kleine foto ---------- */
.pillars { display: grid; border-bottom: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 180px 1fr 168px; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.pillar-body { display: contents; }
.pillar .pillar-when { grid-column: 1; grid-row: 1 / span 2; margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--green-700); }
.pillar h3 { grid-column: 2; margin: 0 0 6px; font-size: var(--fs-xl); }
.pillar p:not(.pillar-when) { grid-column: 2; margin: 0; color: var(--grey-600); max-width: 60ch; }
.pillar img { grid-column: 3; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 640px) {
  .pillar { grid-template-columns: 1fr 96px; grid-template-rows: auto auto auto; column-gap: 16px; padding: 18px 0; }
  .pillar .pillar-when { grid-column: 1; grid-row: 1; margin-bottom: 2px; }
  .pillar h3 { grid-column: 1; grid-row: 2; }
  .pillar p:not(.pillar-when) { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .pillar img { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Event rows ---------- */
.event-list { display: grid; gap: 12px; }
.event-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 16px 20px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color .15s;
}
.event-row:hover { color: inherit; border-color: var(--green-400); }
.date-block {
  width: 68px; display: grid; justify-items: center; padding: 8px 0; border-radius: var(--radius-sm);
  background: var(--grey-900); color: #fff; line-height: 1; flex: none;
}
.date-block .dow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--green-300); font-weight: 700; }
.date-block .dnum { font-family: var(--font-head); font-size: var(--fs-4xl); font-weight: 800; margin: 4px 0 2px; }
.date-block .mon { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.event-row-body { display: grid; gap: 4px; min-width: 0; }
.event-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-sm); color: var(--muted); }
.event-row-meta .ev-time + .ev-loc::before { content: '·'; margin-right: 10px; color: var(--grey-400); }
.event-row-title { font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.event-row-summary { color: var(--grey-600); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-row-side { display: flex; align-items: center; gap: 14px; }
.spots { font-size: var(--fs-sm); font-weight: 600; color: var(--green-700); white-space: nowrap; }
.spots.full { color: var(--danger); }
.event-list-past .date-block { background: var(--grey-500); }
.event-list-past .date-block .dow { color: var(--grey-200); }
.event-list-past .event-row-title { color: var(--grey-700); }
.event-list-past .spots, .event-list-past .event-row-side { display: none; }
.event-list-compact .event-row { padding: 12px; gap: 14px; }
.event-list-compact .event-row-summary { display: none; }
.event-list-compact .event-row-meta .ev-loc { flex-basis: 100%; }
.event-list-compact .event-row-meta .ev-loc::before { content: none; }
@media (max-width: 640px) {
  .event-row { grid-template-columns: auto 1fr; gap: 14px; padding: 14px; align-items: start; }
  .event-row-side { grid-column: 2; justify-content: space-between; }
  .event-row-side:not(:has(.spots)) { display: none; }
  .event-row-summary { display: none; }
  .date-block { width: 58px; }
  /* locatie op een eigen regel, zonder losse "·" vooraan */
  .event-row-meta .ev-loc { flex-basis: 100%; }
  .event-row-meta .ev-loc::before { content: none !important; }
}

/* ---------- Tags (categorie) & badges (status) ---------- */
.tag, .badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; line-height: 1.2;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.tag { background: var(--grey-100); color: var(--grey-700); }
.badge { background: var(--grey-200); color: var(--grey-800); }
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge-overlay { position: absolute; background: rgb(20 24 23 / .78); color: #fff; }

/* ---------- Agenda page ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar p { margin: 0; }
.toolbar input.search { height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--grey-300); background: var(--surface); color: var(--grey-700); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.chip:hover { border-color: var(--green-600); color: var(--green-800); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.month-title { font-size: var(--fs-xl); margin: 36px 0 14px; color: var(--grey-700); display: flex; align-items: center; gap: 12px; }
.toolbar + .month-title, .month-title:first-child { margin-top: 0; }
.month-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.past-events { margin-top: 40px; }
.past-events summary { color: var(--grey-700); padding: 8px 0; margin-bottom: 12px; }
.faq summary, .past-events summary, .read-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.faq summary::-webkit-details-marker, .past-events summary::-webkit-details-marker, .read-more summary::-webkit-details-marker { display: none; }
.faq summary::after, .past-events summary::after, .read-more summary::after { content: '+'; font-size: var(--fs-2xl); line-height: 1; font-weight: 400; color: var(--green-700); transition: transform .2s; }
.faq details[open] summary::after, .past-events[open] summary::after, .read-more[open] summary::after { transform: rotate(45deg); }

/* ---------- Page hero: lichte titelband; donker enkel met foto ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--grey-100); color: var(--text); padding: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); isolation: isolate; }
.page-hero h1 { max-width: 22ch; margin-bottom: 10px; }
.page-hero h1:last-child { margin-bottom: 0; }
.page-lead { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--grey-600); max-width: 640px; margin: 0; }
.page-actions { margin: 18px 0 0; }
.page-hero .tag { margin-bottom: 12px; background: var(--surface); }
.page-hero.has-image { min-height: 400px; display: flex; align-items: flex-end; background: var(--grey-900); color: #fff; border-bottom: 0; }
@media (max-width: 640px) { .page-hero.has-image { min-height: 260px; } }
.page-hero.has-image .container { width: 100%; }
.page-hero.has-image .page-lead { color: rgb(255 255 255 / .82); }
.page-hero.has-image .tag { background: rgb(255 255 255 / .16); border-color: transparent; color: #fff; }
.page-hero.has-image .back-link { color: var(--green-300); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(20 24 23 / .9), rgb(20 24 23 / .2)); }
.hero-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.edit-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.edit-link .icon { width: 15px; height: 15px; }
.edit-link:hover { text-decoration: underline; }
.page-hero.has-image .edit-link { color: var(--green-300); }
.back-link { display: block; width: fit-content; margin-bottom: 14px; color: var(--primary); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.back-link:hover { text-decoration: underline; }

/* ---------- Event detail ---------- */
.event-layout { display: grid; grid-template-columns: 1fr 340px; grid-template-areas: "lead aside" "body aside"; grid-template-rows: auto 1fr; gap: 0 48px; align-items: start; }
.event-lead { grid-area: lead; max-width: 70ch; margin: 0 0 1em; font-size: var(--fs-xl); font-weight: 500; color: var(--grey-700); }
.event-body { grid-area: body; }
.event-aside { grid-area: aside; }
.event-aside p { margin: 0; }
.event-aside { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; align-content: start; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .facts { gap: 10px; } .facts div { grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; } }
.nowrap { white-space: nowrap; }
.signed-up { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-800); font-weight: 700; text-align: center; }
.attendees h3 { font-size: var(--fs-lg); margin-bottom: 10px; }
.avatar-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.cross-link { max-width: 70ch; display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); text-decoration: none; margin-top: 24px; }
.cross-link:hover { border-color: var(--green-400); }
.album-intro + .cross-link, .read-more + .cross-link { margin-top: 0; }
@media (max-width: 860px) {
  .event-layout { grid-template-columns: 1fr; grid-template-areas: "lead" "aside" "body"; grid-template-rows: none; gap: 0; }
  .event-aside { position: static; margin-bottom: 28px; padding: 20px; max-width: 520px; }
}

/* Prose */
.prose { font-size: var(--fs-md); max-width: 70ch; }
.prose .lead { font-size: var(--fs-xl); color: var(--grey-700); font-weight: 500; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose figure { margin: 28px 0 0; }
.prose figure img { border-radius: var(--radius); }
.read-more summary { color: var(--primary); margin-bottom: 1em; font-size: var(--fs-sm); }
.read-more .when-open, .read-more[open] .when-closed { display: none; }
.read-more[open] .when-open { display: inline; }

/* ---------- Avatars ---------- */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grey-200); color: var(--grey-800); font: 700 var(--fs-md) var(--font-head); letter-spacing: .02em;
}
.avatar-sm { width: 32px; height: 32px; font-size: var(--fs-xs); }
.avatar-lg { width: 56px; height: 56px; font-size: var(--fs-xl); }
.avatar-self { background: var(--green-700); color: #fff; }
.avatar.more { background: var(--grey-100); color: var(--grey-600); }

/* ---------- Feature album / mosaic ---------- */
.feature-album { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.feature-album h2 { margin-bottom: 8px; }
.feature-meta { color: var(--muted); font-weight: 500; }
.feature-album .btn { margin-top: 8px; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, minmax(90px, 150px)); gap: 8px; }
.mosaic-item { overflow: hidden; border-radius: var(--radius-sm); display: block; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.mosaic-item:hover img { opacity: .9; }
.mosaic .m0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic .m1 { grid-column: 3; grid-row: 1 / 3; }
.mosaic .m2 { grid-column: 1; grid-row: 3; }
.mosaic .m3 { grid-column: 2; grid-row: 3; }
.mosaic .m4 { grid-column: 3; grid-row: 3; }
@media (max-width: 860px) { .feature-album { grid-template-columns: 1fr; } .feature-album .mosaic { order: -1; } }
@media (max-width: 640px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mosaic .mosaic-item { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic .m0 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .mosaic .m3, .mosaic .m4 { display: none; }
}


/* ---------- Staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; }
.staff-card { display: flex; align-items: flex-start; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.staff-card > div { min-width: 0; }
.staff-fn { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--green-700); overflow-wrap: anywhere; }
.staff-note { margin: 32px 0 0; color: var(--grey-600); }
.staff-card h2 { font-size: var(--fs-2xl); margin: 4px 0 2px; }
.staff-card p { margin: 0 0 6px; color: var(--grey-600); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--radius); background: var(--amber-bg); border: 1px solid var(--amber-line); }
.callout h2 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--amber-fg); }

/* ---------- Albums ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.album-grid-admin { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.album-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: border-color .15s; }
.album-card:hover { color: inherit; border-color: var(--green-400); }
.album-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--grey-200); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .album-cover img { transform: scale(1.03); }
.album-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.album-cover .badge-overlay { bottom: 10px; left: 10px; }
.album-cover .badge-overlay + .badge-overlay { left: auto; right: 10px; }
.album-card-body { display: grid; gap: 2px; padding: 14px 16px 16px; }
.album-card-body strong { font-family: var(--font-head); font-size: var(--fs-xl); }
.album-intro { margin-bottom: 8px; }

.masonry { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.masonry::after { content: ''; flex-grow: 999; }
.masonry-item { display: block; flex: var(--r, 1.33) 1 calc(var(--r, 1.33) * 200px); aspect-ratio: var(--r, 1.33); border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-200); cursor: zoom-in; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.masonry-item:hover img { opacity: .9; }
.masonry-item:target { outline: 3px solid var(--green-600); outline-offset: 2px; }
@media (max-width: 640px) { .masonry { gap: 6px; } .masonry-item { flex-basis: calc(var(--r, 1.33) * 110px); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(14 17 16 / .95); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 10px; grid-column: 2; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 90px); border-radius: var(--radius-sm); object-fit: contain; }
.lb-figure figcaption { color: rgb(255 255 255 / .7); font-size: var(--fs-sm); }
.lb-btn { border: 0; background: rgb(255 255 255 / .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lb-btn:hover { background: var(--green-700); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-figure { grid-column: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
}

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.split-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.split-photo figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-photo { position: static; } .split-photo img { aspect-ratio: 4 / 3; } }
.values { display: grid; gap: 18px; margin-bottom: 1em; }
.values h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.values p { margin: 0; color: var(--grey-600); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 22px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 10px; height: 2px; border-radius: 1px; background: var(--green-700); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { padding: 16px 0; justify-content: space-between; gap: 16px; }
.faq details p { color: var(--grey-600); }

/* ---------- Join ---------- */
.join-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.price-card { padding-top: 4px; }
.price-label { font-size: var(--fs-md); font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.price strong { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; }
.price span { color: var(--muted); }
.price-card .checklist { margin-bottom: 24px; }
.price-card .small { margin: 12px 0 0; }
.steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 36px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; font: 800 var(--fs-xl) var(--font-head); color: var(--green-700); }
@media (max-width: 860px) { .join-layout { grid-template-columns: 1fr; } .price-card { position: static; } }

/* ---------- Cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); min-width: 0; }
.card h2 { font-size: var(--fs-2xl); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 12px; }
@media (max-width: 560px) { .card-head { flex-direction: column; gap: 8px; } }
.card-head h2 { margin: 0; }
.form { display: grid; gap: 16px; }
.form h2 { margin-bottom: 0; }
.form > .btn { justify-self: start; }
.form > .btn-block { justify-self: stretch; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-sm); font-weight: 600; color: var(--grey-700); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea {
  font: inherit; font-size: var(--fs-md); color: var(--text); width: 100%;
  padding: 10px 13px; border: 1.5px solid var(--grey-300); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
:where(input:not([type="checkbox"]):not([type="file"]), select) { height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgb(42 128 72 / .16); }
input[disabled] { background: var(--grey-100); color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green-700); flex: none; margin-top: 2px; }
input[type="file"] { padding: 9px; background: var(--grey-100); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--grey-700); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions form { margin: 0; }
@media (max-width: 640px) { .toolbar .search { max-width: none; } }
.search { max-width: 320px; padding-left: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545c59' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center / 18px no-repeat; }

/* Auth */
.page-auth main { background: var(--surface); }
.page-auth main { display: flex; flex-direction: column; }
.page-auth .site-header { background: var(--surface); }
.auth { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 520px; }
.auth-photo { position: relative; overflow: hidden; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-panel { display: grid; place-items: center start; padding: 48px var(--gutter) 48px clamp(32px, 6vw, 96px); }
.auth-form { width: 100%; max-width: 460px; }
.auth-form h1 { margin-bottom: 4px; }
.auth-form .small { margin: 0; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; grid-template-rows: 180px auto; min-height: 0; } .auth-panel { padding: 32px var(--gutter) 48px; place-items: start center; } }
@media (max-width: 560px) { .auth { grid-template-rows: auto; } .auth-photo { display: none; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 24px; }
.contact-item p { margin-bottom: 10px; }
.contact-item address { margin-bottom: 8px; }
.contact-item a { font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--grey-200); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-layout { grid-template-areas: "quick form" "more form"; row-gap: 24px; }
.contact-quick { grid-area: quick; }
.contact-more { grid-area: more; }
.contact-form { grid-area: form; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; grid-template-areas: "quick" "form" "more"; } }

/* Account */
.account-head { display: flex; align-items: flex-start; gap: 24px; }
.account-head .avatar { margin-top: 4px; }
.account-head h1 { margin-bottom: 8px; }
.account-admin { margin: 10px 0 0; }
.account-badges { margin: 0; }
.account-head .badge { margin: 0 6px 6px 0; white-space: normal; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "main profile" "password profile"; grid-template-rows: auto 1fr; gap: 24px; align-items: start; }
.account-main { grid-area: main; }
.account-forms { display: contents; }
.account-profile { grid-area: profile; }
.account-password { grid-area: password; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; grid-template-areas: "main" "profile" "password"; grid-template-rows: none; } }
@media (max-width: 560px) { .account-head { gap: 14px; align-items: flex-start; } }
.plain-list { padding-left: 18px; margin: 8px 0 0; }

/* Members */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.member-card { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.member-card > div { display: grid; gap: 1px; flex: 1; min-width: 0; }
.member-card .muted { overflow-wrap: anywhere; }
.member-card[hidden] { display: none; }

/* Error */
.error-page { padding: clamp(64px, 10vw, 120px) 0; }
.error-page .page-lead { color: var(--grey-600); margin: 0 auto 28px; }
.error-code { font: 800 var(--fs-title)/1 var(--font-head); color: var(--green-700); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-950); color: rgb(255 255 255 / .75); padding: 48px 0 24px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px 48px; }
.footer-brand address { margin-top: 16px; line-height: 1.8; }
.site-footer h3 { font-size: var(--fs-md); color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 24px; }
.footer-contact { margin-top: 10px !important; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.brand-light { color: #fff; align-self: start; --logo-base: var(--grey-600); }
.page-home .site-header:not(.is-scrolled):not(.nav-open) .brand { --logo-base: var(--grey-600); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; color: rgb(255 255 255 / .55); }
.footer-bottom::before { content: ''; flex-basis: 100%; border-top: 1px solid rgb(255 255 255 / .1); margin-bottom: 8px; }
.site-footer.site-footer-compact { padding: 18px 0; }
.site-footer-compact .footer-bottom { margin-top: 0; }
.site-footer-compact .footer-bottom::before { display: none; }

@media (max-width: 560px) { .site-footer { padding-top: 36px; } .footer-grid { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { margin-top: 24px; } }

/* =========================================================
   Beheer
   ========================================================= */
.admin-bar { background: var(--grey-100); color: var(--text); padding: 32px 0 0; border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: grid; gap: 12px; }
.admin-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-bar-actions:empty { display: none; }
.admin-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
@media (max-width: 560px) { .admin-bar-head { flex-direction: column; align-items: flex-start; } }
.admin-bar h1 { margin: 0; }
.admin-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs a { padding: 12px 0; color: var(--grey-600); text-decoration: none; font-weight: 600; font-size: var(--fs-md); border-bottom: 3px solid transparent; white-space: nowrap; }
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.active { color: var(--green-700); border-color: var(--green-700); }
@media (max-width: 560px) { .admin-tabs { gap: 16px; } .admin-tabs a { padding: 10px 0; font-size: var(--fs-sm); } }
@media (max-width: 360px) { .admin-tabs { flex-wrap: wrap; gap: 0 14px; } }
.dash-notice { margin: 0 0 24px; padding: 14px 18px; }
.admin-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.admin-columns > * { min-width: 0; }
@media (max-width: 900px) { .admin-columns { grid-template-columns: 1fr; } }
.admin-form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.admin-form-layout > * { min-width: 0; }
@media (max-width: 960px) { .admin-form-layout { grid-template-columns: 1fr; } }
.message-mini { padding: 10px 0; border-top: 1px solid var(--line); display: grid; color: inherit; text-decoration: none; }
.message-mini:hover strong { text-decoration: underline; }
.message.is-handled h2 { color: var(--grey-600); }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(to left, var(--surface) 30%, rgb(255 255 255 / 0)) right / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgb(20 24 23 / .16), transparent) right / 16px 100% no-repeat scroll,
    var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
@media (min-width: 961px) { .table-fixed { table-layout: fixed; min-width: 900px; } }
@media (min-width: 1151px) { .table-users { min-width: 860px; } }
.table th { text-align: left; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table a { text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }
a.contact-link { color: var(--muted); font-weight: 400; text-decoration: none; }
a.contact-link:hover { color: var(--text); text-decoration: underline; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.card .table th:first-child, .card .table td:first-child { padding-left: 0; }
.card .table th:last-child, .card .table td:last-child { padding-right: 0; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .nowrap { white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { display: inline-flex; margin: 2px 0 2px 4px; vertical-align: middle; }
.table-users .actions { text-align: left; }
.table-users .actions > * { margin: 2px 4px 2px 0; }
.table-users select, .table-users input:not([type="checkbox"]) { height: 36px; padding: 6px 9px; font-size: var(--fs-sm); min-width: 120px; }
.table-users select[name="status"] { min-width: 150px; }
.table-users input[name="staff_function"] { min-width: 170px; }
.table-users input.input-xs { width: 72px; min-width: 0; }
.table tr[hidden] { display: none; }
/* Tot tabletbreedte: elke rij als blok met labels, acties eronder */
@media (max-width: 960px) {
  .table.table-stack, .table.table-stack tbody, .table.table-stack tr, .table.table-stack td { display: block; width: 100%; }
  .table.table-stack { min-width: 0; font-size: var(--fs-sm); }
  .table.table-stack colgroup, .table.table-stack thead { display: none; }
  .table.table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table.table-stack tr:last-child { border-bottom: 0; }
  .card .table.table-stack tr { padding-left: 0; padding-right: 0; }
  .table.table-stack td { display: flex; align-items: center; gap: 12px; padding: 3px 0; border: 0; text-align: left; white-space: normal; }
  .table.table-stack td:not([data-label]) { display: block; }
  .table.table-stack td[data-label]::before { content: attr(data-label); flex: 0 0 84px; color: var(--muted); }
  .table.table-stack td select, .table.table-stack td input { flex: 1; width: auto; min-width: 0; height: 44px; }
  .table.table-stack tr { display: flex; flex-direction: column; }
  .table-fixed.table-stack td:nth-child(2) { order: -1; }
  .table.table-stack td.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .table.table-stack td.actions > * { margin: 0; }
  .table.table-stack .btn-xs { min-height: 44px; padding: 10px 14px; font-size: var(--fs-sm); }
  .table.table-stack tr[hidden] { display: none; }
}
/* Ledentabel is breder: gestapeld tot 1150px */
@media (min-width: 961px) and (max-width: 1150px) {
  .table.table-users.table-stack, .table.table-users.table-stack tbody, .table.table-users.table-stack tr, .table.table-users.table-stack td { display: block; width: 100%; }
  .table.table-users.table-stack { min-width: 0; font-size: var(--fs-sm); }
  .table.table-users.table-stack colgroup, .table.table-users.table-stack thead { display: none; }
  .table.table-users.table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table.table-users.table-stack tr:last-child { border-bottom: 0; }
  .card .table.table-users.table-stack tr { padding-left: 0; padding-right: 0; }
  .table.table-users.table-stack td { display: flex; align-items: center; gap: 12px; padding: 3px 0; border: 0; text-align: left; white-space: normal; }
  .table.table-users.table-stack td:not([data-label]) { display: block; }
  .table.table-users.table-stack td[data-label]::before { content: attr(data-label); flex: 0 0 84px; color: var(--muted); }
  .table.table-users.table-stack td select, .table.table-users.table-stack td input { flex: 1; width: auto; min-width: 0; height: 44px; }
  .table.table-users.table-stack tr { display: flex; flex-direction: column; }
  .table-fixed.table-stack td:nth-child(2) { order: -1; }
  .table.table-users.table-stack td.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .table.table-users.table-stack td.actions > * { margin: 0; }
  .table.table-users.table-stack .btn-xs { min-height: 44px; padding: 10px 14px; font-size: var(--fs-sm); }
  .table.table-users.table-stack tr[hidden] { display: none; }
}
.status-pending { border-color: var(--amber-line); background: var(--amber-bg); }

.signup-list { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; }
.signup-list li span { display: block; }
.danger-zone { border-color: var(--danger-line); }
.current-image { display: flex; gap: 14px; align-items: center; }
.current-image img { width: 160px; border-radius: var(--radius-sm); }
@media (max-width: 560px) { .current-image { flex-direction: column; align-items: flex-start; } }

.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 6px; padding: 32px 20px; border: 2px dashed var(--grey-300); border-radius: var(--radius); background: var(--grey-100); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--green-400); outline-offset: 2px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--green-600); background: var(--green-50); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.dropzone-text small { color: var(--muted); }
.dropzone-count { font-weight: 700; color: var(--green-700); overflow-wrap: anywhere; }
.dropzone-sm { padding: 18px 16px; }

.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .photo-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo-admin { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-200); aspect-ratio: 1; }
.photo-admin img { width: 100%; height: 100%; object-fit: cover; }
.photo-admin.is-cover { outline: 3px solid var(--green-600); outline-offset: 2px; }
.photo-admin:target { outline: 3px solid var(--green-400); }
.photo-admin > .badge-overlay { top: 8px; left: 8px; background: var(--green-700); }
.photo-admin-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.photo-admin-actions form { margin: 0; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
@media (hover: none) { .btn-icon { width: 44px; height: 44px; } }
.photo-admin:hover .photo-admin-actions, .photo-admin:focus-within .photo-admin-actions { opacity: 1; }
@media (hover: none) { .photo-admin-actions { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
