/* whois.ip-db.com — a record viewer dressed for the front page.

   Two surfaces. The "band" (header, hero, result head, overlays) carries the
   globe canvas: a night sky in the dark theme, a pale morning one in the
   light theme, with --band-* tokens for everything drawn on it. globe.js
   reads the resolved `color-scheme` and switches its palette to match.
   Everything below the band is the record itself — tabular, quiet, and
   themed light or dark by the same tokens. Colour outside the band is
   reserved for severity and for the three kinds of infrastructure on the map
   (web, DNS, mail); nothing below hard-codes a colour a token could carry. */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e9eff7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --faint: #7b889c;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-2: #0891b2;
  --accent-3: #4f46e5;
  --ring: rgba(37, 99, 235, .28);

  --good: #047857;   --good-bg: #ecfdf5;  --good-br: #a7f3d0;
  --neutral: #475569; --neutral-bg: #f1f5f9; --neutral-br: #e2e8f0;
  --warn: #b45309;   --warn-bg: #fffbeb;  --warn-br: #fde68a;
  --bad: #b91c1c;    --bad-bg: #fef2f2;   --bad-br: #fecaca;

  --web: #0891b2; --dns: #7c3aed; --mail: #d97706;

  --j-key: #1d4ed8; --j-str: #047857; --j-num: #b45309; --j-lit: #7c3aed; --j-punc: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, .28);

  /* the band */
  --band: #eef3fb;
  --band-bg:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 130, 246, .14), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(99, 102, 241, .10), transparent 60%),
    radial-gradient(500px 300px at 60% 120%, rgba(34, 211, 238, .10), transparent 60%),
    var(--band);
  --band-grid: rgba(15, 23, 42, .05);
  --band-text: #0f172a;
  --band-muted: #475569;
  --band-faint: #64748b;
  --band-border: rgba(15, 23, 42, .10);
  --band-surface: rgba(255, 255, 255, .6);
  --band-panel: rgba(255, 255, 255, .82);
  --band-glass: rgba(255, 255, 255, .9);
  --band-link: #1d4ed8;
  --band-shadow: 0 20px 50px -24px rgba(15, 23, 42, .25);
  --band-overlay: radial-gradient(1200px 700px at 50% 40%, rgba(37, 99, 235, .10), transparent 60%), rgba(244, 247, 251, .96);
  --search-bg: #ffffff;
  --search-br: rgba(15, 23, 42, .14);
  --code-bg: #0b1222;
  --b-good: #047857; --b-warn: #b45309; --b-bad: #b91c1c; --b-info: #0e7490;
  --cyan: #0891b2;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 48%, #6366f1 100%);
  --grad-ink: linear-gradient(135deg, #0891b2 0%, #2563eb 48%, #4f46e5 100%);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --head-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b15;
    --surface: #0d1322;
    --surface-2: #111a2c;
    --surface-3: #16213a;
    --border: #1c2740;
    --border-strong: #2a3957;
    --text: #e6ecf7;
    --muted: #a3b1c9;
    --faint: #6f7f9b;
    --accent: #6ea8ff;
    --accent-ink: #93bdff;
    --accent-soft: #14213f;
    --accent-2: #22d3ee;
    --accent-3: #818cf8;
    --ring: rgba(110, 168, 255, .32);
    --good: #34d399;   --good-bg: #0b231b;  --good-br: #134e3a;
    --neutral: #a3b1c9; --neutral-bg: #141d30; --neutral-br: #24324d;
    --warn: #fbbf24;   --warn-bg: #251c0b;  --warn-br: #4d3a12;
    --bad: #f87171;    --bad-bg: #2a1116;   --bad-br: #5a2029;
    --web: #22d3ee; --dns: #a78bfa; --mail: #fbbf24;
    --j-key: #93c5fd; --j-str: #86efac; --j-num: #fcd34d; --j-lit: #c4b5fd; --j-punc: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
    --band: #050a17;
    --band-bg:
      radial-gradient(900px 480px at 85% -10%, rgba(59, 130, 246, .20), transparent 60%),
      radial-gradient(700px 420px at -5% 110%, rgba(99, 102, 241, .18), transparent 60%),
      radial-gradient(500px 300px at 60% 120%, rgba(34, 211, 238, .10), transparent 60%),
      var(--band);
    --band-grid: rgba(148, 163, 184, .06);
    --band-text: #e8eefb;
    --band-muted: #9fb0cc;
    --band-faint: #6c7d99;
    --band-border: rgba(148, 163, 184, .16);
    --band-surface: rgba(148, 163, 184, .07);
    --band-panel: rgba(8, 14, 30, .85);
    --band-glass: rgba(5, 10, 23, .95);
    --band-link: #93c5fd;
    --band-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --band-overlay: radial-gradient(1200px 700px at 50% 40%, rgba(37, 99, 235, .18), transparent 60%), rgba(5, 10, 23, .96);
    --search-bg: rgba(148, 163, 184, .08);
    --search-br: rgba(148, 163, 184, .22);
    --code-bg: rgba(0, 0, 0, .35);
    --b-good: #6ee7b7; --b-warn: #fcd34d; --b-bad: #fca5a5; --b-info: #a5f3fc;
    --cyan: #22d3ee;
    --grad-ink: var(--grad);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b15;
  --surface: #0d1322;
  --surface-2: #111a2c;
  --surface-3: #16213a;
  --border: #1c2740;
  --border-strong: #2a3957;
  --text: #e6ecf7;
  --muted: #a3b1c9;
  --faint: #6f7f9b;
  --accent: #6ea8ff;
  --accent-ink: #93bdff;
  --accent-soft: #14213f;
  --accent-2: #22d3ee;
  --accent-3: #818cf8;
  --ring: rgba(110, 168, 255, .32);
  --good: #34d399;   --good-bg: #0b231b;  --good-br: #134e3a;
  --neutral: #a3b1c9; --neutral-bg: #141d30; --neutral-br: #24324d;
  --warn: #fbbf24;   --warn-bg: #251c0b;  --warn-br: #4d3a12;
  --bad: #f87171;    --bad-bg: #2a1116;   --bad-br: #5a2029;
  --web: #22d3ee; --dns: #a78bfa; --mail: #fbbf24;
  --j-key: #93c5fd; --j-str: #86efac; --j-num: #fcd34d; --j-lit: #c4b5fd; --j-punc: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7);
  --band: #050a17;
  --band-bg:
    radial-gradient(900px 480px at 85% -10%, rgba(59, 130, 246, .20), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(99, 102, 241, .18), transparent 60%),
    radial-gradient(500px 300px at 60% 120%, rgba(34, 211, 238, .10), transparent 60%),
    var(--band);
  --band-grid: rgba(148, 163, 184, .06);
  --band-text: #e8eefb;
  --band-muted: #9fb0cc;
  --band-faint: #6c7d99;
  --band-border: rgba(148, 163, 184, .16);
  --band-surface: rgba(148, 163, 184, .07);
  --band-panel: rgba(8, 14, 30, .85);
  --band-glass: rgba(5, 10, 23, .95);
  --band-link: #93c5fd;
  --band-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --band-overlay: radial-gradient(1200px 700px at 50% 40%, rgba(37, 99, 235, .18), transparent 60%), rgba(5, 10, 23, .96);
  --search-bg: rgba(148, 163, 184, .08);
  --search-br: rgba(148, 163, 184, .22);
  --code-bg: rgba(0, 0, 0, .35);
  --b-good: #6ee7b7; --b-warn: #fcd34d; --b-bad: #fca5a5; --b-info: #a5f3fc;
  --cyan: #22d3ee;
  --grad-ink: var(--grad);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, kbd, .mono { font-family: var(--mono); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(59, 130, 246, .28); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -40px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

/* ================================================================ preloader */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--band);
  transition: opacity .45s ease, visibility .45s ease;
}
html:not(.js) #preloader, html.no-preload #preloader { display: none; }
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-ring { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.pl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 1.3s linear infinite; }
.pl-track { fill: none; stroke: var(--band-border); stroke-width: 2.5; }
.pl-arc { fill: none; stroke: url(#pl-grad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 60 200; }
.pl-mark { width: 40px; height: 40px; animation: pulse 1.6s ease-in-out infinite; }
.pl-word { position: absolute; top: calc(50% + 62px); left: 50%; transform: translateX(-50%); font: 600 12px/1 var(--mono); letter-spacing: .28em; color: var(--band-faint); text-transform: uppercase; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .75; } }

/* ============================================================ lookup overlay */
#lookup {
  position: fixed; inset: 0; z-index: 150;
  display: none; place-items: center;
  background: var(--band-overlay);
  color: var(--band-text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
#lookup.on { display: grid; }
#lookup.show { opacity: 1; }
.lk-inner { width: min(520px, calc(100vw - 32px)); text-align: center; }
.lk-globe { width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto 8px; position: relative; }
.lk-globe canvas { width: 100%; height: 100%; display: block; }
.lk-label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--band-faint); }
.lk-domain { font: 600 clamp(20px, 4.6vw, 28px)/1.25 var(--mono); margin: 6px 0 20px; word-break: break-all; }
.lk-domain::after { content: "_"; color: var(--cyan); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.lk-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 360px; text-align: left; }
.lk-steps li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--band-faint); transition: color .3s; }
.lk-steps li .st { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--band-border); flex: 0 0 auto; display: grid; place-items: center; transition: all .3s; }
.lk-steps li.run { color: var(--band-text); }
.lk-steps li.run .st { border-color: var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.lk-steps li.ok { color: var(--band-muted); }
.lk-steps li.ok .st { border-color: transparent; background: rgba(34, 211, 238, .18); }
.lk-steps li.ok .st::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) translate(1px, -1px); }
.lk-hint { margin-top: 18px; font-size: 12px; color: var(--band-faint); }
.lk-hint kbd { border: 1px solid var(--band-border); border-radius: 5px; padding: 1px 6px; font-size: 11px; }

