:root {
  --ink: #0b1526;
  --ink-2: #2b3a52;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --navy: #0a1730;
  --navy-2: #12244a;
  --brand: #2557d6;
  --brand-dark: #1a43ad;
  --ok: #16a34a;
  --ok-text: #15803d;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 23, 48, .06), 0 8px 24px rgba(10, 23, 48, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 88px; }
section[id] { scroll-margin-top: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1, h2 { text-wrap: balance; }
p, h3, li { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: 88px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-alt + .section-cta { padding-top: 64px; } }
.section-cta { padding-top: 0; }
.section-alt + .section-cta { padding-top: 88px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5cdd9; background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e8eefb; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .6); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; height: 68px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--brand); flex: none; }
.brand { flex: none; }
.nav-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a { position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .site-header.open { background: #fff; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding-top: 13px; padding-bottom: 20px; row-gap: 8px; }
  .site-header.open .nav-links { display: flex; flex-direction: column; gap: 0; width: 100%; order: 3; }
  .site-header.open .nav-links a { display: block; padding: 10px 0; }
  .site-header.open .nav-links a[aria-current="page"] { color: var(--brand); }
  .site-header.open .nav-links a[aria-current="page"]::after { display: none; }
  .site-header.open .nav-cta { display: flex; flex-wrap: wrap; width: 100%; order: 4; margin: 8px 0 0; }
  .site-header.open .nav-cta .btn { flex: 1 1 160px; }
  .site-header.open .nav-cta { max-width: 520px; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: #c9d4e6; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero::after { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(37, 87, 214, .35), transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: #8fb0ff; }
.hero .lead { color: #aebbd2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: .85rem; color: #8494b0; display: flex; align-items: flex-start; gap: 8px; }
.hero-note svg { width: 12px; height: 12px; flex: none; margin-top: 4px; }
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } }
.page-hero { padding-top: 80px; padding-bottom: 72px; }
.page-hero .lead { margin-bottom: 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 48px; }
}

/* App mock */
.app { background: #fff; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; font-size: 12px; color: var(--ink-2); }
.app-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef1f5; border-bottom: 1px solid var(--line); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d9e1; }
.app-bar span { margin-left: 10px; font-weight: 600; color: var(--muted); font-size: 11px; }
.app-bar .secure { margin-left: auto; display: flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: 10.5px; }
.app-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 300px; }
.app-side { background: #f7f9fb; border-right: 1px solid var(--line); padding: 12px 8px; }
.app-side div { padding: 6px 8px; border-radius: 6px; margin-bottom: 2px; display: flex; justify-content: space-between; align-items: center; gap: 4px; white-space: nowrap; }
.app-side .on { background: #e4ebfb; color: var(--brand-dark); font-weight: 600; }
.app-side b { font-weight: 600; font-size: 10px; background: var(--brand); color: #fff; border-radius: 9px; padding: 0 6px; }
.app-list { padding: 4px 0; }
.app-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f2f5; }
.app-row .av { width: 22px; height: 22px; border-radius: 50%; background: #dbe3f1; color: var(--navy-2); font-weight: 700; font-size: 9.5px; display: grid; place-items: center; }
.app-row strong { display: block; color: var(--ink); font-size: 11.5px; }
.app-row small { color: var(--muted); font-size: 10.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row time { color: var(--muted); font-size: 10px; }
.app-row.unread strong::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }
@media (max-width: 520px) { .app-body { grid-template-columns: minmax(0, 1fr); } .app-side { display: none; } .app-bar .secure { font-size: 0; gap: 0; } .app-bar .secure svg { width: 12px; height: 12px; } }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 9px; background: #eaf0fd; color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 20px; height: 20px; }
.card p { color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: #e6f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='2.5'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stats div { padding: 28px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats strong { display: block; font-size: 1.9rem; color: var(--ink); letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 60px; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 24px; left: 28px; font: 700 .85rem var(--mono); color: var(--brand);
}

.sectors { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sectors li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: var(--ink-2); }

.diagram { background: var(--navy); border-radius: 12px; padding: 36px 32px 28px; color: #aebbd2; font-size: .82rem; }
.diagram .row { display: flex; align-items: stretch; }
.diagram .node { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 14px 10px; text-align: center; }
.diagram .node strong { color: #fff; font-size: .9rem; }
.diagram .node.hl { border-color: #4f7ef0; background: rgba(37, 87, 214, .2); }
.diagram .arrow { position: relative; flex: 0 0 28px; align-self: center; height: 2px; background: #4a5f8a; margin: 0 4px; }
.diagram .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid #4a5f8a; border-right: 0; }
.diagram .down { position: relative; width: 2px; height: 28px; margin: 4px auto; background: #4a5f8a; }
.diagram .down::after { content: ""; position: absolute; bottom: -1px; left: -4px; border: 5px solid transparent; border-top: 7px solid #4a5f8a; border-bottom: 0; }
.diagram .caption { margin: 22px 0 0; font-size: .8rem; color: #8494b0; text-align: center; }
@media (max-width: 480px) {
  .diagram { padding: 24px 20px 20px; }
  .diagram .row { flex-direction: column; }
  .diagram .arrow { flex: 0 0 22px; width: 2px; height: auto; margin: 4px 0; }
  .diagram .arrow::after { right: auto; top: auto; bottom: -1px; left: -4px; border: 5px solid transparent; border-top: 7px solid #4a5f8a; border-bottom: 0; }
}

.cta { background: var(--navy); color: #c9d4e6; border-radius: 16px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: #aebbd2; }
.cta .hero-actions { margin: 0; }
.cta > div:first-child { flex: 1 1 420px; max-width: 600px; }
@media (max-width: 640px) { .cta { padding: 36px 24px; } }

/* Tables and prose */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
#editions .table { table-layout: fixed; min-width: 600px; }
#editions .table th:first-child { width: 37%; }
#editions .table tbody th, #editions .table thead th:first-child { position: sticky; left: 0; z-index: 1; }
#editions .table tbody th { background: #fff; }
.prose .table th { width: 200px; }
@media (max-width: 860px) { .narrow { max-width: none; } }
.table-hint { display: none; color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
@media (max-width: 680px) { .table-hint { display: block; } }
.table-wrap .table tr:last-child > * { border-bottom: 0; }

.prose h2 { font-size: 1.4rem; margin-top: 2.2em; scroll-margin-top: 96px; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
.prose dt { font-weight: 600; color: var(--ink); }
.prose dd { margin: 0; }
@media (max-width: 640px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }
.updated { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.yes { color: var(--ok-text); font-weight: 700; }
.no { color: var(--muted); }
.nowrap { white-space: nowrap; }
.doc { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 64px; justify-content: start; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc .toc-title { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .92rem; }
.toc a:hover { color: var(--ink); border-left-color: var(--brand); text-decoration: none; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }

/* Contact */
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card { display: flex; flex-direction: column; }
.contact-card .mail { margin-top: auto; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.notice { border: 1px solid #f3dfb3; background: #fffaf0; color: #7a4b05; border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; }

/* Login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy); color: #aebbd2; padding: 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 60%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000 15%, transparent 70%);
}
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; }
.auth-side li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #c9d4e6; font-size: .95rem; }
.auth-side li svg { width: 18px; height: 18px; color: #8fb0ff; flex: none; }
.auth-side::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(37, 87, 214, .35), transparent 65%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; }
.auth-side .brand svg { color: #8fb0ff; }
.auth-pitch { margin: auto 0; max-width: 420px; }
.auth-pitch h2 { color: #fff; font-size: 1.75rem; }
.auth-side small { color: #aebbd2; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 18vh 24px 48px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 1.6rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label a { font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 14px; font: 1rem var(--font); color: var(--ink);
  border: 1px solid #8592a6; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 87, 214, .15); }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 22px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alert { display: flex; gap: 10px; border-radius: 8px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; border: 1px solid #f5c2c2; background: #fdf2f2; color: #8f1d1d; }
.alert:not(.show) { padding: 0; margin: 0; border: 0; height: 0; overflow: hidden; }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.auth-foot { margin-top: 32px; font-size: .82rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-foot a { color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .8; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } .auth-main { padding-top: 40px; } }
@media (min-width: 600px) and (max-width: 860px) { .auth-main { align-items: center; padding-top: 48px; } }

/* Status */
.status-banner { display: flex; align-items: center; gap: 14px; background: #ecf8f0; border: 1px solid #bfe5cb; color: #135c2c; border-radius: var(--radius); padding: 20px 24px; font-weight: 600; font-size: 1.05rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.component { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; background: #fff; }
.component-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.component-head strong { color: var(--ink); }
.component-head span { color: var(--ok-text); font-size: .88rem; font-weight: 600; }
.bars { display: flex; gap: 2px; height: 32px; }
.bars i { flex: 1; border-radius: 2px; background: var(--ok); opacity: .85; }
.bars i.warn { background: var(--warn); }
.bars i.maint { background: var(--brand); }
.status-meta { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.bars-legend { display: grid; grid-template-columns: 1fr auto 1fr; color: var(--muted); font-size: .78rem; margin-top: 8px; }
.bars-legend span:last-child { text-align: right; }
.bars i:hover { opacity: 1; filter: brightness(.85); }
.lg-30 { display: none; }
@media (max-width: 640px) { .bars i:nth-child(-n+60) { display: none; } .bars { gap: 3px; } .lg-90 { display: none; } .lg-30 { display: inline; } }
.incident { border-left: 3px solid var(--line); padding: 4px 0 4px 20px; margin-bottom: 28px; }
.incident time { color: var(--muted); font-size: .85rem; }
.incident h3 { margin: 4px 0 6px; }
.incident p { margin: 0 0 .4em; font-size: .95rem; }
.incident .tag { font-weight: 600; color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: #8494b0; padding: 64px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand svg { color: #8fb0ff; }
.site-footer .footer-title { color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #aebbd2; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .op { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .op .dot { width: 8px; height: 8px; box-shadow: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Auth flows */
.auth-mobile-brand { display: none; margin-bottom: 32px; }
@media (max-width: 860px) { .auth-mobile-brand { display: flex; } }
.auth-sub { color: var(--muted); margin-bottom: 28px; }
.step-count { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.field-error { color: var(--bad); font-size: .85rem; margin: 6px 0 0; }
.field-error:empty { margin: 0; }
.field-hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.field.invalid input { border-color: var(--bad); }
.field.invalid input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.field.invalid .field-hint { display: none; }
.mono { font-family: var(--mono) !important; letter-spacing: .04em; }
.check.top { align-items: flex-start; margin-bottom: 22px; }
.check.top input { margin-top: 4px; flex: none; }
.check.top + .check-error:not(:empty) { margin: -16px 0 16px; }
.auth-alt { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.auth-alt + .auth-alt { margin-top: 6px; }
.onboard { list-style: none; margin: 32px 0 0; padding: 0; }
.onboard li { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.onboard li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: rgba(255, 255, 255, .12); }
.onboard .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, .25); color: #aebbd2; font-size: .85rem; font-weight: 600; }
.onboard strong { display: block; color: #e3e9f4; font-size: .95rem; }
.onboard small { color: #8494b0; font-size: .85rem; }
.onboard .current .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.onboard .current strong { color: #fff; }
.access-card hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.access-card .btn { align-self: flex-start; }
.access-card { display: flex; flex-direction: column; }
[hidden] { display: none !important; }

/* Accessibility */
.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; }
#editions .table tbody th { background: #fff; font-weight: 400; color: var(--ink-2); }
#editions .table tbody th, #editions .table thead th:first-child { box-shadow: inset -1px 0 0 var(--line); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .auth-side :focus-visible { outline-color: #8fb0ff; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 6px; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 2s; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .toc, .section-cta, .nav-toggle, .skip { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead, .hero .eyebrow { color: #000; }
  .hero::before, .hero::after { display: none; }
}
.lang-switch { display: inline-flex; align-items: center; height: 42px; padding: 0 10px; color: var(--ink-2); font-weight: 600; font-size: .85rem; letter-spacing: .04em; border-radius: 8px; }
.lang-switch:hover { color: var(--brand); background: var(--bg-alt); text-decoration: none; }
@media (max-width: 1100px) { .site-header.open .nav-cta .lang-switch { order: 3; flex: 1 1 100%; padding-left: 0; } }
.hero h1:lang(fr) { font-size: clamp(2rem, 4vw, 2.9rem); }
@media (max-width: 400px) { .stats div { padding: 20px 14px; } .stats strong { font-size: 1.6rem; } }
