/*
  Design system (volunteer pages + shared base for the organiser area)
  ------------------------------------------------------------------
  Multi-customer: every colour is a semantic token in :root below. A
  per-customer stylesheet (served as its own CSS file, CSP-safe) overrides
  the brand tokens; nothing outside :root may hard-code a brand hex value.
  Place colours come from data (style="--loc:#…" on the element).
  Default values: Frelsesarmeen's web palette, without their logo.

  Fonts: Figtree (body/UI) + Source Serif 4 600 (public h1/h2, calendar
  caption, season figure). Both OFL, self-hosted, font-display: swap.

  Layout:     .wrap (max 1080) .wrap-wide (max 1280) .wrap-picker (max 1200) .narrow .stack .row .grid-2 .grid-3
  Text:       .lead .muted .small .eyebrow .sr-only
  Buttons:    .btn (brand pill) .btn-secondary (outline) .btn-ghost .btn-danger .btn-small .btn-block
  Panels:     .card .card-flat .notice .notice-success|info|warning|error .error-summary
  Badges:     .badge .badge-free .badge-full .badge-partial .badge-muted .badge-admin .badge-danger
  Forms:      .field label .hint .field-error .optional .form-actions .check .inline-form .reassure
  Volunteer:  .header-help .hero-compact .season · steps (S14): .stepper .step-q .avail .place-card .place-both
              .cal-card .cal-key .cal .cal-day.is-free|is-few|is-full|is-inert|is-selected|is-today
              .day-panel .day-nav .places .slot-free .slot-ledig .slot-taken .taken-fold .slot-mine
              booking: .shift-summary .chosen .choices .choice .alts .done-panel .my-list .check-big
              info page: .example-note .placeholder
  Admin:      .admin-header .admin-nav .page-head .stats .stat .table .table-wrap .toolbar
              .shift-row .person .tag-list .empty  (more in admin.css)
  Print:      .no-print, and @media print rules at the bottom.
*/

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Serif 4, weight 600 only (headlines). @fontsource/source-serif-4 5.3.1, OFL: fonts/SourceSerif4-OFL.txt */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/source-serif-4-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so the swap to Source Serif 4 does not move the layout
   (Georgia Bold scaled to Source Serif 4's average width and line metrics). */
@font-face {
  font-family: 'Source Serif 4 fallback';
  font-weight: 600;
  src: local('Georgia Bold'), local('Georgia-Bold');
  size-adjust: 94.4%;
  ascent-override: 109.7%;
  descent-override: 35.5%;
  line-gap-override: 0%;
}

:root {
  /* ---- brand: overridden per customer ---- */
  --brand: #e4002b; /* primary actions, selected day, progress fill */
  --brand-strong: #a20b27; /* links, hover, brand-coloured text (8:1 on white) */
  --brand-contrast: #ffffff; /* text on --brand */
  --brand-soft: #fdeef1; /* tinted background behind brand-strong text */
  --accent: #dfd6c3; /* progress track, small decorative accents */
  --surface: #ffffff; /* page, cards */
  --surface-warm: #f3eee8; /* hero panel, day panel */
  --surface-muted: #eeeae4; /* full days, quiet fills */
  --surface-admin: #f6f4f0; /* organiser page background */
  --band: #dfd6c3; /* footer band */
  --frame: #ffffff; /* inset frame on warm panels */
  --ink: #1d1d1b; /* headings, strong text, focus ring */
  --text: #2f2e2b;
  --muted: #474747; /* 9.3:1 on white, 8.1:1 on surface-warm, 7.8:1 on surface-muted, 6.4:1 on band (S14) */
  --faint: #767069; /* days without shifts, past days: 4.9:1 on white */
  --line: #e2dbcf; /* decorative borders */
  --line-strong: #8a8173; /* borders that identify a control (≥3:1) */
  --focus: #1d1d1b;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Source Serif 4', 'Source Serif 4 fallback', Georgia, 'Times New Roman', serif;

  /* ---- status colours (not brand) ---- */
  --success: #136b35;
  --success-soft: #e6f3ea;
  --success-line: #b9dcc5;
  --warning: #6b4400; /* 7.8:1 on warning-soft (S14) */
  --warning-soft: #fff3d6;
  --warning-line: #c98a00;
  --info: #1f4e8c;
  --info-soft: #e9f0fa;
  /* Availability (S14): words carry the meaning, these colours support them. */
  --free-ink: #0a5226; /* "5 ledige": 8.1:1 on free-soft, 9.3:1 on white */
  --free-soft: #e3f3e7; /* free day fill */
  --free-line: #1e7a40; /* free day / free time border: 5.4:1 on white, 4.7:1 on free-soft */
  --full-ink: #4a4844; /* "Fullt": 7.3:1 on full-soft */
  --full-soft: #e9e6e1; /* full day fill */
  --full-line: #8a8173; /* full pill border: 3.1:1 on full-soft */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 29, 27, 0.05), 0 6px 20px rgba(29, 29, 27, 0.06);
  --shadow-hover: 0 2px 4px rgba(29, 29, 27, 0.08), 0 10px 28px rgba(29, 29, 27, 0.1);

  /* ---- legacy aliases (admin.css and older markup). Prefer the names above. ---- */
  --red: var(--brand);
  --red-dark: var(--brand-strong);
  --red-50: var(--brand-soft);
  --beige: var(--band);
  --sand: var(--surface-muted);
  --cream: var(--surface-warm);
  --white: var(--surface);
  --green: var(--success);
  --green-50: var(--success-soft);
  --amber: var(--warning);
  --amber-50: var(--warning-soft);
  --blue: var(--info);
  --blue-50: var(--info-soft);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem; /* 18px: comfortable for older volunteers */
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.admin {
  font-size: 1rem;
  background: var(--surface-admin);
}
main {
  flex: 1;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 750;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
/* Long Norwegian words ("mobilnummer") break rather than push the page sideways at 200 % text. */
body.public h1, body.public h2, body.public h3 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
/* Volunteer pages: serif headlines (organiser area stays in Figtree). */
body.public h1, body.public h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
a { color: var(--brand-strong); text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
strong { font-weight: 700; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: 12px; transform: translateY(-300%); /* off-screen at any text size until focused */
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { transform: none; color: var(--surface); }
/* Staging only (env ENVIRONMENT=staging): words, not just colour. */
.staging-banner {
  background: var(--ink); color: var(--surface);
  padding: 8px 16px;
  text-align: center; font-weight: 700; font-size: 1rem; line-height: 1.35;
}

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.wrap.wrap-picker, body.public .wrap:not(.narrow) { max-width: 1200px; }
.narrow { max-width: 640px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.section { padding: 32px 0; }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
/* Sentence case, never capitals (kit rule). */
.eyebrow {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--brand-strong); margin: 0 0 4px;
}
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.link-cta { font-weight: 700; color: var(--brand-strong); }

/* ---------- header / footer ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; min-height: 64px; padding-top: 4px; padding-bottom: 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--brand); display: inline-flex; --kettle-heart: var(--brand-contrast); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.875rem; color: var(--muted); }
.brand-small .brand-text strong { font-size: 1.05rem; }
.brand-center { justify-content: center; display: flex; margin: 0 auto 28px; }

.site-footer {
  margin-top: 56px;
  background: var(--band);
  padding: 28px 0 36px;
  font-size: 1rem;
}
.footer-inner { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.footer-inner p { margin: 4px 0 0; }
.footer-inner > div { min-width: 0; }
/* Long e-mail addresses break instead of pushing the page sideways (200 % text, 320 px). */
body.public a[href^='mailto:'] { overflow-wrap: anywhere; }
.footer-links { display: flex; gap: 18px; align-items: flex-start; }
.footer-links a { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--brand);
  --fg: var(--brand-contrast);
  --bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { --bg: var(--brand-strong); --bd: var(--brand-strong); color: var(--brand-contrast); }
.btn:active { transform: translateY(1px); }
.btn-secondary { --bg: var(--surface); --fg: var(--ink); --bd: var(--ink); }
.btn-secondary:hover { --bg: var(--ink); --bd: var(--ink); color: var(--surface); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-ghost:hover { --bg: var(--surface-muted); --bd: var(--surface-muted); color: var(--ink); }
.btn-danger { --bg: var(--surface); --fg: var(--brand-strong); --bd: var(--brand-strong); }
.btn-danger:hover { --bg: var(--brand-strong); --bd: var(--brand-strong); color: var(--brand-contrast); }
.btn-small { min-height: 36px; padding: 0.3rem 0.95rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
button[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }

/* ---------- panels ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card > :last-child, .card-flat > :last-child { margin-bottom: 0; }
.card-taken { box-shadow: none; background: var(--surface-muted); }
.card-taken .badge { margin-bottom: 10px; background: var(--surface); }

.notice {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0;
  border-left: 6px solid;
  background: var(--surface);
}
.notice > :last-child { margin-bottom: 0; }
.notice-success { border-color: var(--success); background: var(--success-soft); }
.notice-info { border-color: var(--info); background: var(--info-soft); }
.notice-warning { border-color: var(--warning-line); background: var(--warning-soft); }
.notice-error { border-color: var(--brand); background: var(--brand-soft); }

.error-summary {
  border: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--surface);
}
.error-summary h2 { font-size: 1.2rem; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--brand-strong); font-weight: 700; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.85rem; font-weight: 700; line-height: 1.5;
  background: var(--surface-muted); color: var(--ink);
  white-space: nowrap;
}
.badge-free { background: var(--success-soft); color: var(--success); }
.badge-full { background: var(--surface-muted); color: var(--muted); }
.badge-partial { background: var(--warning-soft); color: var(--warning); }
.badge-muted { background: var(--surface-muted); color: var(--muted); font-weight: 600; }
.badge-admin { background: var(--info-soft); color: var(--info); }
.badge-danger { background: var(--brand-soft); color: var(--brand-strong); }

.loc-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--loc, var(--muted));
  flex: none;
}

/* ---------- forms ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.field .optional { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 1rem; margin: 0 0 8px; } /* review N-5: was 0.95rem (15.2 px) */
.form-privacy { font-size: 1rem; } /* review N-5: "Les om personvern" was 0.9rem */
.field-error { color: var(--brand-strong); font-weight: 700; margin: 0 0 8px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--brand); border-width: 3px; }

input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='date'],
input[type='time'], input[type='color'], select, textarea {
  font: inherit;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
body.admin input, body.admin select, body.admin textarea { min-height: 44px; }
input[type='color'] { padding: 4px; width: 72px; }
input[type='number'] { max-width: 140px; }
input[type='date'], input[type='time'] { max-width: 220px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.input-short { max-width: 260px; }
.input-medium { max-width: 420px; }

.check { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.checks-inline { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.checks-inline .check { margin: 4px 0; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.inline-form { display: inline; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */
.reassure {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  color: var(--ink);
  font-size: 1rem;
}
.watch-msg .notice { margin-top: 0; }

/* ---------- volunteer: hero ---------- */
.hero {
  background: var(--surface-warm);
  padding: 36px 0;
  outline: 3px solid var(--frame); /* Frelsesarmeen-style inset frame */
  outline-offset: -8px;
}
.hero h1 { margin-bottom: 8px; }
.hero p { max-width: 46rem; }
.hero .lead { font-size: 1.2rem; }

.hero-compact { padding: 20px 0 14px; }
.hero-compact h1 { font-size: 2rem; line-height: 1.1; margin-bottom: 6px; }
.hero-compact .lead { font-size: 1.125rem; line-height: 1.4; margin: 0 0 10px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); }

/* "Haster": calm amber words (no countdowns); colour only supports the text. */
.urgent-line { margin: -2px 0 10px; font-size: 1.0625rem; line-height: 1.5; }
.urgent-line a { color: var(--ink); font-weight: 650; text-underline-offset: 0.2em; }
.urgent-line .urgent-tag { margin-right: 6px; }
@media (max-width: 699px) {
  /* Phone: the urgent line replaces the season bar, so the calendar stays above the fold. */
  .hero-inner:has(.urgent-line:not([hidden])) .season { display: none; }
}
.urgent-tag, .slot-urgent {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 9999px;
  border: 1px solid var(--warning-line);
  background: var(--warning-soft);
  color: var(--warning);
  font-family: var(--font); font-size: 0.875rem; font-weight: 750; line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.slot-urgent { margin-right: 8px; }
.season { margin: 0 0 4px; max-width: 26rem; }
.season-text { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.season-fig { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.season-bar { height: 8px; border-radius: 9999px; background: var(--accent); overflow: hidden; }
.season-bar > span { display: block; height: 100%; background: var(--brand); border-radius: 9999px; }

/* ---------- volunteer: header help link (same place on every page, WCAG 3.2.6) ---------- */
.header-help {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  padding: 4px 14px 4px 6px;
  border: 2px solid var(--line-strong);
  border-radius: 9999px;
  color: var(--ink);
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
}
.header-help:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-muted); }
.header-help-icon, .info-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--surface);
  font-weight: 800; font-size: 1.0625rem; line-height: 1;
  flex: none;
}
.hero-info { margin: 4px 0 8px; }
.btn-info { gap: 10px; padding-left: 0.6rem; }
.btn-info:hover .info-i { background: var(--surface); color: var(--ink); }

/* ---------- volunteer: step indicator ---------- */
.stepper { margin: 18px 0 6px; }
.stepper-count { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.stepper-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
  position: relative;
}
/* A thin line behind the dots joins the steps. */
.stepper-list::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 22px;
  border-top: 2px solid var(--line-strong);
}
.stepper-item { position: relative; min-width: 0; }
.stepper-box {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 56px; padding: 6px 2px;
  border-radius: 12px;
  text-align: center; text-decoration: none;
  color: var(--ink);
}
a.stepper-box:hover { background: var(--surface-muted); color: var(--ink); }
.stepper-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-strong);
  background: var(--surface); color: var(--muted);
  font-weight: 800; font-size: 1rem;
  position: relative;
}
.is-current .stepper-dot { background: var(--ink); border-color: var(--ink); color: var(--surface); width: 38px; height: 38px; margin-top: -2px; }
.is-done .stepper-dot { background: var(--free-soft); border-color: var(--free-line); color: var(--free-ink); }
.stepper-text { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.stepper-label { font-size: 1rem; font-weight: 750; line-height: 1.2; }
.is-todo .stepper-label { color: var(--muted); font-weight: 600; }
a.stepper-box .stepper-label { text-decoration: underline; text-underline-offset: 0.18em; }
.stepper-value {
  font-size: 0.9375rem; font-weight: 600; color: var(--free-ink); line-height: 1.2;
  max-width: 100%; overflow-wrap: anywhere;
}

/* ---------- volunteer: the question on each step ---------- */
.step-head { margin: 10px 0 14px; }
.step-q { font-size: 2rem; line-height: 1.1; margin: 0 0 6px; }
body.public .step-q { font-family: var(--font-display); font-weight: 600; }
.step-q:focus { outline: none; }
.step-q:focus-visible { outline: 3px solid var(--focus); }
.step-help { font-size: 1.125rem; color: var(--text); margin: 0 0 4px; max-width: 40rem; }
.step-block { margin-top: 12px; }

/* "5 ledige vakter" / "Ingen ledige vakter": words first, green or grey second. */
.avail {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 3px 12px;
  border: 2px solid;
  border-radius: 9999px;
  font-size: 1.0625rem; font-weight: 750; line-height: 1.35;
}
.avail-free, .avail-few { background: var(--free-soft); color: var(--free-ink); border-color: var(--free-line); }
.avail-full { background: var(--full-soft); color: var(--full-ink); border-color: var(--full-line); }
.avail-few .avail-few { padding: 0; border: 0; font-weight: 650; }

/* ---------- step 1: place cards ---------- */
.place-cards { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 14px; }
.place-card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  height: 100%;
  padding: 18px 18px 18px 28px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}
.place-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--loc, var(--muted)); }
.place-card:hover { border-color: var(--ink); color: var(--text); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-hover); }
.place-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.875rem; line-height: 1.1; color: var(--ink); }
.place-card-addr { font-weight: 700; color: var(--ink); }
.place-card-desc { line-height: 1.45; }
.place-card-next { font-size: 1rem; color: var(--muted); }
.place-card-cta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 6px 16px;
  border-radius: 9999px;
  background: var(--brand); color: var(--brand-contrast);
  font-weight: 750; font-size: 1.1875rem; text-align: center;
}
.place-card:hover .place-card-cta { background: var(--brand-strong); }
.place-card.is-full .place-card-cta { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.place-both {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  min-height: 72px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.place-both:hover { background: var(--surface-muted); color: var(--ink); }
.place-both-text { display: flex; flex-direction: column; }
.place-both-text strong { font-size: 1.375rem; }
.place-both-text span { color: var(--muted); }
.place-both::after { content: '›'; font-size: 2.25rem; line-height: 1; font-weight: 700; margin-left: auto; }
.about-block { margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); max-width: 46rem; }
.about-block h2 { font-size: 1.6rem; }
.more-link { font-weight: 700; }

/* ---------- steps 2 and 3: calendar + times ---------- */
.picker { display: grid; gap: 16px; margin-top: 4px; }
.first-free { width: 100%; flex-direction: column; gap: 2px; margin: 0 0 14px; }
.btn-big { min-height: 60px; font-size: 1.25rem; padding: 0.7rem 1.75rem; }
.btn-sub { font-size: 1rem; font-weight: 600; }
.cal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 4px 12px;
  container: cal / inline-size;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 0 6px; }
.cal-title { font-size: 1.5rem; margin: 0; }
/* Legend directly above the grid, in plain words. */
.cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 6px 8px; font-size: 1rem; font-weight: 650; color: var(--ink); }
.cal-key-item { display: inline-flex; align-items: center; gap: 6px; }
.cal-key-sep { color: var(--muted); }
.key-swatch { width: 20px; height: 20px; border-radius: 5px; border: 2px solid; flex: none; }
.key-free { background: var(--free-soft); border-color: var(--free-line); }
.key-full { background: var(--full-soft); border-color: var(--full-line); }
.cal { width: 100%; border-collapse: separate; border-spacing: 4px 6px; table-layout: fixed; }
.cal th { font-size: 1rem; font-weight: 700; color: var(--muted); padding: 2px 0 4px; text-align: center; }
.cal abbr { text-decoration: none; }
.cal td { padding: 0; vertical-align: top; height: 1px; } /* height: lets the cell link fill the row */
.cal-day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px;
  height: 100%; min-height: 78px;
  padding: 9px 0 6px;
  border-radius: 10px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--faint);
}
a.cal-day { border: 2px solid transparent; }
.cal-num { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-state { display: flex; flex-direction: column; align-items: center; font-size: 1rem; line-height: 1.15; }
.cal-count { font-size: 1.125rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.cal-word { font-size: 1rem; font-weight: 650; }
.cal-full { font-size: 1rem; font-weight: 700; }
/* (a) free and (b) few: calm green fill, green border, the words in dark green. */
a.cal-day.is-free, a.cal-day.is-few { background: var(--free-soft); border-color: var(--free-line); color: var(--free-ink); }
a.cal-day.is-free .cal-num, a.cal-day.is-few .cal-num { color: var(--ink); }
a.cal-day.is-free:hover, a.cal-day.is-few:hover { border-color: var(--ink); color: var(--free-ink); }
/* (b) 1–2 left: the count in a solid dark ring (shape, not colour) + "Snart fullt" where there is room. */
.is-few .cal-count { background: var(--free-ink); color: var(--surface); border-radius: 9999px; padding: 0 7px; margin-bottom: 1px; }
.cal-few { display: none; font-size: 0.875rem; font-weight: 750; color: var(--free-ink); line-height: 1.15; text-align: center; }
/* (c) full: grey fill, the word "Fullt", day number muted. */
a.cal-day.is-full { background: var(--full-soft); border-color: var(--full-soft); color: var(--full-ink); }
a.cal-day.is-full .cal-num { color: var(--full-ink); font-weight: 650; }
a.cal-day.is-full:hover { border-color: var(--full-ink); color: var(--full-ink); }
/* (d) no shifts and (e) past: faint, no count, not a link. */
.cal-day.is-inert { justify-content: center; }
.cal-day.is-inert .cal-num { font-weight: 450; font-size: 1.25rem; }
.cal-day.is-past .cal-num { font-weight: 400; }
/* Selected day: a strong ink outline, never a red fill. */
a.cal-day.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
/* (f) today: an "I dag" tab on the top edge, so the cell keeps its height. */
.cal-today {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 0 6px; border-radius: 6px;
  background: var(--ink); color: var(--surface);
  font-size: 0.875rem; font-weight: 800; line-height: 1.35; white-space: nowrap;
}
.cal-mine { position: absolute; top: 2px; right: 4px; font-size: 0.875rem; font-weight: 800; color: var(--free-ink); }
/* List form of the calendar (one row per day): only when the grid would be too tight for its text. */
.cal-list { display: none; list-style: none; margin: 0; padding: 0 4px; gap: 8px; }
.cal-list .cal-day { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 60px; padding: 8px 14px; }
.cal-list .cal-state { flex-direction: row; gap: 0.3em; }
.cal-list .cal-few:not([hidden]) { display: block; }
.cal-list .cal-today { position: static; transform: none; order: -1; }
.cal-date { font-size: 1.125rem; font-weight: 800; color: var(--ink); text-align: left; }
.is-full .cal-date { color: var(--full-ink); font-weight: 650; }
@container cal (max-width: 18em) {
  .cal-card .cal { display: none; }
  .cal-card .cal-list { display: grid; }
}
.cal-legend { margin: 4px 8px 0; font-size: 1rem; color: var(--muted); line-height: 1.4; }
.cal-legend:empty { display: none; }

.next-days { display: none; }
.next-days h2 { font-size: 1.375rem; }
.next-days-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next-days-list a {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px;
  min-height: 60px; padding: 10px 16px;
  border: 2px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.next-days-list a:hover { border-color: var(--ink); color: var(--ink); }
.nd-day { font-weight: 750; font-size: 1.125rem; }

/* ---------- step 3: the day's times ---------- */
.day-panel {
  background: var(--surface-warm);
  border-radius: var(--radius);
  padding: 20px 16px 24px;
  scroll-margin-top: 0;
}
.day-panel[aria-busy='true'] .places { opacity: 0.55; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; }
.day-panel h2 { flex: 0 1 auto; max-width: 100%; font-size: 1.75rem; margin: 0; }
.day-panel h2:focus { outline: none; }
.day-panel h2:focus-visible { outline: 3px solid var(--focus); }
.to-cal {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; margin-left: auto;
  border: 2px solid var(--ink); border-radius: 9999px; background: var(--surface);
  font-weight: 700; font-size: 1rem; white-space: nowrap; color: var(--ink); text-decoration: none;
}
.to-cal:hover { background: var(--ink); color: var(--surface); }
.day-place { margin: 2px 0 0; font-size: 1.25rem; font-weight: 750; color: var(--ink); }
.dp-sum { margin: 4px 0 0; font-size: 1.1875rem; }
.dp-sum strong { color: var(--free-ink); }
.day-urgent { margin: 8px 0 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.day-urgent[hidden] { display: none; }
.day-urgent .urgent-tag { margin-right: 6px; }
.live-line { margin: 6px 0 14px; font-size: 1rem; color: var(--muted); }
.live-line a, .live-btn { color: var(--ink); font-weight: 600; }
.live-btn {
  display: inline-flex; align-items: center; min-height: 48px; /* review N-5: was 44 px */
  padding: 0; border: 0; background: none;
  font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.2em;
  cursor: pointer;
}
.live-loading { margin: 0 0 8px; font-weight: 600; }

.day-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; }
.day-step {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 56px;
  padding: 6px 18px;
  border-radius: 9999px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none;
}
.day-step:hover { border-color: var(--ink); color: var(--ink); }
.day-step-next { grid-column: 2; align-items: flex-end; text-align: right; }
.day-step-date { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }

.day-notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 18px;
}
.day-notice p { margin-bottom: 10px; }
.day-notice .btn { white-space: normal; text-align: center; }

.places { display: grid; gap: 26px; }
.places:focus { outline: none; } /* skip-link target; the next Tab lands on the first time */
.place-h { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; font-weight: 750; margin: 0 0 2px; }
.place-bar { width: 8px; height: 26px; border-radius: 3px; background: var(--loc); flex: none; }
.place-note { margin: 0 0 10px; font-size: 1rem; color: var(--muted); line-height: 1.4; }

.slots { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.slot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
  width: 100%;
  color: var(--text);
  text-decoration: none;
}
.slot-free, .slot-mine {
  position: relative;
  min-height: 80px;
  padding: 12px 12px 12px 18px;
  background: var(--surface);
  border: 2px solid var(--free-line);
  border-radius: 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.slot-free:hover { border-color: var(--ink); color: var(--text); box-shadow: inset 0 0 0 1px var(--ink); }
.slot-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 10rem; }
.slot-time { font-size: 1.5rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.slot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1rem; color: var(--muted); line-height: 1.35; }
.slot-ledig {
  display: inline-block; padding: 1px 10px;
  border-radius: 9999px; border: 2px solid var(--free-line);
  background: var(--free-soft); color: var(--free-ink);
  font-weight: 800; font-size: 1rem; line-height: 1.3;
}
.slot-cta {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; min-width: 88px;
  padding: 0 22px;
  border-radius: 9999px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 750; font-size: 1.1875rem;
  white-space: nowrap;
}
.slot-free:hover .slot-cta { background: var(--brand-strong); }
.slot-taken {
  min-height: 48px;
  padding: 6px 12px 6px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.slot-taken .slot-time { font-size: 1.125rem; font-weight: 600; color: var(--muted); }
.slot-state { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: 1rem; font-weight: 650; }
.slot-flag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 9999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.9375rem; font-weight: 750;
  white-space: nowrap;
}
.slot-mine { border: 3px solid var(--ink); }
.slot-tag {
  flex: none;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  color: var(--ink);
  font-weight: 750; font-size: 1rem;
  white-space: nowrap;
}
.slot[aria-disabled='true'] { cursor: not-allowed; }
.no-free { margin: 0 0 6px; font-weight: 650; color: var(--full-ink); }
.no-free[hidden] { display: none; }
/* Taken and closed times, folded into one line: "3 vakter er tatt – vis". */
.taken-fold { margin-top: 10px; }
.taken-fold[hidden] { display: none; }
.taken-fold > summary {
  display: flex; align-items: center; flex-wrap: wrap;
  min-height: 48px; padding: 4px 2px;
  cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 650; color: var(--ink);
}
.taken-fold > summary::-webkit-details-marker { display: none; }
.taken-fold > summary::before {
  content: ''; width: 9px; height: 9px; margin: 0 12px 0 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.taken-fold[open] > summary::before { transform: rotate(45deg); }
.taken-fold .fold-show, .taken-fold .fold-hide { text-decoration: underline; text-underline-offset: 0.2em; margin-left: 0.25em; }
.taken-fold[open] .fold-show, .taken-fold:not([open]) .fold-hide { display: none; }
.slots-taken { gap: 0; }
.next-free { margin: 18px 0 0; font-weight: 650; }

.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
.closed-notice { margin-top: 24px; }

/* ---------- volunteer: booking pages ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; /* review N-5: was 44 px */ margin: 16px 0 4px; font-weight: 650; color: var(--ink); }
.shift-summary { display: grid; gap: 4px; }
.shift-summary .big { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.shift-summary .place { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.booking-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 900px) {
  .booking-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .booking-layout .aside { position: sticky; top: 20px; }
}
.aside-h { font-size: 1.2rem; }
.alts { margin: 0 0 12px; }
.alt-form { margin: 0; }
/* S13a: "Mente du …?" e-mail hint (server and on-blur) and the overlap refusal */
.email-hint { margin: 0 0 22px; }
.email-hint-inline { margin: 10px 0 0; }
.email-hint-q { font-size: 1.125rem; }
.email-addr { overflow-wrap: anywhere; word-break: break-word; }
.email-hint-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.email-hint-actions .btn { white-space: normal; text-align: center; }
@media (min-width: 600px) {
  .email-hint-actions { flex-direction: row; flex-wrap: wrap; }
}
.overlap { margin: 0 0 24px; }
.overlap-shift { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.overlap .form-actions { margin-top: 14px; }
.success-panel {
  background: var(--success-soft);
  border: 2px solid var(--success-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 24px 0;
}
.success-panel h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); display: flex; gap: 12px; align-items: center; }
.success-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--success); color: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
}
.next-steps { padding-left: 22px; }
.next-steps li { margin-bottom: 8px; }
.my-list { list-style: none; padding: 0; margin: 0; }
.my-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }

/* S14: step 4 (the form), confirmation, own page, info page */
.chosen-label { margin: 0 0 6px; font-weight: 700; color: var(--muted); font-size: 1rem; }
.chosen-change { margin: 12px 0 0; font-weight: 650; }
/* review N-5: the link was 22 px high */
.chosen-change a { display: inline-flex; align-items: center; min-height: 48px; }
.label-like { display: block; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
fieldset.reminder legend { font-size: 1.125rem; }
.choices { display: grid; gap: 10px; max-width: 32rem; }
.choice, .field .choice {
  display: flex; align-items: center; gap: 14px;
  margin: 0; font-weight: 400; color: var(--text);
  min-height: 60px;
  padding: 10px 16px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.choice input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--ink); }
.choice-text { display: flex; flex-direction: column; line-height: 1.3; }
.choice-text strong { font-size: 1.125rem; }
.choice-hint { font-size: 1rem; color: var(--muted); }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-warm); }
.choice:has(input:disabled) { cursor: not-allowed; border-style: dashed; background: var(--surface-muted); }
.choice:has(input:disabled) strong { color: var(--muted); }
.has-error .choice { border-color: var(--brand); }

.done-panel {
  background: var(--free-soft);
  border: 3px solid var(--free-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: 24px 0 20px;
}
.done-panel h1 { font-size: clamp(2.1rem, 7vw, 2.75rem); display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.done-panel .success-icon { width: 52px; height: 52px; }
.done-thanks { font-size: 1.25rem; font-weight: 650; color: var(--ink); margin: 0 0 14px; }
.done-shift {
  background: var(--surface);
  border: 2px solid var(--free-line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.done-shift p { margin: 0; color: var(--ink); line-height: 1.25; }
.done-day { font-size: 1.75rem; font-weight: 800; }
.done-time { font-size: 1.625rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px !important; }
.done-place { font-size: 1.375rem; font-weight: 700; margin-top: 8px !important; }
.done-addr { display: block; font-size: 1.0625rem; font-weight: 500; color: var(--muted); }
.done-shot { display: flex; gap: 12px; align-items: flex-start; font-size: 1.125rem; margin: 0 0 12px; color: var(--ink); }
.done-shot-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
}
.done-reminder { font-size: 1.125rem; margin: 0 0 12px; color: var(--ink); }
.card .done-reminder { margin-top: 12px; }

.mine-section { padding-top: 24px; }
.my-list { list-style: none; padding: 0; margin: 0; }
.my-list li {
  padding: 14px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap;
}
.my-list li.is-this { background: var(--surface-warm); margin: 0 -12px; padding: 14px 12px; border-radius: 10px; }
.my-shift { display: flex; flex-direction: column; font-size: 1.125rem; }
.my-shift strong { font-size: 1.25rem; }
.btn-small-touch { min-height: 48px; font-size: 1rem; padding: 0.4rem 1.1rem; }

.reminder-section fieldset { margin: 0 0 8px; }
body.public .check-big {
  min-height: 60px; align-items: center;
  padding: 12px 16px; margin: 0 0 10px;
  border: 2px solid var(--line-strong); border-radius: 12px; background: var(--surface);
}
body.public .check-big input { width: 28px; height: 28px; margin: 0; accent-color: var(--ink); }
body.public .check-big:has(input:checked) { border-color: var(--ink); background: var(--surface-warm); }
body.public .check-big:has(input:disabled) { border-style: dashed; background: var(--surface-muted); cursor: not-allowed; }
body.public .hint-inline { display: block; font-size: 1rem; color: var(--muted); font-weight: 400; }

.info-page .lead { color: var(--muted); }
.example-note { margin: 8px 0 20px; }
.info-text h2 { font-size: 1.6rem; margin-top: 1.5em; }
.info-text ul { padding-left: 1.3em; }
.info-text li { margin-bottom: 6px; }
.placeholder {
  display: inline;
  padding: 2px 8px;
  border: 2px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink);
  font-style: italic;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  line-height: 1.9;
}

/* ---------- admin ---------- */
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.admin-header-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.admin-nav a {
  padding: 8px 14px;
  border-radius: 9999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.admin-nav a:hover { background: var(--surface-muted); color: var(--ink); }
.admin-nav a.is-active { background: var(--ink); color: var(--surface); }
.admin-user { display: flex; align-items: center; gap: 8px; margin: 0; }
.admin-main { padding-top: 24px; padding-bottom: 48px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.page-head p { margin: 4px 0 0; }
.breadcrumbs { font-size: 0.9rem; margin-bottom: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat .stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 650; }
.stat .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .stat-sub { font-size: 0.85rem; color: var(--muted); }
.progress { height: 8px; border-radius: 9999px; background: var(--surface-muted); overflow: hidden; margin-top: 8px; }
.progress > span { display: block; height: 100%; background: var(--success); border-radius: 9999px; }

.toolbar { display: flex; gap: 10px 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .field { margin: 0; }
.toolbar label { font-size: 0.85rem; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.85rem; letter-spacing: 0.01em; color: var(--muted); background: var(--surface-admin); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table .day-row td { background: var(--surface-muted); font-weight: 800; color: var(--ink); font-size: 1rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-empty td.status-cell { color: var(--brand-strong); font-weight: 700; }

.person { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.person + .person { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.person .person-name { font-weight: 700; color: var(--ink); }
.person .person-contact { font-size: 0.9rem; color: var(--muted); }
.person .person-contact a { color: var(--ink); }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

details.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 16px; }
details.disclosure > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); }
details.disclosure[open] > summary { border-bottom: 1px solid var(--line); }
details.disclosure > .disclosure-body { padding: 18px; }

pre.mail { white-space: pre-wrap; font-family: inherit; background: var(--surface-admin); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0 0; font-size: 0.92rem; }

/* ---------- login / plain pages ---------- */
.plain-main { padding-top: 56px; padding-bottom: 56px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .hero { padding: 24px 0 28px; }
  .hero-compact { padding: 16px 0 10px; }
  /* Phones: the campaign title is in the page title and footer; the place cards come up sooner. */
  .hero-compact .eyebrow { display: none; }
  .hero-compact .lead { margin-bottom: 8px; }
  .stepper { margin-top: 14px; }
  .place-cards { gap: 12px; margin-top: 10px; }
  .place-card { padding: 16px 16px 16px 26px; gap: 6px; }
  .header-inner { min-height: 56px; gap: 8px; }
  .card { padding: 18px; }
  .form-actions .btn { width: 100%; }
  .admin-header { position: static; }
  .table th, .table td { padding: 8px; }
  /* Day panel: full-bleed warm band on phones. */
  .day-panel { margin: 0 -16px; border-radius: 0; padding: 20px 16px 28px; }
  .cal-card { margin: 0 -8px; }
}
@media (max-width: 420px) {
  /* Narrow phones: the header help link shows only "?" + a short word. */
  .brand-text span { font-size: 0.8125rem; }
  .header-help { padding-right: 10px; font-size: 0.9375rem; }
}
@media (max-width: 359px) {
  .cal { border-spacing: 2px 5px; }
  .cal-word, .cal-full { font-size: 0.875rem; }
  .cal-num { font-size: 1.25rem; }
  .slot-cta { padding: 0 14px; min-width: 0; }
  .stepper-label { font-size: 0.9375rem; }
}
/* Phones and tablets in portrait: step 3 shows the times only (calendar is one step back). */
@media (max-width: 959px) {
  .picker-tid .cal-col { display: none; }
}
@media (min-width: 600px) {
  .cal-day { min-height: 92px; padding-top: 11px; }
  .cal-num { font-size: 1.5rem; }
  .cal-few:not([hidden]) { display: block; }
  .step-q { font-size: 2.375rem; }
}
@media (min-width: 700px) {
  .hero-compact { padding: 28px 0 20px; }
  .hero-compact h1 { font-size: 2.5rem; }
  .hero-compact .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: end; }
  .hero-compact .hero-main { grid-column: 1; }
  .hero-compact .season { grid-column: 2; grid-row: 1; justify-self: end; width: 100%; margin-bottom: 14px; }
  .season-fig { font-size: 2rem; display: block; line-height: 1.1; }
  .place-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-dag .cal-col { max-width: 640px; }
  .places-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .day-panel { padding: 24px 24px 28px; }
  .done-panel { padding: 32px 32px; }
}
/* Tablet landscape and desktop: calendar and times side by side. */
@media (min-width: 960px) {
  .picker-dag { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .picker-tid { grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
  .picker-tid .cal-col { position: sticky; top: 16px; }
  .picker-tid .cal-day { min-height: 84px; }
  .picker-tid .cal-few:not([hidden]) { display: none; } /* narrow side calendar: the dark ring alone marks "snart fullt" */
  .next-days { display: block; background: var(--surface-warm); border-radius: var(--radius); padding: 22px 22px 24px; }
  .cal-card { padding: 14px 10px 14px; }
  .picker-tid .to-cal { display: none; }
  .day-panel { padding: 26px 28px 30px; }
  .day-panel h2 { font-size: 2.125rem; }
  .places-2 { grid-template-columns: 1fr; }
  .day-nav { display: flex; justify-content: space-between; gap: 12px; }
  .day-step { min-width: 200px; }
  .day-step-next { margin-left: auto; }
}
@media (min-width: 1200px) {
  .places-2 { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---------- print (admin roster) ---------- */
@media print {
  @page { margin: 14mm; }
  body, body.admin { background: #fff; font-size: 11pt; color: #000; }
  .no-print, .admin-header, .site-header, .site-footer, .skip-link, .notice { display: none !important; }
  .admin-main { padding: 0; }
  .table-wrap { border: 0; overflow: visible; }
  .table th, .table td { border-bottom: 1px solid #999; padding: 5px 6px; }
  .table .day-row td { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-day { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