/* =============================================================== top bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--band-glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--band-border);
  color: var(--band-text);
}
.masthead .wrap { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--band-text); font-weight: 700; letter-spacing: -.02em; font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: 0 0 auto; }
.brand span { color: var(--band-muted); font-weight: 500; }
.masthead nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.masthead nav > a { color: var(--band-muted); font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s; }
.masthead nav > a:hover, .masthead nav > a[aria-current] { color: var(--band-text); background: var(--band-surface); text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--band-border); background: transparent; color: var(--band-muted); cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.icon-btn:hover { color: var(--band-text); background: var(--band-surface); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.langs { display: flex; gap: 2px; margin-left: 6px; padding: 3px; border: 1px solid var(--band-border); border-radius: 9px; }
.langs a { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--band-faint); padding: 7px 8px; border-radius: 6px; }
.langs a:hover { color: var(--band-text); text-decoration: none; }
.langs a[aria-current] { color: var(--band); background: var(--band-text); }

/* ================================================================== band */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--band-bg);
  color: var(--band-text);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--band-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.band a { color: var(--band-link); }
.band a.btn-primary { color: #fff; }
.band-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .6), rgba(34, 211, 238, .6), transparent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--b-info); padding: 7px 12px; border-radius: 999px;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
.grad-text { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================================================================ search */
.searchbar {
  display: flex; gap: 8px; padding: 7px;
  background: var(--search-bg);
  border: 1px solid var(--search-br);
  border-radius: 16px;
  box-shadow: var(--band-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), var(--band-shadow); }
.searchbar .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; }
.searchbar .field svg { width: 18px; height: 18px; color: var(--band-faint); flex: 0 0 auto; }
.searchbar input {
  flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent;
  font: 500 16px/1 var(--mono); color: var(--band-text); caret-color: var(--cyan);
}
.searchbar input::placeholder { color: var(--band-faint); }
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 11px; cursor: pointer;
  font-weight: 650; font-size: 15px; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #4f46e5);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 16px; height: 16px; }

.examples { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--band-faint); }
.examples a {
  font: 500 12.5px/1 var(--mono); color: var(--band-muted); padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--band-border); background: var(--band-surface); transition: all .15s;
}
.examples a:hover { color: var(--band-text); border-color: rgba(34, 211, 238, .5); text-decoration: none; transform: translateY(-1px); }

