/* COP Czech Republic prototype. Direction: "The Line" (Czech transit wayfinding). */

:root {
  --blue: #1e1ef8;
  --blue-deep: #1414b4;
  --blue-wash: #e9e9fe;
  --ink: #0b0b3b;
  --ink-soft: #3d3f63;
  --gold: #f5b800;
  --gold-deep: #d99f00;
  --red: #e3262b;
  --paper: #ffffff;
  --slate: #f1f2f8;
  --keyline: #d3d6e8;

  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --font-sign: "Barlow Condensed", "Arial Narrow", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem);
  --step-4: clamp(2.8rem, 1.8rem + 4.6vw, 5.6rem);

  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --wrap: 76rem;
  --radius: 4px;
  --line-x: calc(var(--gutter) + 0.75rem);
  --line-w: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html.text-lg { font-size: 112.5%; }
html.text-xl { font-size: 125%; }

html.contrast {
  --blue: #0000b8;
  --blue-deep: #00006e;
  --ink: #000000;
  --ink-soft: #000000;
  --keyline: #000000;
  --slate: #ffffff;
  --gold: #ffd23f;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
blockquote { margin: 0; }
.emblem { max-width: 18rem; width: 100%; justify-self: center; }

a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: var(--blue-deep); }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
  border-radius: 2px;
}

h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }

.sign {
  font-family: var(--font-sign);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  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: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; stroke: none; }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font-family: var(--font-sign); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn--line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-sign); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Utility bar ---------- */

.utility { background: var(--ink); color: #fff; font-size: var(--step--1); }
.utility .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 2.5rem; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }

.live-badge {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--red); color: #fff !important; padding: 0.2rem 0.7rem; border-radius: 2px;
  font-family: var(--font-sign); font-weight: 800; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.live-badge::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #fff; animation: live-pulse 1.6s ease-in-out infinite; }
html.is-live .live-badge { display: inline-flex; }
@keyframes live-pulse { 50% { opacity: 0.25; } }

.lang { display: flex; gap: 0.25rem; align-items: center; font-weight: 700; }
.lang a, .lang span { padding: 0.1rem 0.35rem; border-radius: 2px; }
.lang [aria-current="true"] { background: #fff; color: var(--ink); }

.social { display: flex; gap: 0.9rem; align-items: center; }
.social a { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 2px; }
.social a:hover { background: rgba(255,255,255,0.12); }
.social .icon { width: 1.15rem; height: 1.15rem; }

.a11y-tools { margin-left: auto; display: flex; gap: 0.35rem; align-items: center; }
.a11y-tools button {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); border-radius: 2px;
  font: inherit; font-weight: 700; padding: 0.1rem 0.5rem; cursor: pointer; min-width: 2rem; min-height: 1.75rem;
}
.a11y-tools button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--keyline); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 3rem; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand-name span { font-family: var(--font-sign); font-weight: 600; text-transform: uppercase; color: var(--blue); font-size: 1.05rem; letter-spacing: 0.12em; margin-top: 0.15rem; }

.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 0.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { position: relative; }
.nav a.nav-top, .nav button.nav-top {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-sign); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 0.5rem 0.6rem; border-radius: 2px;
}
.nav .nav-top { white-space: nowrap; }
@media (max-width: 1320px) { .nav a.nav-top, .nav button.nav-top { font-size: 1.08rem; padding-inline: 0.4rem; } .site-header .wrap { gap: 1rem; } }
.nav .nav-top:hover { color: var(--blue); }
.nav .nav-top[aria-current="page"], .nav .is-current > .nav-top { color: var(--blue); box-shadow: inset 0 -4px 0 var(--gold); }
.nav button.nav-top .icon { width: 0.9em; height: 0.9em; transition: transform 0.2s var(--ease-out); }
.nav button.nav-top[aria-expanded="true"] .icon { transform: rotate(180deg); }

.subnav {
  position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 15rem;
  list-style: none; margin: 0; padding: 0.5rem 0;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(11, 11, 59, 0.16), 0 2px 4px rgba(11, 11, 59, 0.08);
}
.subnav[hidden] { display: none; }
.subnav a { display: block; padding: 0.55rem 1rem; color: var(--ink); text-decoration: none; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--blue-wash); color: var(--blue); }

.header-cta { flex: none; }
.menu-toggle { display: none; }

/* Mobile quick bar: Plan a Visit + Find an Assembly always visible */
.quickbar { display: none; }

@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 0.4rem;
    background: var(--blue); color: #fff; border: 0; border-radius: var(--radius);
    font-family: var(--font-sign); font-weight: 700; font-size: 1.15rem; text-transform: uppercase;
    padding: 0.6rem 0.9rem; min-height: 2.75rem; cursor: pointer;
  }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--keyline);
    box-shadow: 0 -6px 18px rgba(11, 11, 59, 0.08);
  }
  .quickbar .btn { justify-content: center; font-size: 1.1rem; padding-inline: 0.5rem; }
  body { padding-bottom: 4.5rem; }
  .a11y-tools { margin-left: 0; }
}

@media (max-width: 560px) {
  .brand-name b { font-size: 1.05rem; }
  .brand-name span { font-size: 0.9rem; }
  .brand img { width: 2.5rem; }
  .utility .social { display: none; }
}

