/* Layout: a reference dataset, read like a standards document. Slim masthead with the dataset stamp,
   a sticky section index on the left, one content column with full-width evidence tables.
   Three voices encode provenance: our labels in Public Sans, the vendor's words in Source Serif,
   machine-observed values in JetBrains Mono. One accent, used for state and links only. */
:root {
  --bg: #ffffff;
  --panel: #f6f7f9;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --accent: #1e47b8;
  --accent-wash: #eef2fc;
  --quote: #1f2937;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --voice: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 70ch;
  --wide: 1320px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --panel: #141a22; --ink: #e6e9ee; --ink-2: #c5cbd4; --muted: #8b95a3;
    --line: #232b36; --line-2: #2f3946; --accent: #8fb0ff; --accent-wash: #172238; --quote: #dde3ea;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --panel: #141a22; --ink: #e6e9ee; --ink-2: #c5cbd4; --muted: #8b95a3;
  --line: #232b36; --line-2: #2f3946; --accent: #8fb0ff; --accent-wash: #172238; --quote: #dde3ea;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.obs, code, .src, pre { font-family: var(--mono); }

.wrap {
  max-width: var(--wide); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Masthead */
.mast { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.005em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 3px; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 3px 3px auto 3px; height: 2px; background: var(--accent); box-shadow: 0 4px 0 var(--accent), 0 8px 0 var(--accent); }
.mast-meta { margin: 0; font-size: 11.5px; color: var(--muted); }

/* Shell: index column + content column */
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); padding-block: 36px 24px; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-h { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.side li a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 14px; }
.side li a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line-2); }
.side li a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
main { min-width: 0; padding-block: 36px 72px; }

/* Page head */
.crumbs { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: clamp(26px, 2.2vw + 14px, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 14px; max-width: 26ch; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: var(--measure); margin: 0 0 14px; }
.stamp { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; margin: 0 0 32px; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; margin: 48px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); max-width: var(--measure); text-wrap: balance; }
h3 { font-size: 15px; font-weight: 650; margin: 26px 0 6px; }
p, ul, ol { max-width: var(--measure); }
.prose p { margin: 0 0 12px; color: var(--ink-2); }
.prose li { margin-bottom: 5px; color: var(--ink-2); }
.kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
code { font-size: .86em; background: var(--panel); border: 1px solid var(--line); padding: 0 .3em; border-radius: 3px; }

/* Vendor's own words */
.said { font-family: var(--voice); font-size: 15.5px; line-height: 1.5; color: var(--quote); margin: 0; }
.said q { quotes: "\201C" "\201D"; }
.said + .said { margin-top: 10px; }
.src { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.src a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.plan { font-family: var(--sans); font-size: 11.5px; color: var(--muted); }

/* State markers: filled, hollow, dashed */
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.m { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.m::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.m-s::before { background: var(--accent); }
.m-n, .m-u { color: var(--muted); }
.m-n::before { border-color: var(--line-2); }
.m-u::before { border-style: dashed; border-color: var(--muted); }

/* Tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 14px; background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { position: sticky; top: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); background: var(--panel); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody th a { color: var(--ink); }
tbody tr:hover > * { background: var(--accent-wash); }
.matrix td { white-space: nowrap; }
.matrix th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: inset -1px 0 0 var(--line); }
.matrix thead th:first-child { background: var(--panel); z-index: 2; }

/* Vendor records */
.vlist { columns: 4 10rem; column-gap: 24px; padding: 14px 16px; list-style: none; font-size: 13.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; max-width: none; }
.vlist li { break-inside: avoid; padding: 2px 0; }
.vendor { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 20px; scroll-margin-top: 80px; }
.vendor header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 14px 18px; background: var(--panel); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.vendor h2 { border: 0; margin: 0; padding: 0; font-size: 18px; }
.vendor header .src { margin: 0; }
.vendor details { padding: 10px 18px 0; }
.vendor dl { margin: 0; padding: 4px 18px 8px; }
.entry { display: grid; grid-template-columns: minmax(140px, 12rem) minmax(0, 1fr); gap: 4px 24px; padding: 11px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry > dt { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.entry > dd { margin: 0; min-width: 0; }
details { font-size: 13px; }
summary { cursor: pointer; color: var(--muted); }
details ul { margin: 8px 0 0; padding-left: 18px; font-size: 11px; overflow-wrap: anywhere; max-width: none; }

/* Notices and code */
.risk { max-width: var(--measure); font-size: 13px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 10px 14px; margin: 14px 0 24px; }
.risk strong { color: var(--ink); }
pre { font-size: 12.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; overflow-x: auto; max-width: 100%; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--panel); font-size: 12.5px; color: var(--muted); }
footer.site .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 18px 40px; padding-block: 28px 36px; }
footer.site p { margin: 0 0 8px; max-width: 62ch; }
footer.site a { color: var(--ink-2); }
footer.site .fname { font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; padding-block: 14px 0; border-bottom: 1px solid var(--line); }
  .side nav { display: flex; gap: 6px 16px; overflow-x: auto; padding-bottom: 12px; }
  .nav-group + .nav-group { margin-top: 0; }
  .nav-h { display: none; }
  .side ul { display: flex; gap: 2px 14px; border: 0; }
  .side li a { padding: 2px 0; border: 0; white-space: nowrap; }
  .side li a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
  main { padding-block: 24px 48px; }
}
@media (max-width: 640px) {
  .entry { grid-template-columns: minmax(0, 1fr); }
  .mast-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Request form */
.req { display: grid; gap: 16px; max-width: 36rem; margin: 0 0 24px; }
.req label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.req input, .req select, .req textarea { font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 11px; width: 100%; }
.req textarea { resize: vertical; }
.req input:focus-visible, .req select:focus-visible, .req textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.req button { justify-self: start; font: 600 14px/1 var(--sans); color: #fff; background: var(--accent); border: 0; border-radius: 6px; padding: 11px 18px; cursor: pointer; }
.req button:hover { filter: brightness(1.08); }
.req .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:root[data-theme="dark"] .req button { color: #0d1117; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .req button { color: #0d1117; } }
