/* ============================================================
   WhiteHat Report — Encyclopedia / Reference x Bauhaus / Swiss Modernist
   Design language locked at v1
   Cascade order: base -> components -> page-scoped -> @media (END)
   Namespace: whr
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Bauhaus primary trio (red / yellow / blue) on a warmer paper. Keeps
     this site visually separate from pursesguide's heritage broadsheet.
     Body stays paper-and-ink; primaries are used as accent surfaces. */
  --paper: #f4f0e6;
  --paper-pure: #fbf7eb;
  --paper-tint: #ebe6d8;
  --ink: #111111;
  --ink-mid: #3a3a37;
  --ink-soft: #6a6a66;
  --ink-mute: #9a9a93;
  --rule: #c5c2b7;
  --rule-soft: #ddd8c8;
  /* Bauhaus primaries */
  --bau-blue: #1f3aa8;
  --bau-blue-deep: #14267a;
  --bau-blue-tint: #eaedfa;
  --bau-red: #c8310f;
  --bau-yellow: #f0c419;
  /* Back-compat aliases — keep inherited blue-themed rules resolving */
  --reg-blue: #1f3aa8;
  --reg-blue-deep: #14267a;
  --reg-blue-tint: #eaedfa;
  --warn-red: #b8311c;
  --warn-red-soft: #f4e4e0;

  /* Typography — Geist family only */
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Rhythm */
  --container: 1200px;
  --container-narrow: 880px;
  --gap: 28px;
  --gap-lg: 48px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--reg-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 140ms;
}
a:hover { color: var(--reg-blue-deep); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
pre, code { font-family: var(--mono); font-size: 0.92em; }
pre { white-space: pre-wrap; word-break: break-word; }

:focus-visible {
  outline: 2px solid var(--reg-blue);
  outline-offset: 3px;
  border-radius: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; text-decoration: none;
  font-family: var(--sans); font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1.05em 0; color: var(--ink-mid); }
p strong { color: var(--ink); font-weight: 600; }

/* Mono kicker labels (signature move #2) */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--reg-blue);
  display: inline-block;
}
.kicker-ink { color: var(--ink); }
.kicker-mute { color: var(--ink-mute); }
.kicker-warn { color: var(--warn-red); }

/* Roman numeral section markers (signature move #1) */
.section-marker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  display: inline-block;
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid var(--rule);
}

