/* tidaholmpingst.se – designsystem, riktning A "Ljus i fönstret".
   Fraunces (rubriker) + Inter (brödtext), lokalt hostade. Ljust/mörkt via prefers-color-scheme.
   Kontrastkrav: text ≥ 4.5:1, stor text och UI ≥ 3:1 (kontrollerat för båda teman). */

@font-face {
  font-family: "Fraunces";
  src: url(/build/fonts/fraunces-latin-wght.7f9d191d99.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Inter";
  src: url(/build/fonts/inter-latin-wght.3100e775e8.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
/* Metric-matched fallbacks: minimal layout shift while the web fonts load. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --cream: #FBF7F1;
  --sand: #F3E8D8;
  --sand-strong: #EADAC2;
  --ink: #1F2A2E;
  --ink-soft: #4A5559;
  --terracotta: #B4532A;
  --terracotta-text: #9C4421;
  --terracotta-deep: #7F3519;
  --ochre: #E0A84B;

  --bg: var(--cream);
  --surface: #FFFFFF;
  --surface-warm: var(--sand);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --line: #E6DCCD;
  --accent: var(--terracotta-text);
  --accent-hover: var(--terracotta-deep);
  --on-accent: #FFFFFF;
  --accent-soft: #F6E3D6;
  --focus: #1F6FEB;
  --danger: #A12622;
  --ok-bg: #E6F2EA; --ok-fg: #1E5631;
  --err-bg: #FBE7E4;
  --shadow: 0 1px 2px rgb(31 42 46 / 6%), 0 8px 24px rgb(31 42 46 / 6%);

  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", "Fraunces Fallback", Georgia, serif;

  /* Fluid type scale (min 360px → max 1280px viewport) */
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.3vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.36rem + 0.6vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.6rem + 1.1vw, 2.6rem);
  --step-4: clamp(1.9rem, 1.4rem + 2.4vw, 3.6rem);

  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);

  --radius: 14px;
  --radius-s: 8px;
  --measure: 40rem;
  --wide: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171B1D;
    --surface: #1F2528;
    --surface-warm: #262321;
    --fg: #F3EDE4;
    --muted: #BDB6AC;
    --line: #353D42;
    --accent: #E8956A;
    --accent-hover: #F2AE89;
    --on-accent: #171B1D;
    --accent-soft: #3A2A21;
    --focus: #79B0FF;
    --danger: #F08A84;
    --ok-bg: #173323; --ok-fg: #BFE6CB;
    --err-bg: #3D1715;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0) / 1.6 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-s);
  text-wrap: balance;
  /* Long Swedish words ("Församlingsledning") hyphenate or break instead of widening the page. */
  hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl, figure { margin: 0 0 var(--space-m); }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

img, svg, video { max-width: 100%; height: auto; display: block; }
strong { font-weight: 650; }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-l) 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: var(--space-s) var(--space-m); border-radius: var(--radius-s);
  background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-s); color: var(--bg); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.section { padding-block: var(--space-xl); }
.section--warm { background: var(--surface-warm); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-m); margin-bottom: var(--space-l); }
.section-head h2 { margin: 0; }
.eyebrow {
  display: block; margin-bottom: var(--space-xs);
  font: 600 var(--step--1) / 1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--fg); }
.muted { color: var(--muted); }

.grid { display: grid; gap: var(--space-l); grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header & navigation ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-s) var(--space-l); padding-block: var(--space-s);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg); text-decoration: none; min-height: 44px;
}
.brand:hover { color: var(--fg); }
.brand .logo-symbol { width: 44px; height: 44px; flex: none; }
.brand__name { font: 650 1.3rem / 1 var(--font-body); letter-spacing: -0.015em; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 var(--space-s);
  border: 2px solid var(--line); border-radius: var(--radius-s); background: transparent;
  color: var(--fg); font: 600 var(--step--1) / 1 var(--font-body); text-decoration: none; cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border-radius: 999px;
  color: var(--fg); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--fg); }
.site-nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.site-nav__close { display: none; }

/* Mobile: the menu is closed by default and opens via #meny (works without JS);
   site.js upgrades the link into a real disclosure button. */