/* Off-canvas drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(24rem, 100%);
  background: var(--ink); color: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.35s var(--ease-out);
  visibility: hidden; padding: 1rem 1.25rem 6rem;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-close { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: var(--radius); padding: 0.5rem; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer > nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.15); }
.drawer a { color: #fff; text-decoration: none; display: block; padding: 0.65rem 0; }
.drawer .drawer-top { font-family: var(--font-sign); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; }
.drawer .drawer-sub a { padding: 0.35rem 0 0.35rem 1rem; color: #cfd0f5; }
.drawer a[aria-current="page"] { color: var(--gold); }
.scrim { position: fixed; inset: 0; z-index: 78; background: rgba(11, 11, 59, 0.55); opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.scrim.is-open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---------- The line (signature) ---------- */

/* One continuous line runs down the content column; each section is a stop on it. */
.route {
  --rail: 0.85rem;
  --indent: clamp(2.5rem, 1.8rem + 2vw, 3.5rem);
  position: relative; max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) clamp(3rem, 2rem + 3vw, 4.5rem);
}
.route::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + var(--rail));
  width: var(--line-w); margin-left: calc(var(--line-w) / -2);
  background: var(--blue);
}
.route::after {
  content: ""; position: absolute; z-index: 1; bottom: -0.9rem; left: calc(var(--gutter) + var(--rail));
  width: 1.8rem; height: 1.8rem; margin-left: -0.9rem; border-radius: 50%;
  background: var(--gold); border: 6px solid var(--blue); box-sizing: border-box;
  box-shadow: 0 0 0 3px var(--paper); /* keeps the terminal stop visible on blue or navy */
}
.stop-section { position: relative; padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6.5rem) var(--indent, 0); }
.stop-section + .stop-section { border-top: 1px solid var(--keyline); }

.stop-head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.stop-head h2 { font-size: var(--step-3); margin: 0; }
.stop-head p { margin: 0.5rem 0 0; color: var(--ink-soft); }