/* Dateline */
.dateline {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Footnote system (signature move #3) */
.fn-ref {
  font-family: var(--mono);
  font-size: 0.65em;
  vertical-align: super;
  color: var(--reg-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 0 1px;
}
.fn-ref::before { content: '['; }
.fn-ref::after { content: ']'; }
.fn-ref:hover { color: var(--reg-blue-deep); text-decoration: underline; }

.footnotes {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.footnotes-head {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.footnotes ol {
  list-style: none;
  counter-reset: fn-ctr;
}
.footnotes ol li {
  counter-increment: fn-ctr;
  padding-left: 28px;
  margin-bottom: 9px;
  position: relative;
}
.footnotes ol li::before {
  content: '[' counter(fn-ctr) ']';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  color: var(--reg-blue);
}
.footnotes a { color: var(--reg-blue); word-break: break-word; }

/* ---------- 4. Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Hairline rule */
.hr-line {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.hr-ink { background: var(--ink); }

/* Dotted-leader TOC */
.toc {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
}
.toc-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.toc-item:hover { color: var(--reg-blue); }
.toc-item:hover .toc-num { color: var(--reg-blue); }
.toc-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.toc-text {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  position: relative;
  padding-right: 14px;
  background: var(--paper);
  z-index: 1;
}
.toc-line {
  position: absolute;
  bottom: 8px;
  left: 70px;
  right: 70px;
  border-bottom: 1px dotted var(--rule);
  z-index: 0;
}
.toc-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  background: var(--paper);
  padding-left: 14px;
  z-index: 1;
}

/* ---------- 5. Topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}
.topbar-left {
  text-align: left;
  display: flex; align-items: center; gap: 16px;
}
.topbar-center {
  display: flex; justify-content: center;
}
.topbar-right {
  display: flex; justify-content: flex-end; align-items: center; gap: 14px;
}

.brand-link {
  display: inline-flex; align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-link img { height: 40px; width: auto; }
.brand-mark {
  height: 40px;
  width: 40px;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-wordmark-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-wordmark-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.edition-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}

.age-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
}
.age-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--reg-blue);
  border-radius: 0;
}

.navbar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
  background: var(--paper);
}
.navbar-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-list { display: flex; gap: 28px; }
.nav-list a {
  color: var(--ink); text-decoration: none;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative; padding: 4px 0;
}
.nav-list a:hover { color: var(--reg-blue); }
.nav-list a.active {
  color: var(--reg-blue);
  border-bottom: 1px solid var(--reg-blue);
}

.idx-menu { position: relative; }
.idx-menu-trigger {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 5px 12px;
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.idx-menu-trigger::after {
  content: '↓'; font-size: 0.8em;
  font-family: var(--mono);
}
.idx-menu-list {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--paper-pure); border: 1px solid var(--ink);
  min-width: 240px; padding: 8px 0;
  display: none;
  z-index: 50;
}
.idx-menu.open .idx-menu-list { display: block; }
.idx-menu-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.idx-menu-list a:last-child { border-bottom: none; }
.idx-menu-list a:hover { background: var(--paper-tint); color: var(--reg-blue); }
.idx-menu-list .idx-menu-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
}

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  flex-direction: column; gap: 5px;
  justify-content: center; align-items: center;
}
.menu-btn span {
  width: 22px; height: 1.5px; background: var(--ink); display: block;
}

/* ---------- 6. Entry head (Hero) ---------- */
.entry-head {
  position: relative;
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}
.entry-head-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.entry-head-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--paper) 0%, var(--paper) 35%, rgba(247,246,241,0.85) 60%, rgba(247,246,241,0.6) 100%);
  z-index: 1;
}
.entry-head-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.5;
  filter: saturate(0.6);
}
.entry-head-bg svg { width: 100%; height: 100%; opacity: 0.045; }
.entry-head-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.entry-head-main { min-width: 0; }
.entry-head-kicker { margin-bottom: 18px; }
.entry-head-title {
  margin: 0 0 22px;
  max-width: 18ch;
}
.entry-head-lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
  font-weight: 400;
}

.entry-head-aside {
  border-top: 2px solid var(--ink);
  padding: 18px 0 0;
  font-family: var(--mono);
}
.entry-head-aside-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.78rem;
  align-items: baseline;
}
.entry-head-aside-row:last-child { border-bottom: none; }
.entry-head-aside-key {
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.entry-head-aside-val {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

/* ---------- 7. Operator entry cards ---------- */
.entries-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 52px 0 24px;
  border-bottom: 1px solid var(--ink);
}
.entries-head h2 { margin: 6px 0 0; }

.entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 0;
}

.operator-entry {
  position: relative;
  padding: 30px 32px;
  border: 1px solid var(--rule);
  border-top: 0;
  background: var(--paper-pure);
  display: grid;
  grid-template-columns: 88px 88px 1fr auto;
  column-gap: 14px;
  row-gap: 18px;
  align-items: center;
  transition: background 160ms ease;
}
.operator-entry > .operator-entry-no { margin-right: 14px; }
.operator-entry > .operator-entry-actions { margin-left: 18px; }
.operator-entry:first-child { border-top: 1px solid var(--rule); }
.operator-entry:hover { background: var(--paper-tint); }

.operator-entry-no {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.operator-entry-no strong {
  display: block;
  font-family: var(--mono);
  color: var(--reg-blue);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1;
}

.operator-entry-mark {
  border: 1px solid var(--rule);
  background: var(--paper-pure);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  aspect-ratio: 1;
  width: 88px;
  height: 88px;
}
.operator-entry-mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.operator-entry-name-block { min-width: 0; }
.operator-entry-name {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.operator-entry-type {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.operator-entry-summary {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 10px;
}
.operator-entry-licence {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.operator-entry-licence-key {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.operator-entry-licence-val { color: var(--ink); font-weight: 500; }

.operator-entry-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 200px;
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  color: var(--ink);
  border-radius: 0;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper-pure); }

.btn-primary {
  background: var(--reg-blue);
  color: var(--paper-pure);
  border-color: var(--reg-blue);
}
.btn-primary:hover {
  background: var(--reg-blue-deep);
  border-color: var(--reg-blue-deep);
  color: var(--paper-pure);
}

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-pure); }

.btn-warn {
  background: var(--paper-pure);
  color: var(--warn-red);
  border-color: var(--warn-red);
}
.btn-warn:hover {
  background: var(--warn-red);
  color: var(--paper-pure);
  border-color: var(--warn-red);
}

.btn[disabled], .btn-disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* ---------- 9. Reference blocks (SEO content) ---------- */
.reference-block {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.reference-block-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.reference-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reg-blue);
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.reference-label-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: none;
}
.reference-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-mid);
}
.reference-body p:first-child {
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 400;
}

