/* Legit Signals. Layout: "Measured strip" (Swiss grid). Palette: "Hidden line" (drawing-office line types).
   Design source: Seed Sites/templates/site-02/. Faces are self-hosted (no third-party requests). */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin.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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/atkinson-mono-latin.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: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/atkinson-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FBFBFB; --flat: #EFEFEF; --ink: #151515; --ink-2: #4A4A4A; --rule: #BCBCBC; --grey: #7E7E7E;
  --amber: #B97300; --green: #1D7552; --red: #A82A1F;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141414; --flat: #202020; --ink: #ECECEC; --ink-2: #B2B2B2; --rule: #4A4A4A; --grey: #8A8A8A;
    --amber: #E6A43A; --green: #5CBF94; --red: #F2705F; color-scheme: dark; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.45 "Schibsted Grotesk", system-ui, sans-serif; }
/* Tabular figures only where numbers line up: this face also widens commas and full stops under tabular-nums. */
.strip, .dims, .tally td.n, .row .num, .ix { font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 14px 16px 36px; }
.mono, .url, code { font-family: "Atkinson Hyperlegible Mono", ui-monospace, monospace; }

/* Masthead and footer */
.mast { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.mast .brand { font-weight: 700; text-decoration: none; }
.mast nav { display: flex; gap: 14px; font-size: 15px; }
.foot { margin-top: 40px; padding-top: 9px; border-top: 2px solid var(--ink); font-size: 15px; }
.foot p + p { margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Grid: a narrow index column beside the text */
.g { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
.ix { font-size: 14px; font-weight: 700; line-height: 1.3; padding-top: 3px; }
.gh { margin-top: 44px; padding-top: 9px; border-top: 2px solid var(--ink); }
.gh .ix { padding-top: 6px; }
h1 { font-size: 34px; line-height: 1.08; font-weight: 700; margin-top: 26px; }
h2 { font-size: 21px; line-height: 1.15; font-weight: 700; }
h2 small { display: block; font-size: 14px; font-weight: 400; margin-top: 5px; }
h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.sub { margin-top: 8px; }
.ev, .note { font-size: 14px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.ev { margin-top: 6px; }
.note { margin-top: 8px; }

/* Input */
label.big { display: block; font-weight: 700; margin-top: 22px; }
textarea, select, input[type="text"] { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--paper); font: inherit; color: var(--ink); }
textarea { resize: vertical; min-height: 5.5em; }
fieldset { border: 0; margin-top: 14px; }
legend { font-weight: 700; font-size: 15px; }
.opt { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: 16px; }
.opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
button { margin-top: 12px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
button.primary { background: var(--ink); color: var(--paper); }
button.linkish { margin: 0; padding: 0; border: 0; background: none; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.err { margin-top: 12px; padding: 10px 12px; border: 2px solid var(--ink); font-weight: 700; }

/* Stage log while checks run */
.log { margin-top: 18px; font-size: 15px; }
.log p { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.log p.done::before { content: "Done: "; font-weight: 700; }
.log p.run::before { content: "Running: "; font-weight: 700; }

/* Links found in a pasted message */
.found { margin-top: 18px; }
.found ul { list-style: none; margin-top: 8px; border-top: 1px solid var(--ink); }
.found li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.found li button { margin: 0; padding: 6px 12px; }

/* Address anatomy (F1) */
.from { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.url { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin-top: 14px; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.url .part { color: var(--ink-2); }
.url b { font-weight: 700; color: var(--ink); }
.url i { display: block; height: 7px; border: 1px solid var(--ink); border-top: 0; margin: 4px 2px 0 0; }
.url small { display: block; font: 400 14px/1.3 "Schibsted Grotesk", system-ui, sans-serif; padding: 5px 8px 0 0; }
.goes { margin-top: 14px; font-size: 15px; }
.meta { margin-top: 14px; }

/* The strip: one cell per check, in order */
.strip { display: grid; margin-top: 22px; border-top: 2px solid var(--ink); }
.strip a { display: flex; flex-direction: column; gap: 9px; min-height: 58px; padding: 5px 0 0 5px; font-size: 14px; font-weight: 500; text-decoration: none; border-left: 1px solid var(--rule); }
.strip a.g0 { border-left: 2px solid var(--ink); }
.strip a:last-child { border-right: 1px solid var(--ink); }
.dims { display: grid; }
.dims p { font-size: 14px; font-weight: 700; line-height: 1.3; padding: 5px 8px 0 0; }
.dims p::before { content: ""; display: block; height: 7px; border: 1px solid var(--ink); border-top: 0; margin: 4px 2px 4px 0; }

/* State marks: each state has its own shape and a word beside it */
.mk { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -2px; }
.mk .list { fill: var(--red); }
.mk .warn { fill: var(--amber); }
.mk .know { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.mk .none { fill: none; stroke: var(--green); stroke-width: 2; }
.mk .cant { fill: none; stroke: var(--grey); stroke-width: 1.6; stroke-dasharray: 3 2; }

/* Next step and actions */
.next { margin-top: 26px; padding: 8px 12px 12px; background: var(--flat); border-top: 2px solid var(--ink); }
.next p + p { font-size: 21px; line-height: 1.3; font-weight: 500; margin-top: 4px; }
.act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.act button { flex: 1 1 10rem; margin: 0; padding: 13px 10px; line-height: 1.2; }
.act button.primary { flex-grow: 1.5; }
.blind { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--rule); }

/* Tally */
table.tally { width: 100%; border-collapse: collapse; margin-top: 18px; }
.tally td, .tally th { padding: 7px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.tally tr:first-child td, .tally tr:first-child th { border-top: 1px solid var(--ink); }
.tally td:first-child { width: 28px; padding-top: 9px; }
.tally th { font-weight: 700; }
.tally th small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.tally td.n { text-align: right; width: 28px; font-weight: 700; }

/* Rows */
.row { padding: 14px 0 15px; border-bottom: 1px solid var(--rule); }
.row .num { font-size: 34px; line-height: .9; font-weight: 400; }
.st { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 2px 0 3px; }
.why { margin-top: 6px; }
details.raw { margin-top: 6px; font-size: 14px; }
details.raw summary { cursor: pointer; color: var(--ink-2); }
details.raw ol { margin: 6px 0 0 20px; overflow-wrap: anywhere; }
ul.plain { list-style: none; margin-top: 10px; border-top: 1px solid var(--ink); }
ul.plain li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
dl.tell { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 10px; border-top: 1px solid var(--ink); }
dl.tell dt, dl.tell dd { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
dl.tell dt { font-weight: 700; padding-bottom: 0; border-bottom: 0; }
[data-country] h3 { margin-top: 22px; }
[data-country] .why { margin-top: 14px; }
@media (min-width: 560px) {
  dl.tell { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
  dl.tell dt { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
}
.sent { margin-top: 10px; font-weight: 700; }

/* Prose pages */
.prose { margin-top: 18px; overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose h2 { margin-top: 34px; padding-top: 9px; border-top: 2px solid var(--ink); }
.prose h3 { margin-top: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); }
.prose thead th { border-bottom: 1px solid var(--ink); }
.tbl { overflow-x: auto; }
.lede { font-size: 19px; margin-top: 10px; }
.keys { list-style: none; padding: 0 !important; }
.keys li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.st-inline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

@media (min-width: 720px) {
  .wrap { padding: 22px 24px 48px; }
  h1 { font-size: 40px; }
  .g { grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; }
}
@media print {
  .mast nav, .act, #again, .found, form, .foot nav { display: none !important; }
  body { font-size: 12pt; }
}
