/* Rankmeter – measuring instrument for websites.
   Identity: logarithmic rank ruler with one lane per source, tape-measure yellow for
   measured values, reference marks next to every figure, width axis of Archivo for roles. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations"), url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --bg-3: #e7e9ed;
  --ink: #000000;
  --text: #22252b;
  --muted: #5b626e;
  --line: #dde0e5;
  --line-2: #b6bcc6;
  --tape: #ffcc00;
  --tape-soft: #fff3c2;
  --s-tranco: #2a78d6;
  --s-crux: #eb6834;
  --s-majestic: #1baf7a;
  --s-cc: #6250d6;
  --s-radar: #e87ba4;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --bad: #d03b3b;
  --good-ink: #067a06;
  --warn-ink: #8a5a00;
  --bad-ink: #b42b2b;
  --focus: #2a78d6;
  --seq-1: #0d366b; --seq-2: #184f95; --seq-3: #256abf; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #9ec5f4; --seq-7: #cde2fb;
  --wrap: 1180px;
  --gut: 20px;
  --band: #000000; --on-band: #ffffff; --fav-bg: #f3f4f6; --logo-bg: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15171b; --bg-2: #1d2025; --bg-3: #282c33; --ink: #ffffff; --text: #e2e4e8; --muted: #a3a9b3;
    --line: #2d3139; --line-2: #4a515c; --tape: #ffd21f; --tape-soft: rgba(255, 210, 31, .18);
    --s-tranco: #3987e5; --s-crux: #d95926; --s-majestic: #199e70; --s-cc: #9085e9; --s-radar: #d55181;
    --good-ink: #46d146; --warn-ink: #fab219; --bad-ink: #ff8080; --focus: #6da7ec;
    --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95; --seq-7: #104281;
    --band: #08090b; --on-band: #f3f4f6; --fav-bg: #e3e6eb; --logo-bg: #e3e6eb;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171b; --bg-2: #1d2025; --bg-3: #282c33; --ink: #ffffff; --text: #e2e4e8; --muted: #a3a9b3;
  --line: #2d3139; --line-2: #4a515c; --tape: #ffd21f; --tape-soft: rgba(255, 210, 31, .18);
  --s-tranco: #3987e5; --s-crux: #d95926; --s-majestic: #199e70; --s-cc: #9085e9; --s-radar: #d55181;
  --good-ink: #46d146; --warn-ink: #fab219; --bad-ink: #ff8080; --focus: #6da7ec;
  --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95; --seq-7: #104281;
  --band: #08090b; --on-band: #f3f4f6; --fav-bg: #e3e6eb; --logo-bg: #e3e6eb;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; font-stretch: 100%; font-optical-sizing: auto;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--tape); text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; }
h1 { font-size: clamp(30px, 5.2vw, 49px); font-weight: 760; font-stretch: 112%; letter-spacing: -.015em; }
h2 { font-size: 20px; font-weight: 720; font-stretch: 108%; letter-spacing: -.005em; }
h3 { font-size: 16px; font-weight: 680; }
p { margin: 0 0 12px; }
h1, p { overflow-wrap: anywhere; } /* a 60-letter domain name wraps instead of widening the page */
code, .code, kbd { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.ic { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- header & footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 780; font-stretch: 118%; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.logo-mark { flex: none; border-radius: 7px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--tape); color: var(--ink); }
.head-act { display: flex; align-items: center; gap: 6px; }
.lang { font-weight: 700; font-size: 13px; text-decoration: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; line-height: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
/* theme button: moon in light mode (switch to dark), sun in dark mode (switch to light) */
.icon-btn .ic-sun { display: none; }
:root[data-theme="dark"] .icon-btn .ic-sun { display: block; }
:root[data-theme="dark"] .icon-btn .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .ic-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .ic-moon { display: none; }
}
.nav-btn { display: none; }

.site-foot { border-top: 2px solid var(--ink); margin-top: 72px; padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 760; font-stretch: 118%; color: var(--ink); font-size: 16px; }
.foot-data, .foot-note { grid-column: 1; margin: 0; }
.foot-nav { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; justify-content: flex-end; }
.foot-nav a { color: var(--text); }

/* ---------------------------------------------------------------- sponsored bar */
.spx { display: block; background: var(--bg-2); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; }
.spx:hover { text-decoration: none; background: var(--bg-3); }
.spx-in { display: flex; align-items: center; gap: 10px; max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gut); min-height: 40px; }
.spx-badge { flex: none; font-size: 11.5px; font-weight: 650; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; letter-spacing: .01em; }
.spx-logo { width: 18px; height: 18px; border-radius: 4px; flex: none; object-fit: contain; background: var(--logo-bg); }
.spx-in { position: relative; }
.spx-name { font-weight: 700; color: var(--ink); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.spx-tag { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.spx-cta { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.spx-cta svg { width: 15px; height: 15px; transition: transform .2s; }
.spx:hover .spx-cta svg { transform: translateX(3px); }
.spx.fade .spx-name, .spx.fade .spx-tag, .spx.fade .spx-logo { opacity: 0; }

/* ---------------------------------------------------------------- shared bits */
.ref {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; vertical-align: 2px;
  font-size: 10px; font-weight: 750; font-stretch: 100%; line-height: 1; color: var(--ink); text-decoration: none;
  border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg-2);
}
a.ref:hover { text-decoration: none; border-color: var(--ink); }
.ref-tranco { border-color: var(--s-tranco); background: color-mix(in srgb, var(--s-tranco) 16%, var(--bg)); }
.ref-crux { border-color: var(--s-crux); background: color-mix(in srgb, var(--s-crux) 16%, var(--bg)); }
.ref-majestic { border-color: var(--s-majestic); background: color-mix(in srgb, var(--s-majestic) 16%, var(--bg)); }
.ref-cc { border-color: var(--s-cc); background: color-mix(in srgb, var(--s-cc) 16%, var(--bg)); }
.ref-radar { border-color: var(--s-radar); background: color-mix(in srgb, var(--s-radar) 16%, var(--bg)); }
.ref-model { border-color: var(--ink); background: var(--tape); color: #000; }
h2 .ref, h3 .ref { vertical-align: 3px; }

.dom, .dom-plain { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.dom span, .dom-plain span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom:hover span:not(.cat-tag) { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.cat-tag { flex: none; font-size: 11.5px; font-weight: 600; line-height: 17px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); }
.cat-tag.cat-risky, .chip.cat-risky { color: var(--bad-ink); border-color: currentColor; }
.fav { width: 20px; height: 20px; border-radius: 4px; flex: none; background: var(--fav-bg); }
.cc { display: inline-block; min-width: 26px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; text-align: center; padding: 1px 3px; margin-right: 7px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 650; padding: 10px 16px; cursor: pointer; }
.btn:hover { box-shadow: inset 0 -3px 0 var(--tape); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 6px 11px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.more { font-weight: 650; }

.grade { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; font-weight: 820; font-stretch: 115%; font-size: 17px; color: #000; }
.grade-good { background: var(--good); }
.grade-warn { background: var(--warn); }
.grade-bad { background: var(--bad); color: #fff; }
.grade-none { background: var(--bg-2); color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st-good .ic { color: var(--good-ink); }
.st-warn .ic { color: var(--warn-ink); }
.st-bad .ic { color: var(--bad-ink); }
.st-none .ic { color: var(--line-2); }

.chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; line-height: 1.4; background: var(--bg); }
.chip-v { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip-soft { border-style: dashed; }
.chips-line { display: flex; flex-wrap: wrap; gap: 6px; }

.skel { display: inline-block; width: 110px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; vertical-align: middle; }
.skel-block { display: block; height: 120px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pending { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pending .ic { animation: spin 1.2s linear infinite; }
.live-failed .skel, .live-failed .skel-block, .live-failed .pending .ic { animation: none; } /* nothing is loading any more */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- search */
.search { position: relative; display: flex; gap: 0; max-width: 680px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-right: 0; border-radius: 8px 0 0 8px; padding: 12px 14px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; box-shadow: inset 0 -3px 0 var(--tape); }
.search button { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; font-stretch: 108%; padding: 0 20px; border-radius: 0 8px 8px 0; cursor: pointer; }
.search button:hover { box-shadow: inset 0 -4px 0 var(--tape); }
.search-big input { font-size: 19px; padding: 16px 18px; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; list-style: none; margin: 0; padding: 4px; background: var(--bg); border: 1px solid var(--ink); border-radius: 8px; z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.suggest li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; text-decoration: none; border-radius: 5px; }
.suggest li a:hover, .suggest li a[aria-selected="true"] { background: var(--bg-2); }
.suggest .s-r { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- home */
.hero { padding: 46px 0 20px; }
.hero-h { font-size: clamp(36px, 7.4vw, 76px); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; line-height: .98; max-width: 24ch; text-wrap: balance; margin-bottom: 18px; }
.hero-lead { font-size: clamp(16px, 2.1vw, 19px); max-width: 62ch; color: var(--text); margin-bottom: 26px; }
.try { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.try a { color: var(--text); }
.hero-demo { margin: 40px 0 0; padding: 18px 20px 14px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--line); }
.demo-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.demo-cap a { color: var(--ink); font-weight: 700; }
.demo-val { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.demo-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
/* three lists with the same build: heading, one-line note, ten rows, link – rows line up across columns */
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 0 40px; margin-top: 46px; }
.home-grid > section { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.home-grid section, .home-bottom section { border-top: 2px solid var(--ink); padding-top: 16px; }
.home-grid h2 { margin-bottom: 4px; }
.home-bottom h2 { margin-bottom: 12px; }
.list-note { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.more-line { margin: 4px 0 0; }
.rk-up { display: inline-flex; align-items: center; gap: 3px; }
.rk-up .ic { width: 14px; height: 14px; color: var(--good-ink); }
.home-recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); }
.home-recent h2 { font-size: 15px; }
.recent { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 0; }
.how { margin-top: 64px; background: var(--band); color: var(--on-band); padding: 44px 0 50px; border-block: 1px solid var(--line); }
.how h2 { color: var(--on-band); font-size: clamp(22px, 3vw, 31px); margin-bottom: 26px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.how h3 { color: var(--on-band); font-size: 18px; margin-bottom: 8px; padding-top: 12px; border-top: 3px solid var(--tape); }
.how p { color: var(--on-band); opacity: .82; }
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.tools { list-style: none; margin: 0; padding: 0; }
.tools li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tools a { font-weight: 700; }
.tools span { color: var(--muted); font-size: 15px; }

.rank-list { list-style: none; margin: 0 0 12px; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rk { font-weight: 760; font-stretch: 118%; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 15px; }
.rank-list-plain .rk { font-size: 12.5px; color: var(--muted); font-weight: 650; font-stretch: 100%; }
.rk-v { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-list-sm li { padding: 5px 0; font-size: 14.5px; }
.home-trend .rank-list li { grid-template-columns: 62px minmax(0, 1fr) auto; }
.rank-list.rank-list-nr li { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------------------------------------------------------------- the rank ruler */
.ruler { --name: 112px; display: grid; gap: 3px; }
.rl-scale, .rl-lane { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); align-items: center; gap: 10px; }
.rl-name { font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.rl-track { position: relative; height: 32px; }
.rl-scale .rl-track { height: 30px; }
.rl-lab { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-lab:first-child { transform: none; }
.rl-un { font-style: italic; }
.rl-ticks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 10px; stroke: var(--line-2); stroke-width: 1px; vector-effect: non-scaling-stroke; overflow: visible; }
.rl-ticks line { vector-effect: non-scaling-stroke; }
.rl-lane .rl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line-2); }
/* hatched from where the lane's list ends (--cut, set per lane) */
.rl-lane .rl-track::after { content: ""; position: absolute; left: var(--cut, 88%); right: 0; top: 4px; bottom: 4px; background: repeating-linear-gradient(135deg, transparent 0 5px, var(--bg-3) 5px 6px); border-left: 1px dashed var(--line-2); }
.rl-tranco { --lane: var(--s-tranco); }
.rl-crux { --lane: var(--s-crux); }
.rl-majestic { --lane: var(--s-majestic); }
.rl-cc { --lane: var(--s-cc); }
.rl-radar { --lane: var(--s-radar); }
.rl-pt { position: absolute; z-index: 2; left: var(--x); top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--lane); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--bg); }
.rl-pt.rl-none { background: var(--bg); border: 1.5px dashed var(--line-2); box-shadow: none; }
.rl-band { position: absolute; z-index: 1; left: var(--x); width: var(--w); top: 50%; height: 14px; transform: translateY(-50%); border-radius: 3px; background: color-mix(in srgb, var(--lane) 28%, transparent); border: 2px solid var(--lane); }
.rl-val { position: absolute; z-index: 3; left: var(--x); top: 50%; transform: translate(12px, -50%); font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--bg) 82%, transparent); padding: 0 3px; border-radius: 3px; }
.rl-val.rl-left { transform: translate(calc(-100% - 12px), -50%); }
.rl-muted { color: var(--muted); font-weight: 500; }
.rl-est { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.rl-mark { position: absolute; z-index: 2; left: var(--x); top: 50%; width: 16px; height: 16px; background: var(--tape); border: 2px solid #000; transform: translate(-50%, -50%) rotate(45deg); }

/* ---------------------------------------------------------------- pages & report */
.page-pad { padding-top: 34px; }
.narrow { max-width: 860px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { margin-bottom: 10px; }
.lead { font-size: 17px; color: var(--text); max-width: 70ch; }
.meta-line { font-size: 14px; color: var(--muted); }
.crumbs { font-size: 14px; margin-bottom: 8px; }
.note-line { font-size: 14px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* list filters: infrastructure and adult sites hidden until switched on */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.filter.on { background: var(--bg-2); border-color: var(--ink); }
.filters-note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 78ch; }
.empty { padding: 26px 0; color: var(--muted); }
.big-note { font-size: 19px; font-weight: 650; color: var(--ink); margin: 0; }

.panel { border-top: 2px solid var(--ink); padding: 16px 0 30px; min-width: 0; }
.panel-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.panel-h .grade { align-self: center; }
.panel-note { width: 100%; font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.panel-foot { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.h-sub { font-size: 14.5px; font-weight: 700; margin: 22px 0 10px; color: var(--ink); }
.panel > .h-sub:first-of-type { margin-top: 4px; }

.report { padding-top: 28px; }
.r-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.r-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.r-id .fav { width: 40px; height: 40px; border-radius: 9px; }
.r-domain { font-size: clamp(30px, 6vw, 58px); font-weight: 800; font-stretch: 116%; letter-spacing: -.02em; word-break: break-word; }
.r-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.checked { font-size: 13px; color: var(--muted); }
/* "Check again": spins while the live checks run, shows a tick when they are done */
.btn-ghost[disabled], .btn-ghost[aria-disabled="true"] { cursor: progress; }
.recheck { justify-content: center; }
.recheck .ic + .ic { display: none; }
.recheck.busy { color: var(--muted); }
.recheck.busy .ic { animation: spin 1s linear infinite; }
.recheck.done { color: var(--good-ink); border-color: currentColor; }
.recheck.done .ic { display: none; }
.recheck.done .ic + .ic { display: block; }
/* own line under the buttons; inline-size containment keeps a long note from widening (and moving) the row */
.recheck-msg { flex-basis: 100%; contain: inline-size; margin: 0; font-size: 13px; }
.recheck-fail { color: var(--bad-ink); }
.recheck-limit { color: var(--warn-ink); }
.r-ruler { padding-bottom: 22px; }
.r-ruler .ruler { background: var(--bg-2); border-radius: 8px; padding: 14px 16px 12px; }
/* fact sheet comes first in the markup, so phones show the summary right after the ruler */
.r-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: auto 1fr; grid-template-areas: "main facts" "main side"; gap: 0 48px; }
.r-grid > .r-facts { grid-area: facts; }
.r-main { grid-area: main; min-width: 0; }
.r-side { grid-area: side; min-width: 0; }
/* live checks: two balanced columns, each panel stays whole */
.live-flow { columns: 2; column-gap: 48px; }
.live-flow > .panel { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.live-flow .seo-grid { grid-template-columns: minmax(0, 1fr); }

/* section bar: sticks to the top and marks what is being read */
.r-nav-pin { height: 1px; margin-bottom: -1px; }
.r-nav { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 0 20px; margin: -6px 0 26px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14.5px; }
.r-nav::-webkit-scrollbar { display: none; }
.r-nav a { flex: none; padding: 11px 0 9px; color: var(--muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.r-nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--tape); }
.r-nav a[aria-current="location"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.r-nav .r-nav-id { display: none; align-items: center; gap: 7px; font-weight: 720; color: var(--ink); box-shadow: none; padding-right: 4px; }
.r-nav-id .fav { width: 18px; height: 18px; border-radius: 4px; }
.r-nav.stuck { box-shadow: 0 10px 14px -14px rgba(0, 0, 0, .45); }
.r-nav.stuck .r-nav-id { display: inline-flex; }
.report [id] { scroll-margin-top: 62px; }

.readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ro-num { font-size: clamp(54px, 10vw, 92px); font-weight: 780; font-stretch: 125%; letter-spacing: -.03em; line-height: .92; color: var(--ink); font-variant-numeric: tabular-nums; }
.ro-unit { font-size: 16px; color: var(--muted); }
.readout-sm { margin-bottom: 10px; }
.readout-sm .ro-num { font-size: clamp(38px, 6vw, 52px); }
.chart-opr .ch-plot path { stroke: var(--ink); }
.chart-opr .ch-dot { background: var(--ink); }
.ro-empty { font-size: 17px; }
.tol { position: relative; height: 40px; margin: 16px 0 6px; }
.tol::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 1px solid var(--line-2); }
.tol-band { position: absolute; left: var(--x); width: var(--w); top: 4px; height: 13px; background: var(--tape); border-radius: 2px; }
.tol-pt { position: absolute; left: var(--x); top: 0; width: 3px; height: 21px; background: var(--ink); transform: translateX(-50%); }
.tol-l, .tol-r { position: absolute; left: var(--x); top: 22px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tol-l { transform: translateX(-100%); padding-right: 2px; }
.tol-r { padding-left: 2px; }
.ro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ro-grid dt { font-size: 13px; color: var(--muted); }
.ro-grid dd { margin: 2px 0 0; font-size: 22px; font-weight: 740; font-stretch: 118%; color: var(--ink); font-variant-numeric: tabular-nums; }
.ro-grid dd.ro-as { font-size: 12px; font-weight: 400; font-stretch: 100%; color: var(--muted); }
.conf { font-size: 14px; margin: 0 0 6px; }
.formula { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; background: var(--bg-2); padding: 8px 10px; border-radius: 6px; display: inline-block; }
.formula.big { font-size: 16px; padding: 12px 14px; }
details.explain { margin-top: 12px; font-size: 14px; }
details.explain summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.explain-body { padding-top: 10px; }
.stack { display: flex; height: 14px; gap: 2px; margin-top: 6px; }
.stack-s { width: var(--w); border-radius: 3px; }
.stack-phone { background: var(--ink); }
.stack-desktop { background: var(--muted); }
.stack-tablet { background: var(--line-2); }
.stack-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 8px 0 0; font-size: 14px; }
.stack-legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }

.sheet { margin: 0; }
.sheet > div { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sheet dt { font-size: 14px; color: var(--muted); }
.sheet dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.sheet dd strong { font-weight: 720; font-variant-numeric: tabular-nums; }
.home-bottom .sheet dd { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.sheet .sub { display: block; font-size: 13px; color: var(--muted); }
.sheet-compact > div { padding: 7px 0; }
.r-facts .sheet > div:first-child { padding-top: 0; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv .k { min-width: 0; overflow-wrap: anywhere; }
.kv .v { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv-cols { columns: 2; column-gap: 26px; }
.kv-cols li { break-inside: avoid; }

.bars { list-style: none; margin: 0; padding: 0; }
.bar { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 58px 46px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14.5px; }
.bar-n { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bar-n a { overflow: hidden; text-overflow: ellipsis; }
.bar-t { height: 12px; background: var(--bg-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.bar-f { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 0 4px 4px 0; }
.bar-other .bar-f { background: var(--line-2); }
.bar-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.bar-b { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.strip-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.strip-m { opacity: .85; }
.strip-v { font-weight: 750; }
.s1 { background: var(--seq-1); color: #fff; } .s2 { background: var(--seq-2); color: #fff; } .s3 { background: var(--seq-3); color: #fff; } .s4 { background: var(--seq-4); color: #fff; }
.s5 { background: var(--seq-5); color: #000; } .s6 { background: var(--seq-6); color: #000; } .s7 { background: var(--seq-7); color: #000; }
.s0 { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
:root[data-theme="dark"] .s1, :root[data-theme="dark"] .s2, :root[data-theme="dark"] .s3 { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s1, :root:not([data-theme="light"]) .s2, :root:not([data-theme="light"]) .s3 { color: #000; } :root:not([data-theme="light"]) .s5, :root:not([data-theme="light"]) .s6, :root:not([data-theme="light"]) .s7 { color: #fff; } }
:root[data-theme="dark"] .s5, :root[data-theme="dark"] .s6, :root[data-theme="dark"] .s7 { color: #fff; }

.chart { margin: 0; }
.ch-plot { position: relative; height: 190px; margin-left: 56px; border-bottom: 1px solid var(--line-2); }
.ch-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ch-plot path { fill: none; stroke: var(--s-tranco); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.chart-multi .ser-1 { stroke: var(--s-tranco); } .chart-multi .ser-2 { stroke: var(--s-crux); } .chart-multi .ser-3 { stroke: var(--s-majestic); }
.ser-bg-1 { background: var(--s-tranco); } .ser-bg-2 { background: var(--s-crux); } .ser-bg-3 { background: var(--s-majestic); }
.ch-y { position: absolute; left: -56px; width: 50px; top: var(--y); transform: translateY(-50%); font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ch-plot line.grid { stroke: var(--line); stroke-width: 1px; }
.ch-x { display: flex; justify-content: space-between; margin-left: 56px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.ch-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--s-tranco); box-shadow: 0 0 0 2px var(--bg); transform: translate(-50%, -50%); pointer-events: none; }
.ch-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 5px 8px; border-radius: 5px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 12px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 4px; border-radius: 2px; }

/* measurement history: four numbers, one cell per day, two small charts; badge views as daily bars */
.ro-grid.ro-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ro-grid dd .grade { margin-top: 2px; }
.updays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; }
.ud { display: block; height: 26px; border-radius: 3px; }
.ud-up { background: var(--good); }
.ud-down { background: repeating-linear-gradient(135deg, var(--bad) 0 3px, color-mix(in srgb, var(--bad) 45%, var(--bg)) 3px 6px); }
.ud-nosite { background: var(--line-2); }
.ud-none { box-shadow: inset 0 0 0 1px var(--line-2); }
.ud-x { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ud-key { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; }
.ud-key .ud { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-left: 8px; }
.ud-key .ud:first-child { margin-left: 0; }
.m-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 24px; }
.ch-t { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.chart-sm .ch-plot { height: 118px; }
.chart-measure .ch-plot path { stroke: var(--ink); }
.chart-measure .ch-dot { background: var(--ink); }
.bdays { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 84px; align-items: end; border-bottom: 1px solid var(--line-2); }
.bdays li { height: 100%; display: flex; align-items: flex-end; }
.bdays span { display: block; width: 100%; height: var(--h); background: var(--ink); border-radius: 2px 2px 0 0; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-out { display: grid; gap: 14px; }
.calc-num { display: block; font-size: clamp(30px, 4.4vw, 42px); font-weight: 780; font-stretch: 122%; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.calc-lab { font-size: 13.5px; color: var(--muted); }
.calc-in { display: grid; gap: 12px; }
.calc-in label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13.5px; color: var(--muted); }
.calc-in input { grid-column: 1 / -1; accent-color: var(--ink); width: 100%; }
.calc-in output { grid-row: 1; grid-column: 2; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.techs { margin: 0; display: grid; gap: 10px; }
.tech-g { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; align-items: start; }
.tech-g dt { font-size: 13.5px; color: var(--muted); padding-top: 3px; }
.tech-g dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.cwv { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.cwv li { border-left: 3px solid var(--line-2); padding: 4px 0 4px 10px; display: grid; gap: 1px; }
.cwv-good { border-left-color: var(--good) !important; } .cwv-warn { border-left-color: var(--warn) !important; } .cwv-bad { border-left-color: var(--bad) !important; }
.cwv-k { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.cwv-v { font-size: 21px; font-weight: 760; font-stretch: 116%; color: var(--ink); font-variant-numeric: tabular-nums; }
.cwv .st { font-size: 12.5px; }
.psi { display: flex; gap: 16px; align-items: flex-start; }
.psi-shot { border: 1px solid var(--line); border-radius: 6px; flex: none; }
.psi-score { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.psi-score span { font-size: 34px; font-weight: 800; font-stretch: 120%; color: var(--ink); }
.psi-good span { color: var(--good-ink); } .psi-warn span { color: var(--warn-ink); } .psi-bad span { color: var(--bad-ink); }
.psi > div { flex: 1; min-width: 0; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: baseline; }
.hv { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
code.hv { color: var(--text); }
.warn-line { font-size: 14px; }
.hops { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; }
.hops li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.hop-s { flex: none; display: inline-block; min-width: 38px; text-align: center; font-weight: 700; font-size: 12.5px; border-radius: 4px; padding: 1px 4px; background: var(--bg-2); }
.hop-2 { background: color-mix(in srgb, var(--good) 22%, var(--bg)); } .hop-3 { background: color-mix(in srgb, var(--warn) 30%, var(--bg)); } .hop-4, .hop-5, .hop-0 { background: color-mix(in srgb, var(--bad) 22%, var(--bg)); }
.hop-u { overflow-wrap: anywhere; color: var(--text); }
.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.seo-grid + .seo-grid { margin-top: 10px; }
.ips { list-style: none; margin: 0 0 14px; padding: 0; }
.ips li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ips code { font-size: 14px; color: var(--ink); }
.records summary { cursor: pointer; font-weight: 650; margin-top: 16px; }
.years { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 2px; height: 16px; align-items: flex-start; }
.years li { flex: 1; position: relative; height: 14px; border-radius: 2px; }
.years .on { background: var(--ink); }
.years .off { background: var(--bg-3); }
.years span { position: absolute; top: 17px; left: 0; font-size: 11px; color: var(--muted); }
.subs { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 24px; font-size: 13.5px; }
.subs li { padding: 3px 0; break-inside: avoid; overflow-wrap: anywhere; }
.embed-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.snip { flex: 1; min-width: 220px; background: var(--bg-2); padding: 8px 10px; border-radius: 6px; font-size: 12.5px; overflow-wrap: anywhere; }
.links-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14.5px; }
.srcs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 36px; }
.srcs li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.srcs li:target { background: var(--tape-soft); }
.srcs .ref { margin: 3px 0 0; flex: none; }
.src-n { margin: 0; font-weight: 700; color: var(--ink); }
.src-d { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- lists, tables, docs */
.tbl-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { text-align: left; font-size: 13px; font-weight: 650; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tr:hover td { background: var(--bg-2); }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data td.rank { font-weight: 760; font-stretch: 118%; color: var(--ink); }
.data td.band { font-size: 13px; color: var(--muted); }
.data td.band-rep { color: transparent; }
.data-tight td, .data-tight th { padding: 5px 8px; font-size: 13.5px; }
.data-tight th { border-bottom: 1px solid var(--line); color: var(--muted); width: 90px; vertical-align: top; }
.data-tight code { overflow-wrap: anywhere; }
.cmp th:first-child { width: 190px; }
.data tbody th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: normal; }
.cmp td.best { font-weight: 760; background: var(--tape-soft); }
.cmp-h { font-size: 15px !important; }
.cmp-1 { box-shadow: inset 0 -3px 0 var(--s-tranco); } .cmp-2 { box-shadow: inset 0 -3px 0 var(--s-crux); } .cmp-3 { box-shadow: inset 0 -3px 0 var(--s-majestic); }
.cmp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.cmp-cols .bar { grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 50px; }
.cmp-cols .bar-b { display: none; }
.cmp-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.cmp-form input { flex: 1 1 200px; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--bg); color: var(--ink); }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 26px 0 0; font-variant-numeric: tabular-nums; }
.pager a { font-weight: 700; }
.cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; }
.cgrid li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cgrid-a { display: flex; align-items: center; font-weight: 700; text-decoration: none; }
.cgrid-a:hover .cgrid-n { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; }
.cgrid-d { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; padding-left: 33px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tld-bars .bar { grid-template-columns: 90px minmax(0, 1fr) 80px 0; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.cols3 section { border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 28px; }
.cols3 h2 { margin-bottom: 10px; }
.trend { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trend li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d v" "d w"; column-gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: center; }
.trend .dom, .trend .dom-plain { grid-area: d; }
.tr-d { grid-area: v; display: inline-flex; align-items: center; gap: 3px; font-weight: 720; font-variant-numeric: tabular-nums; justify-self: end; }
.tr-d.up .ic { color: var(--good-ink); } .tr-d.down .ic { color: var(--bad-ink); }
.tr-was { grid-area: w; font-size: 12.5px; color: var(--muted); justify-self: end; font-variant-numeric: tabular-nums; }
.bulk-form { display: grid; gap: 10px; max-width: 680px; }
.bulk-form textarea { font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; padding: 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg); color: var(--ink); resize: vertical; }
.bulk-form .btn { justify-self: start; }
.bulk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 8px; }
.code { background: var(--bg-2); padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.5; color: var(--ink); margin: 0 0 18px; }
.doc h2, .pg-doc h2 { margin: 34px 0 12px; }
.doc h3 { margin: 22px 0 8px; }
.doc-list { padding-left: 20px; }
.doc-list li { margin-bottom: 8px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .r-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "facts" "main" "side"; }
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-trend { grid-column: 1 / -1; margin-top: 34px; }
}
@media (max-width: 900px) {
  /* the folded menu needs the script; without it (html has no "js" class) the links simply stay in the header */
  .js .nav-btn { display: inline-grid; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 2px solid var(--ink); flex-direction: column; gap: 0; padding: 8px var(--gut) 14px; margin: 0; }
  .js .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .js .site-head.open .nav { display: flex; }
  html:not(.js) .head-in { flex-wrap: wrap; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; margin: 0 0 8px; font-size: 14px; gap: 2px 14px; }
  .head-act { margin-left: auto; }
  .seo-grid { grid-template-columns: minmax(0, 1fr); }
  .live-flow { columns: 1; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .home-bottom { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .head-in { gap: 12px; min-height: 56px; }
  .brand { font-size: 18px; }
  .spx-tag { display: none; }
  .spx-in { gap: 8px; font-size: 13.5px; }
  .hero { padding-top: 34px; }
  .search-big input { font-size: 16px; padding: 13px 12px; }
  .search button { padding: 0 14px; }
  .search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* hidden to the eye, still the button's name */
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-country, .home-trend { margin-top: 30px; }
  .ruler { --name: 66px; }
  .rl-name { font-size: 12px; white-space: normal; line-height: 1.1; }
  .rl-name .ref { display: none; }
  .rl-lab { font-size: 11px; }
  .rl-lab:nth-child(even):not(.rl-un) { display: none; }
  .rl-un { display: none; }
  .rl-val { font-size: 12.5px; }
  .hero-demo, .r-ruler .ruler { padding-left: 10px; padding-right: 10px; }
  .ro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ro-grid > div:first-child { grid-column: 1 / -1; }
  .bar { grid-template-columns: minmax(96px, 128px) minmax(0, 1fr) 50px; }
  .bar-b { display: none; }
  .tech-g { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .checks li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv-cols { columns: 1; }
  .subs { columns: 2; }
  .hide-s { display: none; }
  /* the site column takes the room the numbers leave; long names end in "…" instead of widening the table */
  .data td.site { width: 100%; max-width: 0; }
  .data td.site .dom, .data td.site .dom-plain { max-width: 100%; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .tools li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .r-actions .btn-ghost span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ro-grid.ro-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ro-grid.ro-4 > div:first-child { grid-column: auto; }
  .m-charts { grid-template-columns: minmax(0, 1fr); }
  .ud { height: 22px; border-radius: 2px; }
  .ud-x { flex-wrap: wrap; }
  .ud-key { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 360px) {
  .spx-cta-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-head, .spx, .site-foot, .r-actions, .r-embed, .search { display: none !important; }
}

/* ---------------------------------------------------------------- system check (admin) */
.admin .st-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 16px 18px; border-radius: 10px; background: var(--bg-2); border-left: 6px solid var(--line-2); margin: 0 0 18px; font-size: 18px; font-weight: 650; color: var(--ink); }
.admin .st-verdict.st-good { border-left-color: var(--good); }
.admin .st-verdict.st-warn { border-left-color: var(--warn); }
.admin .st-verdict.st-bad { border-left-color: var(--bad); }
.admin .st-counts { font-size: 14px; font-weight: 400; color: var(--muted); }
.admin .st-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 28px; }
.admin .st-group { margin-bottom: 22px; }
.st-table th { width: 32%; text-align: left; font-size: 14px; font-weight: 500; color: var(--text); white-space: normal; border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; }
.st-table td { font-size: 14px; }
.st-table td.st-state { width: 104px; white-space: nowrap; }
.st-table .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.st-table tr.st-fail th { color: var(--bad-ink); font-weight: 650; }
.st-table tr.st-off th, .st-table tr.st-off td { color: var(--muted); }
.st-err { color: var(--bad-ink); }
.st-log { max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) {
  .admin .st-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 4px 0; }
  .admin .st-table tbody th, .admin .st-table tbody td { border-bottom: 0; padding: 4px 0; }
  .admin .st-table tbody th { width: auto; }
  .admin .st-table td.st-state { padding-left: 12px; }
  .admin .st-table td:last-child { grid-column: 1 / -1; padding-top: 0; }
  .admin .st-table td:last-child:empty { display: none; }
}