.help-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.help-card {
  border: 1px solid var(--rule);
  padding: 18px;
  background: var(--paper-pure);
}
.help-card h4 {
  font-family: var(--sans);
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.help-card p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.help-card-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-block;
}

/* ---------- 10. Question list (FAQ) ---------- */
.questions-head {
  padding: 56px 0 12px;
  border-top: 1px solid var(--rule);
}
.questions-list {
  border-top: 1px solid var(--ink);
  margin-top: 12px;
}
.question-item {
  border-bottom: 1px solid var(--rule);
}
.question-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: 14px;
  align-items: baseline;
  padding: 22px 8px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.question-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.question-marker {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--reg-blue);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 220ms ease;
  text-align: right;
}
.question-item.open .question-marker { transform: rotate(45deg); }
.question-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding 200ms ease;
  padding: 0 8px 0 78px;
}
.question-item.open .question-body {
  max-height: 600px;
  padding: 0 8px 24px 78px;
}
.question-body p { color: var(--ink-mid); font-size: 0.96rem; line-height: 1.65; }

/* ---------- 11. Operator review (file) page ---------- */
.file-head {
  position: relative;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--reg-blue); }
.breadcrumb span { margin: 0 8px; color: var(--rule); }

.file-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: var(--paper-pure);
  padding: 16px;
  margin-bottom: 24px;
  width: 120px;
  height: 120px;
}
.file-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.file-head-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.file-head-meta-item {
  font-family: var(--mono);
  font-size: 0.78rem;
}
.file-head-meta-key {
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 4px;
}
.file-head-meta-val {
  color: var(--ink);
  font-weight: 500;
}

.file-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-lg);
  align-items: start;
  padding: 48px 0 64px;
}
.file-body { max-width: 720px; }
.file-body h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.file-body h2 .section-marker {
  margin-right: 0;
  border-right: 0;
  padding-right: 0;
  font-size: 0.74rem;
}
.file-body h3 { margin-top: 28px; margin-bottom: 10px; }
.file-body p { font-size: 1rem; line-height: 1.7; color: var(--ink-mid); }
.file-body ul {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}
.file-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-mid);
  font-size: 0.96rem;
  line-height: 1.6;
}
.file-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--reg-blue);
  font-family: var(--mono);
  font-weight: 500;
}

.file-rail {
  position: sticky;
  top: 130px;
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  padding: 22px 22px 24px;
}
.file-rail-head {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reg-blue);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.fact-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.fact-table dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fact-table dd {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  margin-top: 2px;
  font-weight: 500;
}
.fact-table dd.mono { font-family: var(--mono); font-size: 0.86rem; font-weight: 500; }

.licence-record {
  border: 1px solid var(--ink);
  background: var(--paper-pure);
  padding: 20px;
  margin: 28px 0;
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-mid);
  position: relative;
}
.licence-record-tag {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reg-blue);
}
.licence-record strong { color: var(--ink); }

.operator-statement {
  border-left: 3px solid var(--reg-blue);
  background: var(--reg-blue-tint);
  padding: 16px 20px;
  margin: 24px 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.operator-statement-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--reg-blue);
  display: block;
  margin-bottom: 6px;
}

