/* =================================================================
   CONVO — Shared design system (base layer)
   Tenant theme overrides via inline <style> block with :root vars.
   ================================================================= */

/* ============ SELF-HOSTED FONTS ============ */

/* Plus Jakarta Sans — latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/$/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Plus Jakarta Sans — latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/$/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces italic — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/$/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces italic — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/$/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ FALLBACK TOKENS ============ */
/* These are overridden per-tenant by the inline <style> block. */

:root {
  --brand: #2871e0;
  --brand-deep: #1a4ea8;
  --brand-bright: #5b9eff;
  --paper: #eef3fa;
  --paper-soft: #e2eaf4;
  /* Actually warm. It was #f7faff — a cool near-white under a name that promises
     the opposite, which is why the birthday letter could not use it and grew its
     own paper colour instead. */
  --paper-warm: #faf7f0;
  --card: #ffffff;
  --ink: #0f1d2e;
  /* Running text, between ink and ink-soft. Its own token because one grey for both
     a paragraph and a label makes each look like the other's mistake. */
  --body: #3f5468;
  --ink-soft: #56697d;
  /* Text on the dark surface: the strong weight and the quiet one. Solid, not the
     translucent white used elsewhere on this stylesheet — the outgoing mail reads
     the same tokens, and Outlook's Word engine drops rgba entirely. */
  --on-ink: #ffffff;
  --on-ink-soft: #a9bdd4;
  --warm: #ffd9a8;
  /* The warm accent at a weight that may be read: #ffd9a8 as text on white is
     about 2:1. This one clears 4.5:1 and is the only warm colour text is set
     from. */
  --warm-deep: #8a6d1f;
  --rule: rgba(15,29,46,0.1);
  --rule-strong: rgba(15,29,46,0.18);
  /* A hairline that has to be actually drawn — dark enough to show on --card and
     on --paper-soft both, because a rule inside a panel is the case that fails
     when the two are the same value. The translucent ones above blend over any
     background, which is right here and dropped by the mail clients. */
  --rule-line: #cfdaea;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-accent: 'Fraunces', serif;
  /* The one easing curve. Every transition on the site uses it, at 120–180ms for a
     hover and 300–500ms for something that enters, so nothing on a page moves at a
     pace of its own. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); overflow-x: hidden; font-feature-settings: 'ss01', 'cv11'; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: 0; width: 100%; }
::selection { background: var(--ink); color: var(--paper); }

/* ============ HERO (full-bleed photo) ============ */
.hero {
  position: relative;
  overflow: hidden;
  /* Every banner is this tall. It is written once, here: the variants used to
     carry a height each — 60, 68, 70, 72vh — and nobody could say why one page
     was lower than the next, because the answer was "whoever wrote that rule".

     The value clears the longest headline on the site, so no page has to grow
     past it: a banner that grows is a banner of a different height. */
  min-height: 74vh;
  padding: 28px clamp(20px, 4vw, 80px) clamp(60px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  color: white;
}
/* The front page is the exception, and the only one. */
.hero.hero-tall { min-height: 88vh; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Two layers of shade, both neutral ink. The top band keeps the navigation legible
   on a bright sky; the second runs in from the left, where the text block stands,
   and leaves the right of the picture as it was taken. It used to be one vertical
   ramp, which darkened the middle of every photograph evenly and still left a
   headline over a sail or a face unreadable — the text is on the left, so the
   shade is too. */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,38,0.5) 0%, rgba(10,22,38,0) 22%),
    linear-gradient(90deg, rgba(10,22,38,0.72) 0%, rgba(10,22,38,0.45) 45%, rgba(10,22,38,0.08) 78%);
  z-index: 1;
}
@media (max-width: 760px) {
  /* On a phone the text runs the full width, so the shade does as well. */
  .hero::after { background: linear-gradient(180deg, rgba(10,22,38,0.55) 0%, rgba(10,22,38,0.4) 40%, rgba(10,22,38,0.75) 100%); }
}
.hero > *:not(.hero-img) { position: relative; z-index: 5; }

/* A banner whose page has no picture — the imprint, the privacy statement, a page
   still waiting for its photograph. The shade above was drawn for a photograph and
   over nothing it is a 74vh slab of grey-blue with a headline at the top. Without a
   picture the banner is the dark ground the dossier pages use, and only as tall as
   what it says. */
.hero:not(:has(.hero-img)) { min-height: auto; background: var(--ink); }
.hero:not(:has(.hero-img))::after { display: none; }

/* ============ NAV ============ */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center;
}
.brand-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
/* Stands in for the logo when a tenant has none, so the header still leads home. */
.brand-name {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.95;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
  font-size: 14px; font-weight: 500;
}
.nav-links a { opacity: 0.9; transition: opacity 0.16s var(--ease); color: white; }
.nav-links a.active, .nav-links a:hover { opacity: 1; }
@media (max-width: 760px) { .nav-links { display: none; } }
.nav-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 4px 4px 4px 20px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(14px); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background-color 0.16s var(--ease);
}
.nav-cta:hover { background: rgba(255,255,255,0.22); }
/* Icon button: hide the Unicode glyph fallback, draw a centered SVG arrow. */
.nav-cta .arr {
  width: 32px; height: 32px; background: white; color: var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0;
}
.nav-cta .arr::before {
  content: ''; display: block; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Dropdown navigation (grouped) ── */
.nav-links li.has-sub { position: relative; }
.nav-links .top { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: 0; font: inherit; color: inherit; opacity: 0.9; padding: 0; }
.nav-links .top:hover { opacity: 1; }
.nav-links .top .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.2s; opacity: 0.7; }
.nav-links li.has-sub:hover .top .caret, .nav-links li.has-sub:focus-within .top .caret { transform: rotate(225deg); margin-top: 2px; }
.submenu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 230px; padding: 8px; margin: 0; list-style: none;
  background-color: #0f1d2e; isolation: isolate;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 16px;
  /* Interactivity is gated by visibility (not pointer-events) so the menu stays
     hoverable during its fade-out. The delayed visibility transition keeps it
     open ~0.2s after hover is lost — enough to cross the gap to the panel, so
     slow mouse movement no longer dismisses it. */
  opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  z-index: 200;
}
.submenu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-links li.has-sub:hover .submenu, .nav-links li.has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0s;
}
.submenu li { display: block; }
.submenu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-radius: 8px; color: #fff; opacity: 1;
  font-size: 14px; font-weight: 500; transition: background-color 0.15s var(--ease);
}
.submenu a:hover { background: rgba(255,255,255,0.1); }
.submenu a .d { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.6); letter-spacing: 0; }
.submenu a.active { color: var(--brand-bright); }
/* Keep the nav (and its dropdown) above the hero content — the .hero>* rule
   sets z-index:5 and would otherwise trap the menu behind the hero body. */
.hero > .nav { z-index: 120; }

/* ── Mobile burger + drawer ── */
.nav-burger { display: none; }
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; border-radius: 10px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  }
  .nav-burger span { display: block; height: 2px; background: white; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink); color: white;
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(72px, 12vh, 110px) clamp(24px, 7vw, 48px) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 761px) { .mobile-nav { display: none; } }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: white; font-size: 26px; line-height: 1;
  display: grid; place-items: center;
}
.mnav-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mnav-list > li > a, .mnav-label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: -0.01em; padding: 8px 0; color: white;
}
.mnav-label { color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 500; letter-spacing: 0; padding: 16px 0 4px; }
.mnav-group > ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; }
.mnav-group > ul > li > a {
  display: block; padding: 8px 0 8px 16px; font-size: 18px; font-weight: 500;
  color: rgba(255,255,255,0.85); border-left: 2px solid rgba(255,255,255,0.15);
}
.mnav-list a.active { color: var(--brand-bright); }
.mnav-cta { margin-top: 24px; align-self: flex-start; }
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
  .nav-burger span { transition: none; }
}

.hero-body {
  /* The text block is as tall as its text and sits under the navigation, so the
     spare height in a banner shows below it, as picture. Stretched to the full
     banner and pushed to the bottom — as it was — that spare height landed
     above the text instead, which is why a page with a short headline had 160px
     of empty sky over it while its neighbour had 60. */
  flex: none;
  display: flex;
  flex-direction: column;
  /* The distance from the navigation to the first line, the same on every page.
     It used to be 80 here and 60 in two of the variants, so the front page —
     the only one without an override — sat 20px lower than the rest. */
  padding-top: 60px;
  /* One rhythm for the whole block, and a trailing space that does not depend
     on which element happens to be last. Each child used to carry its own
     margin — 28 under the crumbs, 28 under the headline, 36 under the subline,
     26 above the region's facts row — so adding an element changed the spacing
     around it: on a region page the gap under the subline came out at 62px
     while every other page had 28. */
  gap: 28px;
  padding-bottom: 36px;
}
/* The phone's banner starts under a 56px logo and a burger; 60px more put the crumbs
   against the logo's circle. */
@media (max-width: 760px) { .hero-body { padding-top: 48px; gap: 24px; } }
.crumbs {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.crumbs a:hover { color: white; }

/* Display headline (used in hero + section heads) */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.display em {
  font-style: italic; font-family: var(--font-accent); font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--warm);
  font-size: 1.05em;
}
/* The banner is as tall as its text, so the headline size is what decides how
   tall it turns out. At 152px most page titles ran to two lines and their
   banners came out 170–200px taller than the ones whose title happened to fit
   on one — the difference reads as "this page's banner is smaller". */
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
/* The front page is the one banner that may be a screenful, but not the one that
   shouts: at 152px its three lines took the whole first screen and pushed the
   sentence that says what the school does below it. */
.hero-tall h1 { font-size: clamp(48px, 8vw, 128px); }
.hero h1 em {
  font-style: italic; font-family: var(--font-accent); font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--warm);
  font-size: 1.05em;
}
/* Held to a short measure on the photograph. Five lines of white on a picture is
   where a reader gives up; the longer story belongs to the section under it. */
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: rgba(255,255,255,0.92); max-width: 48ch;
  line-height: 1.55;
  font-weight: 400;
}
/* The banner's own actions: one in the action colour, one quiet beside it. */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-actions .text-link {
  color: white; font-weight: 500; font-size: 15px;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.16s var(--ease);
}
.hero-actions .text-link:hover { text-decoration-color: white; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 26px;
}
@media (max-width: 700px) { .hero-stats { grid-template-columns: 1fr 1fr; } }
.hero-stat .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat .v sup { font-size: 0.5em; color: var(--warm); font-weight: 400; }
.hero-stat .l {
  font-size: 13px;
  color: rgba(255,255,255,0.7); margin-top: 10px;
  font-weight: 400;
}

/* ============ SECTIONS ============ */
section.block {
  padding: clamp(64px, 7vw, 104px) clamp(20px, 4vw, 80px);
}
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-strong);
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; } }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-head h2 em {
  font-style: italic; font-family: var(--font-accent); font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
/* Accent from Markdown `==text==` (rendered as <mark>): brand-blue emphasis in
   body text, without the yellow highlight background or italics. */
mark {
  background: none;
  color: var(--brand);
  font-weight: 600;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 500;
}
/* The rule takes the eyebrow's own colour, so an eyebrow set light on a dark or a
   blue band brings a light rule with it. It was drawn in --ink-soft whatever the
   text was, and on the blue help band that made it invisible: an empty 40px in
   front of the words, which read as the eyebrow being indented by mistake. */
.eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: currentColor; opacity: 0.7;
  vertical-align: middle; margin-right: 12px;
}
/* Running text beside a heading, so it is set in the body colour: --ink-soft on the
   pale page came out near 4.5:1 at best, which a label may be and a paragraph of
   eight lines should not. */
.section-head .lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--body);
  max-width: 42ch;
  margin-left: auto;
}

/* ============ BUTTONS ============ */
/* A button answers the pointer with its colour and a press, and stays where it is:
   the lift and the shadow it had made every button on a page look like the one to
   click. */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px; min-height: 48px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .arr {
  width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0;
}
/* Arrow as a mask so it inherits the variant's text color (circle = background). */
.btn .arr::before {
  content: ''; display: block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, white); }
.btn-primary .arr { background: white; color: var(--ink); }
/* On a dark card — the course's price card is ink — the dark button vanished into
   its ground and read as a line of text with an arrow. There it turns light. */