.stop-disc {
  position: absolute; left: calc(var(--rail) - var(--indent)); top: 0.3em;
  width: 1.7rem; height: 1.7rem; margin-left: -0.85rem;
  border-radius: 50%; background: var(--paper); border: 6px solid var(--blue); box-sizing: border-box;
  transition: background-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stop-section.is-reached .stop-disc { background: var(--gold); transform: scale(1.15); }

/* ---------- Hero (station band) ---------- */

.hero { background: var(--blue); color: #fff; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }
.hero h1 { font-size: var(--step-4); line-height: 0.92; margin-bottom: 0.35em; }
.hero h1 .sub { display: block; font-size: 0.42em; line-height: 1.1; color: var(--gold); letter-spacing: 0.04em; margin-top: 0.4em; }
.hero p.lede { font-size: var(--step-1); max-width: 34ch; color: #eef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #fff; border-radius: var(--radius); }
.hero-photo figcaption { position: absolute; left: 1rem; bottom: -1rem; background: var(--gold); color: var(--ink); font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; padding: 0.3rem 0.75rem; font-size: 1rem; }

.theme-plate { background: var(--ink); color: #fff; }
.theme-plate .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: baseline; padding-block: 1rem; }
.theme-plate b { font-family: var(--font-sign); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-size: 1.05rem; }
.theme-plate span { font-size: var(--step-0); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--blue); color: #fff; }
.page-hero .wrap { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
.page-hero h1 { font-size: var(--step-4); line-height: 0.95; margin: 0; }
.page-hero p { font-size: var(--step-1); color: #eef; margin: 1rem 0 0; }
.page-hero .crumbs { font-size: var(--step--1); margin-bottom: 1rem; }
.page-hero .crumbs a { color: #fff; }
.page-hero .crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.page-hero .crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.7; }
.page-hero-photo { position: relative; }
.page-hero-photo figcaption { position: absolute; left: 1rem; bottom: -0.9rem; background: var(--paper); color: var(--ink); border: 2px dashed var(--ink-soft); font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; padding: 0.15rem 0.6rem; }
.page-hero-photo img { border: 6px solid #fff; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Line diagram (assemblies) ---------- */

.linemap { background: var(--paper); border-bottom: 1px solid var(--keyline); }
.linemap .wrap { padding-block: 2.25rem 2.5rem; }
.linemap-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.5rem; }
.linemap-title h2 { font-size: var(--step-2); margin: 0; }
.linemap-title .line-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.line-tag i { width: 2rem; height: var(--line-w); background: var(--blue); display: inline-block; }

.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.stations::before { content: ""; position: absolute; left: 10%; right: 10%; top: calc(1.05rem - var(--line-w) / 2); height: var(--line-w); background: var(--blue); }
.station { position: relative; text-align: center; padding-inline: 0.25rem; }
.station a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); border-radius: var(--radius); padding: 0 0.25rem 0.75rem; }
.station-disc { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--paper); border: 6px solid var(--blue); margin-top: -0.25rem; transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.station a:hover .station-disc { background: var(--gold); transform: scale(1.1); }
.station-name { font-family: var(--font-sign); font-weight: 800; font-size: clamp(1.35rem, 1rem + 1vw, 2rem); text-transform: uppercase; margin-top: 0.6rem; line-height: 1; }
.slot { margin-top: 0.6rem; display: inline-grid; grid-template-columns: auto auto; gap: 0 0.5rem; align-items: baseline; background: var(--ink); color: #fff; padding: 0.3rem 0.65rem; border-radius: 2px; }
.slot b { font-family: var(--font-sign); font-size: 0.95rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.slot span { font-family: var(--font-sign); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.03em; }
.slot--soon { background: transparent; color: var(--ink-soft); border: 2px dashed var(--keyline); }
.slot--soon b { color: var(--ink-soft); }
.station-meta { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.4rem; }

@media (max-width: 760px) {
  .stations { grid-template-columns: 1fr; gap: 0; }
  .stations::before { left: 1.3rem; right: auto; top: 1rem; bottom: 1rem; width: var(--line-w); height: auto; margin-left: calc(var(--line-w) / -2); }
  .station { text-align: left; }
  .station a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 1rem; padding: 0.6rem 0; }
  .station-disc { margin: 0; }
  .station-name { margin: 0; flex: 1; }
  .slot { margin: 0 0 0 3.6rem; }
  .station-meta { flex-basis: 100%; margin-left: 3.6rem; }
}

/* ---------- Departure board ---------- */

.board { width: 100%; border-collapse: collapse; background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; }
.board caption { text-align: left; caption-side: top; padding-bottom: 0.75rem; color: var(--ink-soft); font-size: var(--step--1); }
.board th, .board td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.12); vertical-align: top; }
.board thead th { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-size: 1rem; background: #07072a; }
.board tbody th { font-family: var(--font-sign); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; }
.board tbody th a { color: #fff; text-decoration: none; }
.board tbody th a:hover { color: var(--gold); text-decoration: underline; }
.board .time { font-family: var(--font-sign); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.03em; }
.board .soon { color: #a9abd0; font-style: italic; }
.board-wrap { overflow-x: auto; }

@media (max-width: 760px) {
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board th, .board td { display: block; width: 100%; }
  .board tr { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .board th, .board td { border: 0; padding: 0.2rem 1rem; }
  .board td.is-empty { display: none; }
  .board td::before { content: attr(data-label) ": "; color: var(--gold); font-family: var(--font-sign); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
}

/* ---------- Content blocks ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } }

.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--slate); border-radius: var(--radius); }
.portrait figcaption { margin-top: 0.75rem; }
.portrait figcaption b { display: block; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.portrait figcaption span { color: var(--ink-soft); }

.pull { font-size: var(--step-2); line-height: 1.35; font-weight: 400; margin: 0 0 1.25rem; max-width: 34ch; }
.pull::before { content: "\201C"; display: block; font-family: var(--font-sign); font-weight: 800; font-size: 4.5rem; line-height: 0.6; color: var(--gold); margin-bottom: 0.5rem; }

.video-slot {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.video-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.video-slot .video-inner { position: relative; padding: 1.25rem; max-width: 30rem; }
.video-slot .play { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--gold); color: var(--ink); display: inline-grid; place-items: center; margin-bottom: 0.75rem; border: 0; cursor: pointer; }
.video-slot .play .icon { width: 2rem; height: 2rem; margin-left: 0.25rem; }
.video-slot small { display: block; font-size: var(--step--1); color: #d6d7f3; margin-top: 0.5rem; }
.video-slot .placeholder, .bank-plate .placeholder, .site-footer .placeholder, .plate .placeholder { background: transparent; color: var(--gold); border-bottom-color: var(--gold); }
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Beliefs: three statements set as signage, divided by keylines */
.statements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 6px solid var(--blue); }
.statements > * { padding: 1.5rem 1.5rem 0 0; }
.statements > * + * { border-left: 1px solid var(--keyline); padding-left: 1.5rem; }
.statements h3 { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1.05; }
.statements p { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 860px) {
  .statements { grid-template-columns: 1fr; }
  .statements > * + * { border-left: 0; border-top: 1px solid var(--keyline); padding-left: 0; }
}

/* Ministries: an interchange list, not a card grid */
.interchange { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.interchange li { border-bottom: 1px solid var(--keyline); }
.interchange a { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.interchange img, .interchange .mono { width: 4rem; height: 4rem; border-radius: 50%; object-fit: contain; background: #fff; }
.interchange .mono { display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-sign); font-weight: 800; font-size: 1.3rem; }
.interchange b { display: block; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1.05; }
.interchange span { color: var(--ink-soft); font-size: var(--step--1); }
.interchange .icon { color: var(--blue); transition: transform 0.25s var(--ease-out); }
.interchange a:hover b { color: var(--blue); }
.interchange a:hover .icon { transform: translateX(4px); }
@media (max-width: 760px) { .interchange { grid-template-columns: 1fr; } }

/* Events as timetable rows */
.timetable { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--blue); }
.timetable li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--keyline); }
.date-plate { background: var(--ink); color: #fff; text-align: center; border-radius: 2px; padding: 0.4rem 0.25rem; line-height: 1; }
.date-plate b { display: block; font-family: var(--font-sign); font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; }
.date-plate span { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; color: var(--gold); letter-spacing: 0.06em; font-size: 0.95rem; }
.timetable h3 { font-size: var(--step-1); margin: 0 0 0.2rem; }
.timetable p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 640px) {
  .timetable li { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .timetable li > :last-child { grid-column: 2; justify-self: start; }
}

.sample-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--slate); color: var(--ink-soft); border: 1px dashed var(--ink-soft); padding: 0.05rem 0.4rem; border-radius: 2px; vertical-align: middle; margin-left: 0.4rem; }
.placeholder { background: #fff6d6; border-bottom: 2px dotted var(--gold-deep); padding: 0 0.2em; }

/* News list */
.news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid var(--keyline); padding: 1rem 0; }
.news-list li:first-child { padding-top: 0; }
.news-list a { font-weight: 700; font-size: var(--step-1); text-decoration: none; color: var(--ink); }
.news-list a:hover { color: var(--blue); text-decoration: underline; }
.news-list small { display: block; color: var(--ink-soft); margin-top: 0.25rem; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }

/* Give band */
.band { background: var(--blue); color: #fff; }
.band--ink { background: var(--ink); }
.band .wrap { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.give-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.give-band h2 { font-size: var(--step-3); margin: 0 0 0.5rem; }
.give-band p { color: #eef; margin: 0; font-size: var(--step-1); }
@media (max-width: 760px) { .give-band .wrap { grid-template-columns: 1fr; } .give-band .btn { justify-self: start; } }

/* Connect */
.connect-section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); background: var(--slate); }
.connect-section h2 { font-size: var(--step-3); margin-bottom: 0.4em; }
.connect-section .form { margin-top: 1.5rem; }
.connect { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; }
.connect-links { list-style: none; padding: 0; margin: 0; }
.connect-links li { border-bottom: 1px solid var(--keyline); }
.connect-links a { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 0; text-decoration: none; font-weight: 700; color: var(--ink); }
.connect-links a:hover { color: var(--blue); }
.connect-links .icon { width: 1.5rem; height: 1.5rem; color: var(--blue); }
@media (max-width: 860px) { .connect { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 700; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink-soft); border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 3rem; width: 100%;
  caret-color: var(--blue);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #61638a; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff5f5; }
.field .error { color: #b3141a; font-weight: 700; font-size: var(--step--1); margin: 0; }
.field .error:empty { display: none; }
.field .optional { font-weight: 400; color: var(--ink-soft); }

.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: var(--step--1); }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--blue); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius); padding: 1rem 1.25rem; font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #e6f6ea; color: #0d5a22; border: 2px solid #1d8a3a; }
.form-status--err { background: #fff0f0; color: #8a0f14; border: 2px solid var(--red); }

.panel { background: var(--slate); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.panel--line { background: var(--paper); border: 2px solid var(--blue); }

/* ---------- Find an Assembly map ---------- */

.cz-map { width: 100%; height: auto; }
.cz-map .land { fill: var(--blue-wash); stroke: var(--blue); stroke-width: 1.5; }
.cz-map .route-line { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cz-map .pin circle { fill: #fff; stroke: var(--blue); stroke-width: 5; transition: fill 0.2s; }
.cz-map .pin:hover circle, .cz-map .pin:focus-visible circle, .cz-map .pin.is-active circle { fill: var(--gold); }
.cz-map .pin text { font-family: var(--font-sign); font-weight: 800; font-size: 17px; text-transform: uppercase; fill: var(--ink); }
.cz-map .pin { cursor: pointer; outline: none; }
.cz-map .pin:focus-visible circle { stroke: var(--ink); stroke-width: 6; }

.assembly-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 6px solid var(--blue); }
.assembly-list > li { border-bottom: 1px solid var(--keyline); }
.assembly-row { display: grid; grid-template-columns: 6rem minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.25rem 0; }
.assembly-row img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 50%; }
.assembly-row h3 { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); margin: 0 0 0.2rem; }
.assembly-row h3 a { color: var(--ink); text-decoration: none; }
.assembly-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.assembly-row p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.assembly-row .slot { margin: 0; }
@media (max-width: 860px) {
  .assembly-row { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .assembly-row img { width: 4.5rem; height: 4.5rem; }
  .assembly-row > :nth-child(n+3) { grid-column: 2; }
  .assembly-row .slot { justify-self: start; }
}

/* ---------- Assembly page ---------- */

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 6px solid var(--blue); }
.facts > div { padding: 1.25rem 1.25rem 1.25rem 0; }
.facts > div + div { border-left: 1px solid var(--keyline); padding-left: 1.25rem; }
.facts h3 { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); font-size: 1.1rem; margin-bottom: 0.5rem; }
.facts p { margin: 0 0 0.35rem; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--keyline); padding-left: 0; }
}

.map-slot { position: relative; aspect-ratio: 16 / 10; background: var(--blue-wash); border: 1px solid var(--keyline); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.expect { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.expect li { padding: 1rem 0; border-bottom: 1px solid var(--keyline); }
.expect b { display: block; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr; } }

/* Elder panel (assembly pages) */
.elder-panel { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center; max-width: 46rem; }
.elder-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--slate); }
.elder-name { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1.05; margin: 0 0 0.25rem; }
.elder-role { color: var(--blue); font-weight: 700; margin: 0 0 1.25rem; }
@media (max-width: 520px) { .elder-panel { grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; } .elder-panel .btn { font-size: 1.05rem; padding-inline: 0.9rem; } }

/* ---------- Leadership ---------- */

.leaders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
@media (max-width: 900px) { .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; } }
@media (max-width: 520px) { .leaders { grid-template-columns: 1fr; } .leader img { max-width: 20rem; } }
.leader { display: flex; flex-direction: column; }
/* Cards share the row's tracks: photo, name, role, actions and bio line up across a row.
   Opening a bio only grows the last track, so neighbours' buttons never move. */