/* ---------- 12. Reference / static pages ---------- */
.ref-page { padding: 48px 0 64px; }
.ref-page-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.ref-page-aside {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--reg-blue);
  position: sticky;
  top: 130px;
}
.ref-page-aside-hint {
  display: block;
  margin-top: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.74rem;
  line-height: 1.5;
}
.ref-page-body { max-width: 720px; }
.ref-page-body h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.ref-page-body h3 { margin-top: 24px; margin-bottom: 8px; }
.ref-page-body p { font-size: 1rem; line-height: 1.72; color: var(--ink-mid); }
.ref-page-body ul {
  margin: 14px 0 22px;
  padding-left: 0;
  list-style: none;
}
.ref-page-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-mid);
  line-height: 1.6;
}
.ref-page-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--reg-blue);
  font-family: var(--mono);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}
.form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form textarea:focus {
  border-color: var(--reg-blue);
  outline: 2px solid var(--reg-blue);
  outline-offset: -3px;
}

/* Licences table */
.licences-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.94rem;
  margin-top: 16px;
  border: 1px solid var(--rule);
}
.licences-table th, .licences-table td {
  text-align: left;
  padding: 14px 14px;
  border-bottom: 1px solid var(--rule);
}
.licences-table th {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reg-blue);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.licences-table td.mono { font-family: var(--mono); font-size: 0.86rem; font-weight: 500; }
.licences-table tr:last-child td { border-bottom: none; }

/* ---------- 12.5 Banner block ---------- */
.banner-block {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.banner-frame {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 280px;
}
.banner-frame-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 240px;
}
.banner-frame-body {
  padding: 36px 32px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.banner-frame-body .kicker {
  color: var(--reg-blue-tint);
}
.banner-frame-body h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.banner-frame-body p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.85;
  margin: 0;
}
.banner-frame-body .btn {
  align-self: flex-start;
}

/* ---------- 13. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 24px;
  border-top: 4px solid var(--reg-blue);
  margin-top: 48px;
}
.footer .container { color: var(--paper); }
.footer h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
  opacity: 0.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand .footer-brand-mark img {
  height: 44px;
  width: 44px;
  background: var(--paper);
  padding: 4px;
}
.footer-brand .footer-brand-mark .brand-wordmark-name {
  color: var(--paper);
  font-size: 1.05rem;
}
.footer-brand .footer-brand-mark .brand-wordmark-tag {
  color: var(--paper);
  opacity: 0.55;
}
.footer-brand p {
  color: var(--paper);
  opacity: 0.7;
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-links a {
  display: block;
  color: var(--paper);
  opacity: 0.85;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 4px 0;
}
.footer-links a:hover { opacity: 1; color: var(--reg-blue-tint); }

.footer-rg-bar {
  border-top: 1px solid rgba(247, 246, 241, 0.15);
  padding-top: 24px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--paper);
  opacity: 0.7;
}
.footer-rg-bar a { color: var(--reg-blue-tint); }
.footer-rg-bar strong { color: var(--paper); opacity: 1; font-weight: 600; }

.footer-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 246, 241, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--paper);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* ---------- 14. Modals (leave + age + cookies) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.overlay.show { display: flex; animation: fadeIn 200ms ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.leave-card {
  background: var(--paper-pure);
  border: 1px solid var(--ink);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 30px;
  position: relative;
}
.leave-card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warn-red);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 18px;
  display: block;
}
.leave-card h3 {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.leave-card p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-mid);
}
.leave-card-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.leave-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.leave-actions .btn { flex: 1; min-width: 140px; }

/* Age gate */
.age-card {
  background: var(--paper-pure);
  border: 2px solid var(--ink);
  max-width: 540px;
  width: 100%;
  padding: 38px 36px;
  position: relative;
}
.age-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--paper-pure);
  background: var(--warn-red);
  padding: 8px 16px;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  border-radius: 0;
}
.age-card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.age-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.age-card .subline {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.age-points {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--rule);
}
.age-points li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--rule-soft);
}
.age-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--reg-blue);
  font-family: var(--mono);
}
.age-confirm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.age-confirm input { margin-top: 4px; flex-shrink: 0; accent-color: var(--reg-blue); }
.age-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.65;
  letter-spacing: 0.04em;
}
.age-foot a { color: var(--reg-blue); }