@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; }
  .site-nav:target, .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: var(--space-s); }
  .site-nav a { border-radius: var(--radius-s); padding: 0 var(--space-s); font-size: var(--step-1); min-height: 52px; }
  .site-nav:target .site-nav__close { display: flex; }
  .site-nav.is-open .site-nav__close { display: none; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.35rem; border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--step-0) / 1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.button--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-s); }

.arrow-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
/* Long link texts (e.g. "Äldre: <avsnittets titel>") may wrap instead of widening the page. */
.pager .arrow-link { white-space: normal; overflow-wrap: anywhere; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) var(--space-xl); }
.hero__inner { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 56rem) { .hero__inner { grid-template-columns: 1.35fr 1fr; } }
.hero h1 { margin-bottom: var(--space-m); }
.hero .lead { max-width: 34rem; margin-bottom: var(--space-l); }

.worship {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: var(--space-l);
  padding: 0.45rem 1rem 0.45rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--fg);
  font-weight: 600;
}
.worship__dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgb(180 83 42 / 20%); }

.hero__art { display: grid; place-items: center; color: var(--fg); }
.hero__art .logo-symbol { width: min(100%, 22rem); height: auto; opacity: 0.92; }
@media (max-width: 55.99rem) { .hero__art { display: none; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-l); box-shadow: var(--shadow);
}
.card--warm { background: var(--surface-warm); border-color: transparent; box-shadow: none; }
.card h3 { margin-bottom: var(--space-xs); }
.card > :last-child { margin-bottom: 0; }

.info-list { list-style: none; padding: 0; display: grid; gap: var(--space-s); }
.info-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-s); align-items: start; }
.info-list svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--accent); }

.empty-state { padding: var(--space-l); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Calendar ---------- */
.next-service { margin: calc(-1 * var(--space-m)) 0 var(--space-l); color: var(--muted); }
.next-service__label { font-weight: 600; color: var(--fg); }

.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-s); }
@media (min-width: 48rem) { .upcoming { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); } }
.upcoming__item {
  display: flex; gap: var(--space-m); align-items: center; padding: var(--space-m);
  background: var(--surface); border-radius: var(--radius); border: 1px solid transparent;
}
.upcoming__item:hover { border-color: var(--accent); }
.upcoming__body { display: grid; gap: 0.15rem; min-width: 0; }
.upcoming__title { font-weight: 600; color: var(--fg); text-decoration: none; }
.upcoming__title:hover { color: var(--accent); text-decoration: underline; }
.upcoming__when { color: var(--muted); font-size: var(--step--1); }
.upcoming__when::first-letter { text-transform: uppercase; }

.date-badge {
  flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.75rem; border-radius: var(--radius-s);
  background: var(--accent-soft); color: var(--fg); line-height: 1;
}
.date-badge__day { font: 600 1.5rem/1 var(--font-head); }
.date-badge__month { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }

.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
@media (min-width: 60rem) { .calendar-layout { grid-template-columns: minmax(0, 1fr) 20rem; } .calendar-subscribe { position: sticky; top: var(--space-m); } }

.day + .day { margin-top: var(--space-l); }
.day__title {
  font: 600 var(--step-0) / 1.3 var(--font-body); text-transform: none; letter-spacing: 0;
  padding-bottom: var(--space-xs); border-bottom: 2px solid var(--fg); margin-bottom: 0;
}
.day__title::first-letter { text-transform: uppercase; }
.events { list-style: none; padding: 0; margin: 0; }
.event {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-m);
  padding-block: var(--space-s); border-bottom: 1px solid var(--line);
}
.event__time { font-variant-numeric: tabular-nums; color: var(--muted); }
.event__body { display: grid; gap: 0.1rem; }
.event__title { font-weight: 600; color: var(--fg); text-decoration: none; }
.event__title:hover { color: var(--accent); text-decoration: underline; }
.event__meta { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 30rem) { .event { grid-template-columns: 1fr; gap: 0; } }

