/* ==========================================================================
   VirginAirCrewLies.com — site stylesheet
   Modern, accessible, no external dependencies (works offline).
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-2: #f3efe7;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-soft: #2b3340;
  --muted: #5e6673;
  --line: #e3ded4;
  --line-strong: #cfc7b8;
  --brand: #c8102e;
  --brand-dark: #980a22;
  --brand-soft: #fbe9ec;
  --navy: #1d3f6b;
  --ok: #0f6b5f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06), 0 6px 18px -14px rgba(20, 24, 31, .35);
  --shadow: 0 2px 4px rgba(20, 24, 31, .05), 0 18px 40px -28px rgba(20, 24, 31, .45);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.6rem, 1.1rem + 1.8vw, 2.15rem);
  --step-4: clamp(2rem, 1.2rem + 3.2vw, 3.15rem);
  --step-5: clamp(2.35rem, 1.2rem + 4.6vw, 4rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, picture, svg { max-width: 100%; display: block; height: auto; }
img { background-color: var(--paper-2); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-family: var(--font-sans); font-size: var(--step-1); line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
h4 { font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.35; font-weight: 700; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li::marker { color: var(--brand); }

strong { font-weight: 700; }
small { font-size: var(--step--1); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--brand);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, .94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
  padding-block: .55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.brand-name span { color: var(--brand); }
.brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 9px;
  padding: .5rem .8rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: .6rem 1.25rem 1rem;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding: .8rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-inner { position: relative; flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-soft); color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Kicker / meta ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 .9rem;
}
.kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  display: inline-block;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  font-size: .86rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.tag {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
a.tag:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  background:
    radial-gradient(1100px 460px at 78% -10%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-dek {
  font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 1.6rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.hero-stats li { margin: 0; }
.hero-stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stats span { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

.hero-figure { margin: 0; }
.hero-figure .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: .8rem;
  padding-left: .1rem;
  border-left: 2px solid var(--line-strong);
  padding-left: .7rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: .84rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: .7rem .9rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .hero h1 { max-width: 20ch; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: .35rem 0 0; color: var(--muted); max-width: 55ch; }
.section-head .link-more { font-weight: 650; font-size: .92rem; text-decoration: none; }
.section-head .link-more::after { content: " →"; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card .card-meta {
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 .1rem;
}
.card .card-foot {
  margin-top: auto;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--brand);
  opacity: .9;
  margin-bottom: .2rem;
}

/* Feature cards (start here) */
.feature {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.feature h3 { margin: .2rem 0 0; font-size: 1.14rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature .feature-arrow { margin-top: auto; padding-top: .9rem; font-weight: 650; font-size: .9rem; color: var(--brand-dark); }
.feature .feature-arrow::after { content: " →"; }
.feature-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.feature-icon svg { width: 20px; height: 20px; }

/* ---------- Split / prose band ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.prose-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.prose-band p:last-child { margin-bottom: 0; }

.pullquote {
  margin: 0;
  padding: 1.4rem 1.6rem;
  background: var(--ink);
  color: #f4f1ea;
  border-radius: var(--radius-lg);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.pullquote cite {
  display: block;
  margin-top: .8rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b9c0cc;
}

/* ---------- Category tiles ---------- */
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 132px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); color: inherit; }
.tile b { font-family: var(--font-serif); font-size: 1.06rem; letter-spacing: -.01em; }
.tile span { font-size: .84rem; color: var(--muted); }
.tile .tile-count {
  font-family: var(--font-sans);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .2rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand);
  flex: none;
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 1.15rem; color: var(--ink-soft); max-width: 72ch; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Trust band ---------- */
.trust {
  background: var(--ink);
  color: #e9e6df;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.trust h2 { color: #fff; }
.trust p { color: #c3c8d2; }
.trust a { color: #fff; }
.trust .grid { margin-top: 1.5rem; }
.trust .trust-item { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: .9rem; }
.trust .trust-item b { color: #fff; display: block; margin-bottom: .2rem; font-family: var(--font-serif); font-size: 1.05rem; }
.trust .trust-item span { font-size: .9rem; color: #aeb5c1; }

/* ---------- Article ---------- */
.page-head {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

.page-head h1 { font-size: var(--step-4); max-width: 26ch; margin-bottom: .7rem; }
.page-dek { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; margin: 0; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 950px) { .article-layout { grid-template-columns: 1fr; } }

.article-body { max-width: 68ch; font-size: 1.06rem; }
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > h2,
.article-body > h3 { margin-bottom: 1.15em; }
.article-body h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem); margin-top: 2rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body a { color: var(--navy); }
.article-body ul, .article-body ol { padding-left: 1.2em; }

.letter-meta {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper-2);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 10px 10px 0;
  padding: .75rem 1rem;
  margin: 0 0 1.6rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.letter-meta br { content: ""; display: block; margin-bottom: .15rem; }

.figure { margin: 1.75rem 0; }
.figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  width: auto;
  max-width: 100%;
}
.figure figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
}
.figure--side { margin: 1.5rem 0 2rem; max-width: 460px; }
.figure--narrow { max-width: 420px; }
@media (max-width: 640px) {
  .figure--side { max-width: 100%; }
}

.article-end {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.article-end .note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.article-end .note b { color: var(--ink); }

.rail { display: grid; gap: 1rem; position: sticky; top: 88px; }
@media (max-width: 950px) { .rail { position: static; } }
.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.rail-card h2, .rail-card h3 {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .7rem;
}
.rail-card ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.rail-card li { margin: 0; border-top: 1px solid var(--line); }
.rail-card li:first-child { border-top: 0; }
.rail-card li a { display: block; padding: .5rem 0; color: var(--ink-soft); text-decoration: none; line-height: 1.45; }
.rail-card li a:hover { color: var(--brand-dark); text-decoration: underline; }
.rail-card p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.55; }
.rail-card .btn { width: 100%; justify-content: center; margin-top: .8rem; }

/* ---------- Archive listing ---------- */
.archive-group + .archive-group { margin-top: 2.75rem; }
.archive-group h2 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.4rem;
}
.archive-list { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .archive-list { grid-template-columns: 1fr; } }
.archive-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  padding: .95rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.archive-item:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); color: inherit; }
.archive-item time {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: .25rem .45rem;
  height: fit-content;
  white-space: nowrap;
}
.archive-item b { display: block; font-size: .98rem; line-height: 1.35; margin-bottom: .15rem; font-family: var(--font-serif); }
.archive-item span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer {
  background: #10141c;
  color: #c2c8d2;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8e96a4;
  margin: 0 0 .9rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #dbe0e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-name span { color: #ff6b7e; }
.footer-brand .brand-tag { color: #8e96a4; }
.footer-brand p { color: #9aa2b0; font-size: .88rem; line-height: 1.65; max-width: 38ch; }
.footer-bottom {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: #8e96a4;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }

.notice {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid #f3ccd3;
  color: #6f1425;
  font-size: .92rem;
  line-height: 1.6;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--line-strong); }
.timeline > li { position: relative; margin: 0 0 1.8rem; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 7px);
  top: .45rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand);
}
.timeline time {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .25rem;
}
.timeline h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Steps (guide) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  font-family: var(--font-sans);
}
.steps > li b { display: block; font-family: var(--font-sans); margin-bottom: .25rem; }
.steps > li p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* Simple data table */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--surface); }
table.data th, table.data td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--paper-2); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
table.data tr:last-child td { border-bottom: 0; }