/* ================================================================== home */
.hero { padding: 72px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 750; }
.hero h1 .grad-text { display: block; font-size: .62em; line-height: 1.15; letter-spacing: -.025em; margin-top: 6px; }
.hero .lede { font-size: 17px; color: var(--band-muted); margin: 0 0 30px; max-width: 58ch; }
.hero-globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hero-globe canvas:active { cursor: grabbing; }
.globe-caption { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-size: 11.5px; color: var(--band-faint); white-space: nowrap; }

/* Live statistics card, under the hero. */
.live-card {
  margin: 44px 0 0; border: 1px solid var(--band-border); border-radius: var(--radius);
  background: var(--band-panel); box-shadow: var(--band-shadow); overflow: hidden;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.live-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px; border-bottom: 1px solid var(--band-border);
}
.live-head h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--band-text);
}
.live-note { font-size: 12px; color: var(--band-faint); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: 0 0 8px; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e;
  opacity: 0; animation: live-ring 2s ease-out infinite;
}
@keyframes live-ring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); }
.live-cell { padding: 20px 22px; min-width: 0; }
.live-cell + .live-cell { border-left: 1px solid var(--band-border); }
.live-cell b {
  display: block; font: 700 clamp(24px, 3vw, 32px)/1.1 var(--mono); letter-spacing: -.03em;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .4s;
}
.live-cell b.bump { filter: brightness(1.35) saturate(1.3); }
.live-cell span { display: block; margin-top: 6px; font-size: 13px; color: var(--band-muted); }
.live-online b { background: none; color: #16a34a; -webkit-background-clip: border-box; background-clip: border-box; }
:root[data-theme="dark"] .live-online b { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .live-online b { color: #4ade80; } }

.live-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 18px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 52px; min-width: 0; }
.spark i {
  flex: 1 1 0; min-width: 2px; height: max(3px, var(--h)); border-radius: 2px 2px 1px 1px;
  background: var(--grad-ink); opacity: .85; transition: height .5s cubic-bezier(.16, 1, .3, 1), opacity .2s;
}
.spark i:last-child { opacity: 1; box-shadow: 0 0 0 1px rgba(34, 197, 94, .5); }
.spark i:hover { opacity: 1; }

.live-foot {
  display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 11px 22px;
  border-top: 1px solid var(--band-border); background: var(--band-surface);
  font-size: 12.5px; color: var(--band-muted);
}
.live-foot b { font-family: var(--mono); font-weight: 600; color: var(--band-text); }

.section-head { max-width: 680px; margin: 0 0 28px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.028em; line-height: 1.15; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.home-sec { padding: 76px 0 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .10), transparent 45%);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature:hover::before { opacity: 1; }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(59, 130, 246, .7); }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 15px; letter-spacing: -.01em; margin: 0 0 6px; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pipeline::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  opacity: .5; animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 16px 0; } }
.pipe { position: relative; text-align: center; padding: 0 6px; }
.pipe .node {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); color: var(--accent);
  position: relative; z-index: 1;
}
.pipe .node svg { width: 24px; height: 24px; }
.pipe .node b { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--mono); color: #fff; background: var(--grad); }
.pipe h3 { font-size: 14.5px; margin: 0 0 4px; }
.pipe p { font-size: 13px; color: var(--muted); margin: 0; }

.api-teaser { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; padding: 34px; border-radius: 20px; }

/* FAQ on the home page. <details>, so every answer is in the markup and
   readable without script. */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, .06)); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item summary h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; line-height: 1.4; }
.faq-item p { margin: 0; padding: 0 18px 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.api-teaser h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.025em; margin: 0 0 10px; }
.api-teaser p { color: var(--band-muted); margin: 0 0 20px; }
.codeblock { background: var(--code-bg); border: 1px solid var(--band-border); border-radius: 12px; padding: 18px; font: 12.5px/1.65 var(--mono); color: #cbd5e1; overflow-x: auto; margin: 0; }
.codeblock .c { color: #64748b; } .codeblock .k { color: #93c5fd; } .codeblock .s { color: #86efac; } .codeblock .n { color: #fcd34d; }

/* =========================================================== result head */
.result-band { padding: 26px 0 0; }
.result-band .searchbar { margin-bottom: 26px; }
.rh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 26px; }
.rh-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.rh-name { font: 700 clamp(26px, 4.4vw, 44px)/1.08 var(--mono); letter-spacing: -.03em; margin: 0; word-break: break-all; }
.rh-idn { display: block; margin-top: 6px; color: var(--band-muted); font-size: 15px; }
.rh-meta { margin-top: 10px; color: var(--band-faint); font-size: 13px; }
.rh-meta span + span::before { content: "·"; margin: 0 8px; opacity: .6; }
.rh-title { margin: 14px 0 0; padding: 12px 14px; border-left: 2px solid var(--cyan); background: var(--band-surface); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--band-muted); }
.rh-title strong { color: var(--band-text); font-weight: 600; display: block; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 600 11.5px/1.3 var(--sans); letter-spacing: .01em; white-space: nowrap;
  border: 1px solid var(--band-border); color: var(--band-muted); background: var(--band-surface);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--b-good); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.pill.warn { color: var(--b-warn); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.pill.bad { color: var(--b-bad); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); }