.subscribe-list { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.subscribe-list .button { width: 100%; }
.small-print { font-size: var(--step--1); color: var(--muted); }
.copy-field { display: flex; gap: var(--space-xs); margin-top: 0.35rem; }
.copy-field input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 0.6rem; font: inherit; color: var(--fg);
  background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius-s);
}
.copy-button {
  min-height: 44px; padding: 0 0.9rem; border: 2px solid var(--fg); border-radius: var(--radius-s);
  background: transparent; color: var(--fg); font: 600 var(--step--1) / 1 var(--font-body); cursor: pointer;
}
.copy-button:hover { background: var(--fg); color: var(--bg); }

.pager { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; justify-content: space-between; margin-top: var(--space-l); }
.arrow-link--back::after { content: none; }
.arrow-link--back::before { content: "← "; }

.event-detail { max-width: 48rem; padding-block: var(--space-l) var(--space-xl); }
.page-header--tight { padding-block: var(--space-s) var(--space-m); }
.facts { display: grid; gap: var(--space-s); margin-bottom: var(--space-l); padding: var(--space-m) var(--space-l); background: var(--surface-warm); border-radius: var(--radius); }
.facts div { display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-s); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.event-detail__text { margin-bottom: var(--space-l); }
.notice { display: inline-block; padding: 0.35rem 0.8rem; border-radius: var(--radius-s); background: var(--accent-soft); font-weight: 600; }

/* ---------- Forms (contact, give) ---------- */
[hidden] { display: none !important; }
.form { display: grid; gap: var(--space-m); max-width: var(--measure); }
.field { display: grid; gap: 0.35rem; }
.field label, .give-message label { font-weight: 600; }
.field-help { margin: 0; color: var(--muted); font-size: var(--step--1); }
.field input[type="text"], .field input[type="email"], .field textarea, .give-message input, .volunteer-filter input {
  width: 100%; min-height: 48px; padding: 0.6rem 0.75rem; font: inherit; color: var(--fg);
  background: var(--surface); border: 2px solid var(--ink-soft); border-radius: var(--radius-s);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-weight: 600; }
.choice { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400 !important; }
.choice input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; flex: none; accent-color: var(--accent); }
.form .button { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice--ok, .notice--error { display: block; padding: var(--space-m); border-radius: var(--radius); font-weight: 400; }
.notice--ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice--ok a { color: inherit; }
.notice--error { background: var(--err-bg); border-left: 4px solid var(--danger); margin-bottom: var(--space-m); }
.notice--error ul { margin: 0; padding-left: 1.2rem; }
.notice > :last-child { margin-bottom: 0; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- Contact ---------- */
.contact-layout, .give-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
@media (min-width: 60rem) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .give-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .give-text { grid-column: 1 / -1; }
}
.contact-info address { font-style: normal; margin-bottom: var(--space-m); }
.contact-list { list-style: none; padding: 0; }

/* ---------- Give ---------- */
.give-number { display: grid; margin-bottom: var(--space-m); }
.give-number__label { color: var(--muted); font-size: var(--step--1); }
.give-number__value { font: 600 var(--step-3) / 1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.give-message { display: grid; gap: 0.35rem; margin-bottom: var(--space-m); }
.give-message .button { justify-self: start; }
.give-ways { display: flex; flex-direction: column; gap: var(--space-m); margin-bottom: var(--space-m); }
.give-way { margin: 0; }
.give-swish__open { width: 100%; justify-content: center; }
.give-qr { width: 200px; height: 200px; background: #FFFFFF; padding: 8px; border-radius: var(--radius-s); }
/* A precise pointer (computer): the QR code first, the app button second. */
@media (hover: hover) and (pointer: fine) { .give-way--qr { order: -1; } }

/* ---------- Volunteer schedule ---------- */
.volunteer-layout > * { max-width: 48rem; }
.volunteer-layout > .vol-calendar { max-width: none; }
.volunteer-info { max-width: var(--measure); color: var(--muted); font-size: var(--step--1); margin: 0; }
.volunteer-tools { display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-l); align-items: end; margin-bottom: var(--space-l); }
.volunteer-filter { display: grid; gap: 0.35rem; flex: 1 1 16rem; max-width: 24rem; }
.volunteer-filter label { font-weight: 600; }
.volunteer-filter .small-print { margin: 0; min-height: 1.3em; }
.view-switch { display: inline-flex; border: 2px solid var(--fg); border-radius: 999px; overflow: hidden; align-self: end; margin-bottom: 1.6em; }
.view-switch a { padding: 0.55rem 1.1rem; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--fg); text-decoration: none; }
.view-switch a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.view-switch a:not([aria-current]):hover { background: var(--surface-warm); }
.volunteer-week + .volunteer-week { margin-top: var(--space-xl); }
.volunteer-week__title { font-size: var(--step-2); margin-bottom: var(--space-s); }
.volunteer-week__dates { display: block; font: 400 var(--step--1) / 1.4 var(--font-body); color: var(--muted); }

/* A gathering and the shifts at it */
.vol-group__title { font-weight: 600; color: var(--fg); text-decoration: none; }
.vol-group__title:hover { color: var(--accent); text-decoration: underline; }
.vol-shifts { list-style: none; margin: 0.3rem 0 0; padding: 0 0 0 0.75rem; border-left: 3px solid var(--accent); display: grid; gap: 0.2rem; }
.vol-shifts--alone { margin-top: 0; }
.vol-shift__time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.35rem; }
.vol-shift__task { font-weight: 600; }
.vol-group:not(.vol-group--staffed) .event__time, .vol-group:not(.vol-group--staffed) .vol-group__title { color: var(--muted); font-weight: 400; }

