/* tools.jeffreyvis.nl — shared styling
   -------------------------------------------------------------------------
   The product is an instrument, so the page is built like a printed
   measurement report: one sheet of paper, hairline rules instead of cards,
   a left rail that every status marker aligns to, and colour used only where
   it carries a reading. Boxes are a last resort; the map is the only block
   that gets a ground of its own, because a chart needs one.
   ------------------------------------------------------------------------- */

/* Self-hosted: the Content-Security-Policy of this site is default-src 'self',
   so no font may come from a CDN. Instrument Sans carries the interface,
   IBM Plex Mono every value that is data rather than prose. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans-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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plex-mono-400-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: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plex-mono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plex-mono-500-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;
}

:root {
  /* Deliberately one light theme: a diagnostic report is read side by side
     with other documentation, and a dark panel in between is jarring. */
  color-scheme: light;

  /* Neutrals are warm — a single grey family, tinted the same way everywhere,
     so nothing reads as an accidental blue-grey next to an accidental beige. */
  --paper: #ffffff;
  --bg: #ffffff;
  --field: #f6f4f0;      /* the only tinted ground: map, code, detail blocks */
  --ink: #17161a;
  --ink-soft: #56555c;
  --ink-faint: #8a8891;
  --line: #dedbd5;       /* structural rules */
  --line-soft: #ebe8e2;  /* rules between rows */
  --grid: #e5e1d9;       /* meridians under the map */

  /* One accent, for links and focus only. Never for status. */
  --accent: #1d4ea8;

  /* Status: muted enough to sit next to body text for a whole page without
     shouting, dark enough to pass contrast on white. */
  --good: #2f6a4a;
  --good-soft: #e8f0ea;
  --warning: #8a5f14;
  --warning-soft: #f7efdf;
  --error: #a32e22;
  --error-soft: #f8e7e4;
  --info: #8a8891;
  --info-soft: #eeece7;

  --radius: 4px;
  --column: 1320px;
  --rail: 15px;          /* the gutter every status marker lives in */
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--column); margin: 0 auto; padding: 0 28px; }

/* ---- masthead ---- */
header.top { border-bottom: 1px solid var(--line); background: var(--paper); }
header.top .wrap { display: flex; align-items: center; gap: 1rem; height: 52px; }
.brand {
  font-family: var(--mono); font-weight: 500; font-size: 13px;
  letter-spacing: -.005em; text-decoration: none; color: var(--ink);
}
.brand span { color: var(--ink-faint); font-weight: 400; }
header.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 13px; }
header.top nav a { text-decoration: none; color: var(--ink-soft); }
header.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---- headings ---- */
h1 {
  font-size: 31px; line-height: 1.15; letter-spacing: -.026em;
  margin: 44px 0 10px; font-weight: 600;
}
.lead {
  color: var(--ink-soft); margin: 0 0 30px; max-width: 58ch;
  font-size: 15.5px; line-height: 1.55; text-wrap: pretty;
}
h3 { font-size: 14px; font-weight: 600; margin: 18px 0 6px; letter-spacing: -.006em; }

/* A tracked micro-label. Used only where a word is a caption for a block of
   data, never for a heading you actually read. */
.badge,
.advice-group .head,
.legend,
.map-legend { font-feature-settings: "tnum"; }

/* ---- overview page: a list, not a row of cards ----
   Two products do not need two boxes; a rule between them says the same
   thing with less furniture. */
.tools { max-width: 720px; }
.tool {
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px;
  text-decoration: none; color: inherit;
  border-top: 1px solid var(--line-soft);
  padding: 19px 0 21px;
}
.tool:first-child { border-top: 1px solid var(--line); }
.tool:last-child { border-bottom: 1px solid var(--line-soft); }
.tool h2 {
  margin: 0 0 5px; font-size: 17px; font-weight: 600; letter-spacing: -.017em;
  grid-column: 1; transition: color .12s ease;
}
.tool:hover h2 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tool p {
  margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5;
  grid-column: 1; max-width: 54ch; text-wrap: pretty;
}
.tool .badge { grid-column: 2; grid-row: 1; align-self: center; }
.badge {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px; flex: none;
  box-shadow: inset 0 0 0 2px currentcolor;
}
.badge.available { color: var(--good); }
.badge.soon { color: var(--ink-faint); }

