/* IP Detective 3000: clean utility layout. Rules and reasons live in DESIGN.md. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/ahn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/ahn-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/ahn-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("/assets/fonts/ahm-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("/assets/fonts/ahm-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* One theme only: the night file (dark). Brandon dropped light mode on 2026-11-21. */
  color-scheme: dark;
  --desk: oklch(0.295 0.019 255);
  --desk-ink: oklch(0.86 0.012 250);
  --tab-off: oklch(0.255 0.018 255);
  --tab-ink: var(--ink-2);
  --bg: oklch(0.215 0.016 256);
  --sheet: oklch(0.255 0.018 255);
  --ink: oklch(0.93 0.006 248);
  --ink-2: oklch(0.78 0.014 250);
  --rule: oklch(0.38 0.022 256);
  --rule-strong: oklch(0.54 0.020 255); /* field, input and drop edges: 3:1+ */
  --rule-2: oklch(0.44 0.022 256); /* decorative hairlines on the desk band */
  --edge: oklch(0.62 0.020 255); /* control and field edges on the desk band and the IP file: 3:1+ */
  --stamp: oklch(0.72 0.130 45);
  --btn: var(--stamp);
  --btn-ink: oklch(0.18 0.016 255);

  --head: "Archivo", "Arial Narrow", sans-serif;
  --body: "Atkinson Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, Consolas, monospace;
  --wrap: 72rem;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
.mast :focus-visible, .foot :focus-visible { outline-color: var(--desk-ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 780; font-stretch: 76%; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 810; font-stretch: 72%; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; font-stretch: 85%; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, samp, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }

/* ---------- masthead: top bar (wordmark, search) and a plain full-width menu bar ---------- */
.mast { background: var(--desk); color: var(--desk-ink); position: relative; z-index: 20; }
.mast-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.5rem; padding-block: 0.9rem; }
.mark { font-family: var(--head); font-stretch: 76%; font-weight: 820; font-size: 1.5rem; letter-spacing: 0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); white-space: nowrap; }
.mark-icon { width: 2rem; height: 2rem; fill: none; stroke: var(--stamp); stroke-width: 3.5; stroke-linecap: round; flex: none; }
.serial { color: var(--stamp); }
.site-search { flex: 1 1 16rem; max-width: 30rem; display: flex; position: relative; }
.site-search[hidden] { display: none; }
.site-search input { flex: 1; min-width: 0; font: 400 1rem var(--body); padding: 0.6rem 0.8rem; border: 1px solid var(--edge); border-right: 0; background: var(--bg); color: var(--ink); border-radius: 3px 0 0 3px; }
.site-search input::placeholder { color: var(--ink-2); opacity: 1; }
.site-search button { font: 700 1rem var(--body); padding: 0.6rem 1.1rem; border: 1px solid var(--edge); background: var(--desk); color: var(--ink); border-radius: 0 3px 3px 0; cursor: pointer; }
.site-search button:hover { background: var(--sheet); }
.search-pop { position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0; z-index: 30; background: var(--sheet); color: var(--ink); border: 1px solid var(--edge); padding: 0.2rem 1rem 0.4rem; box-shadow: 0 10px 24px oklch(0.10 0.015 255 / 0.55); max-height: min(70vh, 32rem); overflow-y: auto; }
.search-pop[hidden] { display: none; }
.search-pop :focus-visible { outline-color: var(--stamp); outline-offset: -2px; }
.search-status { margin: 0.6rem 0; font-size: 0.9rem; color: var(--ink-2); }
.search-pop .index { border-top-width: 1px; }
.search-pop .index:empty { display: none; }
.search-pop .index a { padding: 0.7rem 0; }
.search-pop .index-title { font-size: 1rem; }
.search-pop .index-desc { font-size: 0.875rem; }
.mast-links { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.95rem; }
.mast-links a { color: var(--desk-ink); text-decoration: none; }
.mast-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); }
@media (max-width: 56rem) { .mast-links { display: none; } .site-search { max-width: none; } }
@media (max-width: 40rem) { .site-search { flex-basis: 100%; } .mark { font-size: 1.35rem; } }