.pill.info { color: var(--b-info); border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .08); }
.pill.mono { font-family: var(--mono); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--band-border); background: var(--band-border); }
.fact { background: var(--band-panel); padding: 14px 16px; min-width: 0; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--band-faint); font-weight: 600; }
.fact .v { margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--band-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact .v small { font-weight: 500; color: var(--band-muted); font-size: 12.5px; }
.fact .v.big { font: 700 22px/1.2 var(--mono); letter-spacing: -.02em; }

.rh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 9px;
  font-size: 13px; font-weight: 550; color: var(--band-muted); background: var(--band-surface);
  border: 1px solid var(--band-border); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-ghost:hover { color: var(--band-text); border-color: rgba(148, 163, 184, .4); text-decoration: none; }
.btn-ghost svg { width: 15px; height: 15px; }
.btn-ghost.copied { color: var(--b-good); border-color: rgba(52, 211, 153, .4); }

.map-card { border: 1px solid var(--band-border); border-radius: 16px; background: var(--band-panel); padding: 10px 10px 12px; }
.map-card .globe { position: relative; aspect-ratio: 1; width: 100%; }
.map-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.map-card canvas:active { cursor: grabbing; }
.map-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 0; }
.map-head b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--band-muted); font-weight: 650; }
.map-head span { font-size: 11px; color: var(--band-faint); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 6px 0; font-size: 12px; color: var(--band-muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px currentColor; }
.legend .web i { background: var(--web); color: var(--web); }
.legend .dns i { background: var(--dns); color: var(--dns); }
.legend .mail i { background: var(--mail); color: var(--mail); }
.globe-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  background: var(--band-glass); border: 1px solid var(--band-border); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; color: var(--band-text); white-space: nowrap; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .12s;
}
.globe-tip.on { opacity: 1; }
.globe-tip small { display: block; color: var(--band-muted); }

.timings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 0 16px; border-top: 1px solid var(--band-border); font-size: 12px; color: var(--band-faint); }
.timings .t { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); }
.timings .t em { font-style: normal; color: var(--band-muted); }
.timings .bar { width: 54px; height: 4px; border-radius: 2px; background: var(--band-surface); overflow: hidden; }
.timings .bar span { display: block; height: 100%; background: var(--grad); border-radius: 2px; transform-origin: 0 50%; }

/* ============================================================ section nav */
.secnav {
  position: sticky; top: var(--head-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.secnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 9px; padding-bottom: 9px; }
.secnav .wrap::-webkit-scrollbar { display: none; }
.secnav a {
  flex: 0 0 auto; font-size: 13px; font-weight: 550; color: var(--muted); padding: 6px 11px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.secnav a:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.secnav a.active { color: var(--accent-ink); background: var(--accent-soft); }
.secnav a sup { font: 600 10px/1 var(--mono); color: var(--faint); margin-left: 3px; vertical-align: 1px; }

/* ============================================================ sections */
.result-body { padding: 26px 0 30px; }
section.block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 18px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.block-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.block-head .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); flex: 0 0 auto; }
.block-head .ic svg { width: 17px; height: 17px; }
.block-head h2 { margin: 0; font-size: 16px; letter-spacing: -.012em; font-weight: 680; }
.block-head .sub { color: var(--faint); font-size: 12.5px; margin-left: auto; text-align: right; }
.block-body { padding: 18px 20px; }
.block-body.flush { padding: 0; }
.sub-h { margin: 22px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; }
.sub-h:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* definition grid */
dl.kv { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
dl.kv.one { grid-template-columns: 1fr; }
dl.kv > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: baseline; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; font-size: 14px; word-break: break-word; min-width: 0; }
dl.kv dd.mono, .mono { font-family: var(--mono); font-size: 12.8px; }
.faint { color: var(--faint); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em; line-height: 1.5;
  border: 1px solid transparent; white-space: nowrap; vertical-align: 1px;
}
.badge.good    { color: var(--good);    background: var(--good-bg);    border-color: var(--good-br); }
.badge.neutral { color: var(--neutral); background: var(--neutral-bg); border-color: var(--neutral-br); }
.badge.warn    { color: var(--warn);    background: var(--warn-bg);    border-color: var(--warn-br); }
.badge.bad     { color: var(--bad);     background: var(--bad-bg);     border-color: var(--bad-br); }
.badge.accent  { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.badge.mono { font-family: var(--mono); font-weight: 600; }
.redacted {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--faint);
  padding: 1px 8px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface-3) 6px 12px);
  border: 1px solid var(--border);
}
.redacted svg { width: 11px; height: 11px; }