/* Month calendar */
.vol-calendar__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-s); margin-bottom: var(--space-s); }
.vol-calendar__head h2 { font-size: var(--step-2); margin: 0; }
.vol-calendar__nav { display: flex; gap: var(--space-m); }
.arrow-link--back::after { content: none; }
.arrow-link--back::before { content: "← "; }
.vol-month { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--step--1); }
.vol-month th { padding: 0.4rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--fg); }
.vol-month th abbr { text-decoration: none; }
.vol-month td { vertical-align: top; padding: 0.35rem; border: 1px solid var(--line); height: 7rem; background: var(--surface); }
.vol-month td.is-outside { background: transparent; color: var(--muted); }
.vol-month td.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.vol-month__date { font-weight: 600; display: block; margin-bottom: 0.25rem; }
.vol-month__long { display: none; }
.vol-month__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.vol-month__item { line-height: 1.35; overflow-wrap: anywhere; }
.vol-month__time { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.vol-month .vol-shifts { padding-left: 0.4rem; border-left-width: 2px; margin-top: 0.15rem; }
.vol-month .vol-shift__time { display: block; margin: 0; }
/* Phones and narrow tablets: the grid becomes a list of the days that have something. */
@media (max-width: 48rem) {
  .vol-month, .vol-month tbody, .vol-month tr, .vol-month td { display: block; width: 100%; }
  .vol-month thead { display: none; }
  .vol-month td { height: auto; border: 0; border-bottom: 1px solid var(--line); padding: var(--space-s) 0; background: transparent; }
  .vol-month td.is-empty, .vol-month td.is-outside { display: none; }
  .vol-month td.is-today { box-shadow: none; }
  .vol-month__date > [aria-hidden="true"]:first-child { display: none; }
  .vol-month__long { display: inline; }
  .vol-month__long::first-letter { text-transform: uppercase; }
  .vol-month__date { font-size: var(--step-0); padding-bottom: 0.25rem; border-bottom: 2px solid var(--fg); margin-bottom: var(--space-xs); }
  .vol-month { font-size: var(--step-0); }
}

/* ---------- Podcast ---------- */
.pill-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pill-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 500;
}
.pill-links a:hover { border-color: var(--accent); color: var(--accent); }