.menu { border-bottom: 1px solid var(--rule-2); }
.menu-row { display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.menu-item { position: relative; display: flex; }
.menu-link { padding: 0.75rem 1rem; font-weight: 700; font-size: 0.98rem; color: var(--desk-ink); text-decoration: none; border-bottom: 3px solid transparent; }
.menu-link:hover { color: var(--ink); }
.menu-link:focus-visible { outline-offset: -3px; }
/* The open section: brighter text plus a rust bar underneath (a shape, not colour alone). */
.menu-link[aria-current="page"], .menu-link.is-section { color: var(--ink); border-bottom-color: var(--stamp); }
.menu-link[aria-current="page"]:focus-visible, .menu-link.is-section:focus-visible { outline-color: var(--stamp); }
/* Dropdowns: shown on hover or keyboard focus on wider screens. On phones each menu item opens its own index page instead. */
.menu-drop { display: none; }
@media (max-width: 48rem) { .menu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .menu-link { flex: 1; text-align: center; padding: 0.7rem 0.3rem; font-size: 0.95rem; } }
@media (min-width: 48.01rem) {
  .menu-link.has-drop::after { content: ""; display: inline-block; margin-left: 0.5rem; width: 0.4rem; height: 0.4rem; border-right: 2px solid var(--desk-ink); border-bottom: 2px solid var(--desk-ink); transform: translateY(-0.2rem) rotate(45deg); }
  .menu-drop { display: block; visibility: hidden; opacity: 0; position: absolute; top: 100%; left: -1px; z-index: 20; min-width: max(100%, 16rem); margin: 0; padding: 0.35rem 0; list-style: none; background: var(--sheet); border: 1px solid var(--edge); box-shadow: 0 10px 24px oklch(0.10 0.015 255 / 0.55); transition: opacity 120ms var(--ease), visibility 0s linear 120ms; }
  .menu-item:nth-last-child(-n+2) .menu-drop { left: auto; right: -1px; }
  .menu-item:hover .menu-drop, .menu-item:focus-within .menu-drop { visibility: visible; opacity: 1; transition: opacity 120ms var(--ease), visibility 0s; }
  .menu-drop a { display: block; padding: 0.5rem 1rem; color: var(--ink); text-decoration: none; font-size: 0.98rem; }
  .menu-drop a:hover, .menu-drop a:focus-visible { background: var(--bg); text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
  .menu-drop a:focus-visible { outline: 2px solid var(--stamp); outline-offset: -2px; }
  .menu-drop a[aria-current="page"] { font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { .menu-drop { transition: none !important; } }

/* ---------- buttons ---------- */
.btn { font: 700 1.05rem var(--body); background: var(--btn); color: var(--btn-ink); border: 0; padding: 0.95rem 1.5rem; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { filter: brightness(1.12); }
.btn:disabled, [aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn-quiet { font: 500 0.95rem var(--body); background: none; color: var(--ink); border: 1px solid var(--rule-strong); padding: 0.5rem 0.9rem; cursor: pointer; }
.btn-quiet:hover { border-color: var(--ink); }

/* ---------- status words: word + shape, colour third. Same look as the home checkup (.st). ---------- */
.tag { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 0.95rem var(--body); white-space: nowrap; }
.tag::before { content: ""; flex: none; width: 0.75rem; height: 0.75rem; }
.tag-exposed { color: var(--stamp); }
.tag-exposed::before { background: var(--stamp); }
.tag-fine::before { width: 0.8rem; height: 0.8rem; border: 2px solid var(--ink); border-radius: 50%; }
.tag-unknown { color: var(--ink-2); }
.tag-unknown::before { width: 0.8rem; height: 0.8rem; border: 2px dashed var(--ink-2); }
.tag-info { color: var(--ink-2); }
.tag-info::before { width: 0.8rem; height: 2px; background: var(--ink-2); }

/* ---------- label and value lists: plain ruled rows, no boxes ---------- */
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 2rem; border-top: 1px solid var(--rule); }
.field { grid-column: span 3; border-bottom: 1px solid var(--rule); padding: 0.6rem 0 0.7rem; min-width: 0; }
.field.w2 { grid-column: span 2; }
.field.w6 { grid-column: span 6; }
.field-label { display: block; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 0.15rem; }
.field-value { display: block; font: 400 1rem/1.45 var(--mono); overflow-wrap: anywhere; }
@media (max-width: 40rem) { .field, .field.w2 { grid-column: span 6; } }

/* ---------- full privacy scan: same layout as the home page ---------- */
.scan-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
.scan-hero .lede { margin-bottom: 1.6rem; max-width: 30em; }
.scan-hero .note-line { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-2); }
.scan-hero .check h2 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.guess { margin-top: 1rem; font-weight: 700; min-height: 1.65em; }

.report { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); border-top: 3px solid var(--ink); }
.report[hidden] { display: none; }
.report .check-head { margin-bottom: 1.2rem; }
.report .check-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.report .check-head .muted { margin: 0.4rem 0 0; max-width: 40em; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 0.4rem 1rem; padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (max-width: 40rem) { .entry { grid-template-columns: 1fr; } }
.entry h3 { font: 700 1.1rem/1.35 var(--body); margin-bottom: 0.3rem; }
.entry p { color: var(--ink-2); max-width: 46em; margin: 0 0 0.4rem; }
.entry .fix-line { color: var(--ink); }
.entry .fix-line strong { font-weight: 700; }
.passed { padding-top: 0.4rem; }
.passed p { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); align-items: baseline; }
.passed .outside-title { font: 700 1.05rem var(--body); margin: 1.4rem 0 0; padding-bottom: 0.4rem; }
@media (max-width: 40rem) { .passed p { grid-template-columns: 1fr; gap: 0.3rem; } }
.byline { margin-top: 2rem; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- index lines (lists of pages, never card grids) ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 0.95rem 0; text-decoration: none; }
.index a:hover .index-title { text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.index-title { font-weight: 700; font-size: 1.1rem; }
.index-desc { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.95rem; margin-top: 0.15rem; }
/* ---------- sections on the home page ---------- */
.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--ink); }
.band-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
@media (max-width: 52rem) { .band-grid { grid-template-columns: 1fr; } }
.band-grid > div > p { color: var(--ink-2); margin-top: 0.9rem; max-width: 30em; }

/* ---------- section index pages ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .lede { margin-top: 1rem; }

/* ---------- guides: a sheet with a margin ---------- */
.doc { margin: 0; }
.doc-head { padding: clamp(2rem, 5vw, 3.5rem) var(--gut) 1.5rem; max-width: var(--wrap); margin-inline: auto; }
.doc-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 18em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-2); padding-top: 0.8rem; border-top: 1px solid var(--rule); max-width: 46rem; }
/* Margin notes float into a right-hand margin, so stacked notes never push the text apart. */
.doc-body { --margin: 17rem; --gap: clamp(2rem, 4vw, 3.5rem); max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut) clamp(2.5rem, 6vw, 4rem); display: flow-root; overflow-wrap: break-word; } /* long web addresses wrap instead of widening the page */
.doc-body > * { max-width: 46rem; }
@media (min-width: 62rem) {
  .doc-body { padding-right: calc(var(--gut) + var(--margin) + var(--gap)); }
  .doc-body > .note { float: right; clear: right; width: var(--margin); margin-right: calc(-1 * (var(--margin) + var(--gap))); margin-top: 0.4rem; }
}
.doc-body h2 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.doc-body h3 { margin: 1.8rem 0 0.5rem; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: 0.4em; }
.doc-body li::marker { color: var(--ink-2); }
.doc-body blockquote { margin: 1.4rem 0; padding: 0 0 0 1.2rem; font-size: 1.15rem; font-style: italic; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.doc-body th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 0.5rem 0.6rem 0.5rem 0; }
.doc-body td { border-bottom: 1px solid var(--rule); padding: 0.55rem 0.6rem 0.55rem 0; vertical-align: top; }
.doc-body code { background: var(--bg); padding: 0.05em 0.3em; overflow-wrap: anywhere; }

