@charset "UTF-8";
/* PRØBitY — AUTOMATA house dark on screen, light paper in print.
   Tokens from /assets/brand.css: paper #0E0D10, surface #17161A, ink #EDE9EA,
   vermilion #F07A3A, red #E8553F. Print stays white so a PDF stays readable.
   Stable names for a later compliance-rules.js (do not rename):
   #x-compliance .compliance .compliance-list .compliance-item[data-status]
   .status .status-pass .status-fail .status-unknown .status-advisory
   .status-mark .status-word .cite .cite-ref .cite-missing .advisory .loc
   data-status stays on each item. The status word is not drawn; a rubric comes later.
   .rank .rank-legal .rank-eligibility .rank-technical .rank-writing
   .rank-n .rank-head .finding .finding-list .tag.cr .tag.mj .tag.md .tag.mn .tag.po
   Data hook: window.ReviewCompliance.items(R), else R.compliance.items. */

@font-face{font-family:"Automata Montserrat";font-weight:600;font-style:normal;font-display:swap;src:url(/assets/fonts/montserrat-latin-600-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}
.probity{font-family:"Automata Montserrat",Montserrat,"Helvetica Neue",Arial,sans-serif;font-weight:600;font-style:normal;text-transform:none;letter-spacing:-.02em}

:root {
  --paper: #0E0D10;
  --surface: #17161A;
  --mist: #1B191E;
  --line: #34303A;
  --ink: #EDE9EA;
  --charcoal: #D6D0D3;
  --muted: #A8A0A6;
  --red: #E8553F;
  --red-deep: #B8321F;
  --vermilion: #F07A3A;
  --laser: #E8553F;
  --bg: #0E0D10;
  --card: #17161A;
  --tx: #EDE9EA;
  --mut: #A8A0A6;
  --void: #0E0D10;
  --chromet: #EDE9EA;
  --steel: #A8A0A6;
  --hair: #34303A;
  --hair2: #47424A;
}

html { scroll-behavior: smooth; color-scheme: dark; }

body, .site-h, .site-f, .run, #home {
  background-color: var(--paper) !important;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(237, 233, 234, .05) 1.5px, transparent 0) !important;
  background-size: 26px 26px !important;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.site-h, .site-f, .site-h nav a, .btn, .aud b, .pn, .pp, .drop strong, .pw-title, .eyebrow, .jump a {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.site-h {
  background:
    linear-gradient(90deg, #F07A3A, #E8553F 55%, #B8321F) top / 100% 2px no-repeat,
    var(--paper) !important;
  border-bottom: 1px solid var(--line) !important;
  border-image: none !important;
}
.v, .tagline .v, v-l.v1 {
  color: var(--red) !important;
  -webkit-text-fill-color: var(--red) !important;
}
.tagline {
  color: var(--ink) !important;
  font-family: "Source Serif 4", Georgia, serif !important;
}

.drop, button.aud, .buy, .plan {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: var(--ink);
}
.drop strong, .buy-t, .pp, .pn {
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
}
.drop strong { font-size: clamp(32px, 4vw, 44px) !important; font-weight: 800 !important; }
button.aud b { color: var(--charcoal) !important; font-size: 16px !important; font-weight: 600; }
button.aud[aria-pressed="true"] { border-color: var(--red) !important; }
button.aud[aria-pressed="true"] b { color: var(--ink) !important; }
#about h1, #about h2 {
  background: none !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

.btn, .btn:not(.ghost), #pick {
  min-height: 48px !important;
  padding: 0 22px !important;
  border-radius: 2px !important;
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 28px -16px rgba(232, 85, 63, .7) !important;
  text-shadow: none !important;
  color: #fff !important;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700;
  letter-spacing: .02em;
}
.btn:hover, #pick:hover {
  background: var(--red-deep) !important;
  border-color: var(--red-deep) !important;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(240, 122, 58, .45), 0 14px 32px -12px rgba(232, 85, 63, .75) !important;
}
.btn.ghost {
  background: transparent !important;
  border: 1px solid #5A555C !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}
.btn.ghost:hover {
  background: transparent !important;
  border-color: var(--vermilion) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(240, 122, 58, .35), 0 0 22px -8px rgba(240, 122, 58, .7) !important;
}
a:focus-visible, button:focus-visible, summary:focus-visible, .st:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.sec .num { color: transparent; font-size: 0; }
.sec .num::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  color: var(--muted);
  display: block;
}
.sec.is-run .num::before { background: var(--red); }
.sec.is-done .num::before { background: var(--ink); }