.factcard.feature .btn-primary { background: white; color: var(--ink); }
.factcard.feature .btn-primary .arr { background: var(--ink); color: white; }
.btn-light { background: white; color: var(--ink); }
.btn-light:hover { background: color-mix(in srgb, white 88%, var(--ink)); }
.btn-light .arr { background: var(--ink); color: white; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 8px 24px;
}
.btn-outline:hover { border-color: var(--ink); }

/* ============ FOOTER ============ */
.footer {
  padding: 60px clamp(20px, 4vw, 80px) 28px;
  background: var(--ink);
  color: white;
}
/* The brand block plus one track per stored column — the count comes from the
   view as data-cols, since the columns are the tenant's now and no longer three
   by definition. Three is the default because that is what the site has, and the
   rules below cover every count the footer accepts: the write path refuses more
   than model.FooterColumnLimit, so there is no count without a rule. */
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.footer-grid[data-cols="0"] { grid-template-columns: 1fr; }
.footer-grid[data-cols="1"] { grid-template-columns: 2fr 1fr; }
.footer-grid[data-cols="2"] { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid[data-cols="4"] { grid-template-columns: 2fr repeat(4, 1fr); }
.footer-grid[data-cols="5"] { grid-template-columns: 2fr repeat(5, 1fr); }
@media (max-width: 700px) {
  .footer-grid, .footer-grid[data-cols] { grid-template-columns: 1fr 1fr; }
  /* Nothing but the brand block: a second track would be an empty half. */
  .footer-grid[data-cols="0"] { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; margin-bottom: 12px; color: white;
}
.footer-tag { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; }
.footer h4 {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6); margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: white; }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
/* The legal links read as the rest of this line — quiet, but they carry the
   underline from the start. They used to get it on hover only, which on a phone
   means never: nothing there hovers, so the imprint and the privacy statement were
   text that happened to be tappable. Keyboard focus is shown too, for the same
   reason. */
.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: rgba(255,255,255,0.85);
  text-decoration-color: currentColor;
}

/* ============ HELP / CTA BAND ============ */
.cta-wrap {
  padding: 0 clamp(20px, 4vw, 80px);
}
.help-band {
  margin: clamp(40px, 4vw, 64px) clamp(20px, 4vw, 80px);
  padding: clamp(32px, 5vw, 64px);
  background: var(--brand);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  color: white;
}
@media (max-width: 800px) { .help-band { grid-template-columns: 1fr; } }
.help-band .eyebrow { color: rgba(255,255,255,0.72); }
.help-band h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
/* White, not the warm accent: orange on this blue is about 2:1. The face alone sets
   the word apart. */
.help-band h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: white; letter-spacing: -0.02em;
}
.help-band p {
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  max-width: 50ch;
  font-size: 16px;
}

/* ============ REVEAL ============ */
/* A short fade with a small rise. It was 24px over 0.9s on every section, which on
   a long page is the whole page swimming up a block at a time. */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ INTRO (Home) ============ */
.intro { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--paper); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-photo .badge {
  position: absolute; left: 20px; bottom: 20px;
  padding: 8px 14px; background: rgba(255,255,255,0.95);
  border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink);
}
.intro-text h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 68px); line-height: 1;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.intro-text h2 em {
  font-style: italic; font-family: var(--font-accent); font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
.intro-text .lead { font-size: 19px; color: var(--ink); margin-bottom: 16px; font-weight: 500; }
.intro-text p { color: var(--body); line-height: 1.65; margin-bottom: 16px; font-size: 16px; max-width: 56ch; }
/* A heading inside the intro's Markdown — "Segeltörns mit Skipper:" and its two
   siblings. Without a rule of its own it inherited the browser's bold and sat flush
   on its paragraph, so the three parts ran together as one block. */
.intro-text h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--ink); margin: 24px 0 4px;
}
.intro-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  color: var(--brand); font-weight: 500;
  border-bottom: 1px solid rgba(40,113,224,0.3);
  padding-bottom: 4px;
  transition: border-color 0.16s var(--ease);
}
.intro-link:hover { border-bottom-color: var(--brand); }

/* ============ STATS STRIP (Home) ============ */
.stats-strip {
  background: var(--ink); color: white;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 80px);
}
.stats-strip .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .stats-strip .stats { grid-template-columns: 1fr 1fr; } }
.stats-strip .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-strip .v sup { font-size: 0.5em; color: var(--warm); font-weight: 400; }
.stats-strip .l { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* ============ OFFERS LIST (Home) ============ */
.offers-list { display: flex; flex-direction: column; }
/* No number column. The rows were counted 01–05 in the brand blue, which said
   nothing a list does not already say by being a list and was the loudest colour in
   the section. */
.offer-row {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr 180px 36px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
  text-decoration: none;
}
/* The surface steps; the row stays where it is. It used to slide 14px to the right,
   and a list whose rows move under the pointer is hard to read across. */
.offer-row:hover { background: rgba(40,113,224,0.04); }
.offer-row h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ink);
}
.offer-row h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
.offer-row p {
  color: var(--body); line-height: 1.55; font-size: 15px;
}
.offer-row .meta {
  text-align: right;
  font-family: var(--font-display); font-weight: 600;
  color: var(--ink);
  font-size: 15px; font-variant-numeric: tabular-nums;
}
.offer-row .meta small {
  display: block; color: var(--ink-soft); font-weight: 400; font-size: 13px;
  margin-top: 4px;
}
.arrow-cell {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
  font-size: 0; line-height: 0;
}
/* Crisp, centered diagonal arrow via mask (hides the Unicode glyph fallback). */
.arrow-cell::before {
  content: ''; display: block; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.offer-row:hover .arrow-cell { background: var(--brand); color: white; border-color: var(--brand); }
@media (max-width: 900px) {
  .offer-row { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 24px 0; }
  .offer-row p, .offer-row .arrow-cell { display: none; }
  .offer-row .meta { text-align: right; }
}

/* ============ REVIERE GRID (Home) ============ */
.reviere-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.revier { position: relative; border-radius: 20px; overflow: hidden; display: block; }
.revier img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.revier:hover img { transform: scale(1.02); }
.revier-fallback { width: 100%; height: 100%; background: var(--ink); }

/* ============ REGION DETAIL (hero meta, intro + facts, matching trips) ============ */
.hero-meta-row { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta-row .hm .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px,2.4vw,32px); letter-spacing: -0.02em; }
.hero-meta-row .hm .l { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }

.revier-intro { background: var(--paper); padding: clamp(64px,8vw,112px) clamp(20px,4vw,80px); }
.ri-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px,5vw,80px); align-items: start; }
.ri-grid > .ri-text:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .ri-grid { grid-template-columns: 1fr; gap: 36px; } }
.ri-text .eyebrow { display: inline-block; font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; font-weight: 500; }
.ri-text h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.02; margin-bottom: 24px; }
.ri-text h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--brand); }
.ri-text p { color: var(--body); line-height: 1.7; font-size: 16px; margin-bottom: 16px; max-width: 62ch; }
/* The headings inside a region's description — six or seven of them on a long page.
   At the section heading's size, each with its italic accent word, they turned the
   text into a stack of headlines and the accent into wallpaper. In the text they are
   signposts: a step down, upright, and closer to the paragraph they head than to the
   one before. */
.ri-text .prose h2 {
  font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.015em; line-height: 1.2;
  margin: 48px 0 12px;
}
.ri-text .prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); margin: 24px 0 4px; }
.ri-text .prose :is(h2, h3) em { font-family: inherit; font-style: normal; font-weight: inherit; color: inherit; }
.ri-text .prose > :first-child { margin-top: 0; }
.facts { background: white; border: 1px solid var(--rule); border-radius: 20px; padding: 24px 28px; }
.facts h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.fact:first-of-type { border-top: 0; }
.fact .k { color: var(--ink-soft); }
.fact .v { font-weight: 500; color: var(--ink); text-align: right; }
.facts .btn { margin-top: 24px; width: 100%; justify-content: space-between; }

/* ============ WIND & WETTER (Revierseite) ============ */
/* Sits in the second column under the facts card. The rows are named explicitly:
   with align-items: start and auto placement, a second aside slides under the
   text block in column 1 instead. */
.ri-grid > .ri-text { grid-column: 1; grid-row: 1 / span 3; }
.ri-grid > .facts { grid-column: 2; grid-row: 1; }
.ri-grid > .wx { grid-column: 2; grid-row: 2; }
@media (max-width: 900px) {
  .ri-grid > .ri-text, .ri-grid > .facts, .ri-grid > .wx { grid-column: 1; grid-row: auto; }
}

/* A card like the facts above it, not a blue panel. As a brand gradient with a
   decorative disc it was the loudest surface on a region page, louder than the
   photographs, for a forecast that is supporting detail. The blue stays where it
   carries the reading: the Beaufort scale. */
.wx {
  border-radius: 20px; overflow: hidden; color: var(--ink);
  background: white; border: 1px solid var(--rule);
  position: relative;
}
.wx-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--rule);
}
.wx-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.wx-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-soft);
}
/* Still, not pulsing: the figures are a forecast fetched now and then, and a dot
   that beats says live. */