@supports (grid-template-rows: subgrid) {
  .leaders { row-gap: 0; }
  .leader { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding-bottom: 3rem; }
  .leader > h3 { align-self: end; }
  .leader-actions { margin-top: 0; align-self: start; }
  .leader-bio, .leader-bio-soon { align-self: start; }
}
.leader img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--slate); }
.leader h3 { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; margin: 1rem 0 0.25rem; }
.leader .role { color: var(--blue); font-weight: 700; margin: 0 0 1rem; }
.leader-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 0.85rem; border-top: 1px solid var(--keyline); margin-top: auto; }
.leader-link, .leader-bio summary {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.25rem;
  font-family: var(--font-sign); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--blue); text-decoration: none; cursor: pointer;
}
span.leader-link { color: var(--ink-soft); text-transform: none; font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); letter-spacing: 0; cursor: default; }
a.leader-link:hover span, .leader-bio summary:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.leader-bio { margin-top: 0.15rem; }
.leader-bio summary { list-style: none; }
.leader-bio summary::-webkit-details-marker { display: none; }
.leader-bio summary .icon { transition: transform 0.2s var(--ease-out); }
.leader-bio[open] summary .icon { transform: rotate(45deg); }
.leader-bio .when-open, .leader-bio[open] .when-closed { display: none; }
.leader-bio[open] .when-open { display: inline; }
.leader-bio p { font-size: var(--step--1); margin: 0.6rem 0 0; }
.leader-bio-soon { margin: 0.15rem 0 0; min-height: 2.25rem; display: flex; align-items: center; font-size: var(--step--1); }