#review {
  max-width: 760px;
  margin: 28px auto 80px;
  color: var(--charcoal);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
}
#review h1, #review h2, #review h3, #review .report-lock, #review .st .l,
#review .rank-note, #review .tag, #review .status, #review .draft-chip, #review .jump a {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}
#review h1, #review h2, #review h3, #review .st .n, #review .report-lock {
  background: none !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}
#review v-l.v1, #review .v1 { color: var(--red); -webkit-text-fill-color: var(--red); }

.report-mast { margin: 0 0 28px; }
.report-brand { display: flex; align-items: center; gap: 14px; }
.report-brand img { display: block; width: 44px; height: 44px; background: #000; }
.report-lock { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: .16em; }
.report-product {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
}
#review .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #F05A3E;
}
#review .eyebrow::before {
  content: "}";
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 500;
}
#review:not(.unsigned) .draft-chip { display: none; }
.draft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(240, 122, 58, .55);
  background: rgba(232, 85, 63, .1);
  box-shadow: 0 0 22px -10px rgba(240, 122, 58, .8);
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
#review h1 {
  margin: 18px 0 12px;
  font-weight: 800;
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
#review .sub { margin: 0; color: var(--muted); font-size: 20px; }
#review .disclaimer { margin-top: 12px; color: var(--muted); font-size: 18px; }
#review .print-full { display: none; }

.jump {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 8px;
  padding: 14px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.jump a {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.jump a:hover { color: var(--vermilion); }
.jump a.is-here {
  color: var(--vermilion);
  text-shadow: 0 0 16px rgba(240, 122, 58, .5);
  box-shadow: inset 0 -2px 0 var(--vermilion);
}

#review .fold, #review .rank { scroll-margin-top: 140px; }
#review .fold.sec { margin: 8px 0; border-bottom: 1px solid var(--line); }
#review .fold > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
#review .fold > summary::-webkit-details-marker { display: none; }
#review .fold > summary::after {
  content: "+";
  flex: none;
  color: var(--vermilion);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 28px;
  line-height: 1;
}
#review .fold[open] > summary::after { content: "–"; }
#review .finding-fold > summary::after,
#review .compliance-fold > summary::after,
#review details.er > summary::after { font-size: 20px; }
#review .fold.sec > summary h2 {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
#review .sec-hint {
  margin-left: auto;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  text-align: right;
}
#review .sec-body { padding: 0 0 36px; }
#review h2 { font-size: 40px; line-height: 1.2; }
#review h3 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.3; }

#review .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 36px 0 12px;
}
#review a.st, #review .st {
  display: block;
  padding: 8px 0 4px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none;
  border-top: 2px solid var(--line) !important;
}
#review a.st:hover { border-top-color: var(--vermilion) !important; }
#review .st .n, #review .st .l { display: block; }
#review .st .n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 56px;
  line-height: .95;
  letter-spacing: -.04em;
}
#review .st .l {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--muted);
}
@media (max-width: 720px) {
  #review .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #review .st .n { font-size: 44px; }
}