/* ---- search and profiles ---- */
.searchbar { max-width: 660px; }
form.search { display: flex; gap: 8px; margin: 0 0 10px; }
form.search input {
  flex: 1; font: inherit; font-size: 15px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
form.search input::placeholder { color: var(--ink-faint); }
form.search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 168, .13);
}
form.search button {
  font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  padding: 9px 20px; cursor: pointer;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: background-color .13s ease, border-color .13s ease;
}
form.search button:hover { background: #000; border-color: #000; }
form.search button:active { transform: translateY(1px); }
form.search button:disabled { opacity: .45; cursor: progress; transform: none; }
.hint { color: var(--ink-faint); font-size: 13px; margin: 0 0 18px; }

/* A segmented control rather than five loose pills: the profiles are one
   setting with five positions, and the shape should say so. */
.profiles {
  display: inline-flex; flex-wrap: wrap; margin: 0 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
}
.profile {
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink-soft);
  padding: 8px 15px; font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background-color .12s ease, color .12s ease;
}
.profile:first-child { border-left: 0; }
.profile:hover { background: var(--field); color: var(--ink); }
.profile[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.profile[aria-pressed="true"]:hover { background: #000; }
.profile:focus-visible { outline-offset: -2px; }
.profile-note { color: var(--ink-faint); font-size: 13px; margin: 0 0 34px; min-height: 1.2em; }

/* ---- status line ----
   Counts on the left, legend flush right on the same baseline, categories
   underneath. One rule closes the block. */
.statusbar {
  margin: 0 0 22px; display: grid;
  grid-template-columns: 1fr auto; align-items: baseline; column-gap: 32px;
}
.statusbar.hidden { display: none; }
.counts {
  grid-column: 1; grid-row: 1;
  display: flex; gap: 26px; flex-wrap: wrap; align-items: baseline;
  font-size: 13.5px; color: var(--ink-soft);
}
.counts .count-item { display: inline-flex; align-items: baseline; gap: 8px; }
.counts .count-item .dot { align-self: center; }
.counts .count-item b {
  font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em;
}
.counts .busy-text { color: var(--ink-faint); font-size: 12.5px; }

.legend, .map-legend {
  font-size: 11.5px; color: var(--ink-faint); font-weight: 400;
  display: flex; gap: 6px 18px; flex-wrap: wrap;
}
.legend { grid-column: 2; grid-row: 1; justify-content: flex-end; margin: 0; }
.legend > span, .map-legend > span { display: inline-flex; align-items: center; gap: 7px; }

.chips {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; gap: 6px 20px; flex-wrap: wrap;
  margin: 15px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
}
/* Plain links with a status marker — eighteen bordered pills was eighteen
   boxes doing the job of eighteen words. */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }

@media (max-width: 1020px) {
  .statusbar { grid-template-columns: 1fr; }
  .legend { grid-column: 1; grid-row: 3; justify-content: flex-start; margin-top: 14px; }
  .chips { grid-column: 1; }
}

/* ---- status markers ----
   Signal by contrast, not by brightness: what is in order is a hollow ring,
   what needs you is filled. Eighty green rings read as a quiet field; six
   filled amber marks read as the six things to look at. */
.dot {
  /* inline-block, not inline: a bare span ignores width and height, which left
     every dot in a table cell rendering at nought by nought. Flex and grid
     children are blockified anyway, so this changes nothing where it worked. */
  display: inline-block; vertical-align: top;
  width: 9px; height: 9px; border-radius: 99px; flex: none;
  background: transparent; box-shadow: inset 0 0 0 2px var(--info);
}
.dot.good { box-shadow: inset 0 0 0 2px var(--good); }
.dot.info { box-shadow: inset 0 0 0 2px var(--info); }
.dot.warning { background: var(--warning); box-shadow: none; }
.dot.error { background: var(--error); box-shadow: 0 0 0 3px var(--error-soft); }
.dot.busy { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); animation: pols 1.4s ease-in-out infinite; }
@keyframes pols { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .dot.busy { animation: none; opacity: .6; } }