.variant-note { background: #fff6d6; border: 2px dashed var(--gold-deep); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.variant-note a { font-weight: 700; }

/* ---------- Give ---------- */

.give-methods { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.bank-plate { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.bank-plate dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 1.25rem; margin: 0; }
.bank-plate dt { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; color: var(--gold); letter-spacing: 0.05em; }
.bank-plate dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; overflow-wrap: anywhere; }
.bank-plate .placeholder { background: rgba(255, 210, 63, 0.18); color: #fff; border-bottom-color: var(--gold); }
.copy-btn { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 2px; font: inherit; font-size: 0.8rem; padding: 0.1rem 0.5rem; margin-left: 0.5rem; cursor: pointer; }
.qr-frame { aspect-ratio: 1; max-width: 16rem; border: 3px dashed var(--keyline); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 1.25rem; color: var(--ink-soft); background: var(--paper); }
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { text-align: left; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--keyline); }
.vs-table thead th { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; color: var(--blue); letter-spacing: 0.05em; border-bottom: 3px solid var(--blue); border-radius: 0; }
@media (max-width: 860px) { .give-methods { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bank-plate dl { grid-template-columns: 1fr; gap: 0.15rem; } .bank-plate dd { margin-bottom: 0.6rem; } }
.facts .tnum b { font-family: var(--font-sign); font-size: 1.4rem; letter-spacing: 0.03em; }

/* ---------- FAQ ---------- */

.faq { border-top: 6px solid var(--blue); }
.faq details { border-bottom: 1px solid var(--keyline); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-weight: 700; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue); transition: transform 0.25s var(--ease-out); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.1rem; }

/* ---------- Steps (Plan a Visit) ---------- */

.steps, .prose .steps { list-style: none; margin: 0; padding: 0; position: relative; }
.prose .steps li { max-width: none; margin: 0; }
/* line drawn as segments from each stop centre to the next, so it ends exactly on the last stop */
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.15rem; top: 1.35rem; bottom: -1.35rem; width: var(--line-w); margin-left: calc(var(--line-w) / -2); background: var(--blue); }
.steps li { position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0.2rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--paper); border: 6px solid var(--blue); box-sizing: border-box; }
.steps li:last-child::before { background: var(--gold); }
.steps b { display: block; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1.1; }
.steps p { margin: 0.25rem 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #dcdcf2; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-grid h2 { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-size: 1.1rem; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-brand img { width: 3.5rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: var(--step--1); max-width: 30ch; }
.footer-brand address { font-style: normal; font-size: var(--step--1); line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-block: 1.25rem; font-size: 0.85rem; }
.footer-bottom button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; }
.footer-bottom button:hover { text-decoration: underline; color: var(--gold); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed; z-index: 70; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(11, 11, 59, 0.3), 0 2px 6px rgba(11, 11, 59, 0.15); padding: 1.25rem 1.25rem 1rem;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.consent p { font-size: var(--step--1); margin-bottom: 0.9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent a { color: var(--gold); }
.consent .btn--line { color: #fff; border-color: #fff; }
.consent .btn--line:hover { background: #fff; color: var(--ink); }
.consent-actions .btn { font-size: 1.05rem; min-height: 2.75rem; padding: 0.5rem 1rem; }
@media (max-width: 1100px) { .consent { bottom: 5.25rem; } }

/* ---------- Misc ---------- */

.prose h2 { font-size: var(--step-3); margin-top: 1.5em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.25em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; max-width: 66ch; }
.lead { font-size: var(--step-1); }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.notice { border: 2px solid var(--blue); background: var(--blue-wash); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* Reveal: content is visible by default; motion only refines it. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .utility, .site-header, .quickbar, .consent, .drawer, .scrim, .site-footer { display: none !important; }
  .route::before, .stop-disc { display: none; }
}

/* =================================================================
   Round 2 components
   ================================================================= */

/* Long documents (beliefs, values, legal): a sticky station index beside the text */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.doc-index { position: sticky; top: 7rem; }
.doc-index h2 { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; color: var(--ink-soft); margin: 0 0 0.75rem; }
.doc-index ol { list-style: none; margin: 0; padding: 0; }
.doc-index li { position: relative; padding-left: 1.6rem; }
.doc-index li:not(:last-child)::after { content: ""; position: absolute; left: 0.45rem; top: 0.95rem; bottom: -0.55rem; width: 3px; margin-left: -1.5px; background: var(--blue); }
.doc-index li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0.5rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); box-sizing: border-box; }
.doc-index a { display: block; padding: 0.2rem 0; color: var(--ink); text-decoration: none; font-size: var(--step--1); line-height: 1.35; }
.doc-index a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .doc-index { position: static; background: var(--slate); border-radius: var(--radius); padding: 1rem 1.25rem; }
}

.tenet { padding: 1.75rem 0; border-bottom: 1px solid var(--keyline); scroll-margin-top: 7rem; }
.tenet:first-child { padding-top: 0; }
.tenet h3 { display: flex; gap: 0.9rem; align-items: center; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1.05; margin-bottom: 0.6rem; }
.tenet h3 .num { flex: none; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.1rem; }
.tenet p { max-width: 70ch; }
.refs { color: var(--ink-soft); font-size: var(--step--1); }
.source-note { font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--keyline); padding-top: 1rem; margin-top: 2rem; }