#review .fig, #review .card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#review .key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
#review .key span { display: inline-flex; align-items: center; width: auto; height: auto; margin: 0; }
.swatch {
  display: inline-block;
  width: 28px;
  height: 12px;
  margin-right: 8px;
  border: 1px solid #5c5652;
}
.swatch-avg { background: #C9C3C8; }
.swatch-low {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 2px, #F07A3A 2px, #F07A3A 3.5px),
    #2a211c;
}
.swatch-below {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 2px, #E8553F 2px, #E8553F 3px),
    repeating-linear-gradient(45deg, transparent, transparent 2px, #E8553F 2px, #E8553F 3px),
    #2a1816;
}

.rank-note { margin: 0 0 22px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.rank-ladder, .finding-list, .compliance-list { list-style: none; margin: 0; padding: 0; }
.rank-ladder { margin-left: 2px; border-left: 2px solid var(--line); }
.rank { padding: 18px 0 8px 20px; }
.rank-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.rank-n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 26px;
  color: #F05A3E;
  min-width: 2.2ch;
}
.rank-count {
  margin-left: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  text-decoration: none;
}
.rank-count:hover { color: var(--vermilion); }
.rank-empty { margin: 0 0 12px; color: var(--muted); }

.finding { padding: 0; border-bottom: 1px solid var(--line); }
.finding-fold > summary { padding: 28px 0; }
.earlier-notes .finding-fold { border-bottom: 1px solid var(--line); }
.earlier-notes .finding-title { white-space: normal; }
.finding-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.finding-more { padding: 0 0 28px; font-size: 20px; line-height: 1.6; }
.finding-text { margin: 0 0 12px; }

#review .tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
#review .tag .tag-mark::before { font-family: "IBM Plex Mono", monospace; }
#review .tag.cr { border: 2px solid var(--red); background: var(--red) !important; color: #fff !important; }
#review .tag.cr .tag-mark::before { content: "■"; }
#review .tag.mj { border: 3px double var(--vermilion); color: var(--vermilion) !important; }
#review .tag.mj .tag-mark::before { content: "◆"; }
#review .tag.md { border: 2px solid var(--charcoal); }
#review .tag.md .tag-mark::before { content: "●"; }
#review .tag.mn { border: 1px dashed var(--muted); }
#review .tag.mn .tag-mark::before { content: "○"; }
#review .tag.po { border: 1px dotted var(--muted); color: var(--muted) !important; }
#review .tag.po .tag-mark::before { content: "–"; }

#review .loc, #review .cite {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
}
.cite { display: flex; flex: none; flex-wrap: wrap; gap: 6px; margin: 0; }
.cite-ref { border: 1px solid var(--line); padding: 1px 6px; color: var(--charcoal); }
.cite-missing { border-style: dashed; font-style: normal; }

.status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 2px solid var(--charcoal);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
#review .status { display: none !important; }
.status-mark { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.status-pass { border-style: solid; }
.status-fail { border-width: 3px; color: #F3A08F; }
.status-unknown { border-style: dashed; }
.status-advisory { border-style: dotted; color: var(--vermilion); }
.compliance-item { padding: 0 0 0 16px; border-bottom: 1px solid var(--line); border-left: 2px solid var(--line); }
.compliance-fold > summary { padding: 26px 0; }
.compliance-rule {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.compliance-detail { margin: 0 0 8px; }
.advisory {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1.6;
}
#review .letter {
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
}
#review table { font-size: 18px; line-height: 1.6; }
#review table th { font-family: Montserrat, sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; }

body:has(#review h1) .tagline { display: none; }
.print-banner { display: none; }

@page {
  size: letter;
  margin: 0.7in 0.7in 0.65in;
  @top-left {
    content: "PRØBitY  ·  AUTOMATA";
    font-family: "Automata Montserrat", Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 9pt;
    color: #333;
  }
  @top-right {
    content: "Quality review";
    font-family: Montserrat, sans-serif;
    font-size: 9pt;
    color: #333;
  }
  @bottom-right {
    content: counter(page);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9pt;
    color: #444;
  }
}
#review.unsigned { page: review-unsigned; }
@page review-unsigned {
  size: letter;
  margin: 0.7in 0.7in 0.65in;
  @top-left {
    content: "PRØBitY  ·  AUTOMATA";
    font-family: "Automata Montserrat", Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 9pt;
    color: #333;
  }
  @top-right {
    content: "UNSIGNED";
    font-family: Montserrat, sans-serif;
    font-size: 9pt;
    letter-spacing: .12em;
    color: #333;
  }
  @bottom-right {
    content: counter(page);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9pt;
    color: #444;
  }
}

@media print {
  html { color-scheme: light; }
  html, body, .site-h, .site-f, .run, #home {
    background: #fff !important;
    background-image: none !important;
    color: #161311 !important;
  }
  .site-h, .site-f, .tagline, .ex, #drop, #buy, .auds, #run, #wins, .wins, #pw, .xa, #about,
  #back-to-apps, .wait, .jump, .print-banner {
    display: none !important;
  }
  main { max-width: none !important; padding: 0 !important; }
  #review {
    max-width: none;
    margin: 0;
    color: #221e1c;
    font-size: 12pt;
    line-height: 1.45;
  }
  #review, #review * {
    color: #161311 !important;
    -webkit-text-fill-color: #161311 !important;
  }
  #review v-l.v1, #review .v1 {
    color: #822d23 !important;
    -webkit-text-fill-color: #822d23 !important;
  }
  #review svg text { fill: #161311 !important; }
  #review svg line { stroke: #c8c2be !important; }
  #review .tag.cr, #review .tag.cr * {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  #review h1 { font-size: 22pt; margin: 0 0 8pt; }
  #review h2, #review .fold.sec > summary h2 { font-size: 16pt; }
  #review h3, #review .finding-title, #review .compliance-rule { font-size: 12pt; color: #161311 !important; white-space: normal; }
  #review .st .n { font-size: 16pt; color: #161311 !important; }
  #review .st .l, #review .sub, #review .sec-hint, #review .rank-note, #review .loc, #review .cite,
  #review .tag, #review .status, #review .draft-chip, #review table th { color: #333; font-size: 10pt; }
  #review .screen-short { display: none; }
  #review .print-full { display: block; color: #333; font-size: 11pt; }
  #review .grid { gap: 8pt; margin: 12pt 0; }
  #review a.st, #review .st {
    border-top: 1px solid #bbb !important;
    break-inside: avoid;
    color: #161311;
  }
  #review .fold > summary { padding: 8pt 0 4pt; }
  #review .fold[open] > summary::after,
  #review .fold > summary::after { content: none !important; }
  #review .fold.sec { border-bottom: 0; break-inside: auto; }
  #review .sec-body { padding-bottom: 8pt; }
  #review h2, #review h3, #review .fold > summary, #review .rank-head { break-after: avoid; }
  #review #sec-letter { break-before: page; }
  #review .card, #review .fig, #review .st, #review details.er, #review .finding, #review .compliance-item, #review tr {
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #review .fig, #review .card, #review details.er { border-color: #bbb !important; }
  #review thead { display: table-header-group; }
  #review .letter { break-before: auto !important; background: #fff !important; color: #161311 !important; }
  #review v-l.v1, #review .v1 { color: #822d23; -webkit-text-fill-color: #822d23; }
  #review .report-brand img {
    background: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #review.unsigned::before {
    content: "UNSIGNED";
    position: fixed;
    left: 0;
    right: 0;
    top: 38%;
    text-align: center;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 48pt;
    letter-spacing: .18em;
    color: rgba(0, 0, 0, .08) !important;
    -webkit-text-fill-color: rgba(0, 0, 0, .08) !important;
    transform: rotate(-28deg);
    pointer-events: none;
  }
  #review .tag, #review .status, #review .cite-ref, #review .swatch, #review .compliance-item, #review .report-brand img {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #review .tag.cr, #review .tag.mj, #review .tag.md, #review .tag.mn, #review .tag.po {
    background: #fff !important;
    color: #161311 !important;
    border-color: #161311;
  }
  #review .tag.cr { background: #161311 !important; color: #fff !important; }
  #review .compliance-item { border-left: 2px solid #161311; }
  #review .swatch-avg { background: #4e4844; }
  #review .swatch-low {
    background: repeating-linear-gradient(-45deg, transparent, transparent 2px, #5c4030 2px, #5c4030 3.5px), #f6f1ea;
  }
  #review .swatch-below {
    background:
      repeating-linear-gradient(-45deg, transparent, transparent 2px, #4a1c18 2px, #4a1c18 3px),
      repeating-linear-gradient(45deg, transparent, transparent 2px, #4a1c18 2px, #4a1c18 3px),
      #f8f1ef;
  }
  #review .rank-n { color: #822d23; }
  #review .rank, #review .rank-ladder > li, #review .compliance-list { break-inside: auto !important; }
  #review p, #review li { orphans: 3; widows: 3; }
}