/* summary */
.summary-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.donut-wrap { text-align: center; }
.donut { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; }
.donut .trk { stroke: var(--surface-3); }
.donut .seg { stroke-linecap: butt; transition: stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1); }
html.js .reveal:not(.in) .donut .seg { stroke-dasharray: 0 400 !important; }
.donut .seg.good { stroke: var(--good); } .donut .seg.neutral { stroke: var(--faint); }
.donut .seg.warn { stroke: var(--warn); } .donut .seg.bad { stroke: var(--bad); }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .mid b { font: 750 36px/1 var(--mono); letter-spacing: -.04em; }
.donut .mid span { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.tally { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.headline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 14px; }
.headline.good    { background: var(--good-bg);    border-color: var(--good-br); }
.headline.neutral { background: var(--neutral-bg); border-color: var(--neutral-br); }
.headline.warn    { background: var(--warn-bg);    border-color: var(--warn-br); }
.headline.bad     { background: var(--bad-bg);     border-color: var(--bad-br); }
.headline strong { font-size: 15px; }
.sev-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.sev-ic svg { width: 12px; height: 12px; }
.sev-ic.good { background: var(--good); } .sev-ic.neutral { background: var(--faint); }
.sev-ic.warn { background: var(--warn); } .sev-ic.bad { background: var(--bad); }
:root[data-theme="dark"] .sev-ic { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sev-ic { color: var(--bg); } }

ul.findings { list-style: none; margin: 0; padding: 0; }
ul.findings li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; font-size: 14px; }
ul.findings li:last-child { border-bottom: 0; }
ul.findings .sev-ic { width: 20px; height: 20px; margin-top: 1px; }
ul.findings code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); }
ul.findings .note { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* lifeline: registration and certificate validity */
.lifeline { padding: 6px 0 4px; }
.lifeline .track { position: relative; height: 10px; border-radius: 6px; background: var(--surface-3); overflow: visible; }
.lifeline .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--grad); transform-origin: 0 50%; }
.lifeline .fill.warn { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.lifeline .now { position: absolute; top: -6px; width: 2px; height: 22px; background: var(--text); border-radius: 1px; }
.lifeline .now::after { content: attr(data-label); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--text); white-space: nowrap; }
.lifeline .ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.lifeline .ends b { display: block; color: var(--text); font-family: var(--mono); font-size: 13px; }
.lifeline .ends > div:last-child { text-align: right; }
.lifeline .mid { text-align: center; }
.lifeline-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 26px 18px 14px; margin-bottom: 18px; }
.countdown { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.countdown .cd b { display: block; font: 750 30px/1 var(--mono); letter-spacing: -.04em; }
.countdown .cd span { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.countdown .cd.warn b { color: var(--warn); } .countdown .cd.bad b { color: var(--bad); } .countdown .cd.good b { color: var(--good); }

/* contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.contact { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); min-width: 0; transition: border-color .2s, transform .2s; }
.contact:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.contact-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.contact-head .role { font-weight: 700; font-size: 14px; }
.contact-head .src { margin-left: auto; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.contact dl { margin: 0; }
.contact dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 13.5px; }
.contact dt { color: var(--faint); font-size: 12.5px; }
.contact dd { margin: 0; word-break: break-word; }

/* events */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-3)); opacity: .35; border-radius: 1px; }
.timeline li { position: relative; padding: 8px 0 8px 32px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline li.future::before { border-color: var(--faint); border-style: dashed; }
.timeline li.hot::before { border-color: var(--warn); }
.timeline .when { font-family: var(--mono); font-size: 13px; min-width: 150px; }
.timeline .what { font-weight: 600; font-size: 14px; }
.timeline .rel { color: var(--faint); font-size: 12.5px; }
.timeline .tag { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }

/* tables */
.table-wrap { overflow-x: auto; }
table.rec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.rec th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); font-weight: 650; padding: 10px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); white-space: nowrap;
}
table.rec td { padding: 10px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.rec tr:last-child td { border-bottom: 0; }
table.rec tbody tr { transition: background .12s; }
table.rec tbody tr:hover { background: var(--surface-2); }
table.rec td.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
table.rec .group td { border-top: 1px solid var(--border); }
.rtype { display: inline-block; min-width: 50px; text-align: center; font: 700 11px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.rtype.t-A, .rtype.t-AAAA { background: rgba(8, 145, 178, .12); color: var(--web); }
.rtype.t-MX { background: rgba(217, 119, 6, .12); color: var(--mail); }
.rtype.t-NS, .rtype.t-SOA { background: rgba(124, 58, 237, .12); color: var(--dns); }
.rtype.t-TXT, .rtype.t-CAA, .rtype.t-DMARC { background: var(--surface-3); color: var(--muted); }
.copyable { position: relative; }
.copy-btn {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; vertical-align: -6px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--faint); cursor: pointer;
  opacity: 0; transition: opacity .15s, color .15s;
}
.copy-btn svg { width: 12px; height: 12px; }
tr:hover .copy-btn, .copyable:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--accent); }
.copy-btn.copied { color: var(--good); opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.empty { padding: 18px 20px; color: var(--faint); font-size: 13.5px; }
.block-body .empty { padding: 4px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12px/1.3 var(--mono); padding: 4px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); word-break: break-all; }
.chip.hl { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.chip.q-plus { border-color: var(--good-br); background: var(--good-bg); }
.chip.q-minus { border-color: var(--bad-br); background: var(--bad-bg); }
.chip.q-tilde { border-color: var(--warn-br); background: var(--warn-bg); }
.chip b { font-weight: 700; margin-right: 2px; }

.card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); min-width: 0; }
.card h3 { margin: 0 0 4px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.card h3 .badge { margin-left: auto; }
.card p.d { margin: 0 0 10px; color: var(--faint); font-size: 12.5px; }
.card pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-all; font-size: 12px; color: var(--muted); }
.card dl.kv > div { grid-template-columns: 130px minmax(0, 1fr); padding: 7px 0; }
.card dl.kv { grid-template-columns: 1fr; }

