/* Fonts are served from this site (public/fonts, SIL OFL 1.1): no third party sees who reads the Trust Center, and the
   CSP allows styles and fonts from 'self' only. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/public-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/public-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/public-sans-latin-ext-wght-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/public-sans-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Commandry Trust Center. Public Sans (the U.S. Web Design System's typeface) and JetBrains Mono for IDs, hashes and code. */
:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f8f9fb; --ink: #121c2e; --ink-2: #33415a; --muted: #5b6880; --line: #dde2ea; --line-2: #c9d1dd;
  --accent: #1a4a8a; --accent-ink: #ffffff; --accent-soft: #e6eef9; --focus: #2563eb; --field: #77849a;
  --pass: #1e7a46; --pass-soft: #e3f3ea; --fail: #b42323; --fail-soft: #fbe7e7; --warn: #946200; --warn-soft: #fbf0d6; --unk: #5b6880; --unk-soft: #eceff4;
  --on-status: #ffffff; --texture: rgba(0, 0, 0, .26);
  --code-bg: #f6f8fb; --hl: #fff4c2; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .18); --r: 10px;
  --f: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1220; --surface: #141c2e; --surface-2: #182236; --ink: #e7ecf4; --ink-2: #c3ccdb; --muted: #97a3b8; --line: #263249; --line-2: #33415c;
    --accent: #8ab4f0; --accent-ink: #0c1220; --accent-soft: #1b2b47; --focus: #8ab4f0; --field: #6b7a95;
    --pass: #5cc98a; --pass-soft: #12301f; --fail: #f08080; --fail-soft: #3a1717; --warn: #e6b955; --warn-soft: #3a2c0e; --unk: #97a3b8; --unk-soft: #222c40;
    --on-status: #0c1220; --texture: rgba(255, 255, 255, .34);
    --code-bg: #0f1727; --hl: #3b3410; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1220; --surface: #141c2e; --surface-2: #182236; --ink: #e7ecf4; --ink-2: #c3ccdb; --muted: #97a3b8; --line: #263249; --line-2: #33415c;
  --accent: #8ab4f0; --accent-ink: #0c1220; --accent-soft: #1b2b47; --focus: #8ab4f0; --field: #6b7a95;
  --pass: #5cc98a; --pass-soft: #12301f; --fail: #f08080; --fail-soft: #3a1717; --warn: #e6b955; --warn-soft: #3a2c0e; --unk: #97a3b8; --unk-soft: #222c40;
    --on-status: #0c1220; --texture: rgba(255, 255, 255, .34);
  --code-bg: #0f1727; --hl: #3b3410; --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f); }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