.note { font-size: 0.95rem; border-top: 2px solid var(--ink); padding-top: 0.7rem; margin: 0.4rem 0 1.4rem; }
.note-label, .slip-label { font-weight: 700; margin: 0 0 0.3rem; }
.note p:last-child { margin-bottom: 0; }
/* Recommendation slips sit in the reading column, right after the paragraph they belong to,
   ruled like a note rather than boxed (boxes and right margins read as ads; see docs/CONVERSION-PLAYBOOK.md rule 11). */
.slip { font-size: 1rem; border-top: 2px solid var(--ink); padding: 0.8rem 0 0; margin: 1.4rem 0 1.8rem; }
.slip + .slip { margin-top: 0; }
.slip-name { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.4rem; }
.slip-price { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); margin-left: 0.4rem; }
.slip-why p { margin-bottom: 0.5rem; }
.slip-disclosure { font-size: 0.875rem; color: var(--ink-2); margin: 0.5rem 0 0; }

.next { border-top: 2px solid var(--ink); margin-top: 2.5rem; padding-top: 1rem; }

/* ---------- tools ---------- */
.tool { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.drop { display: block; border: 2px dashed var(--rule-strong); background: var(--sheet); padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; text-align: center; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--ink); }
.drop strong { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; }
.drop span { color: var(--ink-2); font-size: 0.95rem; }
.panel { border-top: 3px solid var(--ink); padding: 1rem 0 0; margin-top: 2rem; }
.panel[hidden], .tool [hidden] { display: none; }
.alert { border: 2px solid var(--stamp); padding: 0.8rem 1rem; margin-top: 1rem; }
.alert strong { color: var(--stamp); }
.hash-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: start; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.hash-row:last-child { border-bottom: 0; }
.hash-row code { overflow-wrap: anywhere; font-size: 0.92rem; }
@media (max-width: 40rem) { .hash-row { grid-template-columns: 1fr auto; } .hash-row code { grid-column: 1 / -1; } }
.progress { height: 6px; background: var(--bg); margin-top: 0.8rem; }
.progress > div { height: 100%; width: 0; background: var(--ink); }
.input { width: 100%; font: 400 0.95rem var(--mono); background: var(--bg); color: var(--ink); border: 1px solid var(--rule-strong); padding: 0.7rem 0.8rem; }
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--ink-2); opacity: 1; } /* browser default grey is about 4:1 here */
textarea.input { min-height: 12rem; resize: vertical; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.8rem; }

