:root {
  color-scheme: dark;
  --canvas: #191b19;
  --surface: #242722;
  --panel: #2b2f28;
  --ink: #f0f1e8;
  --muted: #b2bbae;
  --line: #50584c;
  --accent: #ffd495;
  --accent-bg: #3e3322;
  --good: #b6ddbe;
  --good-bg: #2c3a2f;
  --focus: #f0bd72;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3, h4, p, ul, dl { margin: 0; }
ul { list-style: none; padding: 0; }
code, .mono { font-family: var(--mono); }
a { color: var(--accent); text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; top: .65rem; left: .65rem; transform: translateY(-190%); background: var(--surface); padding: .55rem .8rem; z-index: 2; }
.skip:focus { transform: none; }
.shell { width: min(74rem, calc(100% - 4rem)); margin-inline: auto; }

.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 4rem; gap: 0 .6rem; border-bottom: 1px solid var(--line); }
.masthead nav { display: flex; gap: 1.1rem; }
.masthead a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .87rem; font-weight: 680; text-decoration: none; }
.masthead a:hover { text-decoration: underline; }
.brand { gap: .45rem; color: var(--ink); }
.mark { inline-size: .88rem; block-size: .88rem; border: 1px solid var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%) top / 100% 2px no-repeat, linear-gradient(90deg, transparent 50%, var(--accent) 50%) bottom / 100% 2px no-repeat; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .39fr); align-items: end; gap: 1rem 2.2rem; padding-block: clamp(2rem, 5.35vw, 4rem) clamp(1.45rem, 4vw, 2.45rem); }
.intro h1 { max-width: 16ch; font-size: clamp(2.5rem, 5.55vw, 5rem); font-weight: 630; line-height: .99; letter-spacing: -.064em; }
.intro p { max-width: 60ch; color: var(--muted); }
.intro > div p { margin-top: .72rem; font-size: clamp(.98rem, 1.4vw, 1.1rem); }
.input-note { padding: .55rem .7rem .65rem; border-top: 2px solid #9a7746; background: #262820; font-size: .86rem; }
.input-note strong { display: block; margin-bottom: .2rem; color: var(--accent); }

.viewer { border: 1px solid var(--line); border-top: 3px solid #d8a560; background: var(--surface); }
.viewer-toolbar, .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem .9rem; }
.viewer-toolbar { padding: .88rem clamp(.9rem, 2.8vw, 1.6rem); }
.toolbar-title { min-width: 0; }
.viewer h2, .guide h2 { font-size: clamp(1.56rem, 3vw, 2.2rem); letter-spacing: -.045em; line-height: 1.08; }
#report-source, #privacy, .section-head p, .representation-note { color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
#report-source { margin-top: .32rem; }
#privacy { margin-top: .25rem; font-size: .72rem; }
button { min-height: 2.75rem; padding: .4rem .63rem; border: 1px solid #7b8477; border-radius: .16rem; background: var(--panel); color: var(--ink); font-size: .83rem; font-weight: 670; cursor: pointer; }
button:hover { background: #3b4035; }
button.primary { border-color: var(--accent); background: var(--accent); color: #2b2116; }
button.primary:hover { background: #f4bd71; }
.cases { display: flex; flex-wrap: wrap; gap: .43rem; padding: .58rem clamp(.9rem, 2.8vw, 1.6rem); background: #272b24; border-block: 1px solid var(--line); }
.cases button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); border-color: #ba935f; }
@media (forced-colors: active) {
  .cases button[aria-pressed="true"] {
    text-decoration: underline 2px;
    text-underline-offset: .18em;
  }
}
.notice, .blank, .example-note { padding: .58rem clamp(.9rem, 2.8vw, 1.6rem); color: var(--muted); font-size: .84rem; }
.notice:empty { padding: 0; }
.notice[data-error] { background: var(--accent-bg); color: var(--accent); }
.example-note { border-bottom: 1px solid var(--line); }
.headline-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.headline-metrics > div { min-width: 0; padding: .56rem clamp(.67rem, 2.7vw, 1.6rem); overflow-wrap: anywhere; }
.headline-metrics > div + div { border-inline-start: 1px solid var(--line); }
.headline-metrics dt { color: var(--muted); font-size: .73rem; font-weight: 661; }
.headline-metrics dd { margin: .14rem 0 0; font-size: .92rem; font-weight: 680; }
#changed-count { font: 650 1.22rem/1.35 var(--mono); }
#compare-state[data-state="equal"] { color: var(--good); }
#compare-state[data-state="different"] { color: var(--accent); }

.evidence { padding: .82rem clamp(.9rem, 2.8vw, 1.6rem); border-bottom: 1px solid var(--line); }
.section-head { align-items: baseline; gap: .25rem .75rem; }
.section-head h3 { font-size: 1.13rem; line-height: 1.3; }
.section-head p { max-width: 63ch; }
.evidence-table, .summary-table { width: 100%; margin-top: .6rem; table-layout: fixed; border-collapse: collapse; overflow-wrap: anywhere; }
.evidence-table :is(th, td), .summary-table :is(th, td) { padding: .36rem .5rem; text-align: start; border-bottom: 1px solid var(--line); font-size: .84rem; }
.evidence-table thead, .summary-table thead { background: var(--panel); color: var(--muted); }
.evidence-table tbody tr:nth-child(even), .summary-table tbody tr:nth-child(even) { background: #282d26; }
.summary-table th:first-child { width: 35%; }
.summary-table tbody th { color: var(--muted); font-weight: 580; }
.evidence-table td, .matrix-table th:not(:first-child) { font-family: var(--mono); }
.matrix-table th:first-child { width: 25%; }
.matrix-table .coordinate { background: var(--accent-bg); color: var(--accent); }
.matrix-table .totals, .matrix-table tfoot { color: var(--good); background: var(--good-bg); }
.matrix-table td span { color: var(--muted); padding-inline: .13rem; }
.matrix-table caption { margin-bottom: .3rem; text-align: start; color: var(--muted); font-size: .73rem; }
.axis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .52rem; }
.axis { min-width: 0; padding: .47rem .6rem .55rem; background: var(--panel); border-top: 2px solid #858e7a; }
.axis h4 { font-size: .88rem; }
.axis p { margin-top: .17rem; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.axis-samples { display: flex; flex-wrap: wrap; gap: .19rem .42rem; margin-top: .2rem; color: var(--accent); font-size: .78rem; overflow-wrap: anywhere; }

.representation { padding: 0 clamp(.9rem, 2.8vw, 1.6rem) .15rem; border-bottom: 1px solid var(--line); }
.representation:last-child { border-bottom: 0; }
.representation summary { cursor: pointer; width: fit-content; min-height: 2.75rem; padding-block: .58rem; color: var(--accent); font-size: .88rem; font-weight: 670; }
.representation-note { padding-bottom: .1rem; }
.representation table { margin-bottom: .62rem; }
#hash-list { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: .24rem .58rem; padding-bottom: .58rem; font-size: .78rem; }
#hash-list dt { color: var(--muted); }
#hash-list dd { margin: 0; overflow-wrap: anywhere; }

.guide { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.43fr); gap: 1.05rem 2.6rem; padding-block: clamp(2.5rem, 6vw, 4.4rem); }
.guide h3 { font-size: 1.04rem; }
.guide p { margin-top: .3rem; color: var(--muted); }
#guide:focus-visible { outline: none; }
#guide:focus-visible h2 { outline: 3px solid var(--focus); outline-offset: 4px; }
.guide-body > section + section { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .83rem; }
.release-options { margin: .65rem 0; }
.release-options > div { display: grid; grid-template-columns: minmax(4.7rem, .24fr) minmax(0, 1fr); gap: .25rem .75rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.release-options dt { font-weight: 700; }
.release-options dd, .install-verify dd { margin: 0; min-width: 0; }
.release-options p { margin: 0 0 .45rem; font-size: .86rem; }
.release-options a { display: block; width: fit-content; max-width: 100%; min-height: 44px; padding: .32rem 0; font-size: .86rem; overflow-wrap: anywhere; }
.release-options a + a { margin-top: .4rem; }
.release-options a code { display: block; font-size: .78rem; }
.install-verify { margin-top: .5rem; }
.install-verify summary { cursor: pointer; width: fit-content; min-height: 44px; padding: .53rem 0; color: var(--accent); font-weight: 650; }
.install-verify dl { margin-top: .55rem; font-size: .83rem; }
pre { margin: .42rem 0; padding: .64rem .77rem; border: 1px solid var(--line); background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .83rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .72rem 0 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .79rem; }

@media (max-width: 49rem) {
  .shell { width: calc(100% - 2rem); }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .shell { width: calc(100% - 1.25rem); }
  .masthead nav { gap: .53rem; }
  .masthead a { font-size: .78rem; }
  .intro { padding-block: 1.5rem 1.15rem; }
  .intro > div p { margin-top: .56rem; }
  .input-note { display: none; }
  .cases { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
  .cases button { padding-inline: .38rem; font-size: .79rem; }
  .headline-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .headline-metrics > div:nth-child(3) { border-inline-start: 0; }
  .headline-metrics > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .evidence-table :is(th, td), .summary-table :is(th, td) { padding-inline: .25rem; font-size: .74rem; }
  .matrix-table th:first-child { width: 22%; }
  #hash-list, .guide { grid-template-columns: 1fr; }
  .release-options > div { grid-template-columns: 1fr; }
}
