/* Anchor proof: the same quiet document style as the EB Labs passport pages. */
:root {
  --paper: #f5f3ec;
  --sheet: #fffdf8;
  --ink: #1c1e1b;
  --muted: #62625a;
  --rule: #d8d3c4;
  --accent: #174f4c;
  --holds: #2d6a3a;
  --fails: #9c2f27;
  --unknown: #7f6420;
  --na: #6b6b63;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.top { border-bottom: 1px solid var(--rule); background: var(--sheet); }
.top .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.net { font-size: 0.85rem; color: var(--muted); }
main { padding-top: 2rem; padding-bottom: 2rem; }
.lede { max-width: 46rem; color: var(--muted); }
.foot { color: var(--muted); font-size: 0.85rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); padding-top: 1rem; }

.controls { display: grid; grid-template-columns: 2fr 2fr auto; gap: 0.9rem; align-items: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; margin: 1.5rem 0; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
label { font-size: 0.85rem; color: var(--muted); }
input, select { font: inherit; font-family: var(--mono); font-size: 0.9rem; padding: 0.5rem 0.6rem; border: 1px solid var(--rule); border-radius: 4px; background: #fff; min-width: 0; width: 100%; }
.buttons { display: flex; gap: 0.5rem; }
button { font: inherit; padding: 0.5rem 0.9rem; border-radius: 4px; border: 1px solid var(--accent); background: #fff; color: var(--accent); cursor: pointer; white-space: nowrap; }
button.primary { background: var(--accent); color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 0 0 1.5rem; }
.summary div, .facts div { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 0.7rem 0.9rem; }
dt { font-size: 0.8rem; color: var(--muted); }
dd { margin: 0.15rem 0 0; font-size: 1.4rem; font-family: var(--serif); }
dd.small, .facts dd { font-size: 0.95rem; font-family: var(--sans); }
.facts { display: grid; gap: 0.5rem; margin: 0 0 1rem; }

.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.item { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 0.9rem 1rem; }
.subject { margin: 0 0 0.3rem; font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; color: var(--muted); }
.meta .type { color: var(--ink); font-weight: 600; }
.more { margin: 0.6rem 0 0; font-size: 0.9rem; }
.row-error { color: var(--fails); margin: 0.6rem 0 0; }

.checks { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.5rem; }
.checks li { display: flex; gap: 0.75rem; align-items: baseline; }
.checks.compact { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.3rem 1.25rem; font-size: 0.88rem; }
.checks.compact .st { min-width: 7.5rem; }
.checks .label { margin: 0; font-weight: 600; }
.checks .reason { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.st { flex: none; display: inline-block; min-width: 8.5rem; font-size: 0.82rem; font-weight: 600; }
.st-holds { color: var(--holds); }
.st-fails { color: var(--fails); }
.st-unknown { color: var(--unknown); }
.st-not-applicable { color: var(--na); }

.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.1rem; margin: 1.5rem 0; }
.panel h2 { margin-top: 0; font-size: 1.05rem; }
.panel ul { margin: 0; padding-left: 1.2rem; }
.panel.error { border-color: var(--fails); }
.pager { margin: 1rem 0; }
.bytes { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 0.9rem; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .controls { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .st { min-width: 7.5rem; }
}
.registries { border: 0; padding: 0; margin: 0; gap: 0.35rem; }
.registries legend { font-size: 0.85rem; color: var(--muted); padding: 0; margin-bottom: 0.3rem; }
.tick { display: flex; gap: 0.5rem; align-items: center; color: var(--ink); font-size: 0.9rem; }
.tick input[type=checkbox] { width: auto; margin: 0; }
.tick.other { flex-direction: column; align-items: stretch; gap: 0.25rem; color: var(--muted); }
.hint { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0; }
.controls .buttons { align-self: end; }
.group { margin-top: 1.5rem; }
.group-head { font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.panel.note { border-color: #e3cf9c; background: #f7edd6; }