.wx-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; flex: none; }
.wx-body { padding: 24px; }
.wx-now { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.wx-glyph {
  width: 56px; height: 56px; flex: none; border-radius: 12px;
  background: var(--paper); display: grid; place-items: center; color: var(--ink);
}
.wx-glyph .sky { width: 28px; height: 28px; }
.wx-day .g .sky { width: 18px; height: 18px; color: var(--ink-soft); }
.wx-loc { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.wx-t { font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wx-desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.wx-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  border-top: 1px solid var(--rule); padding-top: 16px;
}
.wx-stats .v { font-family: var(--font-display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.wx-stats .l { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* Beaufort: what the measurement means, which is the point of the panel. */
.wx-bft { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.wx-bft-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.wx-bft-top .k { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.wx-bft-top .v { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.wx-scale { display: flex; gap: 4px; }
.wx-scale span { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-soft); box-shadow: inset 0 0 0 1px var(--rule); }
.wx-scale span.on { background: var(--brand); box-shadow: none; }
.wx-scale span.peak { background: var(--brand-deep); box-shadow: none; }
.wx-bft-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 8px; }

/* Five-day outlook */
.wx-fc {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.wx-day { text-align: center; padding: 8px 2px; border-radius: 8px; }
.wx-day.today { background: var(--paper); }
.wx-day .d { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.wx-day .g { display: grid; place-items: center; height: 18px; margin: 8px 0 4px; }
.wx-day .w { font-family: var(--font-display); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.wx-day .wd { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* The footnote is not optional: a weather panel on a page you can book from
   reads as a promise otherwise. */
.wx-foot {
  font-size: 12px; line-height: 1.5; color: var(--ink-soft);
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule);
}

.matches { background: var(--paper); padding: clamp(64px,8vw,112px) clamp(20px,4vw,80px) clamp(48px,6vw,96px); }
.matches-inner { max-width: 1500px; margin: 0 auto; }
.matches .section-head { margin-bottom: clamp(32px,4vw,56px); padding-bottom: 28px; border-bottom: 1px solid var(--rule-strong); }
/* A list under a region, not a section of its own: its heading is set a size down
   from the page's section heads, which at 72px announced five rows of dates. */
.matches .section-head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.trow {
  display: grid; grid-template-columns: 120px 1.5fr 1fr 130px 36px; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: center;
  cursor: pointer; transition: background-color 0.16s var(--ease);
}
.trow:hover { background: rgba(40,113,224,0.04); }
.trow .d { font-family: var(--mono); font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.trow .d small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.trow .nm { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px,1.5vw,21px); letter-spacing: -0.01em; }
.trow .nm small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.trow .col { font-size: 13px; color: var(--ink-soft); }
.trow .col strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.trow .price { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px,1.6vw,22px); text-align: right; font-variant-numeric: tabular-nums; }
.trow .ac { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease); font-size: 0; line-height: 0; }
.trow .ac::before {
  content: ''; display: block; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5'/%3E%3Cpath d='M5.5 4.5h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.trow:hover .ac { background: var(--brand); color: white; border-color: var(--brand); }
/* On a phone the kind stays — "Mitsegeln, Anfänger ok" is the line a beginner reads
   the row for — and moves under the name; only the arrow goes. */
@media (max-width: 900px) {
  .trow { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .trow .ac { display: none; }
  .trow .nm { grid-column: 1 / -1; order: -1; }
  .trow .col { grid-column: 1 / -1; order: 1; }
  .trow .col strong { display: inline; margin-right: 8px; }
}

/* ============ PHOTO GALLERY (band + lightbox) ============ */
.bands { background: var(--ink); padding: clamp(16px,2.5vw,28px) 0; overflow: hidden; }
.bands-head {
  max-width: 1500px; margin: 0 auto clamp(8px,1.5vw,16px);
  padding: 0 clamp(20px,4vw,80px);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.bands-head .t { font-family: var(--font-display); font-weight: 600; color: white; font-size: clamp(18px,2vw,26px); letter-spacing: -0.01em; }
.bands-head .h { font-size: 13px; color: rgba(255,255,255,0.6); }
/* A row the visitor scrolls, not one that scrolls past them. It ran as an endless
   ticker, with a line beside it explaining that hovering stops it — a control for
   switching off the motion is the motion saying it is in the way. Now the row holds
   still, snaps photo by photo under a swipe or the trackpad, and starts flush with
   the page's text. */
.band {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: clamp(20px,4vw,80px);
  padding: 0 clamp(20px,4vw,80px) 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.band + .band { margin-top: 16px; }
.bshot {
  position: relative; flex: 0 0 auto;
  width: clamp(220px,26vw,340px); height: clamp(148px,17vw,220px);
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: rgba(255,255,255,0.05); scroll-snap-align: start;
  padding: 0; border: 0; appearance: none; -webkit-appearance: none;
}
.bshot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.bshot:hover img { transform: scale(1.02); }
.bshot::after { content:''; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); border-radius:12px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,18,32,0.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: clamp(20px,4vw,64px); opacity: 0; transition: opacity 0.3s ease; }
.lightbox.open { display: flex; }
.lightbox.show { opacity: 1; }
.lb-stage { position: relative; max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lb-img-wrap { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 78vh; border-radius: 14px; display: block; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); transform: scale(0.97); opacity: 0; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease; }
.lightbox.show .lb-img { transform: scale(1); opacity: 1; }
.lb-meta { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.85); font-size: 14px; }
.lb-meta .lb-tag { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 6px; }
.lb-meta .lb-count { color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: white; font-size: 22px; display: grid; place-items: center; transition: background 0.2s; backdrop-filter: blur(8px); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,0.25); }
/* An explicit display would otherwise beat the browser's [hidden] rule. */
.lb-btn[hidden] { display: none; }
.lb-prev { left: -8px; }
.lb-next { right: -8px; }
@media (max-width: 760px) { .lb-prev { left: 0; } .lb-next { right: 0; } }
.lb-close { position: fixed; top: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: white; font-size: 22px; display: grid; place-items: center; transition: background 0.2s; backdrop-filter: blur(8px); cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* ============ GALLERY PAGE (story rows) ============ */
/* The first story's own padding is the gap under the banner; the list adding its
   own on top made 180px of nothing before the first photograph. */
.stories { background: var(--paper); padding: 0 0 clamp(48px,6vw,96px); }
/* minmax(0, …) on both tracks, not 1fr: a 1fr track will not shrink below the
   widest thing in it, and the thumbnail strip — a scrolling row of fixed 180px
   tiles — is as wide as all its tiles together. On a phone that pushed the single
   column past the screen and cut every title and picture off on the right. */
.story {
  max-width: 1500px; margin: 0 auto;
  padding: clamp(40px,5vw,72px) clamp(20px,4vw,80px);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: clamp(24px,3vw,48px);
  align-items: center;
}
.story + .story { border-top: 1px solid var(--rule); }
/* Every other story turns round, photograph first. The old rule reached for the
   photograph inside its column and so only swapped it with its own thumbnails —
   the row never turned, and the strip sat above the picture on every second one. */
.story:nth-child(even) { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
.story:nth-child(even) .story-head { order: 2; }
@media (max-width: 900px) {
  .story, .story:nth-child(even) { grid-template-columns: minmax(0,1fr); }
  .story:nth-child(even) .story-head { order: 0; }
}

/* The region's position, the logbook way — see .revier-label .pos. */
.story-head .pos {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; margin-bottom: 12px;
}
.story-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px,3.4vw,48px); letter-spacing: -0.025em; line-height: 1.02;
  color: var(--ink); margin-bottom: 16px;
}
.story-head h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--brand); }
.story-head p { color: var(--body); line-height: 1.6; font-size: 15px; max-width: 46ch; margin-bottom: 16px; }
.story-head .tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--brand);
}

.sstrip-wrap { display: flex; flex-direction: column; min-width: 0; }
.story-feature {
  position: relative; display: block; width: 100%;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/11; background: var(--paper-soft); border: 1px solid var(--rule);
  cursor: zoom-in; padding: 0; appearance: none; -webkit-appearance: none;
}
.story-feature img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.story-feature:hover img { transform: scale(1.02); }

/* The thumbnails as a row of equal thirds under the photograph, as wide as it.
   As a strip of fixed 180px tiles they stopped short on a wide screen and left an
   empty gap on the right, and ran off the edge on a narrow one. */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.strip .sshot {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  cursor: zoom-in; background: var(--paper-soft);
  padding: 0; border: 0; appearance: none; -webkit-appearance: none;
}
.strip .sshot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.strip .sshot:hover img { transform: scale(1.02); }
.revier::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
}
.revier-label {
  position: absolute; left: 24px; right: 24px; bottom: 24px; color: white; z-index: 2;
}
/* Where the region lies, in the logbook's notation — 28° 55′ N · 13° 42′ W. This is
   the site's one small detail of its own: a sailing school marks a place the way a
   chart does. It took the place of a running number, 01 to 16, which said only the
   order the tiles happened to be in. A region without a position shows nothing here
   rather than a number. */
.revier-label .pos {
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.8);
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.revier-label h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 4px;
}
.revier-label .sub { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.88); }
.revier-large { grid-column: span 3; grid-row: span 2; }
.revier-large .revier-label h3 { font-size: 36px; }
/* Every non-large tile spans half the grid, so the layout generalises to any
   number of data-driven regions: the first tile is large, the rest fill in
   two per row. */
.revier:not(.revier-large) { grid-column: span 3; }
/* A count that leaves the last tile alone in its row gives it the whole row, rather
   than half a row beside a hole. Beside the large tile the rest come in pairs, so
   the odd one out is the last when the total is even. */
@media (min-width: 901px) {
  .reviere-grid .revier:not(.revier-large):last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* Narrow layouts. Both rules are written as `.reviere-grid .revier` on purpose:
   the rule above is `.revier:not(.revier-large)`, and :not() carries the
   specificity of what is inside it — 0,2,0 against the 0,1,0 of a bare .revier.
   So the override that used to live here never applied to anything but the large
   tile, and the result was the one the eye catches immediately: the first region
   half the width of the page and every one after it full width.

   Two columns from a tablet down, one on a phone. Two 180px tiles side by side
   cannot hold a region's name and its list of seas. */
@media (max-width: 900px) {
  .reviere-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .reviere-grid .revier { grid-column: span 1; grid-row: auto; }
  .reviere-grid .revier:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .reviere-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============ YACHT (Home) ============ */
.yacht { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--paper-soft); }
.yacht-card {
  border-radius: 24px; overflow: hidden;
  background: white;
  display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}
@media (max-width: 900px) { .yacht-card { grid-template-columns: 1fr; } }
.yacht-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.yacht-content { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.yacht-content h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.025em; line-height: 1;
}
.yacht-content h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
.yacht-content p { color: var(--body); line-height: 1.6; max-width: 48ch; font-size: 16px; }
/* Columns at least as wide as "Elan 434 Impression" at this size, so a spec does
   not break over two lines; a narrow card drops to one column instead. */
.yacht-specs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 20px 32px;
  border-top: 1px solid var(--rule); padding-top: 24px;
}
.yacht-specs .v {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.yacht-specs .l { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ============ CONTACT (Home) ============ */
.contact { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--paper); }
/* Three blocks placed by name, because the narrow layout wants a different order
   than the wide one. Wide: the invitation and the details stacked in the left
   column, the form beside them. Narrow: the invitation, then the form, then the
   details — the telephone number is the fallback for somebody who does not want to
   type into a form, so it belongs after the form and not in front of it.

   Named areas rather than `order`, because the details sit inside the intro's own
   flow on the wide layout and an order value cannot reach into a parent. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-areas:
    "intro form"
    "info  form";
  column-gap: 64px;
  row-gap: 0;
  align-content: start;
}
.contact-intro { grid-area: intro; }
.contact-info { grid-area: info; }
.contact-form { grid-area: form; }
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "form"
      "info";
    row-gap: 32px;
  }
}
.contact-intro h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 4.5vw, 60px); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 20px;
}
.contact-intro h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
.contact-intro p { color: var(--body); line-height: 1.6; max-width: 42ch; font-size: 16px; margin-bottom: 32px; }
.contact-info {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.contact-info .item .l {
  font-size: 12px; color: var(--ink-soft); margin-bottom: 4px;
}
.contact-info .item .v {
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; color: var(--ink);
}
.contact-form {
  background: white; border-radius: 24px;
  padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 20px;
}
.form-eyebrow {
  font-size: 12px; color: var(--ink-soft); margin-bottom: 8px;
}
.contact-form h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 8px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.16s var(--ease);
}
.field:focus-within { border-color: var(--brand); }
.field .l { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.field input, .field textarea { font-size: 15px; color: var(--ink); }

/* ============ LINKED TRIP ON THE CONTACT FORM ============ */
/* The card is rendered only when there is a trip, so it needs no shown/hidden
   state of its own — the server has already decided. */
.tref-card {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid rgba(40,113,224,0.28);
  background: rgba(40,113,224,0.06); border-radius: 16px;
}
@media (max-width: 560px) { .tref-card { grid-template-columns: 52px 1fr; } }
.tref-thumb { width: 62px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--paper-soft); }
@media (max-width: 560px) { .tref-thumb { width: 52px; height: 44px; } }
.tref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tref-body { min-width: 0; }
.tref-kick {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--brand); font-weight: 500; margin-bottom: 4px;
}
.tref-kick .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
/* Needs to be a block: as an inline span, overflow and ellipsis do not apply and a
   long trip name grows out of the card. */