/* ---- score ----
   The reading on the left at instrument scale, the per-category shares to the
   right of it, so the block is wide rather than tall. */
.score {
  margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(230px, 300px) 1fr;
  column-gap: 48px; align-items: start;
}
.score.hidden { display: none; }
.score-head { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.score-number {
  font-size: 60px; font-weight: 600; letter-spacing: -.045em; line-height: .9;
  color: var(--ink);
}
/* The number stays ink; the grade beside it carries the colour. A 96 and a 41
   should not be two different typefaces of urgency. */
.score-number.good, .score-number.warning, .score-number.error { color: var(--ink); }
.score-max { font-size: 13px; color: var(--ink-faint); }
.score-grade {
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-left: 6px; padding: 2px 0 4px; border-bottom: 3px solid currentcolor;
  background: none; color: var(--info); border-radius: 0;
}
.score-grade.good { color: var(--good); }
.score-grade.warning { color: var(--warning); }
.score-grade.error { color: var(--error); }
.score .note {
  grid-column: 1; grid-row: 3; color: var(--ink-faint); font-size: 12.5px; line-height: 1.5;
  margin: 14px 0 0; max-width: 46ch; text-wrap: pretty;
}
.score .cap {
  grid-column: 1; grid-row: 2; color: var(--error); font-size: 13px; margin: 12px 0 0;
  padding-left: 12px; border-left: 2px solid var(--error);
}

.bars {
  grid-column: 2; grid-row: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 16px 26px; margin: 6px 0 0;
}
.bar { font-size: 12.5px; color: var(--ink-soft); }
.bar .label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; align-items: baseline; }
.bar .label b { font-weight: 600; color: var(--ink); font-size: 13px; }
/* Hairline meters. A 8px rounded bar is a progress bar; a 3px rule is a
   reading on a scale. */
.bar .track { display: block; height: 3px; border-radius: 0; background: var(--line-soft); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 0; background: var(--good); display: block; }
.bar .fill.warning { background: var(--warning); }
.bar .fill.error { background: var(--error); }
button.more-scores {
  grid-column: 2; grid-row: 2 / span 2; align-self: start; justify-self: start;
  margin-top: 18px; background: none; border: 0; color: var(--accent);
  font: inherit; font-size: 13px; cursor: pointer; padding: 0;
}
button.more-scores:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .score { grid-template-columns: 1fr; row-gap: 0; }
  .score-head, .score .note, .score .cap, .bars, button.more-scores {
    grid-column: 1; grid-row: auto;
  }
  .bars { margin-top: 20px; }
}

/* ---- points of attention ---- */
.advice {
  margin: 0 0 26px; border: 0; border-radius: 0; background: none;
  border-bottom: 1px solid var(--line);
}
.advice > summary {
  cursor: pointer; padding: 0 0 12px; font-weight: 600; font-size: 15px;
  letter-spacing: -.012em; list-style: none;
  display: grid; grid-template-columns: var(--rail) 1fr auto; align-items: center;
}
.advice > summary::-webkit-details-marker { display: none; }
.advice > summary:hover { color: var(--accent); }
.advice > summary .count {
  color: var(--ink-faint); font-weight: 400;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: -.01em;
}
/* Category name in a left rail, its findings to the right of it: the eye
   scans one column of labels instead of fifteen stacked headings. */