/* Screen only: dark house, even grid, quiet motion. Print stays the light sheet above. */
@media screen {
  .site-h {
    height: 72px;
    overflow: visible;
  }
  .site-h .in { overflow: visible; justify-content: flex-start; }
  .site-h .brand {
    position: static !important;
    left: auto;
    top: auto;
    transform: none !important;
    width: auto;
    max-width: min(420px, 70vw);
    height: auto;
    overflow: visible;
  }
  .site-h .brand img {
    display: block;
    height: 28px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .site-h nav { margin-left: auto; }
  .site-h nav a.home { display: none !important; }
  .site-h nav a {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    font-size: 14px !important;
  }
  .report-brand, #review .eyebrow { display: none; }
  .run {
    position: sticky;
    top: 72px !important;
    z-index: 24;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 12px 0 14px;
    background: var(--paper) !important;
    border-bottom: 1px solid var(--line);
  }
  .run .fn {
    flex: 1 1 180px;
    color: var(--muted);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 14px;
    font-weight: 500;
  }
  .run-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 6px;
    background: linear-gradient(180deg, #221F26, #17161A);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -28px rgba(0, 0, 0, .9);
  }
  .run-actions:not(:has(.btn:not([hidden]))) { display: none; }
  .run .bar, .run .ps { flex: 1 1 100%; }
  .jump {
    top: 200px;
    z-index: 23;
    justify-content: center;
    gap: 8px 22px;
    border-bottom: 0;
    background: var(--paper);
  }
  #review .fold, #review .rank { scroll-margin-top: 280px; }
  .jump a { font-size: 18px; padding: 6px 2px; }
  .jump a:hover { color: var(--vermilion); text-shadow: 0 0 16px rgba(240, 122, 58, .45); }

  h1, h2, .pw-title, .buy-t, .pp, .drop strong {
    background-image: none !important;
    -webkit-text-fill-color: var(--ink) !important;
    color: var(--ink) !important;
  }
  .letter, #review .letter, #about, select, .pw, .tl, .buy, .plan, .xa-card, .site-f {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
  }
  .site-f { background: var(--paper) !important; }
  select, input, textarea {
    background: var(--mist) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
    border-radius: 2px;
    accent-color: var(--red);
  }
  .drop, button.aud, .buy, .plan, .pw {
    background: linear-gradient(180deg, #221F26, #17161A) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 2px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -28px rgba(0, 0, 0, .85);
  }
  .auds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  button.aud { min-height: 104px; padding: 20px 16px !important; }
  button.aud b { font-size: 18px !important; color: var(--ink) !important; }
  button.aud:hover, .drop:hover, .plan:hover, .buy:hover {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 1px rgba(232, 85, 63, .45), 0 18px 40px -24px rgba(232, 85, 63, .4);
  }
  .drop strong { font-size: clamp(36px, 4vw, 48px) !important; }

  #review { max-width: 800px; }
  #review .grid { gap: 16px; margin: 40px 0 16px; }
  #review a.st, #review .st {
    min-height: 132px;
    padding: 22px 16px 18px;
    background: linear-gradient(180deg, #221F26 0%, #17161A 100%) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 36px -28px rgba(0, 0, 0, .95);
  }
  #review a.st:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 122, 58, .75) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(240, 122, 58, .35), 0 18px 36px -16px rgba(240, 122, 58, .55);
  }
  #review a.st:hover .l { color: var(--vermilion); }
  #review a.st:active { transform: translateY(-1px); }
  #review details.fold.sec[open] {
    background: linear-gradient(90deg, rgba(232, 85, 63, .1), transparent 36%);
    box-shadow: inset 2px 0 0 #E8553F;
  }
  #review .st .l { margin-top: 16px; font-size: 18px; }
  #review .fig, #review .card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: 0 16px 36px -28px rgba(0, 0, 0, .9);
  }
  .rank-ladder { border-left: 0; margin-left: 0; }
  .rank { padding: 40px 0 16px; }
  .finding, .compliance-item, #review .fold.sec { border-color: var(--line); }

  html, details.fold { interpolate-size: allow-keywords; }
  details.fold::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 240ms ease, opacity 240ms ease, content-visibility 240ms allow-discrete;
  }
  details.fold[open]::details-content {
    height: auto;
    opacity: 1;
  }
  .drop, button.aud, .plan, .btn, #review a.st, .jump a, .buy, .pw {
    transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease, opacity 240ms ease;
  }
  .buy:not([hidden]), .pw:not([hidden]) { animation: house-in 240ms ease; }
}