.tref-name {
  display: block; min-width: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  line-height: 1.2; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tref-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px;
  font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.tref-meta b { color: var(--ink); font-weight: 500; }
/* The separator belongs between two values, so it is drawn from the second one on:
   a trip without a price then leaves no dangling dot. */
.tref-meta > span + span::before { content: '·'; opacity: 0.4; margin-right: 10px; }
.tref-cap {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 7px;
  font-size: 13px; font-weight: 500;
}
.tref-cap .cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative; }
/* The halo inherits the state colour instead of repeating it per state. */
.tref-cap .cdot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: inherit; opacity: 0.22;
}
/* Darkened against the light card for AA contrast — not the calendar's colours. */
.tref-cap.free  { color: #0f7a45; }
.tref-cap.free  .cdot { background: #17a45f; }
.tref-cap.tight { color: #8a6100; }
.tref-cap.tight .cdot { background: #e0a020; }
.tref-cap.full  { color: #a82a2a; }
.tref-cap.full  .cdot { background: #d64545; }
/* Sold out reframes the whole card: the form promises a waiting list, not a place. */
.tref-card.is-full { border-color: rgba(214,69,69,0.3); background: rgba(214,69,69,0.05); }
.tref-card.is-full .tref-kick { color: #d64545; }
.tref-card.is-full .tref-kick .dot { background: #d64545; }
.tref-drop {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(15,29,46,0.16);
  background: white; color: var(--ink-soft); font-size: 15px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
  text-decoration: none;
}
.tref-drop:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 560px) { .tref-drop { grid-column: 2; justify-self: start; margin-top: 8px; } }
.field textarea { resize: vertical; min-height: 90px; }
.chips-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  padding: 8px 16px; background: white;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 13px; color: var(--body);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active,
input:checked + .chip { background: var(--brand); color: white; border-color: var(--brand); }
input:focus-visible + .chip { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* The field only a program fills in (formguard.go). Off the page rather than
   display:none, which a program can read as "skip this". */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* A note under a pair of fields, explaining what the pair is for. Only the flexible
   window uses one: its two date fields are the question rather than the answer, and
   the range it allows has to be readable without opening the picker. Sits tight under
   the row it belongs to, against the row's own gap. */
.field-note {
  margin-top: -8px;
  font-size: 12px; line-height: 1.45; color: var(--ink-soft);
}

.submit-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 4px;
}
.submit-note { font-size: 12px; color: var(--ink-soft); max-width: 28ch; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px; min-height: 48px;
  background: var(--ink); color: white;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), transform 0.12s var(--ease);
}
.submit-btn:hover { background: color-mix(in srgb, var(--ink) 85%, white); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn .arr {
  width: 32px; height: 32px; background: white; color: var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0;
}
/* Hide the Unicode glyph fallback; draw a crisp, centered SVG arrow (as a mask
   so it takes the circle's text color). Matches .btn .arr / .nav-cta .arr. */
.submit-btn .arr::before {
  content: ''; display: block; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Still while the request is out: one click is one enquiry. No pulse — the answer
   comes back at once now, and a pulse that short looked like something broken. */
.submit-btn.htmx-request {
  pointer-events: none;
}

/* ============ CONTACT SUCCESS ============ */
.thanks-wrap.contact-form {
  display: grid;
  padding: 0;
  border: none;
  gap: 0;
  background: white;
  overflow: hidden;
}
.thanks {
  display: flex;
  align-items: center; justify-content: center;
  padding: clamp(28px, 3.5vw, 48px);
}
.thanks-card {
  position: relative;
  background: transparent;
  padding: clamp(20px, 3vw, 36px);
  max-width: 560px; width: 100%;
  text-align: center;
}

/* mark: ring-draw → disc-fill → check-draw → pulse-rings */
.thanks-mark {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 28px;
}
.thanks-mark svg {
  position: relative; z-index: 1;
  width: 96px; height: 96px; display: block;
  transform: rotate(-90deg);
}
.thanks-mark .ring-draw {
  fill: none; stroke: var(--brand); stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 226; stroke-dashoffset: 226;
  animation: ring-draw 0.62s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.thanks-mark .disc-fill {
  fill: var(--brand); opacity: 0;
  animation: disc-fade 0.34s ease 0.62s forwards;
}
@keyframes disc-fade { to { opacity: 1; } }
.thanks-mark .mark-check {
  fill: none; stroke: white; stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 52; stroke-dashoffset: 52;
  animation: draw 0.42s cubic-bezier(0.65, 0, 0.45, 1) 0.92s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.thanks-mark .pulse-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0; pointer-events: none;
  animation: ring-pulse 1.1s ease-out 1.2s 2;
}
.thanks-mark .pulse-ring.p2 { animation-delay: 1.4s; }
.thanks-mark .pulse-ring.p3 { animation-delay: 1.6s; }
@keyframes ring-pulse {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

/* content rises staggered after mark completes */
.thanks-card .eyebrow,
.thanks-card h3,
.thanks-card > p,
.thanks-card .summary,
.thanks-card .actions,
.thanks-card .reply-note {
  opacity: 0; transform: translateY(10px);
}
.thanks-card .eyebrow  { animation: rise 0.5s ease 1.85s forwards; }
.thanks-card h3        { animation: rise 0.5s ease 1.95s forwards; }
.thanks-card > p       { animation: rise 0.5s ease 2.05s forwards; }
.thanks-card .summary  { animation: rise 0.5s ease 2.15s forwards; }
.thanks-card .actions  { animation: rise 0.5s ease 2.25s forwards; }
.thanks-card .reply-note { animation: rise 0.5s ease 2.35s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.thanks-card .eyebrow {
  color: var(--brand); display: inline-block; margin-bottom: 12px;
}
.thanks-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); margin-bottom: 14px;
}
.thanks-card h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
.thanks-card p {
  color: var(--ink-soft); line-height: 1.6; font-size: 16px;
  max-width: 38ch; margin: 0 auto 28px;
}
.thanks-card .summary {
  background: var(--paper-warm, var(--paper));
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 18px; margin-bottom: 26px;
  text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  font-size: 13px;
}
.thanks-card .summary .k { color: var(--ink-soft); }
.thanks-card .summary .v { color: var(--ink); font-weight: 500; text-align: right; }
.thanks-card .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.thanks-card .actions a, .thanks-card .actions button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.thanks-card .actions .primary { background: var(--ink); color: white; }
.thanks-card .actions .primary:hover { background: var(--brand); }
.thanks-card .actions .ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.thanks-card .actions .ghost:hover { border-color: var(--ink); }
.thanks-card .reply-note {
  margin-top: 18px; font-size: 12px; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
/* A still dot. It blinked, which says something is happening now; the line beside
   it is a promise about the next day. */
.thanks-card .reply-note .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
}

@media (prefers-reduced-motion: reduce) {
  .thanks-card, .thanks-card .eyebrow, .thanks-card h3, .thanks-card > p,
  .thanks-card .summary, .thanks-card .actions, .thanks-card .reply-note,
  .thanks-mark .ring-draw, .thanks-mark .disc-fill, .thanks-mark .mark-check,
  .thanks-mark .pulse-ring {
    animation: none !important; transition: none !important;
    transform: none !important; opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ============ MANIFESTO (About) ============ */
.manifesto { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--paper); }
.manifesto-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; } }
/* The heading stays in view beside the list it heads. It used to scroll away with
   the first principle and leave 600px of empty column beside the other three. */
@media (min-width: 901px) {
  .manifesto-grid > :first-child { position: sticky; top: 24px; }
}
.manifesto h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5vw, 68px); line-height: 1;
  letter-spacing: -0.03em;
}
.manifesto h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
.principles { display: flex; flex-direction: column; }
/* No number column: the principles are not steps, and counting them 01–04 in blue
   gave the list an order it does not have. */
.principle {
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.principle:first-child { border-top: 1px solid var(--rule); }
.principle h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 8px; color: var(--ink);
}
.principle p { color: var(--body); line-height: 1.6; font-size: 15px; max-width: 60ch; }

/* ============ CREW (About) ============ */

/* Three equal columns: the two skippers and a dark tile that closes the row.
   Two cards in a grid of three would stand beside a gap, and the alternative —
   inventing a third face — is the one thing a page about who is on board may not do.

   align-items: start, so the tile keeps its own height instead of being stretched to
   whichever portrait card is tallest. */
.crew { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--paper-soft); }
.crew-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1180px; align-items: start;
}
/* Two columns first — the tile drops to the second row and fills it — then one. */
@media (max-width: 860px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .crew-grid { grid-template-columns: 1fr; } }

.crew-card {
  background: white; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
}

/* The photograph sits inset in the card rather than bleeding to its edges, and the
   card's own white shows around it. */
.crew-img { position: relative; padding: 24px 24px 0; background: white; }

/* Narrow the box, do not crop the picture.

   The design's rule: the two portraits are composed differently — one from the
   shoulders, one close up — and forcing them to a common eye line with
   object-position, or masking them into circles, makes them read as a pair that
   failed. Narrowing the box to three quarters of the card leaves both uncropped and
   lets them read as two photographs. No object-position anywhere here.

   The design assumed square sources (420×420) and therefore a 1:1 box. Ours are not:
   243×319 and 451×610, both upright. A square box would centre-crop an upright
   photograph — through the forehead and the chin, which is the very thing the rule
   above is against. So the box takes the orientation the pictures actually have. At
   3:4 the two ratios (0.762 and 0.739) lose about a percent each, which is nothing;
   at 1:1 they would lose a quarter of their height.

   Square sources would be better and this rule would then read 1 / 1. */
.crew-portrait {
  width: 74%; margin: 0 auto;
  aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--paper-soft); border-radius: 12px;
  /* Grid, so a member whose photograph has not arrived gets their placeholder in the
     middle of the box rather than in its corner. */
  display: grid; place-items: center;
}
.crew-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A hairline as the foot of the picture, running the full width of the card. It
   was a four-pixel stripe in a blue gradient, which made the one decorative colour
   on a card about two people. */
.crew-img::after {
  content: ''; display: block; height: 1px; margin: 24px -24px 0;
  background: var(--rule);
}

/* A member whose photograph has not arrived yet. In the portrait box, so the card
   keeps its shape and the row does not go ragged over a missing file. */
.crew-portrait .ph-tag {
  font-size: 12px; color: rgba(15,29,46,0.55);
  border: 1px dashed rgba(15,29,46,0.3);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.5);
  text-align: center;
}

.crew-card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.crew-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em; line-height: 1.1;
}
.role { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.crew-card p { color: var(--body); line-height: 1.55; font-size: 14px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.creds span {
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--rule); padding: 4px 8px; border-radius: 6px;
}

/* The tile. Dark, centred in itself, and shorter than the cards beside it. */
.crew-note {
  background: var(--ink); color: white; border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.crew-note h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  letter-spacing: -0.015em; line-height: 1.15; color: white;
}
/* The emphasised word, as everywhere on this site — but in the warm accent rather
   than the brand blue, which on this dark ground would sit too close to the
   background to read as emphasis at all. */
.crew-note h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--warm);
}
.crew-note p { color: rgba(255,255,255,0.78); line-height: 1.6; font-size: 15px; }
.crew-note .n-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--warm);
  text-decoration: none;
}
.crew-note .n-link:hover { text-decoration: underline; }

/* ============ APPROACH (About) ============ */
.approach { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--ink); color: white; }
.approach .section-head h2 { color: white; }
.approach .section-head { border-bottom-color: rgba(255,255,255,0.16); }
.approach .eyebrow { color: rgba(255,255,255,0.6); }
.approach .eyebrow::before { background: rgba(255,255,255,0.4); }
.approach .section-head .lead { color: rgba(255,255,255,0.7); }
.ap-rows { display: flex; flex-direction: column; }
/* Step, title, text side by side across the full width, as the offers list on the
   front page does. With the title stacked over the text the rows stopped at 860px
   and left the right two fifths of the dark band empty. The step number stays —
   this is the order a week on board runs in — but as a small mono count rather than
   an orange figure the size of the headings. */
.ap-row {
  display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(0,1.4fr);
  gap: 32px; padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: baseline;
}
@media (max-width: 900px) {
  .ap-row { grid-template-columns: 40px minmax(0,1fr); gap: 8px 16px; }
  .ap-row p { grid-column: 2; }
}
.ap-row .n {
  font-family: var(--mono); font-size: 13px;
  color: var(--on-ink-soft); font-variant-numeric: tabular-nums;
}
.ap-row h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.015em; line-height: 1.2;
}
.ap-row p { color: rgba(255,255,255,0.78); line-height: 1.65; font-size: 15px; max-width: 65ch; }

/* ============ CONTACT CARD (About) ============ */
.contact-card { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 80px); background: var(--paper); }
.cc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--rule); border-radius: 24px; overflow: hidden;
  background: white;
}
@media (max-width: 800px) { .cc-grid { grid-template-columns: 1fr; } }
.cc-side { padding: clamp(32px, 5vw, 56px); }
.cc-side.dark { background: var(--ink); color: white; }
.cc-side.dark .eyebrow { color: rgba(255,255,255,0.65); }
.cc-side h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cc-side h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--warm); letter-spacing: -0.02em;
}
.cc-side p { line-height: 1.65; color: rgba(255,255,255,0.78); margin-bottom: 28px; max-width: 42ch; }
.cc-list { display: flex; flex-direction: column; gap: 16px; }
.cc-list .item .l {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 4px;
}
.cc-list .item .v {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; color: white;
}
.cc-side.light h3 { color: var(--ink); }
.cc-side.light h3 em { color: var(--brand); }
.cc-side.light p { color: var(--ink-soft); }
.cc-side.light .cc-list .item .l { color: var(--ink-soft); }
.cc-side.light .cc-list .item .v { color: var(--ink); }

/* ============ HERO VARIANTS ============ */

/* ============ FAQ ACCORDION ============ */
.faq-section {
  padding: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 80px) clamp(48px, 5vw, 64px);
}
.faq-group {
  max-width: 920px; margin: 0 auto 56px;
}
.faq-group:last-child { margin-bottom: 0; }
.faq-group-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.faq-group-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.faq-group-head h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--brand); letter-spacing: -0.02em;
}
/* The spacing stays put when a question opens. It used to grow from 22 to 28px and
   animate the change, which is padding — a layout property — in motion, so every
   row below jerked down in steps. */