/* Cookie banner */
.cookies {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper-pure);
  padding: 18px 24px;
  display: none;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  z-index: 900;
  border-top: 2px solid var(--reg-blue);
}
.cookies.show { display: flex; }
.cookies p {
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  color: var(--paper-pure);
  margin: 0;
  line-height: 1.55;
}
.cookies a { color: var(--reg-blue-tint); }
.cookies-actions { display: flex; gap: 10px; }
.btn-light {
  background: var(--paper-pure);
  color: var(--ink);
  border: 1px solid var(--paper-pure);
}
.btn-light:hover { background: var(--paper-tint); border-color: var(--paper-tint); color: var(--ink); }

/* ---------- 15. Error page ---------- */
.err-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--paper);
}
.err-page .err-num {
  font-family: var(--mono);
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 500;
  color: var(--reg-blue);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.err-page .err-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.err-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 18px 0 14px;
}
.err-page p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--ink-mid);
}

/* ============================================================
   BAUHAUS PRIMARY ACCENTS — visible identity tweak that pulls this
   site away from pursesguide's heritage broadsheet look.
   Red rule above the masthead, yellow notch on the hero, blue keeps
   its existing role as the link / kicker accent.
   ============================================================ */

body { background: var(--paper); }

/* Red rule across the very top of every page */
body::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--bau-red);
}

/* Yellow square anchored at the top-right of the hero (Bauhaus chip) */
.entry-head { position: relative; }
.entry-head::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 0;
  width: 84px;
  height: 84px;
  background: var(--bau-yellow);
  z-index: 1;
}

/* Section markers in red instead of mute grey */
.section-marker { color: var(--bau-red); border-right-color: var(--bau-red); }

/* Operator-entry numerals in red, not blue */
.operator-entry-no strong,
.operator-entry-no { color: var(--bau-red); }

/* Banner block: yellow inner backdrop bar */
.banner-frame { border-top: 6px solid var(--bau-yellow); }

/* Footer top rule: blue (was paper); add a thin yellow stripe under footer */
.footer { border-top: 6px solid var(--bau-blue); }
.footer::after {
  content: '';
  display: block;
  height: 4px;
  background: var(--bau-yellow);
  margin-top: 24px;
}

/* ---------- 16. Mobile / responsive — ALL @media at the END ---------- */
@media (max-width: 1024px) {
  .file-grid { grid-template-columns: 1fr; }
  .file-rail { position: static; }
  .reference-block-grid { grid-template-columns: 1fr; gap: 24px; }
  .reference-label {
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
  }
  .ref-page-grid { grid-template-columns: 1fr; gap: 28px; }
  .ref-page-aside { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .entry-head-inner { grid-template-columns: 1fr; gap: 32px; }
  .entry-head-aside { max-width: 380px; }
  .operator-entry {
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
  }
  .operator-entry-no {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .operator-entry-no strong { display: inline; font-size: 1.4rem; margin-top: 0; }
  .operator-entry-actions { grid-column: 1 / 3; flex-direction: row; }
}

@media (max-width: 880px) {
  .container { padding: 0 22px; }
  .container-narrow { padding: 0 22px; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar-center { display: none; }
  .nav-list { display: none; }
  .nav-list.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 16px 22px;
  }
  .menu-btn { display: flex; }
  .navbar-inner { position: relative; }
  .topbar-left .edition-mark { display: none; }
}

@media (max-width: 880px) {
  .banner-frame { grid-template-columns: 1fr; }
  .banner-frame-image { min-height: 200px; }
}

@media (max-width: 640px) {
  .entry-head { padding: 40px 0 32px; }
  .entry-head-title { max-width: 100%; }
  .brand-wordmark-tag { display: none; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
  .leave-card, .age-card { padding: 28px 22px; }
  .leave-actions { flex-direction: column; }
  .leave-actions .btn { width: 100%; }
  .operator-entry { grid-template-columns: 1fr; gap: 14px; }
  .operator-entry-no { grid-column: 1; }
  .operator-entry-actions { grid-column: 1; flex-direction: column; }
  .operator-entry-mark { max-width: 200px; }
  .age-tag { display: none; }
  .file-head-meta { grid-template-columns: 1fr 1fr; }
  .toc-item { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .toc-line { left: 46px; right: 60px; }
  .question-trigger { grid-template-columns: 36px 1fr 28px; gap: 10px; }
  .question-body { padding-left: 56px; }
  .question-item.open .question-body { padding-left: 56px; }
}