.value { padding: 1.5rem 0; border-bottom: 1px solid var(--keyline); scroll-margin-top: 7rem; }
.value:first-child { padding-top: 0; }
.value h3 { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1.05; margin-bottom: 0.5rem; }
.value h3 small { font-family: var(--font-body); text-transform: none; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); margin-left: 0.4rem; }
.value details summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; color: var(--blue); font-size: 1.1rem; }
.value details summary::-webkit-details-marker { display: none; }
.value details summary .icon { transition: transform 0.2s var(--ease-out); }
.value details[open] summary .icon { transform: rotate(45deg); }
.value details .when-open, .value details[open] .when-closed { display: none; }
.value details[open] .when-open { display: inline; }
.value ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.value li { margin-bottom: 0.35rem; max-width: 66ch; }

/* Statement plates (mission, vision) */
.plate { background: var(--blue); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.plate--ink { background: var(--ink); }
.plate h3 { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-size: 1.05rem; margin-bottom: 0.75rem; }
.plate blockquote { margin: 0; font-size: var(--step-2); line-height: 1.3; max-width: 40ch; }
.plate p { color: #e6e6fb; }
.plate p:last-child { margin-bottom: 0; }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .plates { grid-template-columns: 1fr; } }

/* Ordered facts list (past chairmen etc.) */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--blue); }
.ledger li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--keyline); }
.ledger b { font-family: var(--font-sign); font-size: 1.25rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; color: var(--blue); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip { font: inherit; font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.05rem; padding: 0.4rem 0.9rem; min-height: 2.5rem; border-radius: 999px; border: 2px solid var(--blue); background: var(--paper); color: var(--blue); cursor: pointer; }
.chip:hover { background: var(--blue-wash); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.filter-status { font-size: var(--step--1); color: var(--ink-soft); margin: -0.75rem 0 1rem; }
[data-tags][hidden] { display: none !important; }

/* Story rows (news) */
.stories { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--blue); }
.story { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--keyline); align-items: start; }
.story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.story h3 { font-size: var(--step-1); margin: 0.25rem 0 0.4rem; }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { color: var(--blue); text-decoration: underline; }
.story p { margin: 0; color: var(--ink-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: var(--step--1); color: var(--ink-soft); }
.meta b { font-family: var(--font-sign); text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); font-weight: 700; }
@media (max-width: 640px) { .story { grid-template-columns: 1fr; gap: 0.75rem; } }

/* Article */
.article { max-width: 46rem; }
.article .lead { font-size: var(--step-1); }
.article figure { margin: 2rem 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.5rem; }
.article h2 { font-size: var(--step-2); margin-top: 2rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; border-top: 1px solid var(--keyline); padding-top: 1.25rem; margin-top: 2rem; }

/* Sermon archive */
.sermon-list { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--blue); }
.sermon-list li { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--keyline); }
.sermon-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.sermon-list h3 { font-size: var(--step-1); margin: 0 0 0.25rem; }
.sermon-list h3 a { color: var(--ink); text-decoration: none; }
.sermon-list h3 a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 700px) { .sermon-list li { grid-template-columns: 7rem minmax(0, 1fr); } .sermon-list li > :last-child { grid-column: 2; justify-self: start; } }