details.qa {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
details.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 32px; gap: 24px;
  align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.3;
  color: var(--ink);
}
details.qa summary .toggle {
  width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  font-size: 16px; color: var(--ink-soft);
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
details.qa[open] summary .toggle {
  color: var(--ink); border-color: var(--ink);
  transform: rotate(45deg);
}
details.qa:hover summary .toggle { border-color: var(--ink); color: var(--ink); }
details.qa summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
details.qa .answer {
  margin-top: 16px;
  padding-right: 56px;
  color: var(--body);
  line-height: 1.7;
  font-size: 16px;
  max-width: 70ch;
}
details.qa .answer p + p { margin-top: 14px; }
details.qa .answer strong { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { details.qa .answer { padding-right: 0; } }
details.qa .answer a { color: var(--brand); border-bottom: 1px solid currentColor; }

/* ============ TRIP CALENDAR ============ */
.calendar { padding: clamp(64px, 8vw, 112px) clamp(20px, 4vw, 80px) clamp(24px, 3vw, 40px); background: var(--paper); }
.calendar .toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 24px; margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.calendar .filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.calendar .view-toggle {
  display: flex; border: 1px solid var(--rule-strong);
  border-radius: 999px; overflow: hidden; background: white;
}
.calendar .view-toggle button {
  padding: 8px 20px; font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
}
.calendar .view-toggle button.active { background: var(--ink); color: var(--paper-warm); }
.calendar .info-note {
  margin: 24px 0 40px; padding: 16px 20px;
  background: white; border: 1px solid var(--rule); border-radius: 12px;
  font-size: 14px; line-height: 1.6; color: var(--body);
}
/* The region's note is Markdown, so it arrives as paragraphs and may carry a link
   to the calendar. The paragraphs sit flush in the note; the link reads as one. */
.info-note p { margin: 0; }
.info-note p + p { margin-top: 8px; }
.info-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.month { margin-bottom: 56px; }
.month:last-child { margin-bottom: 0; }
.month-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(20,32,44,0.22);
}
.month-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* "2 Törns" — a count, set as one. */
.month-head .count {
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.month-head h3 .yr {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  color: var(--brand);
  margin-left: 4px;
}

.toern-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  /* Each row is addressable — the admin's crew list links straight at one — and a
     row landed on flush against the top of the window has lost the month heading
     that says which year it is in. */
  scroll-margin-top: 96px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(20,32,44,0.1);
  align-items: center;
  cursor: pointer;
  transition: padding 0.25s, background 0.25s;
  font-size: 14px;
  color: var(--ink);
}
/* The full row is the wide case, written as a min-width rule on purpose: as a
   top-level rule it would have the same specificity as the narrow one above and
   win by source order, leaving no narrow layout at all. */
@media (min-width: 1251px) {
  /* The name column has a floor of 300px and the fixed tracks were trimmed to pay
     for it: the special trips' titles are long ("Meilentörn Teneriffa ↔ Griechenland")
     and they must not wrap, because a wrapping title makes one row taller than the
     ones around it. A column added here has to be taken out of the fixed tracks
     again, not out of this one. */
  .toern-row {
    grid-template-columns: 84px 74px 100px minmax(300px, 1.5fr) 0.85fr 0.85fr 120px 112px 124px;
    gap: 16px;
  }
}
.toern-row .num .dnum { display: block; font-weight: 500; color: var(--ink); }
.toern-row .num .dyr { display: block; margin-top: 2px; }

.trow-thumb { width: 74px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--paper-soft); }
.trow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Zeitfenster ------------------------------------------------------------

   A stretch of season sold without a fixed departure. The same grid as a departure's
   row, cell for cell, because it belongs to the same calendar — what sets it apart is
   the badge and the first cell, which carries a word where a date would be.

   Deliberately not a dark card and no accent: a window is not a special trip. It is an
   ordinary row that happens to have no date yet, and it should look like one. */

/* "Flexibel" where a departure prints its day. The display face rather than the row's,
   because it stands in for a numeral and has to carry the same weight at a glance. */
.toern-row.win .num .dnum.dword {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brand-deep);
}

/* The badge in the title. The same mark as the banner's kicker above it — see
   .fb-kicker — so that the table of tariffs and the rows it prices read as one thing
   rather than two that happen to sit together. A word in the site's own type, not a
   mono label in capitals with an arrow glyph in front. */
.win-flag {
  display: flex; width: max-content; max-width: 100%;
  align-items: center;
  padding: 2px 8px; border-radius: 6px;
  border: 1px solid rgba(40,113,224,0.3);
  background: rgba(40,113,224,0.06);
  font-size: 12px; font-weight: 500; color: var(--brand-deep);
  margin-bottom: 8px;
}

/* Which tariff the amount above it came from. Quiet, because the figure is the claim
   and this only says which column of the table it was read out of. */
.toern-row.win .price small {
  display: block; margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 400; color: var(--ink-soft);
}

/* The cell a departure fills with its berths carries .cap here too: a window is full
   when no bookable run of days is left in it, and the reader should not have to learn
   a second vocabulary for the same question. Nothing of its own to declare. */

/* The block has no heading of its own: it is the same calendar, and a title over it
   would announce a second one. Without a rule it would sit flush against the banner
   with nothing between them. */
.month.windows { border-top: 1px solid rgba(20,32,44,0.1); padding-top: 8px; }

/* Availability. The dot's halo inherits the state colour through background:
   inherit, so a state is coloured in one place. */
.cap { display: flex; flex-direction: column; gap: 8px; }
.cap-top { display: flex; align-items: center; gap: 8px; }
.cap-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cap-label { font-size: 13px; font-weight: 500; white-space: nowrap; }

