/* Verification Gap Ledger site styles. Built by code/04_site.py; edit here, not in site/. */
:root {
  --paper: #fbfcfb; --band: #eff3f5; --ink: #1c2b36; --ink-2: #4a5a66; --rule: #d3dae0;
  --on: #2d5f8b; --off: #dfe5ea; --gap: #b7791f; --link: #1f5c99; --focus: #b7791f;
  --measure: 70ch;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14202a; --band: #1a2833; --ink: #e3e9ee; --ink-2: #a5b3be; --rule: #2c3b47;
          --on: #6fa3d6; --off: #2a3742; --gap: #e0a64a; --link: #8dbceb; --focus: #e0a64a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 "Public Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: .5rem; background: var(--paper); padding: .4rem .6rem; z-index: 9; }

header.site, footer.site, main { max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
header.site { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
  padding-top: 1.1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.mark { font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
header.site nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
header.site nav a { color: var(--ink-2); text-decoration: none; } header.site nav a:hover { color: var(--ink); text-decoration: underline; }
footer.site { border-top: 1px solid var(--rule); margin-top: 4rem; padding-top: 1rem; padding-bottom: 2rem; color: var(--ink-2); font-size: .85rem; }

h1 { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 2.2rem 0 1rem; max-width: 22ch; }
h2 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 2.2rem 0 .6rem; }
.lede { font-size: 1.15rem; max-width: var(--measure); color: var(--ink); }

/* step bars: the Ledger's signature mark */
.steps { display: inline-flex; gap: 2px; vertical-align: middle; }
.steps i { display: block; width: 14px; height: 10px; border-radius: 2px; background: var(--off); }
.steps i.on { background: var(--on); }
.steps.gap i.on { background: var(--gap); }

.key { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2rem; margin: 1.6rem 0; padding: 0; max-width: 64rem; }
.key div { display: grid; grid-template-columns: 2rem 1fr; border-top: 1px solid var(--rule); padding: .7rem 0; }
.key dt { font-weight: 800; font-size: 1.2rem; color: var(--on); }
.key dd { margin: 0; color: var(--ink-2); font-size: .95rem; } .key dd strong { color: var(--ink); font-weight: 700; }
.finding { max-width: var(--measure); background: var(--band); padding: .9rem 1.1rem; border-left: 4px solid var(--on); margin: 1.6rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: end; margin: .6rem 0 .8rem; }
.filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.filters label.q { flex: 1 1 18rem; }
.filters label.check { flex-direction: row; align-items: center; gap: .45rem; padding-bottom: .55rem; color: var(--ink); }
.filters input[type=search], .filters select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink-2); border-radius: 3px; padding: .5rem .6rem; min-height: 2.5rem; }
.filters select { max-width: 16rem; }
.filters input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--gap); }
.count { font-size: .9rem; color: var(--ink-2); margin: 0 0 .4rem; }

.tablewrap { overflow-x: auto; }
table.programs { width: 100%; border-collapse: collapse; min-width: 44rem; }
table.programs th { text-align: left; font-size: .85rem; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); padding: .4rem .5rem; }
table.programs th button { all: unset; cursor: pointer; } table.programs th button:hover { color: var(--ink); text-decoration: underline; }
table.programs th button:focus-visible { outline: 3px solid var(--focus); }
table.programs th[aria-sort] button::after { content: " \25B4"; } table.programs th[aria-sort=descending] button::after { content: " \25BE"; }
table.programs td { border-bottom: 1px solid var(--rule); padding: .7rem .5rem; vertical-align: top; }
table.programs tbody tr:hover { background: var(--band); }
td.name a { font-weight: 700; text-decoration: none; color: var(--ink); } td.name a:hover { text-decoration: underline; color: var(--link); }
td.name .sub { display: block; font-size: .85rem; color: var(--ink-2); margin-top: .15rem; }
td.lvl, td.st { font-size: .9rem; color: var(--ink-2); }
th.score, td.score { white-space: nowrap; width: 6.5rem; }
td.score .num { display: inline-block; width: 1.1rem; font-weight: 700; }
.empty { padding: 1rem 0; color: var(--ink-2); }
.legend { font-size: .85rem; color: var(--ink-2); margin-top: .8rem; } .legend .steps { margin-right: .4rem; }

/* record page */
.crumb { margin: 1.4rem 0 0; font-size: .9rem; }
.record-head h1 { margin-top: .6rem; max-width: 30ch; }
.record-sub { color: var(--ink-2); margin-top: -.4rem; }
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; align-items: start; }
.dim { border-top: 2px solid var(--ink); padding-top: .2rem; margin-bottom: 2.4rem; }
.dim-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; }
.dim-head h2 { margin: .7rem 0 0; }
.dim-score { margin: .7rem 0 0; display: flex; align-items: baseline; gap: .4rem; }
.dim-score .big { font-size: 2rem; font-weight: 800; line-height: 1; } .dim-score .of { color: var(--ink-2); margin-right: .5rem; }
.dim-score .steps i { width: 22px; height: 14px; }
.dim-label { font-weight: 700; font-size: 1.1rem; margin: .5rem 0 .1rem; }
.dim-explain { color: var(--ink-2); margin: 0 0 1rem; max-width: var(--measure); }
ol.evidence { list-style: none; margin: 0; padding: 0; }
ol.evidence li { padding: .8rem 0 .8rem 1rem; border-left: 3px solid var(--rule); margin-bottom: .6rem; max-width: var(--measure); }
ol.evidence li.assigned { border-left-color: var(--on); }
.ev-note { margin: 0 0 .35rem; }
.ev-src { margin: 0; font-size: .88rem; } .ev-src span { display: block; color: var(--ink-2); }
.status-note { background: var(--band); padding: .2rem 1.1rem 1rem; max-width: var(--measure); }
.status-note h2 { font-size: 1.1rem; }
aside.facts { position: sticky; top: 1rem; border-top: 2px solid var(--ink); padding-top: .4rem; }
aside.facts dl { margin: 0; } aside.facts div { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
aside.facts dt { font-size: .82rem; color: var(--ink-2); font-weight: 500; } aside.facts dd { margin: .1rem 0 0; font-size: .95rem; }
.cite { font-size: .85rem; color: var(--ink-2); margin-top: 1rem; overflow-wrap: anywhere; }

.prose { max-width: var(--measure); } .prose li { margin-bottom: .35rem; }
table.scale { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem; }
table.scale th, table.scale td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.scale th { width: 2rem; font-weight: 800; } table.scale td:nth-child(2) { width: 6rem; }

@media (max-width: 52rem) {
  .record-grid { grid-template-columns: 1fr; gap: 1rem; }
  aside.facts { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { header.site nav, .filters, .skip { display: none; } }