h1[tabindex="-1"]:focus { outline: none; }
.h3 { font-size: 15.5px; font-weight: 700; }
.tabs, .tbl-wrap, .code, .files, .palette-res { position: relative; } /* scroll boxes contain their .sr-only text */
.req { color: var(--fail); font-weight: 700; }
.linkish { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
[hidden] { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1360px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.mark { width: 30px; height: 30px; fill: currentColor; }
.brand-words { display: grid; line-height: 1.05; }
.brand-word { display: block; width: 112px; height: 22px; background: currentColor;
  -webkit-mask: url(/brand/commandry-wordmark.png) left center / contain no-repeat; mask: url(/brand/commandry-wordmark.png) left center / contain no-repeat; }
.brand-words { gap: 3px; }
.brand-sub { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.search-open { flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface-2); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.search-open:hover { border-color: var(--accent); }
.search-open svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.search-open span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; color: var(--muted); background: var(--surface); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.who { display: grid; text-align: right; line-height: 1.2; font-size: 13px; }
.who b { font-weight: 600; }
.who span { color: var(--muted); font-size: 12px; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; border: 1px solid; }
.vbadge svg { width: 15px; height: 15px; }
.vbadge.ok { color: var(--pass); background: var(--pass-soft); border-color: color-mix(in srgb, var(--pass) 35%, transparent); }
.vbadge.bad { color: var(--fail); background: var(--fail-soft); border-color: color-mix(in srgb, var(--fail) 35%, transparent); }
.vbadge.wait { color: var(--muted); background: var(--unk-soft); border-color: var(--line-2); }

/* layout */
.layout { max-width: 1360px; margin: 0 auto; padding: 22px 20px 80px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.layout.bare { grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
nav.side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 1px; max-height: calc(100vh - 96px); overflow: auto; }
nav.side .eyebrow { padding: 14px 10px 6px; }
nav.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
nav.side a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; opacity: .85; }
nav.side a .n { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
nav.side a:hover { background: var(--accent-soft); color: var(--ink); }
nav.side a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
nav.side a[aria-current="page"] .n { color: inherit; opacity: .8; }
main { min-width: 0; outline: none; }
.loading { color: var(--muted); padding: 40px 0; }

/* page furniture */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head > div:first-child { flex: 1; min-width: 260px; display: grid; gap: 6px; }
.page-head .lede { color: var(--ink-2); max-width: 75ch; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card + .card, .stack > * + * { margin-top: 16px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2, .card-h h3 { flex: 1; min-width: 0; }
.card-b { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.spacer { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--fail); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn[disabled] { opacity: .55; cursor: default; }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=number], select, textarea {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 8px; padding: 8px 10px; min-width: 0; }
input[type=checkbox], input[type=file] { accent-color: var(--accent); }
textarea { width: 100%; font-family: var(--mono); font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
label.f { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.f > span.hint { font-weight: 400; color: var(--muted); }
.form { display: grid; gap: 12px; }
.form .row > * { flex: 1; min-width: 160px; }

/* status */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pass, .pill.success { color: var(--pass); background: var(--pass-soft); }
.pill.fail, .pill.failed, .pill.error { color: var(--fail); background: var(--fail-soft); }
.pill.insufficient, .pill.warn, .pill.pass_with_errors { color: var(--warn); background: var(--warn-soft); }
.pill.unknown, .pill.na { color: var(--unk); background: var(--unk-soft); }
.pill.lg { font-size: 14px; padding: 4px 12px; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--unk-soft); color: var(--ink-2); white-space: nowrap; text-decoration: none; }
a.tag:hover { background: var(--accent-soft); color: var(--accent); }
.tag.mono { font-family: var(--mono); font-weight: 500; }
.check { width: 18px; height: 18px; flex: none; }
.ok-t { color: var(--pass); } .bad-t { color: var(--fail); } .warn-t { color: var(--warn); }

/* two-method meter */
.meter { display: inline-flex; gap: 4px; vertical-align: middle; }
.meter i { width: 14px; height: 8px; border-radius: 3px; background: transparent; border: 1px solid var(--muted); }
.meter i.on { background: var(--pass); border-color: var(--pass); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot { border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; min-height: 74px; }
.slot.on { border-style: solid; border-color: color-mix(in srgb, var(--pass) 50%, transparent); background: var(--pass-soft); }
.slot .eyebrow { color: inherit; opacity: .8; }
.slot b { font-size: 14.5px; }
.slot .mono { overflow-wrap: anywhere; }

/* overview */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.hero h1 { font-size: 30px; }
.score { display: flex; align-items: center; gap: 22px; }
.donut { width: 132px; height: 132px; flex: none; }
.legend { display: grid; gap: 7px; font-size: 14px; }
.legend div { display: flex; align-items: center; gap: 9px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend b { font-family: var(--mono); min-width: 2.2ch; text-align: right; }
.vlist { display: grid; gap: 9px; font-size: 14px; }
.vlist div { display: flex; gap: 9px; align-items: flex-start; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.theme { padding: 14px 16px; display: grid; gap: 10px; }
.theme-h { display: flex; align-items: baseline; gap: 8px; }
.theme-h h3 { flex: 1; }
.tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.tile { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; font: 600 12px/1.2 var(--mono); text-decoration: none; border: 1px solid transparent; }
.tile.pass { background: var(--pass-soft); color: var(--pass); } .tile.fail { background: var(--fail-soft); color: var(--fail); }
.tile.insufficient { background: var(--warn-soft); color: var(--warn); } .tile.unknown { background: var(--unk-soft); color: var(--unk); }
.tile:hover { border-color: currentColor; }
.tile .gl { font-family: var(--f); font-weight: 800; width: 1ch; text-align: center; }
.persona { display: grid; gap: 10px; }
.persona ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--accent-soft); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .id { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type=search] { flex: 1; min-width: 220px; padding: 10px 12px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* results list (search, evidence) */
.hits { display: grid; }
.hit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.hit:last-child { border-bottom: 0; }
.hit:hover, .hit.sel { background: var(--accent-soft); }
.hit .kind { font: 700 10.5px/1.9 var(--f); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 6px; margin-top: 2px; }
.hit .t { font-weight: 600; overflow-wrap: anywhere; }
.hit .s { grid-column: 2; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hit .r { text-align: right; font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; justify-items: end; }

/* KSI detail */
.method { overflow: hidden; }
.method.counts { border-color: color-mix(in srgb, var(--pass) 45%, var(--line)); }
.checks { display: grid; }
.checkrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 18px; border-top: 1px solid var(--line); }
.checkrow:first-child { border-top: 0; }
.checkrow .d { grid-column: 2; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.checkrow .m { grid-column: 2; font-size: 12.5px; color: var(--warn); }
.calls-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline { display: flex; gap: 2px; align-items: flex-end; flex-wrap: wrap; }
.timeline { min-height: 22px; }
.timeline i { width: 9px; height: 22px; border-radius: 2px; }
.timeline i.pass { background: var(--pass); } .timeline i.fail { background: var(--fail); height: 6px; } .timeline i.insufficient { background: var(--warn); height: 15px; } .timeline i.unknown { background: var(--unk); height: 10px; }
.statement { font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }

/* evidence detail */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 12px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .n { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.integrity { display: grid; gap: 8px; font-size: 14px; }
.integrity div { display: flex; gap: 9px; align-items: flex-start; }
.hash { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; color: var(--ink-2); }
.json { font: 12.5px/1.6 var(--mono); background: var(--code-bg); border-radius: 8px; padding: 12px 14px; overflow: auto; max-height: 70vh; }
.json details { margin-left: 14px; }
.json summary { cursor: pointer; list-style: none; margin-left: -14px; }
.json summary::-webkit-details-marker { display: none; }
.json summary::before { content: "▸"; display: inline-block; width: 14px; color: var(--muted); }
.json details[open] > summary::before { content: "▾"; }
.json .k { color: var(--accent); } .json .s { color: var(--pass); } .json .n { color: var(--warn); } .json .b { color: var(--fail); } .json .z { color: var(--muted); }
.json .row1 { margin-left: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.json mark { background: var(--hl); color: inherit; border-radius: 2px; }
.call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 16px; border-top: 1px solid var(--line); align-items: start; font-size: 13.5px; }
.call:first-child { border-top: 0; }
.call .op { font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.call .st { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.call .st.ok { color: var(--pass); background: var(--pass-soft); } .call .st.no { color: var(--fail); background: var(--fail-soft); }
.call details { grid-column: 1 / -1; }
.call summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 600; }
.diffrow { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.diffrow .p { font-family: var(--mono); overflow-wrap: anywhere; }
.diffrow .v { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.op-added { color: var(--pass); font-weight: 700; } .op-removed { color: var(--fail); font-weight: 700; } .op-changed { color: var(--warn); font-weight: 700; }

/* code */
pre.cmd { position: relative; margin: 0; font: 12.5px/1.6 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 44px 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.cmd .copy { position: absolute; top: 6px; right: 6px; }
.code { font: 12.5px/1.65 var(--mono); background: var(--code-bg); border-radius: 8px; overflow: auto; max-height: 76vh; counter-reset: ln; }
.code .ln { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.code .ln::before { counter-increment: ln; content: counter(ln); text-align: right; padding-right: 14px; color: var(--muted); opacity: .7; user-select: none; }
.code .ln > span { white-space: pre; padding-right: 16px; }
.code .ln.hl { background: var(--hl); }
.code .c { color: var(--muted); font-style: italic; } .code .s { color: var(--pass); } .code .kw { color: var(--accent); font-weight: 600; } .code .nm { color: var(--warn); }
.files { display: grid; max-height: 76vh; overflow: auto; font-size: 13px; }
.files a { display: flex; gap: 8px; padding: 5px 12px; text-decoration: none; color: var(--ink-2); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.files a:hover, .files a[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }
.files .dir { padding: 9px 12px 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); }

/* verify */
.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; align-items: start; font-size: 14px; }
.step .d { grid-column: 2; font-size: 12.5px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.bar { height: 8px; border-radius: 99px; background: var(--unk-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--pass); transition: width .2s; }

/* public */
.pub-hero { padding: 34px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background:
  radial-gradient(1200px 300px at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.pub-hero h1 { font-size: 34px; }
.pub-hero .lede { font-size: 16.5px; color: var(--ink-2); max-width: 70ch; margin-top: 10px; }
.pub-actions { display: grid; gap: 10px; min-width: 230px; }
.banner { border: 1px solid var(--line-2); border-left: 4px solid var(--warn); background: var(--warn-soft); padding: 12px 14px; border-radius: 8px; font-size: 13.5px; color: var(--ink); }
.signin { max-width: 520px; margin: 40px auto; padding: 28px; display: grid; gap: 16px; }
.cds { display: grid; }
.cdsrow { display: grid; grid-template-columns: 130px 90px minmax(0, 1fr); gap: 4px 14px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.cdsrow:first-child { border-top: 0; }
.cdsrow .h { grid-column: 3; color: var(--ink-2); }
.st-met { color: var(--pass); font-weight: 700; } .st-partly, .st-provider { color: var(--warn); font-weight: 700; } .st-na { color: var(--muted); font-weight: 700; }

/* drawer (API view), palette (search), toast */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(760px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { flex: 1; }
.drawer-b { overflow: auto; padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.palette { position: fixed; inset: 0; z-index: 60; background: rgba(8, 14, 28, .45); display: grid; place-items: start center; padding-top: 10vh; }
.palette-box { width: min(720px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 17px; }
.palette-box input:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.palette-msg { padding: 10px 18px; }
.palette-msg:empty { display: none; }
.palette-res { max-height: 60vh; overflow: auto; }
.palette-foot { padding: 8px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 9px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 70; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }
.secret { border: 1px solid color-mix(in srgb, var(--pass) 45%, transparent); background: var(--pass-soft); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.note { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 60px; gap: 14px; }
  nav.side { position: relative; flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px; }
  nav.side .eyebrow { display: none; }
  nav.side a { flex: none; }
  nav.side a .n { display: none; }
  .hero, .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .top-in { padding: 10px 16px; gap: 10px; }
  .search-open span, .search-open kbd { display: none; }
  .search-open { flex: none; margin: 0 0 0 auto; padding: 8px; }
  .who { display: none; }
  .pub-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
  .pub-hero h1 { font-size: 27px; }
  .cdsrow { grid-template-columns: minmax(0, 1fr) auto; }
  .cdsrow .h { grid-column: 1 / -1; }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .hit { grid-template-columns: minmax(0, 1fr); }
  .hit .s, .hit .r { grid-column: 1; justify-items: start; text-align: left; }
  .score { flex-direction: column; align-items: flex-start; }
}
@media print { .top, nav.side, .btn { display: none !important; } .layout { display: block; } .card { box-shadow: none; } }

/* layout utilities (no inline styles: the CSP forbids them) */
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }
.f1 { flex: 1; } .mw0 { min-width: 0; } .w100 { width: 100px; } .w100p { width: 100%; } .w0 { width: 0; } .pre-line { white-space: pre-line; } .wrap-any { overflow-wrap: anywhere; } .mw640 { max-width: 640px; } .mh-none { max-height: none; }
.sec-h { margin: 24px 0 12px; } .code-grid { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); } .gc-2 { grid-template-columns: auto minmax(0, 1fr); } .gc-3 { grid-template-columns: auto minmax(0, 1fr) auto; }
.span-all { grid-column: 1 / -1; }
summary.sum { cursor: pointer; list-style: none; }
summary.sum::-webkit-details-marker, summary.api-sum::-webkit-details-marker { display: none; }
summary.sum::before { content: "▸"; color: var(--muted); }
details[open] > summary.sum::before { content: "▾"; }
summary.sum h2 { flex: 0 1 auto; }
summary.api-sum { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; cursor: pointer; list-style: none; border-radius: 6px; }
a.rowlink { color: inherit; text-decoration: none; display: block; }
a.rowlink:hover, a.rowlink:focus-visible { text-decoration: underline; }
.code:focus-visible, #tab-body:focus-visible { outline-offset: -2px; }
.code .ln.hl { box-shadow: inset 4px 0 0 var(--warn); } .fs14 { font-size: 14px; } .textlike { font-family: var(--f); font-size: 14px; } .contents-click { display: contents; cursor: pointer; }
.method-foot { border-top: 1px solid var(--line); display: grid; gap: 10px; }
.bg-warn { background: var(--warn); } .bg-pass { background: var(--pass); } .bg-line { background: var(--line-2); } .bg-hl, tr[data-hl] td { background: var(--hl); } .bg-fail { background: var(--fail); }
@media (max-width: 1000px) { .code-grid { grid-template-columns: minmax(0, 1fr); } }
main:focus { outline: none; }
.grid > .card + .card, .hero > .card + .card, .themes > .card + .card { margin-top: 0; }
.theme { align-content: start; }

/* status: one bar per day */
.uptime { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.uptime { align-items: end; min-height: 28px; }
.uptime i { height: 28px; border-radius: 3px; }
.u-full { background: var(--pass); } .u-high { background: color-mix(in srgb, var(--pass) 60%, var(--warn)); height: 22px !important; } .u-mid { background: var(--warn); height: 15px !important; } .u-low { background: var(--fail); height: 8px !important; } .u-none { background: var(--line-2); height: 4px !important; }
@media (max-width: 640px) {
  .top-right .btn.ghost { display: none; }
  .top-right { gap: 6px; }
  .top-right .btn { padding: 6px 10px; font-size: 13px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .page-head .row { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .gc-3 { grid-template-columns: minmax(0, 1fr); }
  .gc-3 > * { grid-column: 1 !important; }
  select { max-width: 100%; }
}
@media (max-width: 640px) {
  .vbadge .vb-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .vbadge { padding: 5px 7px; }
  .brand-word { width: 92px; height: 18px; }
  .mark { width: 26px; height: 26px; }
  .top-in { padding: 8px 12px; flex-wrap: wrap; row-gap: 8px; }
  .top-right { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
}

/* Commandry sign-in (OIDC): the button in Commandry's colors with its mark; the server's plain result pages. */
.btn.commandry { background: #0f2a4a; border-color: #0f2a4a; color: #fff; gap: 10px; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.btn.commandry:hover { filter: brightness(1.15); border-color: #0f2a4a; }
.cmd-mark, .btn .cmd-mark { width: 18px; height: 18px; fill: currentColor; stroke: none; flex: none; }
.auth-page { padding: 0 16px; }
.auth-logo { width: 40px; height: 40px; fill: #0f2a4a; display: block; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .auth-logo { fill: var(--ink); } .btn.commandry { border-color: #3b5f8f; } }
.signin details summary { cursor: pointer; }
.signin .row { flex-wrap: wrap; }

/* KSI status summary (ui/ksistatus.js): a stacked bar of every KSI, a bar per theme, the trend. Each state has a glyph
   and its own texture as well as its color (WCAG 1.4.1): passing solid, partial dotted, failing solid red, not measured
   striped. Segments keep a 2px surface gap; their text is --on-status, at least 4.5:1 on every fill in both themes. */
.ks-card { display: grid; gap: 14px; }
.ks-head { display: flex; gap: 12px 18px; align-items: flex-start; flex-wrap: wrap; }
.ks-big { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.ks-big b { font: 800 30px/1 var(--f); color: var(--ink); letter-spacing: -.02em; margin-right: 2px; }
.ks-card.compact .ks-big b { font-size: 26px; }
.ks-head > .f1 { min-width: 11rem; }
.ks-run { flex: 0 1 auto; min-width: 0; display: grid; gap: 6px; justify-items: end; text-align: right; max-width: 100%; }
.ks-run .mono { overflow-wrap: anywhere; }
.ks-run .vbadge svg { fill: none; }
.ksibar { display: flex; gap: 2px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.ksibar.mini { height: 22px; border-radius: 6px; }
.ks-card.compact .ksibar.big { height: 32px; }
.seg { flex: 1 1 0; min-width: 12px; display: flex; align-items: center; justify-content: center; color: var(--on-status); text-decoration: none; position: relative; transition: filter .15s; }
.ksibar.mini .seg { min-width: 10px; }
.seg:hover { filter: brightness(1.12) saturate(1.05); }
.seg:focus-visible, .seg.on { outline: 3px solid var(--ink); outline-offset: -3px; box-shadow: inset 0 0 0 5px var(--surface); border-radius: 0; }
.seg:focus-visible { outline-color: var(--focus); }
.seg-in { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; font: 700 14px/1 var(--mono); }
.ksibar.mini .seg-in { font-size: 11.5px; gap: 3px; }
.seg-in .gl { font-family: var(--f); font-weight: 800; }
.seg-in .pc { font-weight: 600; opacity: 1; }
.seg.tight .pc { display: none; }
.seg.tiny .seg-in b, .seg.tiny .seg-in .pc { display: none; }
.s-pass { background-color: var(--pass); }
.s-insufficient { background-color: var(--warn); background-image: radial-gradient(var(--texture) 1.3px, transparent 1.7px); background-size: 6px 6px; }
.s-fail { background-color: var(--fail); }
.s-unknown { background-color: var(--unk); background-image: repeating-linear-gradient(135deg, var(--texture) 0 3px, transparent 3px 8px); }
.ks-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.ks-legend li { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.ks-legend .lg-t { min-width: 0; font-size: 14px; }
.ks-legend .lg-t .mono { font-weight: 700; }
.ks-legend .lg-m { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.ks-legend.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.sw { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; flex: none; color: var(--on-status); font: 800 11px/1 var(--f); margin-top: 1px; }
.dchip .sw, i.sw:empty { width: 11px; height: 11px; border-radius: 3px; margin: 0; }
.ks-delta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.dchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); }
.dchip b { font-family: var(--mono); }
.ks-rule { border-top: 1px solid var(--line); padding-top: 10px; }
.ks-ov { display: grid; gap: 16px; align-content: start; }
.ks-ov > .card + .card { margin-top: 0; }
.ks-ov-trend { display: grid; gap: 8px; }
.tbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.tbars li.sel { background: var(--accent-soft); }
.tbars .ksibar { grid-column: 1 / -1; }
.tb-name { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.tb-name:hover { color: var(--accent); text-decoration: underline; }
.tb-name .mono { color: var(--muted); font-weight: 700; margin-right: 4px; }
.tb-n { color: var(--muted); }
.trend { display: grid; gap: 6px; position: relative; } /* contains its .sr-only table */
.trend-plot { position: relative; height: 120px; border-radius: 6px; cursor: crosshair; }
.trend.compact .trend-plot { height: 56px; }
.trend-plot svg { display: block; }
.trend-axis { display: flex; justify-content: space-between; }
.ta { stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; }
.ta.s-pass { fill: var(--pass); } .ta.s-insufficient { fill: var(--warn); } .ta.s-fail { fill: var(--fail); } .ta.s-unknown { fill: var(--unk); }
.ta-pat { stroke: none; } .ta-pat.p-insufficient { fill: url(#ks-dots); } .ta-pat.p-unknown { fill: url(#ks-stripes); }
.pd { fill: var(--texture); }
.tx { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.ks-tip { position: absolute; z-index: 60; max-width: min(320px, calc(100vw - 16px)); display: grid; gap: 3px; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 13px; line-height: 1.4; box-shadow: var(--shadow-lg); }
.ks-tip span { opacity: .92; }
@media (max-width: 1000px) { .ks-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ks-run { justify-items: start; text-align: left; }
  .ks-legend, .ks-legend.compact { grid-template-columns: minmax(0, 1fr); }
  .ksibar { height: 34px; }
}

/* Reduced motion (WCAG 2.3.3 and the user's setting): no transitions or animated scrolling. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Windows High Contrast / forced colors: keep focus, status bars and pills visible. */
@media (forced-colors: active) {
  .pill, .tag, .tile, .vbadge, .chip[aria-pressed="true"] { border: 1px solid CanvasText; }
  .timeline i, .uptime i, .meter i.on, .legend i, .bar > i { background: CanvasText !important; forced-color-adjust: none; }
  nav.side a[aria-current="page"] { outline: 2px solid CanvasText; }
  .seg, .sw { forced-color-adjust: none; background: Canvas !important; color: CanvasText; border: 1px solid CanvasText; }
  .seg.on, .seg:focus-visible { outline: 3px solid Highlight; }
  .ta { fill: Canvas !important; stroke: CanvasText; } .pd { fill: CanvasText; }
}
.ks-cmp td { padding: 7px 10px; } .ks-cmp th { padding: 7px 10px; }
.ks-cmp td:first-child { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ks-sub > .card { align-content: start; }