.cap.free .cap-dot { background: #16a34a; }
.cap.free .cap-label { color: #0f7a47; }
.cap.tight .cap-dot { background: #e0a020; }
.cap.tight .cap-label { color: #9a6c05; }
.cap.full .cap-dot { background: #d64545; }
.cap.full .cap-label { color: #a32f2f; }

/* The surface steps under the pointer and nothing moves. The row used to slide 14px
   to the right, which in a list of thirty dates is the whole calendar twitching as
   the pointer crosses it. */
.toern-row:hover { background: rgba(40,113,224,0.04); }
/* The date, the way the calendar's reader scans it: in the logbook mono, one figure
   under the other. */
.toern-row .num {
  font-family: var(--mono);
  font-size: 13px; font-weight: 400;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.toern-row .dates .d {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.toern-row .dates .small {
  font-size: 12px; color: var(--ink-soft); margin-top: 4px; font-weight: 400;
}
.toern-row .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.55vw, 21px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.toern-row .name small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400;
  color: var(--ink-soft);
  margin-top: 4px;
}
.toern-row .col { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.toern-row .col strong {
  display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px;
  font-size: 14px;
}
.toern-row .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* "Auf Anfrage" is a word, not an amount. Set at the amount's size it broke over
   two lines and made its row taller than the ones around it. */
.toern-row .price.on-request { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.toern-row .status {
  font-size: 13px;
  padding: 8px 16px; text-align: center; white-space: nowrap;
  border-radius: 999px;
  font-weight: 600;
}
.toern-row .status.free { background: var(--brand); color: white; }
.toern-row .status.few { background: #fff3e0; color: #b25600; border: 1px solid #ffd6a3; }
.toern-row .status.full { background: rgba(20,32,44,0.05); color: rgba(20,32,44,0.45); text-decoration: line-through; }
.toern-row .arrow-cell {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(20,32,44,0.2);
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--ink);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.toern-row:hover .arrow-cell { background: var(--brand); color: white; border-color: var(--brand); }


/* ============ TERMIN-BANNER ============

   Stands above the first month of the calendar and explains it: while there are no
   fixed dates, this is what a week would cost.

   Its ground sits deliberately between the page (--paper) and the dark special trip
   cards — darker than the page, much lighter than a card. A dark version was tried and
   dropped: it competes with the cards as soon as more than one of them is in the list.
   Warm grounds were tried and dropped too. */
/* One flat surface with a hairline. It had a blue-tinted gradient, a radial glow in
   its corner and a drop shadow, which made the explanation above the calendar the
   most decorated thing on the page. */
.flex-banner {
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: clamp(28px, 3.6vw, 48px);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 20px;
  display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.25fr);
  gap: clamp(24px, 3vw, 48px); align-items: start;
}
/* minmax(0, …), not 1fr: a 1fr track will not shrink below its widest content, and
   the table's headings do not wrap, so on a phone the single column grew past the
   screen and cut the heading, the text and the last price off on the right. */
@media (max-width: 980px) { .flex-banner { grid-template-columns: minmax(0,1fr); } }

.flex-banner h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2;
  letter-spacing: -0.015em; color: var(--ink); margin: 0 0 16px;
}
.flex-banner h2 em { font-style: normal; color: inherit; }
.flex-banner p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0 0 12px; }

/* The same mark as a window's badge in the rows below — see .win-flag. */
.fb-kicker {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 6px;
  border: 1px solid rgba(40,113,224,0.3); background: rgba(40,113,224,0.06);
  font-size: 12px; font-weight: 500; color: var(--brand-deep);
  margin-bottom: 16px;
}

/* Without this the table reads as a bookable offer. It is the sentence that says the
   dates are not fixed yet, and it is set apart so it is read before the prices. */
.fb-note {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
/* The emphasis in this line is a statement, not a stress: "Noch keine festen Termine"
   is the thing a reader has to take away before they read the table as an offer. The
   site's inline format writes *this* and gets an <em>, so it is made to read as bold
   here rather than asking the owner for markup the editor does not take. */
.fb-note b,
.fb-note em { font-style: normal; font-weight: 600; color: var(--ink); }

.fb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fb-table th {
  font-size: 12px; font-weight: 500;
  color: var(--ink-soft); text-align: left; padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.fb-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.fb-table th.num, .fb-table td.num { text-align: right; padding-right: 0; }
/* Both selectors, not one: the leisure cell has padding-right 0 so that the two
   amounts line up against each other, and without the left padding they run together
   as "690 €850 €". */
.fb-table th + th, .fb-table td + td { padding-left: 24px; }

.fb-table .rhythm { font-weight: 500; color: var(--ink); }
.fb-table .days { font-size: 12px; color: var(--ink-soft); }

/* Both the same size and weight, so the two are compared on one level; the leisure
   column is the one in the brand colour, because the point the banner makes is that
   a leisure trip is cheaper. */
.fb-table .p-free { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--brand-deep, #1a4ea8); }
.fb-table .p-sks  { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }

.fb-table .exam {
  font-size: 12px; font-weight: 500; color: #7a5418;
  border: 1px solid var(--rule-strong);
  border-radius: 6px; padding: 2px 8px; margin-left: 8px; white-space: nowrap;
}

/* On a phone the table is read row by row: the rhythm on a line of its own, the two
   prices under it side by side with their column names in front. Three columns of a
   table do not fit 350px with their headings, and shrinking them made both the
   headings and the amounts unreadable. */
@media (max-width: 560px) {
  .fb-table thead { display: none; }
  .fb-table, .fb-table tbody, .fb-table tr { display: block; }
  .fb-table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .fb-table td { display: inline-block; padding: 0; border: 0; }
  .fb-table td:first-child { display: block; margin-bottom: 8px; }
  .fb-table th + th, .fb-table td + td { padding-left: 0; }
  .fb-table td[data-label] { vertical-align: top; margin-right: 24px; text-align: left; }
  .fb-table td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-bottom: 2px;
  }
  .fb-table .exam { display: block; margin: 8px 0 0; width: max-content; }
}

/* ---- The row's own link, and the links that sit on top of it ----

   The row used to be one <a>. It cannot be any more: it now carries links of its own,
   and an anchor inside an anchor is not valid HTML — the browser closes the outer one
   where the inner begins, which quietly breaks the row from that point rightwards.

   So the row is a div, the title is the link, and the title's ::after is stretched
   over the whole row. The reader still clicks anywhere; a screen reader still hears
   the trip's name rather than "link". The further links are lifted above that sheet
   so that "Revier" reaches the region and not the enquiry form underneath. */
.toern-row { position: relative; }
.toern-row .row-link { color: inherit; }
.toern-row .row-link::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.toern-row .acts { position: relative; z-index: 2; }

/* ---- The further pages a row leads to ----

   Stacked under the "Anfragen" pill in the same grid column, not in a column of their
   own: a tenth track took the width the long special trip titles need. The cell has a
   floor so that a row with two links is no taller than a row with none. */
.toern-row .act-cell {
  display: flex; flex-direction: column; gap: 9px;
  align-items: stretch; justify-content: flex-start;
  min-height: 57px;
}
.toern-row .acts { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.toern-row .acts a {
  font-size: 12px; font-weight: 500; color: var(--ink-soft);
  border-bottom: 1px solid transparent; white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.toern-row .acts a:hover { color: var(--brand); border-bottom-color: currentColor; }

/* The narrow row. The date used to be dropped here along with the thumbnail and the
   kind, which left a calendar with no dates in it: what remained said "7 Tage, ab
   Samstag" — a duration and a weekday, on a page whose whole job is when. It is the
   first cell now, where it is read first.

   It sits here, after every rule it overrides, and that is the whole reason it works.
   It used to stand right under .toern-row, eleven lines below a comment warning about
   exactly this: a media query adds no specificity, so `.toern-row .price` further down
   the file beat `.toern-row .price` inside the query by source order alone. Measured at
   900px the price was still right-aligned and the date still 13px body type — two of
   the four rules had never applied since the day they were written.

   Anything added here has to stay below what it overrides. */
@media (max-width: 1250px) {
  .toern-row .trow-thumb,
  .toern-row .col.kind { display: none; }
  .toern-row .name { grid-column: span 2; }
  .toern-row .price { text-align: left; }
  .toern-row .num { font-size: 15px; font-weight: 500; color: var(--ink); }
  .toern-row .num .dnum, .toern-row .num .dyr { display: inline; }
  .toern-row .num .dyr { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--ink-soft); }

  .toern-row .act-cell { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; }
  .toern-row .acts { flex-direction: row; gap: 16px; }
}

/* ---- A departure of a special trip ----

   The dark card of its detail page, in the light list. Every theme sets exactly two
   things — the background and the accent — and every colour below is derived from
   them, so a new special trip is two values, never a new set of rules for text and
   badge.

   --ac is already set per world further up, where [data-spezial] is defined for the
   detail page; only the dark ground is added here. */
.toern-row.themed {
  /* The default ground, overridden per world below. It is here and not left to the
     per-world rules because a row is a special trip's whether or not anybody has
     styled its accent: an unknown one — an older document, a hand edit — would
     otherwise leave the background unset while the text is still white, which is a
     row nobody can read. --ac has had the same safety all along, from the plain
     [data-spezial] rule on the dossier pages. */
  --sp-bg: #16181d;

  overflow: hidden; border: none; border-radius: 16px;
  background: var(--sp-bg); isolation: isolate;

  /* The card reaches out past the list by exactly its own padding, so its columns
     stand where every other row's do. With the padding inside the list's width, the
     date, the price and the button all sat 24px in from the rows above and below —
     the button visibly shifted to the left. */
  padding: 24px; margin: 12px -24px;
}
@media (max-width: 760px) {
  .toern-row.themed { padding: 20px 16px; margin: 12px -16px; }
}
.toern-row.themed:hover { background: color-mix(in srgb, var(--sp-bg) 92%, white); }

.toern-row.themed .name,
.toern-row.themed .name .row-link,
.toern-row.themed .col strong,
.toern-row.themed .price,
.toern-row.themed .dates .d { color: #fff; }

.toern-row.themed .name small,
.toern-row.themed .col,
.toern-row.themed .dates .small,
.toern-row.themed .num .dyr { color: rgba(255,255,255,0.58); }

/* The theme shows on the date and on the row's button. */
.toern-row.themed .num .dnum { color: var(--ac); }
.toern-row.themed .status.free { background: var(--ac); color: var(--sp-bg); }
.toern-row.themed .acts a { color: rgba(255,255,255,0.65); }
.toern-row.themed .acts a:hover { color: white; }

/* The availability indicator keeps its three states but not its three colours: the
   greens and ambers are chosen against a white page and sit on a dark card as three
   shades of the same muddiness. On a card the state is carried by the wording. */
.toern-row.themed .cap-label { color: rgba(255,255,255,0.75); }
.toern-row.themed .cap-dot { background: rgba(255,255,255,0.75); }
.toern-row.themed .cap.full .cap-label { color: rgba(255,255,255,0.45); }
.toern-row.themed .price.on-request { color: rgba(255,255,255,0.75); }
.toern-row.themed .arrow-cell { border-color: rgba(255,255,255,0.25); color: #fff; }

/* Every themed row is the same height whatever its title does. The title may wrap —
   cutting it with an ellipsis was tried and shortened "Meilentörn Teneriffa ↔ …" at
   any width under about 1900px — so the floor is on the cell and the subtitle is held
   to one line. */
.toern-row.themed .name {
  min-width: 0; min-height: 92px;
  display: flex; flex-direction: column; justify-content: center;
}
.toern-row.themed .name > small {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* The dark grounds. Paired with the accents defined where [data-spezial] is. */
.toern-row[data-spezial="medicine"]     { --sp-bg: #16181d; }
.toern-row[data-spezial="delivery"]     { --sp-bg: #06253b; }
.toern-row[data-spezial="newyear"]      { --sp-bg: #0b1020; }
.toern-row[data-spezial="christmas"]    { --sp-bg: #14231c; }
.toern-row[data-spezial="carnival"]     { --sp-bg: #241528; }
.toern-row[data-spezial="heavyweather"] { --sp-bg: #18232d; }
.toern-row[data-spezial="marina"]       { --sp-bg: #101a22; }

/* ---- The badge ----

   Each row says what kind of thing it is in the words of its own page — the special
   trip's category — with a dot in the world's accent in front of it.

   That dot and the date are all the decoration a themed row has. It used to carry a
   layer of its own per world: radial glows, a field of twinkling stars, stripes,
   a pulsing dot and a glyph — ✦, ⚓, ≋, ☾ — in a mono label in capitals. In a list
   of rows the dark card is already the difference; the rest was the row competing
   with the trips around it.

   display:flex with width:max-content rather than inline-flex, or it joins the title's
   line instead of standing above it. */
.sp-flag {
  display: flex; width: max-content; max-width: 100%;
  align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.sp-flag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); flex: none; }

/* A second, later copy of the narrow row lived here, at a breakpoint 150px lower,
   and it hid the date again — so taking the date out of the rule above changed
   nothing below 1100px, which is every phone. What it set beyond that was either
   the base rule repeated verbatim or a column that is not in this row.
   The one narrow rule is the one at 1250px. */
@media (max-width: 1100px) {
  .toern-row .arrow-cell { display: none; }
}

/* ============ LINKS IN GESCHRIEBENEM TEXT ============

   Everything the owner writes in Markdown is wrapped in .prose (see prose.templ), so
   a link reads the same in a FAQ answer, a region's description, an article and a
   dossier page. It did not: three of those styled links and the other five left them
   at the site's default of inherited colour and no underline, which is a link that
   looks exactly like the sentence it sits in.

   Colour and a thin underline, because the colour cannot carry it alone — inside a
   dossier the accent is already the page's own colour, and on a printed or
   colour-blind reading a hue is not a signal. The underline is drawn light and comes
   up to full strength under the pointer.

   It was bold italic instead, with the underline only on hover. Bold italic leans
   its last letter out over the space after it, and next to the next word that space
   all but disappeared: "Marina Rubicón liegt" read as "Marina Rubicónliegt". */
.prose a {
  font-weight: 500;
  font-style: normal;
  /* The page's accent where there is one — a dossier sets --ac for its whole world —
     and the brand colour everywhere else. */
  color: var(--ac, var(--brand));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.16s var(--ease);
}
.prose a:hover,
.prose a:focus-visible { text-decoration-color: currentColor; }
/* Owners write a link as ***[Peter Pabst](…)*** to make it stand out, which wraps
   it in em and strong. The link is the emphasis; the wrapping is not repeated. */
.prose a :is(em, strong),
.prose :is(em, strong):has(> a:only-child),
.prose :is(em, strong):has(> :is(em, strong) > a:only-child) { font-style: normal; font-weight: inherit; }

/* ============ BLOG / AKTUELLES ============ */
.featured { padding: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 80px) clamp(28px, 4vw, 60px); }
.featured-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; min-height: 420px;
  border-radius: 24px; overflow: hidden; background: var(--ink);
}
@media (max-width: 900px) { .featured-card { grid-template-columns: 1fr; } }
.featured-img { position: relative; min-height: 220px; }
.featured-body {
  padding: clamp(32px, 4vw, 56px); color: white;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.featured-body .meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.65); }
.featured-body .meta .cat { color: white; font-weight: 500; font-size: 13px; }
.featured-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.featured-body p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.78); max-width: 50ch; }
.featured-body .read-more {
  display: inline-flex; align-items: center; gap: 8px; color: white; font-weight: 500; font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.4); width: fit-content; padding-bottom: 4px; margin-top: 8px;
  transition: border-color 0.16s var(--ease);
}
/* The whole card is the link now, so its cue lights up when the card is hovered
   rather than only when the two words are. Both cards keep the same geometry: the
   element changed from an article to an anchor, and grid and flex work the same on
   one — the global `a` rule already takes the underline and the colour off. */
.featured-card:hover .read-more { border-color: white; }
.post:hover .more { text-decoration: underline; }

.news-grid {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 80px) clamp(48px, 6vw, 90px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px;
}
/* A hover is the border darkening. The card used to lift 4px with a large shadow,
   so a grid of twelve articles bobbed as the pointer crossed it. */
.post {
  background: white; border-radius: 20px; overflow: hidden; border: 1px solid var(--rule);
  display: flex; flex-direction: column; transition: border-color 0.16s var(--ease);
}
.post:hover { border-color: var(--rule-strong); }
.post-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
/* The ground a card shows where the post has no picture — the picture, where there is
   one, lies on top of it and covers it whole. One ground for all of them: there were
   six, chosen per post, and choosing between them was work nobody was doing for a
   surface almost nobody sees. */
.featured-img, .post-img { background: var(--ink); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-body .meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--ink-soft); }
.post-body .meta .dot { width: 3px; height: 3px; background: var(--ink-soft); border-radius: 50%; opacity: 0.6; }
.post-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.post-body p { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 40ch; }
.post-body .more { margin-top: auto; color: var(--brand); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.post-img img, .featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============ BLOG ARTICLE (detail) ============ */
.article { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 32px); }
.article-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }
.article-meta .cat { color: var(--ink); font-weight: 500; font-size: 13px; }
.article-body { font-size: 17px; line-height: 1.7; color: var(--ink); }
.article-body p { margin: 0 0 16px; }
.article-body p.lead { font-size: 19px; color: var(--body); }
/* A heading inside running text, in scale with the text around it.
   It was 45px flat: nearly a section heading, more than twice its own h3, in a
   body set at 17px — and unclamped, so a phone got the same 45px. What a `##` in
   a post means is "a new part of this article", which is a step above the 20px
   h3 and well below the page's own heading. */
.article-body h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.015em; line-height: 1.2;
  margin: 40px 0 12px;
}
.article-body h3 { font-weight: 600; font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.article .back { display: inline-flex; margin-top: 40px; color: var(--brand); font-weight: 500; font-size: 14px; }

/* ============ AUSBILDUNG / COURSE PAGES ============ */

/* Register hero — large number + headline (image-free) */
.hero-reg { background: var(--ink); overflow: hidden; }
.hero-reg::after { display: none; }
.hero-reg .hero-body { position: relative; z-index: 5; }
.hero-reg .grid2 { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px,5vw,72px); align-items: end; }
@media (max-width:760px){ .hero-reg .grid2 { grid-template-columns: 1fr; } }
.hero-reg .bignum { font-family: var(--font-display); font-weight: 600; font-size: clamp(120px,20vw,280px); line-height:0.8; letter-spacing:-0.03em; color: var(--brand-bright); font-variant-numeric: tabular-nums; }
.hero-reg .bignum small { display:block; font-size: 16px; color: rgba(255,255,255,0.65); font-weight:500; margin-top: 16px; letter-spacing: 0; }
.hero-reg h1 { font-size: clamp(40px,6vw,96px); margin-bottom:16px; }
/* The course's own words for itself, set as a quiet line under the headline rather
   than a row of capsules in capitals. */
.hero-reg .reg { list-style:none; display:flex; flex-wrap:wrap; gap:8px 0; margin-bottom:24px; }
.hero-reg .reg li { font-size:14px; font-weight:500; color:rgba(255,255,255,0.75); }
.hero-reg .reg li + li::before { content: '·'; margin: 0 12px; color: rgba(255,255,255,0.4); }
/* Reset the white card look inherited from the generic .facts (region intro),
   which would otherwise render white fact text invisibly on a white box.

   A grid of equal columns, not a wrapping row: wrapped, each line broke at a
   different place, so on a phone one value sat under another at no common edge. */
.hero-reg .facts { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:16px 32px; margin-top:24px; background:transparent; border:0; border-top:1px solid rgba(255,255,255,0.18); border-radius:0; padding:24px 0 0; }
.hero-reg .facts .f .v { font-family:var(--font-display); font-weight:600; font-size:clamp(18px,1.8vw,24px); letter-spacing:-0.01em; color:#fff; line-height:1.1; }
.hero-reg .facts .f .v em { font-style:normal; color:inherit; }
.hero-reg .facts .f .k { font-size:12px; color:rgba(255,255,255,0.65); margin-top:8px; }

/* Section shell */
.sec { padding: clamp(64px,8vw,112px) clamp(20px,4vw,80px); }
.sec-inner { max-width: 1500px; margin: 0 auto; }
.sec.alt { background: var(--paper-soft); }
.sec-eyebrow {
  display: inline-block; font-size: 13px; color: var(--ink-soft);
  margin-bottom: 16px; font-weight: 500;
}
.sec-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: currentColor; opacity: 0.7; vertical-align: middle; margin-right: 12px;
}
.sec-h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px,4vw,52px); letter-spacing: -0.025em; line-height: 1.02;
  margin-bottom: clamp(28px,4vw,48px);
}
.sec-h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--brand); }

/* Prose / Fließtext block */
.prose-block { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: clamp(32px,5vw,80px); align-items: start; }
@media (max-width: 900px) { .prose-block { grid-template-columns: minmax(0,1fr); gap: 24px; } }
/* The heading stays beside the text it heads instead of scrolling away with the
   first paragraph and leaving a tall empty column next to the rest. */
@media (min-width: 901px) { .prose-head { position: sticky; top: 24px; } }
/* A block with no heading — see proseSection — is one column at a reading measure. */
.prose-block.solo { grid-template-columns: minmax(0, 68ch); }
/* The same values as .sec-h2, deliberately: an intro block's heading and a
   section's heading are one role, and two sizes for it were only ever visible
   between two pages — which is where nobody compares them and everybody feels it. */
.prose-block h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px,4vw,52px); letter-spacing: -0.025em; line-height: 1.02;
}
.prose-block h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--brand); }
.prose-body p { color: var(--body); line-height: 1.7; font-size: 16px; margin-bottom: 16px; max-width: 64ch; }
.prose-body p:last-child { margin-bottom: 0; }
.prose-body p strong { color: var(--ink); font-weight: 600; }
/* Headings written into the text — a `##` or `###` in the owner's Markdown. There
   was no rule for them here, so they came out at the browser's size and weight and
   flush against the paragraph under them. In the text they are signposts, a step
   below the block's own heading, and set upright: the italic accent word belongs to
   the section heads, not to every question in a paragraph. */
.prose-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); margin: 40px 0 12px; }
.prose-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); margin: 32px 0 8px; }
.prose-body :is(h2, h3):first-child { margin-top: 0; }
.prose-body :is(h2, h3) em { font-family: inherit; font-style: normal; font-weight: inherit; color: inherit; }
.prose-body ul, .prose-body ol { color: var(--body); line-height: 1.7; margin: 0 0 16px; padding-left: 24px; max-width: 64ch; }
.prose-body .pull {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  font-size: clamp(22px,2.4vw,32px); line-height: 1.3; color: var(--ink);
  margin: 8px 0 24px; max-width: 32ch;
}