.provider { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.provider .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.provider .ic svg { width: 19px; height: 19px; }
.provider small { display: block; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.provider b { font-size: 15px; }

/* web: redirect chain */
.chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.hop { flex: 1 1 200px; min-width: 0; border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; background: var(--surface-2); position: relative; }
.hop .u { font: 500 12.5px/1.4 var(--mono); word-break: break-all; }
.hop .m { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.hop-arrow { display: grid; place-items: center; color: var(--faint); flex: 0 0 auto; }
.hop-arrow svg { width: 18px; height: 18px; }
.snippet { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.snippet .u { font: 12.5px/1.4 var(--mono); color: var(--good); word-break: break-all; }
.snippet .t { font-size: 17px; color: var(--accent); font-weight: 600; margin: 4px 0; line-height: 1.3; }
.snippet .d { font-size: 13.5px; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.check.on { border-color: var(--good-br); background: var(--good-bg); }
.check .sev-ic { width: 20px; height: 20px; margin-top: 1px; }
.check b { display: block; font: 600 12.5px/1.4 var(--mono); word-break: break-all; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }
.check code { display: block; margin-top: 4px; font-size: 11.5px; color: var(--faint); word-break: break-all; }

/* hosting */
.hosts { display: grid; gap: 14px; }
.host { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.host-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.host-head .ip { font: 700 16px/1.2 var(--mono); }
.host-head .flag { font-size: 20px; line-height: 1; }
.host-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.host-body { padding: 6px 16px 12px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 6px; max-width: 220px; }
.meter span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f59e0b, #ef4444); transform-origin: 0 50%; }

/* history */
.changes { list-style: none; margin: 0; padding: 0; }
.changes li { display: grid; grid-template-columns: 160px 150px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; align-items: baseline; }
.changes li:last-child { border-bottom: 0; }
.diff-old { color: var(--bad); text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .4); font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.diff-new { color: var(--good); font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

/* subdomains */
.sub-lede { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 90ch; }
.sub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sub-stats > div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.sub-stats b { display: block; font: 750 24px/1.15 var(--mono); letter-spacing: -.03em; }
.sub-stats span { font-size: 12px; color: var(--muted); }
.sub-stats + .notice { margin-top: 0; }
.sub-filter { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sub-filter svg { width: 16px; height: 16px; color: var(--faint); flex: 0 0 auto; }
.sub-filter input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--text); font: 13.5px var(--sans); outline: 0; }
.sub-filter input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.sub-filter span { font-size: 12.5px; white-space: nowrap; }
.table-wrap.capped { max-height: 620px; overflow: auto; border-top: 1px solid var(--border); }
.table-wrap.capped thead th { position: sticky; top: 0; z-index: 1; }
#sub-table td.hn { white-space: nowrap; }
#sub-table td.hn .mono { font-size: 13px; }
#sub-table td.answer { font-size: 12.5px; overflow-wrap: anywhere; min-width: 260px; }
#sub-table td.answer .ip { white-space: nowrap; }
#sub-table td.answer > div + div { margin-top: 4px; }
#sub-table td.answer .rtype { min-width: 46px; margin-right: 4px; }
#sub-table td.net { font-size: 13px; min-width: 180px; }
#sub-table td.srcs { white-space: nowrap; }
#sub-table td.srcs .badge + .badge { margin-left: 4px; }
.rtype.t-CNAME { background: rgba(79, 70, 229, .12); color: var(--accent-3); }

/* disclosure */
details.more { border-top: 1px solid var(--border); }
details.more > summary { cursor: pointer; list-style: none; padding: 13px 20px; font-size: 13.5px; font-weight: 550; color: var(--muted); display: flex; align-items: center; gap: 8px; user-select: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 4px; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary:hover { color: var(--text); }
details.inline > summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-top: 8px; }
.notice { padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.notice + .notice { margin-top: 10px; }
.notice b { color: var(--text); display: block; margin-bottom: 3px; }

/* raw */
.tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tabs button { border: 0; background: transparent; padding: 9px 12px 11px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
.tabs .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; padding-bottom: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--muted); cursor: pointer; }
.tool:hover { color: var(--text); border-color: var(--border-strong); }
.tool svg { width: 13px; height: 13px; }
.tool.copied { color: var(--good); border-color: var(--good-br); }
pre.raw {
  margin: 0; padding: 18px 20px; overflow: auto; max-height: 560px;
  font: 12px/1.6 var(--mono); background: var(--surface); color: var(--text); tab-size: 2;
}
pre.raw .k { color: var(--j-key); } pre.raw .s { color: var(--j-str); }
pre.raw .n { color: var(--j-num); } pre.raw .l { color: var(--j-lit); } pre.raw .p { color: var(--j-punc); }

/* error */
.error-card { margin: 34px auto 10px; max-width: 720px; text-align: center; padding: 38px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.error-card .big-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad-br); }
.error-card .big-ic.soft { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.error-card .big-ic svg { width: 30px; height: 30px; }
.error-card h2 { margin: 0 0 6px; font: 700 22px/1.3 var(--mono); word-break: break-all; }
.error-card p { color: var(--muted); margin: 6px 0; }
.error-card .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-soft { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 600; }
.btn-soft:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.btn-soft svg { width: 15px; height: 15px; flex: 0 0 auto; }
.card h3 svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.error-examples { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.error-examples a { font: 500 12.5px/1 var(--mono); padding: 8px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.error-examples a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* doc pages: API and About */
.page-band { padding: 58px 0 48px; }
.page-band h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.035em; margin: 16px 0 12px; line-height: 1.08; }
.page-band p { color: var(--band-muted); max-width: 62ch; margin: 0; font-size: 16.5px; }
.page-band a { color: var(--band-link); }

.endpoint {
  display: flex; align-items: center; gap: 12px; max-width: 780px; margin-top: 28px; padding: 8px 8px 8px 10px;
  background: var(--search-bg); border: 1px solid var(--search-br); border-radius: 14px; box-shadow: var(--band-shadow);
}
.endpoint .verb { flex: 0 0 auto; font: 700 12px/1 var(--mono); letter-spacing: .05em; color: #fff; padding: 8px 10px; border-radius: 8px; background: linear-gradient(135deg, #10b981, #059669); }
.endpoint code { flex: 1; min-width: 0; font: 500 15px/1.4 var(--mono); color: var(--band-text); overflow-wrap: anywhere; }
.endpoint code b { color: var(--cyan); font-weight: 650; }
.endpoint .btn-ghost { flex: 0 0 auto; }
.band-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.sources { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 34px; }
.sources .feature { display: flex; flex-direction: column; }
.sources .feature p { flex: 1; }
.sources .src { display: block; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border); font: 500 11.5px/1.4 var(--mono); color: var(--faint); }

.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 34px; }
.doc-toc { position: sticky; top: calc(var(--head-h) + 24px); display: flex; flex-direction: column; }
.doc-toc b { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 650; margin: 0 0 10px 14px; }
.doc-toc a { font-size: 13.5px; color: var(--muted); padding: 7px 14px; border-left: 2px solid var(--border); transition: color .15s, border-color .15s, background .15s; }
.doc-toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--border-strong); }
.doc-toc a.active { color: var(--accent-ink); font-weight: 600; border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent); }
.doc-main { min-width: 0; }
.doc-main section.block { scroll-margin-top: calc(var(--head-h) + 20px); }

.doc-body p, .doc-p { color: var(--muted); font-size: 15px; line-height: 1.72; margin: 0 0 12px; }
.doc-body > :last-child { margin-bottom: 0; }
.doc-p { margin: 16px 0 0; }
.doc-body strong { color: var(--text); }
.doc-body .notice { margin: 4px 0 14px; }
.doc-body .notice:last-child { margin-bottom: 0; }
.doc-body code, .doc-p code, table.rec td code, .block-foot code {
  font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px; color: var(--text); word-break: break-word;
}
.doc-body .notice code { background: var(--surface); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.split .card h3 svg { color: var(--accent); }
.split .card p.d { margin: 0; font-size: 13.5px; color: var(--muted); }
.doc-legend { padding: 4px 0 0; color: var(--muted); }

.block-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.65; color: var(--muted); background: var(--surface-2); }
pre.raw.code { max-height: none; font-size: 12.5px; }
pre.raw .c { color: var(--faint); font-style: italic; }
table.fields td.key { white-space: nowrap; word-break: normal; font-weight: 600; color: var(--accent-ink); }
table.rec td.mono b { font-weight: 700; margin-right: 6px; }
table.rec td.key-list span { display: block; white-space: nowrap; word-break: normal; }
.type { display: inline-block; font: 500 11.5px/1 var(--mono); color: var(--faint); white-space: nowrap; background: var(--surface-2); border: 1px solid var(--border); padding: 4px 7px; border-radius: 6px; }
.limit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.limit { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.limit b { display: block; font: 750 28px/1.15 var(--mono); letter-spacing: -.03em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.limit span { font-size: 12.5px; color: var(--muted); }
.snippet-code { margin: 12px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font: 12.5px/1.65 var(--mono); color: var(--text); overflow-x: auto; }

/* footer */
footer.foot { margin-top: 56px; background: var(--band); color: var(--band-muted); border-top: 1px solid var(--band-border); position: relative; }
footer.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, .6), rgba(34, 211, 238, .6), transparent); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; }
.foot-grid p { font-size: 13.5px; max-width: 42ch; margin: 12px 0 0; }
.foot-grid h4 { margin: 4px 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--band-faint); }
.foot-grid a { display: block; color: var(--band-muted); font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--band-text); text-decoration: none; }
.foot-grid a.brand { display: inline-flex; color: var(--band-text); font-size: 16px; padding: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0 30px; border-top: 1px solid var(--band-border); font-size: 12.5px; color: var(--band-faint); }