/* 404 */
.error-page { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--brand);
  margin: 0 0 .5rem;
}
.error-page p { max-width: 46ch; margin-inline: auto; color: var(--ink-soft); }
.error-page .btn-row { justify-content: center; margin-top: 1.75rem; }

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

@media print {
  .site-header, .site-footer, .rail, .breadcrumb, .skip-link, .btn-row { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-layout { display: block; }
  .page-head { background: none; border: 0; padding-top: 0; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}

/* ---------- Single-column editorial layout ---------- */
.article-layout--single { grid-template-columns: minmax(0, 74ch); }
.page-body { padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.5rem, 5vw, 4rem); }
.article-layout--single .article-body { max-width: 74ch; }

.card-num small {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: .35rem;
}
.link-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.link-list li { padding: .6rem 0; border-top: 1px solid var(--line); margin: 0; }
.link-list li:first-child { border-top: 0; }
.link-list a { font-weight: 600; }
.link-list span { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; }
.keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.75rem 0;
}
.keyfacts div { background: var(--surface); padding: .95rem 1.1rem; }
.keyfacts dt {
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .2rem;
}
.keyfacts dd { margin: 0; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.4; }

/* ---------- Responsive grids / code ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { gap: .85rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.1rem 1.6rem; }
  .page-head { padding-top: 1.6rem; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

pre.template {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .84rem;
  line-height: 1.65;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Small utilities (used instead of inline styles) ---------- */
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.section-blurb { max-width: 65ch; margin: -.6rem 0 1.4rem; color: var(--muted); }
.section-blurb + * { margin-top: 0; }
.kicker-light { color: #ff8f9e; }
.sitemap-group { margin-bottom: 2rem; }
.sitemap-group h2 { font-size: 1.25rem; }
.sitemap-group ul { columns: 2; column-gap: 2.5rem; }
.sitemap-group li { break-inside: avoid; }
.narrow-tight { margin: 0; }
@media (max-width: 700px) { .sitemap-group ul { columns: 1; } }