.podcast-layout { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
.podcast-featured__title { font-size: var(--step-2); margin-bottom: 0.25rem; }
.podcast-featured__title a { color: inherit; text-decoration: none; }
.podcast-featured__title a:hover { text-decoration: underline; }
.podcast-home { align-items: center; }

.player { margin-block: var(--space-m); }
.player__native { width: 100%; }
.player__ui {
  display: flex; gap: var(--space-m); align-items: center; padding: var(--space-m);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.player__play {
  flex: none; width: 4rem; height: 4rem; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
.player__play:hover { background: var(--accent-hover); }
.player__play svg { width: 2rem; height: 2rem; }
.player__play .icon-pause, .player.is-playing .player__play .icon-play { display: none; }
.player.is-playing .player__play .icon-pause { display: block; }
.player__main { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
.player__title { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__track { display: flex; align-items: center; gap: var(--space-s); }
.player__time { font-variant-numeric: tabular-nums; font-size: var(--step--1); color: var(--muted); min-width: 3.2em; }
.player__time:last-child { text-align: right; }
.player__seek { flex: 1; min-width: 0; accent-color: var(--accent); height: 2rem; cursor: pointer; }
.player__buttons { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.player__small {
  min-height: 44px; min-width: 44px; padding: 0 0.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--fg); font: 600 var(--step--1) / 1 var(--font-body); cursor: pointer;
}
.player__small:hover { border-color: var(--accent); color: var(--accent); }
/* Phones: less padding around the player so the seek bar gets room; a card holding the player
   loses its own large padding too. */
@media (max-width: 30rem) {
  .card:has(.player) { padding: var(--space-m); }
  .player__ui { padding: var(--space-s); gap: var(--space-s); }
  .player__play { width: 3.25rem; height: 3.25rem; }
  .player__play svg { width: 1.6rem; height: 1.6rem; }
}

.search { display: flex; gap: var(--space-xs); flex: 1 1 14rem; max-width: 28rem; min-width: 0; }
.search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: inherit; color: var(--fg);
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
}
.search input:focus-visible { border-color: var(--focus); }

.episodes { list-style: none; padding: 0; margin: 0; }
.episode {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-m); align-items: center;
  padding-block: var(--space-s); border-bottom: 1px solid var(--line);
}
.episode__image { width: 4rem; height: 4rem; border-radius: var(--radius-s); object-fit: cover; }
.episode__body { min-width: 0; grid-column: 2; }
.episode__title { font-weight: 600; color: var(--fg); text-decoration: none; }
.episode__title:hover { color: var(--accent); text-decoration: underline; }
.episode__meta { margin: 0.15rem 0 0; color: var(--muted); font-size: var(--step--1); }
.episode__play {
  grid-column: 3; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent);
  background: transparent; color: var(--accent); display: grid; place-items: center; cursor: pointer;
}
.episode__play:hover { background: var(--accent); color: var(--on-accent); }
.episode__play svg { width: 1.4rem; height: 1.4rem; }

.episode-detail { max-width: 48rem; padding-block: var(--space-l) var(--space-xl); }
.episode-detail__head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-l); align-items: center; margin-block: var(--space-m); }
.episode-detail__image { width: clamp(6rem, 25vw, 14rem); height: auto; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; }
.episode-detail__text { margin-block: var(--space-l); }

/* ---------- Instagram ---------- */
.instagram-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 36rem) { .instagram-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .instagram-grid { grid-template-columns: repeat(6, 1fr); } }
.instagram-grid a { position: relative; display: block; border-radius: var(--radius-s); overflow: hidden; }
.instagram-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s ease; }
.instagram-grid a:hover img { transform: scale(1.04); }
.instagram-grid__badge { position: absolute; top: 0.4rem; right: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 0.8rem; font-weight: 600; }
.instagram-fallback { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; justify-content: space-between; }
.instagram-fallback .lead { margin: 0; max-width: 36rem; }

/* ---------- Articles, news, people, gallery ---------- */
.article { max-width: 48rem; padding-block: var(--space-l) var(--space-xl); }
.article__image { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: var(--space-l); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-m); }
.prose img { border-radius: var(--radius-s); margin-block: var(--space-m); }
.prose blockquote { margin: var(--space-m) 0; padding-left: var(--space-m); border-left: 4px solid var(--accent); color: var(--muted); font-style: italic; }
.prose li + li { margin-top: 0.3rem; }
.files { margin-top: var(--space-l); }