/* reveal on scroll — only when JS is there to undo it */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.js .rise.d1 { animation-delay: .08s; } html.js .rise.d2 { animation-delay: .16s; }
html.js .rise.d3 { animation-delay: .24s; } html.js .rise.d4 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.js .grow { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
html.js .in .grow, html.js .grow.in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================ responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { position: static; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
  .doc-toc::-webkit-scrollbar { display: none; }
  .doc-toc b { display: none; }
  .doc-toc a { flex: 0 0 auto; white-space: nowrap; border-left: 0; border-radius: 8px; padding: 7px 11px; }
  .doc-toc a.active { background: var(--accent-soft); }
  .rh-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.kv { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { padding: 44px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe { max-width: 380px; margin-top: 4px; }
  .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-chart { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--band-border); }
  .pipeline { grid-template-columns: 1fr; gap: 18px; }
  .pipeline::before { left: 27px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); }
  .pipe { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; text-align: left; padding: 0; }
  .pipe .node { grid-row: span 2; margin: 0; }
  .api-teaser { grid-template-columns: 1fr; padding: 24px; }
  .faq { grid-template-columns: 1fr; }
  .rh-grid { grid-template-columns: 1fr; }
  .map-card { max-width: 420px; }
  .summary-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .changes li { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 520px) {
  .masthead nav > a.hide-xs { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sources { grid-template-columns: 1fr; }
  .sub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sub-filter { padding: 10px 16px; }
  .split, .limit-grid { grid-template-columns: 1fr; }
  .endpoint { flex-wrap: wrap; }
  .endpoint code { font-size: 13px; flex-basis: calc(100% - 64px); }
  .endpoint .btn-ghost { width: 100%; justify-content: center; }
  /* doc tables become one card per row: the description column is the point */
  table.rec.stack thead { display: none; }
  table.rec.stack, table.rec.stack tbody, table.rec.stack tr, table.rec.stack td { display: block; width: 100%; }
  table.rec.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  table.rec.stack tr:last-child { border-bottom: 0; }
  table.rec.stack td { padding: 0; border: 0; }
  table.rec.stack td + td { margin-top: 6px; }
  table.rec.stack td.faint, table.rec.stack td .type { display: inline-block; }
  .masthead nav > a.hide-sm { display: none; }
  .masthead .wrap { gap: 10px; }
  .brand { font-size: 15px; }
  .searchbar { flex-direction: column; }
  .btn-primary { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px; }
  dl.kv > div { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
  .block-head { padding: 14px 16px; flex-wrap: wrap; }
  .block-head .sub { margin-left: 0; width: 100%; text-align: left; }
  .block-body { padding: 16px; }
  table.rec th, table.rec td { padding: 9px 14px; }
  .timeline .when { min-width: 0; }
  .hop-arrow { transform: rotate(90deg); width: 100%; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-cell { padding: 16px; }
  .live-online { grid-column: 1 / -1; }
  .live-cell:nth-child(2) { border-left: 0; border-top: 1px solid var(--band-border); }
  .live-cell:nth-child(3) { border-top: 1px solid var(--band-border); }
  .live-head, .live-foot { padding-left: 16px; padding-right: 16px; }
  .contact dl > div { grid-template-columns: 1fr; gap: 0; }
}

/* ======================================================= extension guides */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--band-faint); margin-bottom: 14px; }
.crumbs a { color: var(--band-muted); }
.crumbs a:hover { color: var(--band-text); }
.crumbs [aria-current] { color: var(--band-text); }
.page-band .searchbar { max-width: 720px; margin-top: 26px; }

.tld-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tld-card {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tld-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tld-card b { font: 700 20px/1.2 var(--mono); letter-spacing: -.02em; color: var(--accent-ink); }
.tld-card span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tld-card small { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.tld-more { margin-top: 18px; }

.tld-all { display: flex; flex-wrap: wrap; gap: 5px; }
.tld-all span { font: 500 12px/1.2 var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tld-all a { font: 600 12px/1.2 var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--accent-soft); border: 1px solid transparent; color: var(--accent-ink); }
.tld-all a:hover { text-decoration: none; border-color: var(--accent); }

.doc-body ul { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 12px; padding-left: 20px; }
.doc-body h3 { font-size: 15px; margin: 18px 0 6px; letter-spacing: -.01em; }

@media (max-width: 1020px) { .tld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- archive
   Year strip (bars on a square-root scale, drawn by app.js) above a framed
   Wayback copy laid out at 1280×800 and scaled to the column. */
.arc-state { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.arc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: 0 0 auto; }
.arc-retry { margin-top: 10px; height: 32px; font-size: 12.5px; }
.arc-years {
  display: flex; gap: 4px; align-items: stretch; overflow-x: auto; padding: 4px 2px 8px; margin: 0 0 14px;
  scrollbar-width: thin; scroll-snap-type: x proximity; border-radius: 10px;
}
.arc-year {
  flex: 0 0 auto; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 6px 0 5px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted);
  cursor: pointer; scroll-snap-align: center; font: inherit;
}
.arc-year:hover { background: var(--surface-2); color: var(--text); }
.arc-year .bar { height: 56px; width: 16px; display: flex; align-items: flex-end; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.arc-year .bar i { display: block; width: 100%; background: var(--grad); border-radius: 4px 4px 0 0; opacity: .75; transition: opacity .15s; }
.arc-year .y { font: 600 11.5px/1 var(--mono); }
.arc-year.k-redirect .bar i { background: var(--warn); opacity: .45; }
.arc-year.k-err .bar i { background: var(--faint); opacity: .35; }
.arc-year.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.arc-year.on .bar i { opacity: 1; }

.arc-viewer { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.arc-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.arc-nav {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.arc-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.arc-nav:disabled { opacity: .4; cursor: default; }
.arc-when { min-width: 0; font-size: 14px; padding: 0 4px; }
.arc-when b { font-weight: 700; text-transform: capitalize; }
.arc-when span { font-size: 12.5px; }
.arc-jump { display: flex; gap: 6px; margin-left: auto; }
.arc-jump .chip { cursor: pointer; font-family: var(--sans); font-weight: 600; }
.arc-jump .chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.arc-open { height: 32px; font-size: 12.5px; }

.arc-screen { padding: 14px; }
.arc-chrome {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-3);
  border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; min-width: 0;
}
.arc-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: 0 0 auto; }
.arc-chrome span { margin-left: 8px; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.arc-frame {
  position: relative; aspect-ratio: 1280 / 800; overflow: hidden; background: #fff;
  border: 1px solid var(--border); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-md);
}
.arc-iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; background: #fff; }
.arc-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--surface-2); color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px; z-index: 1;
}
.arc-veil[hidden], [data-arc-state][hidden] { display: none; }
.arc-veil .arc-spin { width: 26px; height: 26px; border-width: 3px; }

@media (max-width: 640px) {
  .arc-jump { margin-left: 0; }
  .arc-open { width: 100%; justify-content: center; }
  .arc-screen { padding: 10px; }
  .arc-year { width: 40px; }
  .arc-stats b { font-size: 18px; }
}

/* ---------------------------------------------------------------- history
   Stats, highlights and a year-axis lane chart over the ownership and
   infrastructure periods app/history.py assembles; then tabbed tables. */
.hx-lede-wrap { padding-bottom: 0; }
.hx { padding: 14px 20px 18px; }
.hx-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hx-stats b { font-size: 21px; }
.hx-progress { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.hx-loading { display: grid; gap: 14px; }
.hx-loading[hidden] { display: none; }
.hx-skel { display: grid; gap: 8px; }
.hx-skel i { display: block; height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: hx-sh 1.4s linear infinite; }
.hx-skel i:nth-child(2) { width: 86%; } .hx-skel i:nth-child(3) { width: 72%; } .hx-skel i:nth-child(4) { width: 91%; } .hx-skel i:nth-child(5) { width: 64%; }
@keyframes hx-sh { to { background-position: -200% 0; } }

.hx-insights { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.hx-insights li { display: grid; grid-template-columns: auto 64px 1fr; gap: 10px; align-items: start; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; line-height: 1.55; }
.hx-insights li.sev-warn { border-color: var(--warn-br); background: var(--warn-bg); }
.hx-insights .when { font-size: 12px; color: var(--muted); padding-top: 2px; }
.hx-insights .what b { font-weight: 650; }

.hx-chart { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 12px; background: var(--surface-2); overflow: hidden; }
.hx-axis, .hx-lane { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; }
.hx-axis .track { position: relative; height: 18px; }
.hx-axis i { position: absolute; top: 0; transform: translateX(-50%); font: 600 10.5px/18px var(--mono); color: var(--faint); font-style: normal; white-space: nowrap; }
.hx-axis i:first-child { transform: none; }
.hx-lane { padding: 5px 0; border-top: 1px dashed var(--border); }
.hx-lane .lab { font-size: 12px; font-weight: 650; color: var(--muted); }
.hx-lane .track { position: relative; height: 26px; }
.hx-lane .grid { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--border); }
.hx-lane .seg { position: absolute; top: 3px; height: 20px; border-radius: 5px; min-width: 6px; overflow: hidden;
  color: #fff; font-size: 11px; line-height: 20px; padding: 0 6px; white-space: nowrap; cursor: default;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hx-lane .seg em { font-style: normal; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: block; }
.hx-lane .seg.c0 { background: #2563eb; } .hx-lane .seg.c1 { background: #0891b2; } .hx-lane .seg.c2 { background: #7c3aed; }
.hx-lane .seg.c3 { background: #059669; } .hx-lane .seg.c4 { background: #db2777; } .hx-lane .seg.c5 { background: #4f46e5; }
.hx-lane .seg.park { background: repeating-linear-gradient(135deg, var(--warn) 0 6px, #d97706 6px 12px); }
.hx-lane .seg.redacted { background: repeating-linear-gradient(135deg, #94a3b8 0 6px, #64748b 6px 12px); }
.hx-lane .seg.now { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3.5px var(--good); }
.hx-note { font-size: 12px; margin: 8px 0 0; }

.hx-tabs { border-top: 1px solid var(--border); }
.hx-tabs .tabs { overflow-x: auto; scrollbar-width: thin; }
.hx-tabs .tabs button { white-space: nowrap; }
.hx-table td { vertical-align: top; }
.hx-table tr.chg td { background: var(--warn-bg); }
.hx-table .hx-ns div { font-size: 12px; line-height: 1.5; white-space: nowrap; word-break: normal; }
.hx-table .srcs .badge + .badge { margin-left: 4px; }
.hx-table a.badge:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 1020px) { .hx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hx { padding: 12px 16px 16px; }
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-stats b { font-size: 18px; }
  .hx-axis, .hx-lane { grid-template-columns: 1fr; gap: 4px; }
  .hx-axis > span { display: none; }
  .hx-insights li { grid-template-columns: auto 1fr; }
  .hx-insights .when { grid-column: 2; }
  .hx-insights .what { grid-column: 1 / -1; }
}