.advice-group {
  border-top: 1px solid var(--line-soft); padding: 12px 0 13px;
  display: grid; grid-template-columns: 172px 1fr; column-gap: 26px;
}
.advice-group .head {
  grid-column: 1; grid-row: 1;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .085em;
  color: var(--ink-faint); font-weight: 600; margin: 3px 0 0;
}
.advice-group .row {
  grid-column: 2;
  display: grid; grid-template-columns: var(--rail) 1fr;
  padding: 5px 0; align-items: start;
}
.advice-group .row + .row { border-top: 1px solid var(--line-soft); }
.advice-group .row .dot { margin-top: 6px; }
/* Title and explanation on one line, at most two lines tall: fifteen separate
   three-line blocks turned it into a wall of text. */
.advice-group .text {
  margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.advice-group .text b { color: var(--ink); font-weight: 600; }

@media (max-width: 620px) {
  /* Below this the rail is too narrow to hold a category name, so the label
     goes back above its findings. */
  .advice-group { grid-template-columns: 1fr; row-gap: 2px; }
  .advice-group .head { grid-column: 1; grid-row: auto; margin: 0 0 2px; }
  .advice-group .row { grid-column: 1; }
}

/* ---- result sections ----
   Multi-column instead of a grid: in a grid an opened section leaves a hole in
   the neighbouring column, whereas column flow simply pushes the rest along.
   break-inside keeps a section inside one column. */
.sections {
  column-count: 3; column-gap: 40px;
  border-top: 1px solid var(--line); padding-top: 4px;
}
.sections:empty { border-top: 0; padding-top: 0; }
@media (max-width: 1180px) { .sections { column-count: 2; } }
@media (max-width: 760px)  { .sections { column-count: 1; } }
.section { border-bottom: 1px solid var(--line-soft); break-inside: avoid; page-break-inside: avoid; }
/* Also keep an opened section inside one column: splitting a table across
   two columns makes it unreadable. */
.section[open] { break-inside: avoid; }
.section > summary {
  cursor: pointer; padding: 11px 0; font-size: 14px; font-weight: 600;
  letter-spacing: -.012em;
  display: grid; grid-template-columns: var(--rail) 1fr auto;
  align-items: center; gap: 0; list-style: none;
}
.section > summary::-webkit-details-marker { display: none; }
/* The rail track holds the status dot. Sections that have no status - the
   Certificate Transparency ones - must not reserve it: a bare text node lands
   in the rail track and wraps one word per line. */
.section.norail > summary { grid-template-columns: 1fr auto; }
.section > summary:hover { color: var(--accent); }
.section > summary .meta {
  font-weight: 400; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: -.02em; color: var(--ink-faint);
}
.section[open] > summary { color: var(--ink); }
.section > div { padding: 0 0 18px; }

table.dense { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
table.dense td { padding: 7px 14px 7px 0; border-top: 1px solid var(--line-soft); vertical-align: top; line-height: 1.45; }
table.dense tr:first-child td { border-top: 0; }
table.dense td.s { width: var(--rail); padding-right: 0; }
table.dense td.s .dot { margin-top: 5px; }
table.dense td.t { width: 37%; font-weight: 600; color: var(--ink); word-break: break-word; letter-spacing: -.008em; }
table.dense td.u { color: var(--ink-soft); }
table.dense tr.flag td.u { color: var(--ink); }
/* Raw output is data, so it is set in the data face and marked with a rule
   rather than wrapped in another box. */
table.dense .details {
  margin-top: 6px; padding: 6px 0 6px 10px;
  border-left: 2px solid var(--line);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-faint); white-space: pre-wrap; word-break: break-all; line-height: 1.55;
}
table.dense summary.more {
  cursor: pointer; font-size: 12.5px; color: var(--accent); margin-top: 5px;
  list-style: none; width: fit-content;
}
table.dense summary.more:hover { text-decoration: underline; }
table.dense summary.more::-webkit-details-marker { display: none; }
.busy-row { padding: 8px 0 14px; font-size: 13.5px; color: var(--ink-faint); }
.empty { color: var(--ink-faint); font-size: 14px; }
.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

/* ---- world map ----
   The one block that gets a ground of its own. Meridians every 30 degrees run
   under the coastlines: the projection is equirectangular, so evenly spaced
   vertical rules are the real graticule, not decoration. */
.map-panel {
  margin: 0 0 26px; padding: 0 0 22px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; overflow: visible;
}
.map-panel.hidden { display: none; }
.map-panel > header {
  display: grid; grid-template-columns: var(--rail) 1fr auto;
  align-items: center; gap: 0;
  padding: 0 0 12px; border: 0;
  font-size: 15px; font-weight: 600; letter-spacing: -.012em;
}
.map-panel > header .meta {
  font-weight: 400; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: -.02em; color: var(--ink-faint);
}
.map-box {
  padding: 0; background-color: var(--field);
  background-image: repeating-linear-gradient(
    to right, var(--grid) 0 1px, transparent 1px calc(100% / 12));
  border-radius: 2px;
}
/* Fixed height: the map is one check and must not eat the whole report.
   It shrinks with the viewport so the meridians keep meeting the coastlines —
   below roughly 2.5:1 the slice fit starts cropping horizontally. */
/* The height follows the projection instead of the other way round. With a
   fixed height and a slice fit, the SVG scaled to the container width and
   everything above roughly 51 degrees north fell outside the frame - Europe
   ended at Paris. The viewBox is cropped to the inhabited band (68N to 45S),
   so the aspect stays wide without cutting anything a pin sits in. */
svg.world {
  width: 100%; display: block;
  aspect-ratio: 1000 / 314;
  max-height: 420px;
}
@media (max-width: 720px) { svg.world { max-height: 300px; } }
svg.world path.land { fill: rgba(174,164,142,.34); stroke: rgba(146,135,112,.42); stroke-width: .5; }
svg.world circle.pin {
  stroke: var(--field); stroke-width: 1.4; cursor: pointer;
  transition: fill .35s ease, stroke-width .12s ease;
}
svg.world circle.pin:hover { stroke-width: 3; }
svg.world circle.pin.same { fill: var(--good); fill-opacity: .85; }
svg.world circle.pin.different { fill: var(--error); stroke: var(--paper); }
svg.world circle.pin.filtered { fill: var(--warning); }
svg.world circle.pin.no-answer { fill: #9a978e; opacity: .55; }
svg.world circle.pin.waiting { fill: #9a978e; opacity: .28; }
.map-legend {
  padding: 11px 16px 13px; max-height: none; overflow: visible;
  gap: 5px 18px; align-items: center;
}
.map-legend > span:last-child {
  flex-basis: 100%; margin-top: 1px;
  font-size: 11.5px; color: var(--ink-faint);
}
#map-tip {
  position: fixed; z-index: 50; pointer-events: none; display: none;
  background: var(--ink); color: #f4f3f1; padding: 9px 11px;
  border-radius: 3px; font-size: 12.5px; line-height: 1.5; max-width: 300px;
  box-shadow: 0 6px 18px -6px rgba(23, 22, 26, .4);
}
#map-tip strong { font-weight: 600; }
#map-tip .mono { color: #f4f3f1; opacity: .62; font-size: 11.5px; }

footer.foot {
  margin: 56px auto 44px; color: var(--ink-faint); font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px solid var(--line); padding-top: 18px;
}
footer.foot > * , footer.foot { text-wrap: pretty; }

/* ---- compact header once a report is on screen ----
   The title, the intro and the profile note have done their job once something
   has been submitted; that space goes to the report. */
body.report h1,
body.report .lead,
body.report .hint,
body.report .profile-note { display: none; }
body.report .searchbar {
  max-width: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 0 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 8; background: var(--bg);
}
body.report form.search { margin: 0; flex: 1 1 300px; max-width: 420px; }
body.report form.search input { padding: 7px 11px; font-size: 14px; }
body.report form.search button { padding: 7px 16px; font-size: 14px; }
body.report .profiles { margin: 0; }
body.report .profile { padding: 6px 12px; font-size: 13px; }
body.report main > h1 { margin-top: 0; }

/* ---- mail test ---- */
.address-panel {
  border: 0; border-radius: 0; background: none;
  padding: 0 0 24px; margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.address-panel .step {
  margin: 0 0 12px; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .085em; color: var(--ink-faint);
}
.address-row { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
code.address {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 21px; letter-spacing: -.025em;
  color: var(--ink);
  background: var(--field); padding: 13px 18px;
  border-radius: var(--radius) 0 0 var(--radius);
  user-select: all; word-break: break-all;
}
.address-row button, #restart {
  font: inherit; font-size: 13.5px; font-weight: 500; padding: 9px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  transition: border-color .12s ease, background-color .12s ease;
}
.address-row button:hover, #restart:hover { border-color: var(--ink); background: var(--field); }
.address-row button:active, #restart:active { transform: translateY(1px); }
.address-row button:disabled { opacity: .45; cursor: default; transform: none; }
/* The readout and its button are one control, so they share one ground. */
.address-row button {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-color: transparent; border-left: 1px solid var(--line);
  background: var(--field);
}
.address-row button:hover { background: #efece6; border-left-color: var(--ink); }
@media (max-width: 560px) {
  .address-row { gap: 8px; }
  code.address { border-radius: var(--radius); }
  .address-row button { border-radius: var(--radius); border-color: var(--line); }
}
#restart { margin-top: 16px; }
.address-panel .note {
  color: var(--ink-soft); font-size: 13.5px; line-height: 1.55;
  margin: 14px 0 0; max-width: 62ch; text-wrap: pretty;
}
.address-panel .waiting {
  display: flex; align-items: center; gap: 9px;
  margin: 14px 0 0; font-size: 13.5px; color: var(--ink-soft);
}
/* A class selector beats the browser default for [hidden], so say it again. */
.address-panel .waiting[hidden] { display: none; }
.message-summary {
  font-size: 13.5px; color: var(--ink-soft); margin: 0 0 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.message-summary.hidden { display: none; }


/* ---- utilities ----
   The scripts toggle visibility with this class. Specific rules exist for the
   panels that carry their own display value; this covers everything else, and
   without it a classList.add("hidden") silently does nothing. */
.hidden { display: none; }

/* ---- certificate transparency ---- */
.trail {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 18px; font-size: 13px;
}
.trail .step {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-family: var(--mono); font-size: 12.5px; color: var(--accent);
}
.trail .step:hover { text-decoration: underline; }
.trail .here { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.trail .sep { color: var(--ink-faint); }
button.drill {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  font: inherit; font-family: var(--mono); font-size: 12.5px; color: var(--accent);
}
button.drill:hover { text-decoration: underline; }
table.dense th {
  text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 0 12px 6px 0; border-bottom: 1px solid var(--line);
}

/* Column flow suits the domain report, where every section is a short table.
   The certificate list is wide by nature, so that page asks for one column. */
.sections.single { column-count: 1; }
.sections.single .section > summary { gap: 12px; }
.sections.single table.dense { table-layout: auto; }
.sections.single table.dense td { padding-right: 20px; }

/* Troubleshooting toggle, beside the profile control. Deliberately plain: it is
   a mode, not a decision, and it should not compete with the profiles. */
.troubleshoot {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft); cursor: pointer; user-select: none;
  white-space: nowrap;
}
.troubleshoot input { accent-color: var(--ink); margin: 0; cursor: pointer; }
.troubleshoot:hover { color: var(--ink); }

/* Explains an active mode, so unlike .hint it must survive the compact header:
   the rule that collapses the intro once a report is on screen hides .hint, and
   this note is about what is happening right now. */
.mode-note {
  color: var(--ink-soft); font-size: 13px; line-height: 1.5;
  margin: 0 0 18px; max-width: 78ch;
  border-left: 2px solid var(--line); padding-left: 12px;
}
body.report .mode-note { margin-top: -4px; }

/* Certificate Transparency tables: short columns hug their content so the
   remaining one takes the width, instead of four columns drifting apart. */
.sections.single table.dense th.min, .sections.single table.dense td.min {
  width: 1%; white-space: nowrap;
}
.sections.single table.dense td.min { padding-right: 28px; }
.sections.single table.dense th.num, .sections.single table.dense td.num {
  text-align: right; padding-right: 0; font-variant-numeric: tabular-nums;
}

/* Hundreds of names that all say the same thing do not belong in a table: the
   row would repeat "on this address" down nine screens. They go in columns,
   with only the exceptions - moved or gone - kept as rows worth reading. */
.namelist { column-count: 4; column-gap: 28px; margin: 2px 0 12px; }
@media (max-width: 1180px) { .namelist { column-count: 3; } }
@media (max-width: 860px)  { .namelist { column-count: 2; } }
@media (max-width: 560px)  { .namelist { column-count: 1; } }
.namelist button.drill {
  display: block; width: 100%; padding: 3px 0; break-inside: avoid;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.subhead {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); font-weight: 640; margin: 18px 0 6px;
  padding-top: 12px; border-top: 1px solid var(--line-soft);
}

/* ---- portfolio ---- */
/* The tabs are one control with four positions, like the profiles above, so
   they borrow that shape rather than inventing a second one. */
.tabs {
  display: inline-flex; flex-wrap: wrap; margin: 0 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
}
.tab {
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink-soft);
  padding: 8px 15px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.tab:first-child { border-left: 0; }
.tab:hover { background: var(--field); color: var(--ink); }
.tab.active { background: var(--ink); color: var(--paper); }
.view.hidden { display: none; }
.view table.dense { table-layout: auto; }
.view table.dense td { padding-right: 20px; }
.view table.dense th.min, .view table.dense td.min { width: 1%; white-space: nowrap; }

.field-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.field-row input {
  flex: 1 1 200px; font: inherit; font-size: 14px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.field-row input:focus, #names:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 168, .13);
}
#names {
  width: 100%; font-family: var(--mono); font-size: 13px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); resize: vertical;
}
.field-row button, #run-button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 18px; cursor: pointer;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
}
.field-row button:hover, #run-button:hover { background: #000; }
.field-row button.secondary {
  background: var(--paper); color: var(--ink); border-color: var(--line);
}
.field-row button.secondary:hover { background: var(--field); }

/* ---- server check verdicts ---- */
/* A verdict is a sentence with evidence under it, not a table row: the
   evidence is the part somebody acts on. */
.verdict {
  display: grid; grid-template-columns: var(--rail) 1fr; align-items: start;
  padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px;
}
.verdict:first-child { border-top: 0; }
.verdict .dot { margin-top: 5px; }
.verdict.error b, .verdict.warning b { color: var(--ink); }
.detail-list { margin: 6px 0 0; padding-left: 0; list-style: none; }
.detail-list li {
  font-size: 12.5px; color: var(--ink-soft); padding: 2px 0;
  overflow-wrap: anywhere;
}

/* ---- homepage: good-to-know ---- */
/* A quiet aside under the tools: a labelled note, not a banner, so it informs
   without competing with what people came for. */
.fact {
  max-width: 720px; margin: 34px 0 0; padding: 16px 20px;
  background: var(--field); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.fact-tag {
  display: block; font-size: 11px; font-weight: 640; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px;
}
.fact-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.fact-link {
  display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.fact-link:hover { text-decoration: underline; }