/* Curriculum / topic groups */
/* As many columns as fit, so five groups do not leave a short second row of two
   beside an empty third. The cards are not links and do not answer the pointer:
   they used to lift and cast a shadow on hover, which promised a click that went
   nowhere. */
.curric { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.curric-group {
  background: white; border: 1px solid var(--rule); border-radius: 20px;
  padding: 24px;
}
.curric-group h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.curric-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.curric-group li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--body); }
.curric-group li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 8px; height: 1px; background: var(--ink-soft); }

/* Facts / price card */
.factcard { background: white; border: 1px solid var(--rule); border-radius: 20px; padding: 24px 28px; }
.factcard.feature { background: var(--ink); color: white; border-color: transparent; }
.factcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.factcard .price-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px,4vw,44px); letter-spacing: -0.02em; line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.factcard .price-big em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: 0.5em; }
.factcard.feature .price-big em { color: rgba(255,255,255,0.7); }
.factcard .price-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.factcard.feature .price-sub { color: rgba(255,255,255,0.65); }
.fc-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.factcard.feature .fc-row { border-top-color: rgba(255,255,255,0.12); }
.fc-row .k { color: var(--ink-soft); }
.factcard.feature .fc-row .k { color: rgba(255,255,255,0.65); }
.fc-row .v { font-weight: 500; color: var(--ink); text-align: right; }
.factcard.feature .fc-row .v { color: white; }
.factcard .note { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 16px; padding: 12px 16px; background: var(--paper); border-radius: 12px; }
.factcard.feature .note { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.factcard .btn { margin-top: 20px; width: 100%; justify-content: space-between; }
.split-facts { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
@media (max-width: 900px) { .split-facts { grid-template-columns: 1fr; gap: 32px; } }

/* Schedule / course table */
.schedule { border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: white; }
.sched-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 20px;
  padding: 20px 24px; align-items: center; border-top: 1px solid var(--rule);
}
.sched-row.head {
  border-top: 0; background: var(--paper-soft); color: var(--ink-soft);
  font-size: 12px;
}
.sched-row.head .sc { color: var(--ink-soft); font-weight: 500; }
.sched-row .course { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.sched-row .course small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.sched-row .sc { font-size: 14px; color: var(--ink-soft); }
.sched-row .sc strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.sched-row .when { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.sched-row .when small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
@media (max-width: 820px) {
  .sched-row { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .sched-row.head { display: none; }
  .sched-row .course { grid-column: span 2; }
}
.sched-note { font-size: 13px; color: var(--ink-soft); margin-top: 18px; max-width: 60ch; line-height: 1.6; }

/* ===================================================================
   Spezialtörns — dark "dossier" world, deliberately set apart from the
   light region pages. Each trip's Accent picks a local colour via the
   [data-spezial] scope; all components read var(--ac).
   =================================================================== */
:root { --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

[data-spezial]            { --ac: #2871e0; --ac-deep: #1a4ea8; }
[data-spezial="medicine"] { --ac: #ff5a3c; --ac-deep: #d63e22; }
[data-spezial="delivery"] { --ac: #33c1e0; --ac-deep: #0a2f4a; }
[data-spezial="newyear"]  { --ac: #e8b64a; --ac-deep: #b5842a; }
[data-spezial="christmas"]{ --ac: #c98bdd; --ac-deep: #8e5aa8; }
[data-spezial="carnival"] { --ac: #f2a03d; --ac-deep: #c07620; }
/* These two were set on the calendar row alone at first, on the reasoning that they
   have no detail page yet. That was wrong twice over: the overview card is themed from
   this scope too and would have shown them in the default blue, and a page written
   later would have arrived unthemed with nothing to say why. A world is a world
   wherever it appears. */
[data-spezial="heavyweather"] { --ac: #6fd0e0; --ac-deep: #3d8c9c; }
[data-spezial="marina"]       { --ac: #9db4c7; --ac-deep: #6c8398; }

/* Dossier hero (dark, no full-bleed photo) */
.hero-dossier { min-height: auto; padding-bottom: 0; background: var(--ink); color: white; }
.hero-dossier::after { display: none; }
.hero-dossier .nav { position: relative; z-index: 120; }
/* The overview hero carries no data-spezial, so it needs its own neutral accent
   for the headline emphasis; its kicker stays muted (not accent-coloured). */
.hero-sp { --ac: #7fb2e8; background: var(--ink); }
.hero-sp .kicker { color: rgba(255,255,255,0.65); }
.hero-sp .kicker::before { background: currentColor; opacity: 0.7; }
.dossier-hero-body {
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding: clamp(48px, 8vw, 112px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px);
}
/* The kicker says where — "Kanaren · Lanzarote" — in the page's own type. It was a
   mono line in capitals tracked out to 0.22em, which made a place name read as a
   serial number. */
.dossier-hero-body .kicker,
.hero-dossier .kicker {
  font-size: 14px; font-weight: 500;
  color: var(--ac); display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.dossier-hero-body .kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.dossier-hero-body h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 7.5vw, 104px);
  line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 16ch; color: white;
}
.dossier-hero-body h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--ac); letter-spacing: -0.02em; }
.dossier-hero-body .lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 62ch; }
.dossier-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.16); margin-top: 48px; }
.dossier-meta .m { padding: 24px 28px; border-right: 1px solid rgba(255,255,255,0.1); }
.dossier-meta .m:first-child { padding-left: 0; }
.dossier-meta .m:last-child { border-right: 0; }
/* Two columns on a phone, so each row starts at the left edge and has no rule after
   its second value. With only :first-child flush left, every other row's first value
   sat indented by the padding meant for a cell in the middle. */
@media (max-width: 700px) {
  .dossier-meta { grid-template-columns: 1fr 1fr; }
  .dossier-meta .m:nth-child(odd) { padding-left: 0; }
  .dossier-meta .m:nth-child(even) { border-right: 0; padding-right: 0; }
}
.dossier-meta .ml { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.dossier-meta .mv { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.8vw, 24px); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* Dossier body — full-width dark, content centred without an inner wrapper */
.dossier {
  background: var(--ink); color: white;
  padding: clamp(56px, 8vw, 112px) max((100% - 1180px) / 2, clamp(20px, 4vw, 56px));
}
.dossier-prose { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: rgba(255,255,255,0.82); max-width: 68ch; margin-bottom: 48px; }
.dossier-prose p { margin-bottom: 16px; }
.dossier-prose strong, .dossier-prose b { color: white; font-weight: 600; }
/* Headings written into a dossier's text: tight leading, or a three-line question on
   a phone came out with a line of air between each of its lines. */
.dossier-prose :is(h2, h3) { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: white; margin: 32px 0 8px; }
.dossier-prose h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; }
.dossier-prose h3 { font-size: 19px; }
.dossier-prose :is(h2, h3) em { font-family: inherit; font-style: normal; color: inherit; }
/* The sections are headed by their names alone. A counter in front of each, 01 to 04
   in the accent, numbered parts of a page that are not steps. */
.sec-head { margin-bottom: 32px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.05; color: white; }
.sec-head h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: var(--ac); }

/* Route timeline */
.route { position: relative; margin: 8px 0 48px; padding-left: 32px; }
.route::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--ac) 40%, transparent); }
.route .stop { position: relative; padding: 0 0 32px; }
.route .stop:last-child { padding-bottom: 0; }
.route .stop::before { content: ''; position: absolute; left: -32px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ac); }
.route .sn { font-family: var(--mono); font-size: 12px; color: var(--ac); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.route h4 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; margin-bottom: 8px; color: white; }
.route .stop p { color: rgba(255,255,255,0.75); line-height: 1.6; font-size: 15px; max-width: 60ch; }

/* Feature / cluster cards */
.feature-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
@media (max-width: 800px) { .feature-cards { grid-template-columns: 1fr; } }
.feature-cards .fc { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 28px; }
.feature-cards .ct { font-size: 13px; font-weight: 500; color: var(--ac); margin-bottom: 8px; }
.feature-cards .fc h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; margin-bottom: 12px; color: white; }
.feature-cards .fc h3 em { font-family: inherit; font-style: normal; font-weight: inherit; color: inherit; }
.feature-cards .fc p { color: rgba(255,255,255,0.78); line-height: 1.6; font-size: 15px; }
.fc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.fc-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.82); }
.fc-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--ac); }

/* Tag cloud (scenarios / equipment) — scoped to the dossier so it never
   restyles the contact form's global .chips/.chip. */
.dossier .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.dossier .chips .chip { font-size: 13px; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }

/* Booking row */
.book { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; margin-bottom: 48px; padding: 24px; border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; background: rgba(255,255,255,0.04); }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; gap: 12px; } }
.book .book-date { font-family: var(--mono); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.book .book-body h4 { font-weight: 600; font-size: 17px; }
.book .book-body p { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 4px; }
.book .book-price { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: white; font-variant-numeric: tabular-nums; }

/* Photo strip. As many columns as there are pictures, up to four: two pictures in
   four columns left the right half of the strip empty. */
.dossier-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 700px) { .dossier-strip { grid-template-columns: 1fr 1fr; } }
.dossier-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* Overview hub + homepage teaser */
.sp { background: var(--ink); color: white; padding: clamp(48px, 6vw, 84px) max((100% - 1180px) / 2, clamp(20px, 4vw, 56px)) clamp(64px, 8vw, 110px); display: flex; flex-direction: column; gap: 20px; }
.special-teaser { background: var(--ink); color: white; }
.special-teaser .section-head .eyebrow, .special-teaser .section-head h2 { color: white; }
/* Right-align the "Alle Spezialtörns" link under the teaser cards. */
.special-teaser .intro-link { display: flex; width: fit-content; margin-left: auto; margin-top: 28px; }
.sp-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 900px) { .sp-teaser { grid-template-columns: 1fr; } }
/* Each card's world shows on the dot in front of its category and on the arrow's
   disc. It also used to colour the category capsule and the headline's italic word,
   five cards in five colours each several times over, and the page read as a legend
   of colours rather than a list of trips. */
.sp-card { display: grid; grid-template-columns: 300px 1fr; border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,0.03); text-decoration: none; color: white; transition: border-color 0.16s var(--ease); }
.sp-teaser .sp-card { grid-template-columns: 1fr; }
.sp-card:hover { border-color: rgba(255,255,255,0.32); }
@media (max-width: 780px) { .sp-card { grid-template-columns: 1fr; } }
.sp-visual { position: relative; overflow: hidden; min-height: 220px; background: var(--ac-deep); }
.sp-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.sp-card:hover .sp-visual img { transform: scale(1.02); }
.sp-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,22,34,0) 50%, rgba(12,22,34,0.55) 100%); }
.sp-visual .cat { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: white; }
.sp-visual .cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); flex: none; }
.sp-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
/* The tags as one quiet line, the way the calendar sets its meta. */
.sp-body .tags { display: flex; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.65); }
.sp-body .tags span + span::before { content: '·'; margin: 0 8px; color: rgba(255,255,255,0.4); }
.sp-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 12px; color: white; }
.sp-body h2 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: inherit; }
.sp-body p { color: rgba(255,255,255,0.78); line-height: 1.6; font-size: 15px; max-width: 60ch; margin-bottom: 20px; }
.sp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }
@media (max-width: 780px) { .sp-foot { flex-direction: column; align-items: flex-start; } }
.sp-foot .meta { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
.sp-go { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: white; flex: none; }
.sp-go .arr { width: 32px; height: 32px; border-radius: 50%; background: var(--ac); color: white; display: flex; align-items: center; justify-content: center; font-size: 0; transition: transform 0.16s var(--ease); }
.sp-go .arr::before { content: ''; display: block; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10'/%3E%3Cpath d='M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.sp-card:hover .sp-go .arr { transform: translateX(3px); }
.soon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
@media (max-width: 780px) { .soon { grid-template-columns: 1fr; } }
.soon-card { border: 1px dashed rgba(255,255,255,0.2); border-radius: 20px; padding: 28px; background: rgba(255,255,255,0.02); }
.soon-card .cat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.soon-card .cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); flex: none; }
.soon-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 8px; color: white; }
.soon-card p { color: rgba(255,255,255,0.7); line-height: 1.55; font-size: 14px; }
.soon-card .badge-soon { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 4px 8px; }
.sec-label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); margin: clamp(48px,5vw,72px) 0 24px; display: flex; align-items: center; gap: 12px; }
.sec-label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
/* The same band as the help band on the light pages: one blue surface, the italic
   word in white, the orange on the button. It was a blue gradient. */
.sp-cta { margin-top: clamp(48px,5vw,72px); background: var(--brand); border-radius: 24px; padding: clamp(32px,5vw,64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 780px) { .sp-cta { grid-template-columns: 1fr; } }
.sp-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px,3.2vw,44px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; color: white; }
.sp-cta h3 em { font-family: var(--font-accent); font-style: italic; font-weight: 300; color: white; }
.sp-cta p { color: rgba(255,255,255,0.9); line-height: 1.6; font-size: 16px; max-width: 46ch; }
.sp-cta-action { text-align: right; }
@media (max-width: 780px) { .sp-cta-action { text-align: left; } }

/* A section's top padding is meant for the gap between sections; under a banner
   it sits on top of the banner's own quiet area and reads as a hole. The front
   page keeps its air, the gallery's photo band its tight fit. Last in the file
   and with the element type named, or `section.block` and friends would win. */
.hero:not(.hero-tall) + section:not(.bands),
.hero:not(.hero-tall) + div { padding-top: clamp(56px, 7vw, 100px); }

/* ============ ERROR PAGES (404 · 410 · 500) ============ */
/* The panel is its own dark surface rather than a .hero, because it carries no
   picture and has to fill the window on its own. `color: white` is not optional:
   the nav's brand, its dropdown triggers and the CTA take their colour from the
   surrounding block, and without this they come out dark on dark. */
.err {
  position: relative;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ink);
  color: white; overflow: hidden;
}
/* The navigation sits in the panel directly rather than in a .hero, so it needs the
   banner's page padding of its own — without it the logo touched the left edge of
   the window and the button the right. */
.err > .nav { position: relative; z-index: 120; padding: 28px clamp(20px, 4vw, 80px) 0; }
/* The chart lies behind everything and is decoration: aria-hidden in the markup,
   and nothing on this page depends on it being seen. */
.err-chart { position: absolute; inset: 0; opacity: 0.5; }
.err-chart svg { width: 100%; height: 100%; }
.err-grid line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.err-course {
  fill: none; stroke: rgba(255,255,255,0.35); stroke-width: 2; stroke-linecap: round;
}
/* The part of the course past the last waypoint: dashed, thinner, fading out —
   a route that carries on without arriving. */
.err-course-lost {
  fill: none; stroke: var(--warm); stroke-width: 1.5;
  stroke-dasharray: 7 9; stroke-linecap: round; opacity: 0.45;
}
.err-pin { fill: var(--warm); }
.err-pin-ring { fill: none; stroke: var(--warm); stroke-width: 1; opacity: 0.5; }

.err-body {
  position: relative; z-index: 5;
  margin: auto; width: 100%; max-width: 1500px;
  padding: clamp(40px,6vw,80px) clamp(20px,4vw,64px);
}
.err-inner { max-width: 760px; }
/* "Fehler 404" as a logbook entry: mono, quiet. It was the warm accent in bold
   capitals tracked out to 0.2em, the loudest line on a page whose message is the
   headline under it. */
.err-code {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px;
  color: var(--on-ink-soft);
  margin-bottom: clamp(16px,2.4vw,28px);
}
.err-code .err-rule { width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.err h1 {
  font-family: var(--font-display); font-weight: 600; color: white;
  font-size: clamp(40px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.03em;
  margin: 0 0 clamp(16px,2.4vw,28px);
}
.err h1 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--warm); letter-spacing: -0.02em;
}
.err-lead {
  color: rgba(255,255,255,0.84); font-size: clamp(15px,1.35vw,19px);
  line-height: 1.65; max-width: 54ch; margin: 0;
}
.err-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(26px,3.4vw,40px); }
.err-ghost {
  display: inline-flex; align-items: center;
  padding: 8px 24px; min-height: 48px; border-radius: 999px; color: white;
  border: 1px solid rgba(255,255,255,0.32);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.err-ghost:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* The signposts are separated by 1px gaps showing the grid's own background. The
   spacing above sits on an unpainted wrapper: with padding on the painted grid,
   that background would show as a slab instead of as lines. */
.err-links-wrap {
  margin-top: clamp(34px,4.4vw,54px); padding-top: clamp(22px,2.6vw,30px);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.err-links {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px;
  background: rgba(255,255,255,0.13);
}
@media (max-width: 780px) { .err-links { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.err-link {
  background: var(--ink); padding: 16px 16px 20px;
  display: flex; flex-direction: column; gap: 4px; transition: background-color 0.16s var(--ease);
}
.err-link:hover { background: #14263d; }
.err-link .t {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: white;
}
.err-link .d { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.45; }

/* The server error's three rows, in place of the signposts. */
.err-status { margin-top: clamp(34px,4.4vw,54px); display: grid; gap: 1px; background: rgba(255,255,255,0.13); }
.err-row {
  background: var(--ink); padding: 16px;
  display: grid; grid-template-columns: minmax(0,260px) minmax(0,1fr); gap: 8px 24px;
}
@media (max-width: 700px) { .err-row { grid-template-columns: 1fr; } }
.err-row .k {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: white;
}
.err-row .v { font-size: 14px; color: rgba(255,255,255,0.76); line-height: 1.55; }

.err-foot {
  margin-top: clamp(26px,3vw,40px);
  font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.55;
}
.err-foot a { color: rgba(255,255,255,0.72); text-decoration: underline; text-underline-offset: 2px; }
.err-foot a:hover { color: white; }

/* ============ NEWSLETTER ============ */
/* The sign-up band. Same footing as the help band — brand surface, one round
   corner radius, two columns that collapse — because they are the same kind of
   interruption in a page, and two different ones read as two different sites. */
.nl-band {
  margin: clamp(40px, 4vw, 64px) clamp(20px, 4vw, 80px);
  padding: clamp(32px, 5vw, 64px);
  background: var(--ink);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: 32px;
  align-items: center;
  color: white;
}
@media (max-width: 900px) { .nl-band { grid-template-columns: 1fr; } }
.nl-eyebrow { color: rgba(255,255,255,0.65); }
.nl-band h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.nl-band h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  color: var(--warm); letter-spacing: -0.02em;
}
.nl-band p { color: rgba(255,255,255,0.86); line-height: 1.6; max-width: 46ch; font-size: 16px; }

.nl-row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto; gap: 12px; }
@media (max-width: 620px) { .nl-row { grid-template-columns: 1fr; } }
.nl-field {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nl-field:focus-within { border-color: var(--brand-bright); background: rgba(255,255,255,0.12); }
.nl-field input { color: white; }
.nl-field input::placeholder { color: rgba(255,255,255,0.5); }
.nl-btn {
  background: var(--brand);
  color: white;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.16s var(--ease), transform 0.12s var(--ease);
}
.nl-btn:hover { background: var(--brand-bright); }
.nl-btn:active { transform: scale(0.98); }
.nl-btn.htmx-request { opacity: 0.6; pointer-events: none; }
.nl-note { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.nl-note em { font-style: normal; color: rgba(255,255,255,0.8); }

/* What replaces the form once it has been sent. */
.nl-said { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: start; }
.nl-said strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.nl-said p { margin-top: 4px; font-size: 15px; color: rgba(255,255,255,0.78); }
.nl-said-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: white;
  font-weight: 600; font-size: 16px;
}
.nl-said-warn .nl-said-mark { background: var(--warm); color: var(--ink); }

/* ============ NOTICE PAGE ============ */
/* The pages reached from a mail: confirmation and unsubscribe. Light, unlike the
   error page, because nothing has gone wrong on either of them. */
.notice { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.notice-body { flex: 1; display: grid; place-items: center; padding: clamp(40px,6vw,90px) 20px; }
.notice-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  max-width: 620px;
  box-shadow: 0 8px 24px rgba(15,29,46,0.06);
}
.notice-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}
.notice-card p { color: var(--body); line-height: 1.65; font-size: 16px; }
.notice-mark {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: white;
  font-weight: 600; font-size: 22px;
  margin-bottom: 20px;
}
.notice-mark-quiet { background: var(--paper-soft); color: var(--ink-soft); }
.notice-list { list-style: none; margin: 22px 0; display: grid; gap: 8px; }
.notice-list li {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--paper-soft);
  font-size: 15px;
}
.notice-on { font-weight: 600; color: var(--ink); }
.notice-off { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.notice-more { margin-top: 22px; font-size: 14px; }
.notice-form { margin-top: 8px; }
.notice-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.notice-actions .primary, .notice-actions .ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 12px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.12s var(--ease);
}
.notice-actions .primary { background: var(--brand); color: white; border: 1px solid var(--brand); }
.notice-actions .primary:hover { background: var(--brand-bright); border-color: var(--brand-bright); }
.notice-actions .ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.notice-actions .ghost:hover { border-color: var(--ink); }
.notice-actions .primary:active, .notice-actions .ghost:active { transform: scale(0.98); }