/* ---------- footer: one line ---------- */
.foot { background: var(--desk); color: var(--desk-ink); border-top: 1px solid var(--rule-2); padding-block: 1.75rem 2.25rem; font-size: 0.95rem; }
.foot a { color: var(--desk-ink); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.foot-row p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.fp { display: inline-flex; align-items: center; gap: 0.6rem; }
.fp svg { width: auto; height: 1.1em; }

/* verify results inside tools: border weight + icon shape + title word, colour last */
.verdict { display: flex; gap: 0.75rem; align-items: flex-start; border: 2px solid var(--rule-strong); padding: 0.85rem 1rem; margin-top: 1rem; background: var(--bg); }
.verdict svg { flex: none; width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 0.15rem; }
.verdict.is-match { border-color: var(--ink); }
.verdict.is-mismatch, .verdict.is-warn { border-color: var(--stamp); }
.verdict.is-mismatch svg, .verdict.is-warn svg { color: var(--stamp); }
.verdict strong { display: block; }
.verdict p { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.tool-explain { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: minmax(0, 46rem); }
.tool-explain h2 { margin: 2rem 0 0.7rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.tool-explain h2:first-child { margin-top: 0; }
.tool-explain ol, .tool-explain ul { padding-left: 1.3rem; }
.tool-explain li { margin-bottom: 0.4em; }
.row-tight { margin-top: 0; }
.grow { flex: 1 1 14rem; min-width: 0; }
.block { display: block; }
.mt-s { margin: 0.4rem 0 0; }
h2.h3 { font-size: 1.3rem; font-stretch: 85%; line-height: 1.2; }
/* rules on .wrap sections should match the content edge, not the padding */
.wrap.band, .wrap.report { border-top: 0; position: relative; }
.wrap.band::before, .wrap.report::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 2px solid var(--ink); }

/* ---------- tool extras (ported tools) ---------- */
/* Shared by trace-an-email, photo-metadata, remove-photo-metadata, pdf-metadata.
   State classes set from JS: .is-over (drop), .is-exposed (group/note),
   .is-match / .is-warn / .is-mismatch (auth rows), .is-origin / .is-destination (hops). */
.tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 1rem; }
.tool-head h2 { font-size: 1.3rem; font-stretch: 85%; line-height: 1.2; }
.section-gap { margin-top: 2rem; }
.input-narrow { max-width: 24rem; }

/* how-to disclosure */
.howto { border-block: 1px solid var(--rule); margin-top: 1.2rem; }
.howto summary { cursor: pointer; padding: 0.75rem 0; font-weight: 700; }
.howto-body { padding: 0 0 1rem; }
.howto-body > p:first-child { margin-top: 0.9rem; }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; }
.howto-grid h2, .howto-grid h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.howto-grid p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* image / file preview: picture on the left, field boxes on the right */
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 1.2rem; align-items: start; }
@media (max-width: 44rem) { .preview-grid { grid-template-columns: 1fr; } }
.preview-frame { display: flex; align-items: center; justify-content: center; min-height: 12rem; background: var(--bg); border: 1px solid var(--rule); padding: 0.75rem; }
.preview-frame img { display: block; max-height: 26rem; width: auto; }
.preview-grid .fields { grid-template-columns: 1fr; }
.preview-grid .field { grid-column: auto; min-height: 0; }
.preview-grid .btn-quiet { margin-top: 0.8rem; width: 100%; }