.live-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 860px) { .live-panel { grid-template-columns: 1fr; } }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; padding: 0.25rem 0.75rem; border-radius: 2px; background: var(--slate); color: var(--ink-soft); margin-bottom: 0.75rem; }
html.is-live .status-pill { background: var(--red); color: #fff; }
.status-pill .on { display: none; }
html.is-live .status-pill .on { display: inline; }
html.is-live .status-pill .off { display: none; }

/* Gallery */
.albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.album a { display: block; text-decoration: none; color: var(--ink); }
.album .thumb { display: block; overflow: hidden; border-radius: var(--radius); }
.album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.album a:hover img { transform: scale(1.03); }
.album h3 { font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; margin: 0.8rem 0 0.2rem; }
.album a:hover h3 { color: var(--blue); }
.album p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 900px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .albums { grid-template-columns: 1fr; } }

.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; }
@media (max-width: 560px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } }
.photos a { display: block; border-radius: var(--radius); overflow: hidden; }
.photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.photos a:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 80rem); width: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(7, 7, 42, 0.92); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-top: 0.75rem; }
.lightbox-controls { display: flex; gap: 0.5rem; }
.lightbox button { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); border-radius: var(--radius); min-width: 2.75rem; min-height: 2.75rem; cursor: pointer; display: inline-grid; place-items: center; }
.lightbox button:hover { background: #fff; color: var(--ink); }
.lightbox .prev .icon { transform: rotate(180deg); }
.lightbox .muted { color: #c9cae8; }

/* Events: list / calendar */
.view-toggle { display: inline-flex; border: 2px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { font: inherit; font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; padding: 0.45rem 1rem; min-height: 2.5rem; background: var(--paper); color: var(--blue); border: 0; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.toolbar .chips { margin: 0; }

.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar caption { text-align: left; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); padding-bottom: 0.75rem; }
.calendar abbr { text-decoration: none; }
.calendar th { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); padding: 0.5rem; border-bottom: 3px solid var(--blue); text-align: left; }
.calendar td { vertical-align: top; height: 6.5rem; padding: 0.4rem; border: 1px solid var(--keyline); font-size: var(--step--1); }
.calendar td.out { background: var(--slate); color: #8a8cab; }
.calendar .day { font-family: var(--font-sign); font-weight: 700; font-size: 1.15rem; }
.calendar td.today .day { background: var(--gold); color: var(--ink); border-radius: 2px; padding: 0 0.3rem; }
.cal-event { display: block; margin-top: 0.3rem; padding: 0.15rem 0.4rem; border-radius: 2px; background: var(--blue); color: #fff; text-decoration: none; font-size: 0.8rem; line-height: 1.3; }
.cal-event:hover { background: var(--blue-deep); color: #fff; }
.cal-event--span { background: var(--blue-wash); color: var(--blue-deep); }
.cal-event--span:hover { background: var(--blue); color: #fff; }
.cal-scroll { overflow-x: auto; }
@media (max-width: 700px) { .calendar { min-width: 40rem; } }

.event-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 6px solid var(--blue); margin-bottom: 2rem; }
.event-facts > div { padding: 1.1rem 1.1rem 1.1rem 0; }
.event-facts > div + div { border-left: 1px solid var(--keyline); padding-left: 1.1rem; }
.event-facts h3 { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); font-size: 1.05rem; margin-bottom: 0.35rem; }
.event-facts p { margin: 0; }
@media (max-width: 760px) { .event-facts { grid-template-columns: 1fr; } .event-facts > div + div { border-left: 0; border-top: 1px solid var(--keyline); padding-left: 0; } }

.speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.speakers li { border-top: 3px solid var(--blue); padding-top: 0.75rem; }
.speakers b { display: block; font-family: var(--font-sign); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.speakers span { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) { .speakers { grid-template-columns: 1fr; } }

/* Legal */
.legal h2 { font-size: var(--step-2); margin-top: 2.25rem; scroll-margin-top: 7rem; }
.legal h2:first-child { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: var(--step--1); }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--keyline); vertical-align: top; }
.legal thead th { font-family: var(--font-sign); text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); border-bottom: 3px solid var(--blue); }
.draft-banner { background: #fff6d6; border: 2px dashed var(--gold-deep); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.table-scroll { overflow-x: auto; }

/* Verse */
.verse { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--slate); border-radius: var(--radius); }
.verse p { font-size: var(--step-1); margin: 0 0 0.4rem; }
.verse cite { font-style: normal; font-size: var(--step--1); color: var(--ink-soft); }

/* Ministry hero emblem (used instead of photos of children) */
.hero-emblem { background: #fff; border-radius: 50%; padding: 0.75rem; width: min(18rem, 70%); justify-self: center; }

/* =================================================================
   Round 3: mobile polish
   ================================================================= */

/* Icon-only menu button (label is announced through aria-label) */
@media (max-width: 1100px) {
  .menu-toggle { width: 3rem; height: 3rem; min-height: 3rem; padding: 0; justify-content: center; }
  .menu-toggle .icon { width: 1.6rem; height: 1.6rem; }
}

/* Utility bar: on small screens keep only Live and EN | CS; the rest moves into the drawer */
@media (max-width: 760px) {
  .utility-wide { display: none !important; }
  .utility .wrap { min-height: 2.25rem; gap: 0.75rem; }
  .utility .lang { margin-left: auto; }
  .utility .lang a, .utility .lang span { padding: 0.25rem 0.6rem; min-height: 1.9rem; display: inline-grid; place-items: center; }
}

/* Drawer: collapsible sections */
.drawer > nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.drawer-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; color: #fff; cursor: pointer; text-align: left;
  font-family: var(--font-sign); font-weight: 700; font-size: 1.5rem; text-transform: uppercase;
  padding: 0.75rem 0; min-height: 3rem;
}
.drawer-toggle .icon { transition: transform 0.25s var(--ease-out); }
.drawer-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer a.drawer-top { padding: 0.75rem 0; min-height: 3rem; }
.drawer-sub { padding-bottom: 0.6rem !important; }
.drawer-sub[hidden] { display: none; }
.drawer .drawer-sub a { padding: 0.55rem 0 0.55rem 1rem; color: #d4d5f6; min-height: 2.75rem; display: flex; align-items: center; }
.drawer .drawer-sub a[aria-current="page"], .drawer a.drawer-top[aria-current="page"] { color: var(--gold); }
.drawer-head { padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }

.drawer-tools { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
.drawer-group h2 { font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-size: 1rem; margin: 0 0 0.6rem; }
.a11y-tools--drawer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.a11y-tools--drawer button { min-height: 3rem; font-size: 1.1rem; border-radius: var(--radius); }
.a11y-tools--drawer button[data-contrast] { grid-column: 1 / -1; }
.lang--drawer { gap: 0.5rem; }
.lang--drawer a, .lang--drawer span { min-width: 3.5rem; min-height: 2.75rem; display: inline-grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius); color: #fff; text-decoration: none; }
.lang--drawer [aria-current="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.social--drawer { display: grid; gap: 0.25rem; }
.drawer .social--drawer a { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; min-height: 2.75rem; }
.social--drawer .icon { width: 1.4rem; height: 1.4rem; }

/* Tighter line and margins on phones, so content gets the width */
@media (max-width: 600px) {
  .route { --rail: 0rem; --indent: 1.6rem; --line-w: 4px; }
  .route::before { left: calc(var(--gutter) - 0.1rem); }
  .route::after { left: calc(var(--gutter) - 0.1rem); width: 1.3rem; height: 1.3rem; margin-left: -0.65rem; bottom: -0.65rem; border-width: 4px; box-shadow: 0 0 0 2px var(--paper); }
  .stop-disc { left: calc(-0.1rem - var(--indent)); width: 1.25rem; height: 1.25rem; margin-left: -0.625rem; border-width: 4px; top: 0.35em; }
  .stop-section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .stop-head { margin-bottom: 1.25rem; }
  .stop-head h2 { font-size: 2rem; }
  .panel { padding: 1rem; }
  .route .form.panel { margin-inline: 0; }
  .page-hero .wrap { padding-block: 2rem 2.25rem; gap: 1.5rem; }
  .page-hero h1 { font-size: clamp(2.3rem, 10vw, 2.8rem); }
  .hero .wrap { padding-block: 1.5rem 2rem; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.4rem); }
  .facts > div, .event-facts > div { padding-right: 0; }
  .split, .split--rev { gap: 1.5rem; }
  .connect-section { padding-block: 3rem; }
  .give-band .wrap { padding-block: 2.75rem; }
  .consent { left: 0.5rem; right: 0.5rem; padding: 1rem; }
  .consent p { margin-bottom: 0.75rem; }
  .consent-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Touch targets: at least 44px for controls people tap often */
.link-arrow { min-height: 2.75rem; }
.leader-link, .leader-bio summary { min-height: 2.75rem; }
.value details summary { min-height: 2.75rem; }
.copy-btn { font-size: 0.9rem; padding: 0.45rem 0.85rem; min-height: 2.5rem; margin: 0.25rem 0 0 0.5rem; }
@media (max-width: 760px) {
  .utility .lang a, .utility .lang span { min-height: 2.5rem; min-width: 2.75rem; }
  .site-footer .footer-grid ul { gap: 0; }
  .site-footer .footer-grid ul a { display: flex; align-items: center; min-height: 2.75rem; }
  .footer-brand address a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .footer-bottom .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 1rem 1.25rem; }
  .footer-bottom a, .footer-bottom button { display: flex; align-items: center; min-height: 2.75rem; }
  .footer-bottom span { padding-block: 0.5rem; }
  .doc-index a { padding: 0.6rem 0; }
  .doc-index li::before { top: 0.85rem; }
  .doc-index li:not(:last-child)::after { top: 1.3rem; bottom: -0.85rem; }
  .bank-plate dd { display: flex; flex-wrap: wrap; align-items: center; }
}
.board tbody th a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.cz-map .pin .hit, .cz-map .pin:hover .hit, .cz-map .pin:focus-visible .hit, .cz-map .pin.is-active .hit { fill: transparent; stroke: none; }
@media (max-width: 760px) { .doc-index a { padding: 0.68rem 0; } }

/* Wide reference tables become stacked cards on phones (no sideways scrolling) */
@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { border-bottom: 1px solid var(--keyline); padding: 0.75rem 0; }
  .legal td { border: 0; padding: 0.2rem 0; }
  .legal td::before { content: attr(data-label); display: block; font-family: var(--font-sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); font-size: 0.9rem; }
  .legal td:first-child { font-weight: 700; font-size: var(--step-0); }
  .legal td:first-child::before { display: none; }
  .table-scroll { overflow: visible; }
}
/* The 404 line map sits in its own section; keep its gap tidy */
.linemap + .route .stop-section:first-child { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
