:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #b9c1bd;
  --dim: #84908c;
  --sea: #07191b;
  --surface: #10292a;
  --surface-2: #173536;
  --line: #315052;
  --coral: #ff6b4a;
  --gold: #f0bf54;
  --mint: #7dd3b0;
  --blue: #71a9d8;
  --danger: #ff8c78;
  --content: 1180px;
  --reading: 760px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sea); color: var(--ink); line-height: 1.65; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #b5f5d9; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--sea); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(7,25,27,.96); position: sticky; top: 0; z-index: 20; }
.header-inner { max-width: var(--content); margin: auto; min-height: 64px; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 820; letter-spacing: 0; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); background: var(--surface); }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.page-shell { max-width: var(--content); margin: auto; padding: 34px 22px 80px; display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 48px; }
.content { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); font-size: .84rem; margin-bottom: 28px; }
.breadcrumbs a { color: var(--muted); }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: .74rem; font-weight: 800; }
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; overflow-wrap: anywhere; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 6vw, 4.8rem); max-width: 18ch; margin: 10px 0 18px; }
h2 { font-size: 1.55rem; margin: 48px 0 16px; padding-top: 10px; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin-top: 28px; }
.dek { max-width: 70ch; font-size: 1.12rem; color: var(--muted); }
.status-line { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 30px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.badge.good { border-color: #417b6a; color: var(--mint); }
.badge.warn { border-color: #8a7039; color: var(--gold); }
.badge.coral { border-color: #87503f; color: #ffab94; }
.answer { border-left: 4px solid var(--coral); padding: 14px 18px; background: var(--surface); margin: 28px 0; }
.answer strong { color: var(--coral); }

figure { margin: 34px 0; border: 1px solid var(--line); background: var(--surface); }
figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { padding: 12px 15px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.task-link { display: block; border: 1px solid var(--line); background: var(--surface); padding: 18px; color: var(--ink); text-decoration: none; min-height: 134px; }
.task-link:hover { border-color: var(--mint); background: var(--surface-2); }
.task-link small { display: block; color: var(--gold); margin-bottom: 20px; }
.task-link strong { font-size: 1.08rem; }
.task-link span { display: block; color: var(--muted); font-size: .88rem; margin-top: 7px; }
.guide-queue { display: grid; border-top: 1px solid var(--line); margin: 22px 0; }
.guide-queue div { display: grid; grid-template-columns: 150px minmax(0,1fr) 150px; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.guide-queue span { color: var(--muted); }
.guide-queue em { color: var(--gold); font-size: .8rem; font-style: normal; text-align: right; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); margin: 24px 0; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold); background: var(--surface); font-size: .78rem; text-transform: uppercase; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.metric-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.metric { padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.metric span { color: var(--dim); display: block; font-size: .76rem; text-transform: uppercase; }
.metric strong { display: block; margin-top: 5px; font-size: 1.25rem; }
.callout { padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); margin: 24px 0; }
.callout.warning { border-color: #8a7039; }
.callout.error { border-color: #87503f; }
.source-list { padding-left: 20px; }
.source-list li { margin: 12px 0; color: var(--muted); overflow-wrap: anywhere; }
.source-list span { display: block; color: var(--dim); font-size: .8rem; }

.toc { position: sticky; top: 92px; align-self: start; border-left: 1px solid var(--line); padding-left: 20px; }
.toc strong { display: block; color: var(--gold); font-size: .75rem; text-transform: uppercase; margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .88rem; }
.toc a:hover { color: var(--ink); }
.updated { margin-top: 24px; font-size: .75rem; color: var(--dim); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--content); margin: auto; padding: 28px 22px 50px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; color: var(--dim); font-size: .8rem; }
.footer-inner nav { display: flex; gap: 14px; }

.search-form { display: flex; gap: 8px; max-width: 650px; margin: 24px 0; }
.search-form input { flex: 1; min-width: 0; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.search-form button { padding: 12px 16px; border: 0; background: var(--coral); color: #170a06; font-weight: 800; }
.search-results { display: grid; gap: 10px; }
.search-result { border: 1px solid var(--line); background: var(--surface); padding: 16px; }
.search-result a { font-weight: 750; }
.search-result p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; }
  .menu-button { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 10px 16px 16px; background: var(--sea); border-bottom: 1px solid var(--line); }
  .nav.open { display: grid; position: static; flex-basis: 100%; margin-left: 0; margin-bottom: 10px; }
  .page-shell { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); padding: 14px 16px; }
  .toc strong { cursor: pointer; }
  .toc a { display: none; }
  .toc:focus-within a, .toc:hover a { display: inline-block; margin-right: 14px; }
}
@media (max-width: 540px) {
  .header-inner, .page-shell, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .page-shell { padding-top: 24px; }
  h1 { font-size: 2.45rem; overflow-wrap: anywhere; }
  .grid, .metric-row { grid-template-columns: 1fr; }
  .search-form { display: grid; }
  .guide-queue div { grid-template-columns: 1fr; gap: 4px; }
  .guide-queue em { text-align: left; }
}