/* Phones: the three "who is this for" cards stack in one column, so a long word never pushes the page sideways. */
@media screen and (max-width: 720px) {
  .auds { grid-template-columns: 1fr; }
  button.aud { min-height: 0; }
}
/* The smallest phones: the AUTOMATA link card's mark and name shrink a little so the name fits. */
@media screen and (max-width: 380px) {
  .xa-head { gap: 16px; }
  .xa-mark { width: 44px; height: 44px; }
  .xa-name { font-size: 26px; }
}
@media screen and (max-width: 340px) {
  .xa-head { gap: 12px; }
  .xa-name { font-size: 22px; }
}

@keyframes house-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media screen and (prefers-reduced-motion: reduce) {
  details.fold::details-content,
  .drop, button.aud, .plan, .btn, #review a.st, .jump a, .buy, .pw {
    transition: none !important;
    animation: none !important;
  }
}

/* Report score. The number is ink. A rating is a word, not a status color. */
#review .rubric { margin: 28px 0 36px; padding: 8px 0 12px; border-top: 1px solid var(--line); }
#review .rubric-title { margin: 18px 0 8px; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
#review .rubric-total { margin: 0 0 8px; line-height: 1; }
#review .rubric-total-n {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 84px);
  letter-spacing: -.03em;
  color: var(--ink);
}
#review .rubric-of { font-size: clamp(28px, 4vw, 40px); color: var(--muted); }
#review .rubric-method, #review .rubric-open, #review .rubric-basis, #review .rubric-source {
  margin: 0 0 12px; max-width: 42rem; font-size: 18px; line-height: 1.45; color: var(--muted);
}
#review .rubric-areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0 28px; }
#review .rubric-area { padding: 12px 10px; border: 1px solid var(--line); background: var(--surface); }
#review .rubric-area-n { margin: 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 28px; font-weight: 700; color: var(--ink); }
#review .rubric-area-l, #review .rubric-area-w { margin: 4px 0 0; font-size: 16px; line-height: 1.3; color: var(--muted); }
#review .rubric-row { margin: 0 0 22px; padding: 16px 0 8px; border-top: 1px solid var(--line); }
#review .rubric-row.is-key { border-top-width: 3px; border-top-color: var(--ink); }
#review .rubric-key { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
#review .rubric-h { margin: 0 0 8px; font-size: 22px; }
#review .rubric-text { margin: 0 0 8px; font-size: 20px; line-height: 1.45; color: var(--ink); }
#review .rubric-points { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
#review .rubric-set { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 8px; }
#review .rubric-set-l { font-size: 18px; font-weight: 700; }
#review .rubric-select { min-height: 48px; min-width: 16rem; padding: 8px 12px; font-size: 18px; }
#review .rubric-shown { font-size: 22px; font-weight: 700; color: var(--ink); }
#review .rubric-rate { margin: 8px 0; font-size: 18px; }
#review .rubric-model { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#review .rubric-flags { margin: 8px 0 0; padding: 0; list-style: none; }
#review .rubric-flags li { margin: 0 0 6px; font-size: 18px; }
@media (max-width: 800px) {
  #review .rubric-areas { grid-template-columns: 1fr 1fr; }
}
@media print {
  #review .rubric-select, #review .rubric-set { display: none !important; }
  #review .rubric-shown {
    position: static !important; width: auto !important; height: auto !important;
    margin: 0 0 8px !important; overflow: visible !important; clip: auto !important;
    font-size: 14pt !important; font-weight: 700 !important;
  }
  #review .rubric-total-n { font-size: 36pt !important; }
  #review .rubric-text { font-size: 13pt !important; }
}

/* Prevent any sideways scroll on narrow phones (320px-430px) */
html, body, main { overflow-x: clip; max-width: 100%; }
@media (max-width: 720px) {
  .auds { grid-template-columns: 1fr !important; }
  button.aud { min-height: auto; }
}

/* WCAG AA 5.14:1 contrast on primary vermilion buttons in dark mode */
.btn, .btn:not(.ghost), #pick, .xa-go {
  background: #C43822 !important;
  border-color: #C43822 !important;
}
.btn:hover, #pick:hover, .xa-go:hover {
  background: #B8321F !important;
  border-color: #B8321F !important;
}