.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-l); }
.news-card { display: grid; gap: var(--space-m); padding-bottom: var(--space-l); border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .news-card { grid-template-columns: 16rem 1fr; } }
.news-card__image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.news-card__title { font-size: var(--step-2); margin-bottom: 0.2rem; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; }
.news-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-m); }
@media (min-width: 48rem) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-grid__item { padding: 0; overflow: hidden; display: grid; align-content: start; }
.news-grid__item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-grid__item > :not(img) { padding-inline: var(--space-m); }
.news-grid__item h3 { margin-top: var(--space-m); }
.news-grid__item h3 a { color: inherit; text-decoration: none; }
.news-grid__item h3 a:hover { text-decoration: underline; }
.news-grid__item > :last-child { padding-bottom: var(--space-m); margin-bottom: 0; }

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.person { text-align: center; }
.person__image, .person__placeholder {
  width: 100%; max-width: 14rem; aspect-ratio: 4 / 5; margin: 0 auto var(--space-s); border-radius: var(--radius); object-fit: cover;
}
.person__placeholder {
  display: grid; place-items: center; background: var(--surface-warm); color: var(--muted);
  font: 600 var(--step-3) / 1 var(--font-head); letter-spacing: 0.04em;
}
.person__name { font-size: var(--step-1); margin-bottom: 0.15rem; }
.person__roles { color: var(--muted); margin-bottom: var(--space-xs); }
.person__contact { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); overflow-wrap: anywhere; }
/* Touch targets of at least 24 px (WCAG 2.5.8). */
.person__contact a { display: inline-block; padding-block: 0.3rem; min-height: 24px; }

.about { display: grid; gap: var(--space-xl); padding-bottom: var(--space-l); }
@media (min-width: 60rem) { .about { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.h3 { font-size: var(--step-1); }
.facts-list { display: grid; gap: var(--space-s); margin: 0; }
.facts-list dt { font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.facts-list dd { margin: 0; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 36rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery a { display: block; border-radius: var(--radius-s); overflow: hidden; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { max-width: min(96vw, 80rem); max-height: 96vh; padding: 0; border: 0; border-radius: var(--radius); background: #111; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.lightbox__figure { margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: 80vh; margin: 0 auto; }
.lightbox__figure figcaption { padding: var(--space-s) var(--space-m) 0; }
.lightbox__controls { display: flex; gap: var(--space-s); align-items: center; justify-content: center; padding: var(--space-s); }
.lightbox__controls button {
  min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer;
}
.lightbox__controls button:hover { background: #fff; color: #111; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-xl); background: var(--ink); color: #EDE6DC; padding-block: var(--space-xl) var(--space-l); }
.site-footer a { color: #F4C9AE; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer h2 { font-size: var(--step-1); color: #FFFFFF; margin-bottom: var(--space-s); }
.site-footer__grid { display: grid; gap: var(--space-l); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer .brand { color: #FFFFFF; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s);
  margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid rgb(255 255 255 / 15%);
  font-size: var(--step--1); color: #C9C1B6;
}
.site-footer__bottom p { margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Consent banner (only with Google Analytics) */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 50; padding: var(--space-m) var(--gutter);
  background: var(--surface); color: var(--fg); border-top: 2px solid var(--fg); box-shadow: var(--shadow);
}
.consent__inner { max-width: var(--wide); margin-inline: auto; display: grid; gap: var(--space-s); }
.consent h2 { font-size: var(--step-1); margin: 0; }
.consent p { margin: 0; max-width: var(--measure); }
.consent__buttons { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.consent__buttons .button { min-width: 10rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0F1214; } }

/* ---------- Page header & error pages ---------- */
.page-header { padding-block: var(--space-xl) var(--space-l); }
.page-header p { max-width: var(--measure); }
.error-page { padding-block: var(--space-xl); min-height: 50vh; }
.error-page__code { font: 600 var(--step--1) / 1 var(--font-body); letter-spacing: 0.1em; color: var(--accent); }

.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.link-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 500;
}
.link-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header nav, .nav-toggle, .site-footer, .skip-link, .button-row { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