/* metadata groups: ruled sections with label/value rows */
.meta-group { border-top: 2px solid var(--ink); padding-top: 0.7rem; margin-top: 1.8rem; }
.meta-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 0.4rem; }
.meta-group-head h3 { font-size: 1.2rem; }
.meta-rows { margin: 0; }
.meta-row { display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 40rem) { .meta-row { grid-template-columns: 1fr; } }
.meta-row dt { font-size: 0.875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.meta-row dd { margin: 0; font: 400 0.95rem/1.45 var(--mono); overflow-wrap: anywhere; }
.meta-note { margin: 0.7rem 0 0; color: var(--ink-2); max-width: 46em; }
.meta-note.is-exposed { color: var(--ink); font-weight: 500; }
.meta-pre { margin: 0.7rem 0 0; font: 400 0.8rem/1.5 var(--mono); background: var(--bg); border: 1px solid var(--rule); padding: 0.75rem; max-height: 18rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* email: authentication results */
.auth-list { border-top: 2px solid var(--ink); margin-top: 0.8rem; }
.auth-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.4rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 40rem) { .auth-row { grid-template-columns: 1fr; } }
.auth-row h3 { font-size: 1.2rem; }
.auth-row .tag { margin-right: 0.6rem; }
.auth-row.is-mismatch .auth-detail { color: var(--ink); }
.auth-detail { margin: 0.3rem 0 0; color: var(--ink-2); }

/* email: relay path, oldest hop first */
.hops { list-style: none; margin: 0.8rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.hop { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (max-width: 40rem) { .hop { grid-template-columns: 1fr; } }
.hop-label { font-size: 0.875rem; color: var(--ink-2); }
.hop.is-origin .hop-label, .hop.is-destination .hop-label { color: var(--ink); font-weight: 700; }
.hop-host { font: 400 0.95rem var(--mono); overflow-wrap: anywhere; }
.hop-host code { margin-left: 0.5rem; padding: 0 0.3rem; border: 1px solid var(--rule); }
.hop-meta, .hop-extra { font: 400 0.8rem var(--mono); color: var(--ink-2); }
.hop-extra { grid-column: 2 / -1; }
@media (max-width: 40rem) { .hop-extra { grid-column: auto; } }
.hop-empty { padding: 0.7rem 0; }

/* ---------- single-test pages: the result reads like the home checkup ---------- */
.test { border-top: 3px solid var(--ink); padding-top: 1rem; }
.test-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.3rem; }
.test-head h2 { font-size: 1.45rem; }
.test .rows + .fields { border-top: 0; }

/* ---------- scan report: short first, detail on request ---------- */
.entry .why { color: var(--ink); margin: 0 0 0.5rem; }
.more { margin-top: 0.6rem; }
.more summary { cursor: pointer; font-weight: 700; width: fit-content; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.more summary:hover { text-decoration-color: var(--stamp); }
.more[open] summary { margin-bottom: 0.5rem; }
.more .saw { font: 400 0.9rem/1.5 var(--mono); }
.compare { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: grid; gap: 0.5rem; justify-items: start; }
.compare[hidden] { display: none; }
.compare p { margin: 0; }
.compare .closed { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.btn-link { font: 500 0.9rem var(--body); color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-link:hover { color: var(--ink); }
.report-foot { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.report-foot p { margin: 0; }
.next { margin-top: 2.5rem; max-width: 46rem; }
.next h3 { margin-bottom: 0.8rem; }

/* ---------- guide extras: short answer, steps, checklist, FAQ, path ---------- */
.short { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1rem 0 1.2rem; margin: 0 0 2rem; }
.short h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.short p { margin: 0; }
.short dl { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin: 0.8rem 0 0; }
.short dl div { display: flex; gap: 0.5rem; }
.short dt { font-weight: 700; }
.short dd { margin: 0; }
.steps h2, .ready h2, .faq h2 { margin-top: 2.4rem; }
.table-scroll { overflow-x: auto; }
.steps table { min-width: 36rem; }
/* Phones: each step becomes its own small block with labelled fields, instead of a table cut off at the edge. */
@media (max-width: 40rem) {
  .steps table { min-width: 0; }
  .steps thead { display: none; }
  .steps table, .steps tbody, .steps tr, .steps td { display: block; }
  .steps tr { border-top: 2px solid var(--ink); padding: 0.6rem 0 0.9rem; }
  .steps td { border: 0; padding: 0.2rem 0; }
  .steps td[data-label]::before { content: attr(data-label); display: block; font-size: 0.875rem; color: var(--ink-2); }
}
.ready ul { list-style: none; padding: 0; margin: 0.8rem 0; }
.ready li { margin-bottom: 0.55rem; }
.ready label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; cursor: pointer; }
.ready input { width: 1.15rem; height: 1.15rem; margin: 0.25rem 0 0; accent-color: var(--ink); }
.ready-count { font-weight: 700; }
.faq h3 { font-size: 1.15rem; }
.path { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.path a { text-decoration: none; font-weight: 700; display: grid; gap: 0.2rem; }
.path a span { font: 400 0.85rem var(--mono); color: var(--ink-2); }
.path a:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
.path-next { grid-column: 2; text-align: right; }
.related { margin-top: 2.2rem; }
.related .index { margin-top: 0.8rem; }
.helpful { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; }
.helpful p { margin: 0; }
.helpful .helpful-thanks { flex-basis: 100%; }
.helpful button[aria-pressed="true"] { border-color: var(--ink); font-weight: 700; }
@media (max-width: 40rem) { .path { grid-template-columns: 1fr; } .path-next { grid-column: 1; text-align: left; } }
.doc-body .index { padding-left: 0; }
.doc-body .index li { margin-bottom: 0; }
.howto-body p, .howto-body .small { font-size: 1rem; }

/* ---------- home page: the IP as the headline, the live checkup beside it, two plain lists ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.25rem, 6vw, 4.5rem); align-items: start; }
.lbl { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 0.2rem; }
.who h1 { font: 600 clamp(2.2rem, 4.4vw, 3.5rem)/1.1 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.who h1 .is-long { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.who h1 .is-none { font-family: var(--body); font-weight: 700; color: var(--ink-2); }
.says { font-size: 1.3rem; line-height: 1.45; margin: 1.1rem 0 1.6rem; max-width: 30ch; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem; }
.btn-big { font: 800 1.2rem var(--head); font-stretch: 86%; padding: 1rem 1.6rem; border-radius: 4px; }
.quiet { font-weight: 700; }
.credit { margin: 1.4rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.credit a { text-decoration-thickness: 1px; }

.check { border-top: 3px solid var(--ink); padding-top: 1rem; }
.check-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-bottom: 0.3rem; }
.check-head h2 { font-size: 1.45rem; line-height: 1.2; }
.score { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin: 0; color: var(--ink-2); }
.score.is-open { color: var(--stamp); }
.rows { list-style: none; margin: 0; padding: 0; }
.check-row { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) auto; gap: 0.2rem 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.check-row h3 { font: 700 1.02rem/1.35 var(--body); letter-spacing: 0; }
.check-row .d { color: var(--ink-2); font-size: 0.95rem; margin: 0; overflow-wrap: anywhere; }
.check-row .act { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.check-row .act[hidden] { display: none; }
.st { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
.check-row.is-open .st { color: var(--stamp); }
.check-row.is-closed .st { color: var(--ink); }
.mk-sq, .mk-ring, .mk-dash, .mk-line { display: inline-block; flex: none; }
.mk-sq { width: 0.75rem; height: 0.75rem; background: var(--stamp); }
.mk-ring { width: 0.8rem; height: 0.8rem; border: 2px solid var(--ink); border-radius: 50%; }
.mk-dash { width: 0.8rem; height: 0.8rem; border: 2px dashed var(--ink-2); }
.mk-line { width: 0.8rem; height: 2px; background: var(--ink-2); }
.full { display: inline-block; margin-top: 1.1rem; font-weight: 700; }

.home-more { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 3.5rem) clamp(3rem, 7vw, 4.5rem); }
.home-more > h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1.4rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; max-width: 56rem; }
.cols h3 { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.cols ul { list-style: none; margin: 0; padding: 0; }
.cols li { border-top: 1px solid var(--rule); }
.cols li:last-child { border-bottom: 1px solid var(--rule); }
.cols a { display: block; padding: 0.6rem 0; font-weight: 700; text-decoration: none; }
.cols a:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
@media (max-width: 56rem) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .check-row { grid-template-columns: minmax(0, 1fr) auto; } .check-row .st { grid-column: 1 / -1; } .cols { grid-template-columns: 1fr; } }

/* ---------- VPN deals page ---------- */
.vpn-top { border: 2px solid var(--ink); background: var(--sheet); padding: clamp(1.25rem, 3vw, 2rem); margin: 0 0 1rem; }
.vpn-top h2 { margin: 0.2rem 0 0.6rem; }
.vpn-pick { margin: 0; font: 600 0.9rem var(--mono); color: var(--stamp); }
.vpn-row-pick { display: block; font-size: 0.85rem; color: var(--ink-2); margin-top: 0.15rem; }
.btn-small { font-size: 0.95rem; padding: 0.6rem 1rem; white-space: nowrap; }
.aff-tag { display: inline-block; margin-left: 0.6rem; font: 400 0.8rem var(--mono); color: var(--ink-2); }
/* VPN deals table: plain grid, text links, like a shop's price list */
.deal-table { min-width: 44rem; border-collapse: collapse; }
.deal-table th, .deal-table td { border: 1px solid var(--rule); padding: 0.75rem 0.9rem; vertical-align: middle; text-align: left; }
.deal-table thead th { font-weight: 700; }
.deal-table tbody th { font-weight: 400; }
.deal-name { display: block; font-weight: 700; }
.deal-logo { display: block; width: 9rem; height: auto; margin: -1rem 0 -0.8rem -1.45rem; }
.deal-good { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 0.2rem; }
.deal-table td[data-label="Buy"] a { font-weight: 700; white-space: nowrap; }
.deal-table .aff-tag { display: block; margin: 0.25rem 0 0; }
.slip-go { margin: 0.6rem 0 0; }
.slip-go a { display: inline-block; padding-block: 0.3rem; font-weight: 700; }
.deal-note { color: var(--ink-2); font-size: 0.9rem; margin-top: 0.6rem; }
@media (max-width: 40rem) {
  .deal-table { min-width: 0; }
  .deal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .deal-table, .deal-table tbody, .deal-table tr, .deal-table th, .deal-table td { display: block; }
  .deal-table tr { border: 1px solid var(--rule); margin-bottom: 0.75rem; padding: 0.6rem 0.9rem; }
  .deal-table th, .deal-table td { border: 0; padding: 0.2rem 0; }
  .deal-table td.deal-empty { display: none; }
  .deal-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* ---------- IP lookup page: plain, no panels ---------- */
.toolhead { padding-block: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.25rem); }
.toolhead h1 { margin-bottom: 1rem; }
.toolhead p { max-width: 62ch; color: var(--ink-2); font-size: 1.15rem; }
.lookup { display: flex; max-width: 44rem; margin-top: 1.2rem; }
.lookup input { flex: 1; min-width: 0; font: 600 1.15rem var(--mono); padding: 0.85rem 1rem; border: 1px solid var(--edge); border-right: 0; border-radius: 4px 0 0 4px; background: var(--bg); color: var(--ink); }
.lookup input::placeholder { color: var(--ink-2); opacity: 1; font-weight: 400; }
.lookup .btn { border-radius: 0 4px 4px 0; font: 800 1.1rem var(--head); font-stretch: 86%; padding-inline: 1.5rem; }
.lookup-msg { margin: 0.8rem 0 0; min-height: 1.6em; }
.toolbody { border-top: 3px solid var(--ink); padding-top: 1.4rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.toolbody h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.toolbody h3 { font-size: 1.1rem; font: 700 1.05rem/1.4 var(--body); margin: 1rem 0 0.2rem; }
#lookup-result { margin-bottom: 2.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.info-plain { max-width: 44rem; }
.toolbody-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 48rem) { .toolbody-grid { grid-template-columns: 1fr; } .lookup { flex-direction: column; } .lookup input { border-right: 1px solid var(--edge); border-bottom: 0; border-radius: 4px 4px 0 0; } .lookup .btn { border-radius: 0 0 4px 4px; } }

/* ---------- guide extras after the 2026-11-22 slim-down ---------- */
.steplist { padding-left: 1.4rem; }
.steplist li { margin-bottom: 1em; }
.step-line { display: block; color: var(--ink-2); }
.step-k { color: var(--ink); font-weight: 700; }
.steplist li::marker { color: var(--ink); font-weight: 700; }
.next-one { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-weight: 700; }
/* label and value list (IP lookup result) */
.info { border-top: 1px solid var(--rule); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 1.5rem; margin: 0; max-width: 44rem; }
.info dt, .info dd { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.info dt { color: var(--ink-2); }
.info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.info dd.is-none { font-weight: 400; color: var(--ink-2); }
@media (max-width: 40rem) { .info { grid-template-columns: 1fr; gap: 0; } .info dt { border-bottom: 0; padding-bottom: 0; } }

/* WebRTC leak test: the globe under the result. Shapes (ring = where sites
   place you, square = the leaked address) match the status marks above. */
.leak-map { margin-top: 1.6rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.leak-map h3 { margin: 0 0 0.8rem; }
.leak-globe { max-width: 420px; margin-inline: auto; }
.leak-globe-canvas { display: block; margin-inline: auto; cursor: grab; touch-action: pan-y; }
.leak-globe-canvas:active { cursor: grabbing; }
.leak-caps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.leak-caps li { display: flex; gap: 0.7rem; align-items: baseline; }
.leak-caps .cap-label { display: block; color: var(--ink-2); font-size: 0.9rem; }
.leak-caps .cap-value { display: block; font-family: var(--mono); font-weight: 600; }
.leak-ask { margin-top: 1rem; }
.leak-ask p { margin: 0.5rem 0 0; }
.leak-say { font-weight: 700; }
