/* =============================================================
   PROXY DISPATCH — editorial · terminal · ember
   ============================================================= */

:root {
  /* Tone — warm dark with paper text */
  --ink: #ece7d8;
  --ink-soft: #b8b1a0;
  --ink-mute: #7d7869;
  --ink-faint: #4a4740;
  --paper: #0d0c0a;
  --paper-2: #14120f;
  --paper-3: #1c1a16;
  --rule: #2b2823;
  --rule-strong: #3a362f;

  /* Ember — single accent */
  --ember: #ff6b1f;
  --ember-soft: #c2541a;
  --ember-bg: rgba(255, 107, 31, 0.08);
  --ember-border: rgba(255, 107, 31, 0.32);

  /* Status */
  --signal: #c5e878;
  --signal-glow: rgba(197, 232, 120, 0.4);

  /* Rounded + bold pairing — Nunito + M PLUS Rounded 1c, broad CJK rounded fallbacks */
  --display: 'Nunito', 'M PLUS Rounded 1c',
             'PingFang TC', 'Hiragino Maru Gothic ProN', 'Hiragino Sans',
             'Microsoft JhengHei UI', 'Microsoft YaHei UI',
             'Apple SD Gothic Neo', 'Noto Sans', system-ui, sans-serif;
  --serif:   var(--display);  /* alias kept for backward compat with existing class rules */
  --mono:    'IBM Plex Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans:    'Nunito', 'M PLUS Rounded 1c',
             'PingFang TC', 'PingFang SC', 'Hiragino Maru Gothic ProN',
             'Microsoft JhengHei UI', 'Microsoft YaHei UI',
             'Hiragino Sans', 'Apple SD Gothic Neo', 'Malgun Gothic',
             'Noto Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Rounded geometry tokens */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: 600;                  /* default bold for body */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Letter-spacing hygiene: monospace and tightly-tracked tokens don't inherit body's 1px.
   Anything with its own letter-spacing rule (kicker / col__head / mono labels) keeps its value. */
code, pre, kbd, samp, time,
.row, .row *, .ip-occ__row, .ip-occ__row *,
.addr-link, .addr-link *, .ip-modal__title,
.ip-dl dd, .ip-dl dt,
.proto__count, .meter__num,
input, select, textarea, button {
  letter-spacing: normal;
}

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ink); border-bottom: 1px solid currentColor; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
em { font-style: italic; }

/* HTML5 microdata <meta> tags inside body shouldn't take grid cells */
meta { display: none; }

::selection { background: var(--ember); color: var(--paper); }

/* ---------- A11y utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 1000;
  background: var(--ember);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.18s;
}
.skip-link:focus { top: 8px; outline: none; }

/* ---------- Grain & atmospheric ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- Network topology background ---------- */
.topology {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.topology .topo-lines line {
  stroke: var(--rule);
  stroke-width: 0.6;
  fill: none;
  opacity: 0.55;
}
.topology .topo-lines line.flow {
  stroke: var(--ember);
  stroke-opacity: 0.5;
  stroke-width: 0.9;
  stroke-dasharray: 5 240;
  animation: topoFlow 7s linear infinite;
}
.topology .topo-lines line.flow:nth-child(2n) {
  animation-duration: 11s;
  stroke-dasharray: 8 320;
}
.topology .topo-lines line.flow:nth-child(3n) {
  animation-duration: 9s;
  animation-direction: reverse;
}
.topology .topo-dots circle {
  fill: var(--ink-mute);
  opacity: 0.45;
  transform-box: fill-box;
  transform-origin: center;
  animation: topoPulse 5s ease-in-out infinite;
}
.topology .topo-dots circle.hub {
  fill: var(--ember);
  opacity: 0.85;
  animation: topoHub 4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 107, 31, 0.6));
}
@keyframes topoPulse {
  0%, 100% { opacity: 0.18; transform: scale(0.85); }
  50%      { opacity: 0.65; transform: scale(1.15); }
}
@keyframes topoHub {
  0%, 100% { opacity: 0.4;  transform: scale(0.85); }
  50%      { opacity: 0.95; transform: scale(1.55); }
}
@keyframes topoFlow {
  to { stroke-dashoffset: -245; }
}
@media (prefers-reduced-motion: reduce) {
  .topology .topo-lines line.flow,
  .topology .topo-dots circle { animation: none; }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 31, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(197, 232, 120, 0.04), transparent 60%);
}

main   { position: relative; z-index: 1; }
header { position: relative; z-index: 50; }

/* ---------- Layout container ---------- */
.page, .masthead__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* =================================================================
   MASTHEAD
   ================================================================= */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  background: var(--paper);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.masthead__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__mark { color: var(--ink); font-weight: 400; }
.brand__mark em { color: var(--ember); font-weight: 300; padding-right: 2px; }
.brand__sep { color: var(--ink-faint); }
.brand__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  position: relative;
  top: -1px;
}

.masthead__rule {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
}
.rule__seg { display: inline-flex; align-items: center; gap: 8px; }
.rule__live { color: var(--ink); }
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
}
.pulse[data-fresh="1"] {
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lang-btn:hover {
  background: var(--paper-3);
  border-color: var(--ember-border);
  color: var(--ember);
}
.lang-btn[aria-expanded="true"] {
  background: var(--ember);
  color: var(--paper);
  border-color: var(--ember);
}
.lang-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
  position: relative;
  top: -1px;
}
.lang-current {
  font-weight: 500;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  z-index: 60;
  padding: 0;
}
.lang-menu__head {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.lang-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.lang-menu a:last-child { border-bottom: 0; }
.lang-menu a:hover {
  background: var(--ember);
  color: var(--paper);
}
.lang-menu a:hover .lang-code { color: var(--paper); }
.lang-menu a[aria-current="true"] {
  color: var(--ember);
  background: var(--ember-bg);
}
.lang-menu a[aria-current="true"]::before {
  content: '▸';
  font-family: var(--mono);
  margin-inline-end: 4px;
  font-size: 10px;
}
.lang-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--rule);
}

/* Rotated margin label — editorial detail */
.hero__margin {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 900px) { .hero__margin { display: none; } }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  margin: 0 0 28px;
  opacity: 0;
  animation: rise 0.6s ease-out 0.1s forwards;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 28px);   /* description lines under the count */
  line-height: 1.3;
  letter-spacing: 1px;
  margin: 0 0 32px;
  color: var(--ink-soft);
}
.display em {
  font-weight: 800;
  color: var(--ember);
}
.display__line {
  display: block;
  overflow: hidden;
}
.display__line--num {
  font-size: clamp(56px, 9vw, 112px);    /* the big count stays large */
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--ink);
}
.display__line--num em {
  letter-spacing: -0.04em;
  font-weight: 300;
}
.display__line .reveal {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}
.display__line:nth-child(1) .reveal { animation-delay: 0.05s; }
.display__line:nth-child(2) .reveal { animation-delay: 0.20s; }
.display__line:nth-child(3) .reveal { animation-delay: 0.30s; }
.display__line:nth-child(4) .reveal { animation-delay: 0.40s; }

@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.dek {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 16px 0 0;
  opacity: 0;
  animation: rise 0.7s ease-out 0.55s forwards;
}
.dek a {
  color: var(--ink);
  border-bottom: 1px solid var(--ember);
}
.dek a:hover { color: var(--ember); border-bottom-color: var(--ember); }

/* ---------- Hero panel: TOP TERRITORIES ---------- */
.hero__panel {
  border: 1px solid var(--rule);
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  align-self: start;
  opacity: 0;
  animation: rise 0.8s ease-out 0.4s forwards;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
}
.panel__rule {
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}
.panel__count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.panel__list li {
  display: grid;
  grid-template-columns: 24px 22px 1fr 60px 60px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.panel__list li:last-child { border-bottom: 0; }
.panel__list .rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.panel__list .flag { font-size: 14px; line-height: 1; }
.panel__list .ter-name {
  text-align: left;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  transition: color 0.15s;
}
.panel__list .ter-name:hover { color: var(--ember); }
.panel__list .ter-name .cc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.panel__list .bar {
  height: 4px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.panel__list .bar > span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--ember-soft), var(--ember));
  transform: translateX(-100%);
  animation: barFill 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}
.panel__list li:nth-child(1) .bar > span { animation-delay: 0.6s; }
.panel__list li:nth-child(2) .bar > span { animation-delay: 0.65s; }
.panel__list li:nth-child(3) .bar > span { animation-delay: 0.70s; }
.panel__list li:nth-child(4) .bar > span { animation-delay: 0.75s; }
.panel__list li:nth-child(5) .bar > span { animation-delay: 0.80s; }
.panel__list li:nth-child(6) .bar > span { animation-delay: 0.85s; }
.panel__list li:nth-child(7) .bar > span { animation-delay: 0.90s; }
.panel__list li:nth-child(8) .bar > span { animation-delay: 0.95s; }
.panel__list li:nth-child(9) .bar > span { animation-delay: 1.00s; }
@keyframes barFill {
  to { transform: translateX(0); }
}

.panel__list .num {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
  color: var(--ink-soft);
}

/* =================================================================
   PROTOCOL BAR
   ================================================================= */
.protocol-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.bar__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.bar__rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--rule-strong);
}
.bar__group {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.proto {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
  font-family: var(--mono);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.proto:hover { background: var(--paper-3); }

/* Per-protocol accent — hover shows a coloured top bar; active fills with badge colour */
.proto::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
}
.proto[data-proto="http"]   { --proto-color: #ff8a3c; }
.proto[data-proto="https"]  { --proto-color: #c5e878; }
.proto[data-proto="socks4"] { --proto-color: #7eb8e6; }
.proto[data-proto="socks5"] { --proto-color: #e89bb8; }
.proto[data-proto] .proto__count { color: var(--proto-color); }
.proto[data-proto] .proto__label { color: var(--ink-soft); transition: color 0.15s; }
.proto:hover .proto__label { color: var(--proto-color); }
.proto:hover::after { opacity: 0.5; color: var(--proto-color); }

.proto[aria-selected="true"] {
  background: var(--proto-color);
  color: #14120f;
}
.proto[aria-selected="true"] .proto__label,
.proto[aria-selected="true"] .proto__count,
.proto[aria-selected="true"] .proto__sep { color: #14120f; }
.proto[aria-selected="true"]::after { opacity: 0; }
.proto[aria-selected="true"]::before {
  content: '▸';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #14120f;
  font-weight: 800;
}
.proto__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.proto__sep { color: currentColor; opacity: 0.4; }
.proto__count {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* =================================================================
   CONTROLS
   ================================================================= */
.controls {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr 0.8fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 24px 0 0;
}

.ctl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--paper);
  position: relative;
}
.ctl__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.ctl input,
.ctl select {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.ctl input::placeholder { color: var(--ink-faint); }
.ctl select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%237d7869' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
}
.ctl select option {
  background: var(--paper-2);
  color: var(--ink);
  padding: 12px 18px;
  line-height: 1.8;
  min-height: 32px;
  font-size: 14px;
}
/* Firefox-only padding hack — Chrome partially honours, Safari uses native picker */
@-moz-document url-prefix() {
  .ctl select option { padding: 14px 22px; }
}
.ctl:focus-within {
  background: var(--paper-3);
  box-shadow: inset 0 -2px 0 var(--ember);
}

.ctl--search { position: relative; }
.ctl__kbd {
  position: absolute;
  right: 16px;
  bottom: 12px;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  background: var(--paper-2);
  pointer-events: none;
}


/* =================================================================
   DISPATCH META BAR
   ================================================================= */
.dispatch-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.meta__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta__chip {
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
#chipProto { color: var(--ember); border-color: var(--ember-border); }
.meta__sep { color: var(--ink-faint); }
.meta__count { color: var(--ink); letter-spacing: 0.18em; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--ember); }

/* =================================================================
   LEDGER (table)
   ================================================================= */
.ledger {
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.ledger__head {
  display: grid;
  grid-template-columns: 56px 56px 1fr 280px 60px;
  align-items: center;
  padding: 14px 20px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.ledger__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger__rows .placeholder {
  padding: 60px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.ledger__rows .row {
  display: grid;
  grid-template-columns: 56px 56px 1fr 280px 80px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.12s;
  position: relative;
  gap: 12px;
}
.ledger__rows .row:last-child { border-bottom: 0; }
.ledger__rows .row:hover {
  background: var(--paper-3);
}
.ledger__rows .row:hover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ember);
}

.row .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* Protocol badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}
.badge__icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  display: block;
}
.badge--http   { color: #ff8a3c; background: rgba(255, 138, 60, 0.12); }
.badge--https  { color: #c5e878; background: rgba(197, 232, 120, 0.12); }
.badge--socks4 { color: #7eb8e6; background: rgba(126, 184, 230, 0.14); }
.badge--socks5 { color: #e89bb8; background: rgba(232, 155, 184, 0.14); }
.row:hover .badge { transform: translateY(-1px); }
.badge { transition: transform 0.15s; }

/* Clickable address (links to standalone /ip/{ip}/ page) */
.addr-link {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: left;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: none;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
  display: inline-block;
}
.addr-link:hover { color: var(--ember); border-bottom: 0; }
.addr-link:hover .ip { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ember); }
.addr-link:focus-visible { outline: 1px dashed var(--ember); outline-offset: 2px; }
.addr-link .port { color: var(--ember); }
.addr-link .ip { font-weight: 400; }
.row .addr {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.row .addr .port { color: var(--ember); }

/* NEW tag — flash for proxies seen for the first time recently */
.new-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 2px 5px;
  background: var(--ember);
  color: var(--paper);
  font-weight: 600;
  margin-right: 6px;
  text-transform: uppercase;
  vertical-align: middle;
  animation: newPulse 2s ease-in-out infinite;
}
@keyframes newPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255, 107, 31, 0.5); }
  50%     { box-shadow: 0 0 0 4px rgba(255, 107, 31, 0); }
}
.row--new {
  background: linear-gradient(90deg, rgba(255, 107, 31, 0.05), transparent 200px);
}
.row .origin {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.row .origin .flag { font-size: 14px; line-height: 1; }
.row .origin .name { color: var(--ink); }
.row .origin .cc {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.row .origin .none {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.row .act { text-align: right; }
.copy-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.row:hover .copy-btn {
  color: var(--ink-soft);
  border-color: var(--rule-strong);
}
.copy-btn:hover {
  color: var(--ember) !important;
  border-color: var(--ember) !important;
}
.copy-btn.copied {
  color: var(--signal) !important;
  border-color: var(--signal) !important;
}

/* =================================================================
   PAGINATION
   ================================================================= */
.pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}
.page-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  transition: all 0.15s;
}
.page-btn:not(:disabled):hover {
  color: var(--ember);
  border-color: var(--ember);
  background: var(--ember-bg);
}
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-info {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.12em;
  min-width: 120px;
  text-align: center;
}
.page-info em {
  color: var(--ember);
  font-style: normal;
  font-weight: 500;
}

/* =================================================================
   COLOPHON (footer)
   ================================================================= */
.colophon {
  padding: 32px 0 64px;
}
.colophon .rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0 0 32px;
}
.colophon__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.col__head {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.col p { margin: 0; }
.col__sub { color: var(--ink-mute); margin-top: 6px !important; font-size: 10px; }
.col--warn p:not(.col__head) {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
}
.col--meta { text-align: right; }

/* =================================================================
   TOAST
   ================================================================= */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ember);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.1, 1);
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1100px) {
  .ledger__head, .ledger__rows .row {
    grid-template-columns: 36px 50px 1fr 200px 64px;
    padding: 12px 16px;
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr 1fr; }
  .ctl--search { grid-column: 1 / -1; }
  .colophon__cols { grid-template-columns: repeat(2, 1fr); }
  .col--meta { text-align: left; }
}
@media (max-width: 640px) {
  .masthead__inner { gap: 14px; }
  .masthead__rule { font-size: 10px; gap: 12px; }
  .protocol-bar { flex-wrap: wrap; }
  .bar__group { flex: 1 1 100%; grid-template-columns: repeat(2, 1fr); }
  .controls { grid-template-columns: 1fr; }

  /* Hide table column headers on mobile (rows become 2-line cards) */
  .ledger__head { display: none; }

  /* Compact 2-row card layout per row */
  .ledger__rows .row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "badge addr   cc"
      "num   act    act";
    column-gap: 10px;
    row-gap: 4px;
    padding: 12px 14px;
    align-items: center;
  }
  .row .num     { grid-area: num;   font-size: 9px;  color: var(--ink-faint); padding: 0; letter-spacing: 0.14em; }
  .row .badge   { grid-area: badge; height: 18px; padding: 0 6px; font-size: 9px; }
  .row .addr-link {
    grid-area: addr;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .row .origin  { grid-area: cc; margin: 0; gap: 4px; justify-self: end; }
  .row .origin .name, .row .origin .flag { display: none; }
  .row .origin .cc {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    margin-left: 0;
  }
  .row .act {
    grid-area: act;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
  }
  .row .new-tag { font-size: 8px; padding: 1px 4px; margin: 0; letter-spacing: 0.1em; }
  .row .copy-btn { font-size: 9px; padding: 3px 7px; letter-spacing: 0.18em; opacity: 1; }

  .pages { gap: 12px; }
  .reasons { grid-template-columns: 1fr !important; }
  .article { grid-template-columns: 1fr !important; gap: 16px !important; }
  .article__head { position: static !important; flex-direction: row !important; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =================================================================
   SHARED SECTION HEADERS
   ================================================================= */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
.section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  flex: 0 0 auto;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  flex: 1;
}

/* SEO keyword line under hero — visible & semantic */
.seo-line {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.seo-line strong {
  color: var(--ink-soft);
  font-weight: 500;
}

/* =================================================================
   THREE REASONS
   ================================================================= */
.why .reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.reason {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.15s;
}
.reason:hover { background: var(--paper-2); }
.reason::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width 0.5s ease;
}
.reason:hover::before { width: 100%; }
.reason__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
}
.reason__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reason__body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* =================================================================
   ARTICLES (English expert content)
   ================================================================= */
.articles { padding-bottom: 16px; }
.articles__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.article:first-child { border-top: 0; padding-top: 32px; }
.article__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 24px;
  align-self: start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.article__num {
  color: var(--ember);
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 500;
}
.article__kicker { color: var(--ink-mute); }
.article__time { color: var(--ink-faint); font-size: 10px; }

.article__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 24ch;
}

.article__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
}
.article__body .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 28px;
  font-weight: 400;
  letter-spacing: -0.005em;
  border-left: 2px solid var(--ember);
  padding-left: 16px;
}
.article__body h3 {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.article__body p {
  margin: 0 0 16px;
}
.article__body p:last-child { margin-bottom: 0; }
.article__body code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--ember);
  border: 1px solid var(--rule);
}
.article__body pre {
  margin: 16px 0 20px;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ember);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}
.article__body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}
.article__body strong {
  color: var(--ink);
  font-weight: 600;
}
.article__body em {
  font-style: italic;
}

/* =================================================================
   ARTICLE CARDS (index page list + related section)
   ================================================================= */
.article-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.article-cards li { display: flex; }
.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 24px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.article-card:hover { background: var(--paper-2); border-bottom: 0; }
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ember);
  transition: width 0.4s ease;
}
.article-card:hover::before { width: 100%; }
.article-card__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ember);
}
.article-card__kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.article-card__title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.15s;
}
.article-card:hover .article-card__title { color: var(--ember); }
.article-card__lede {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__more {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ember);
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .article-cards { grid-template-columns: 1fr; }
  .article-card { padding: 22px 20px 20px; }
  .article-card__title { font-size: 19px; }
}

/* =================================================================
   ARTICLE FULL (standalone page) — /{locale}/article/{slug}/
   ================================================================= */
.page-article__main { padding-bottom: 64px; }

.article-crumbs {
  padding: 24px 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.article-crumbs a { color: var(--ink-mute); }
.article-crumbs a:hover { color: var(--ember); border-bottom: 0; }
.article-crumbs__current { color: var(--ember); }

.article-full {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 56px;
}
.article-full__head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.article-full__kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-full__title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.article-full__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-full__meta .dot { color: var(--ink-faint); }
.article-full__meta time { color: var(--ink-soft); }

.article-full__body {
  /* inherits .article__body styles for typography */
}

/* Related section uses card grid */
.article-related {
  max-width: 1180px;
  margin: 56px auto 0;
}
.article-related .article-cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .article-related .article-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-related .article-cards { grid-template-columns: 1fr; }
}

/* =================================================================
   FAQ
   ================================================================= */
.faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__item details summary {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  align-items: baseline;
  gap: 16px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.12s;
}
.faq__item details summary::-webkit-details-marker { display: none; }
.faq__item details summary:hover {
  background: var(--paper-2);
}
.faq__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ember);
}
.faq__q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq__chev {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-mute);
  text-align: right;
  transition: transform 0.2s, color 0.15s;
}
.faq__item details[open] .faq__chev {
  transform: rotate(45deg);
  color: var(--ember);
}
.faq__a {
  padding: 0 4px 24px 80px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq__a code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 1px 6px;
  color: var(--ember);
  border: 1px solid var(--rule);
}

/* =================================================================
   ROUNDED TOUCH — global rounded-bold aesthetic
   ================================================================= */
.lang-btn,
.copy-btn,
.page-btn,
.meta__chip,
.ctl input, .ctl select,
.ctl__kbd,
.ip-modal__close,
.ip-map-link,
.ip-occ__row .copy-btn { border-radius: var(--radius-sm); }

.badge,
.new-tag                       { border-radius: var(--radius-sm); }

.protocol-bar .bar__group,
.controls,
.ledger,
.ledger__head,
.ip-occ__list,
.hero__panel,
.reasons,
.article-cards,
.ip-blocks                     { border-radius: var(--radius); overflow: hidden; }

.toast,
.lang-menu,
.export-menu,
.ip-modal__panel               { border-radius: var(--radius); }

.proto:first-child             { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.proto:last-child              { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }

/* Body weight bump — semibold default */
.dek, .reason__body, .article-card__lede, .article__body p,
.ip-block__empty, .faq__a, .col p          { font-weight: 600; }

/* Headlines / titles — extra bold rounded with positive 1px tracking */
.display, .display em, .meter__num,
.section-title, .reason__title,
.article-card__title, .article-full__title,
.faq__q,
.brand__mark, .brand__mark em,
.article__title                            { font-weight: 800; font-style: normal; letter-spacing: 1px; }

/* Inline mono IP token in occurrences list keeps its tight tracking */
.ip-occ__addr                              { font-weight: 800; font-style: normal; }

/* Override prior italic Newsreader rules — rounded fonts have no italic, browser fakes look bad */
.display em, .display__line .reveal em,
.dek, .reason__title, .reason__body,
.article-card__title, .article-card__lede,
.article-full__title, .article-full__body .lede,
.article__body .lede, .article__body h3,
.faq__q, .ip-hero__sub, .ip-block__empty,
.col--warn p:not(.col__head)               { font-style: normal; }

/* =================================================================
   IP DETAIL PAGE — /{locale}/ip/{ip}/
   ================================================================= */
.page-ip__main { padding-bottom: 64px; }

/* Legacy single-link crumbs — superseded by .crumbs__list */
.ip-crumbs, .article-crumbs {
  padding: 24px 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ip-crumbs a, .article-crumbs a { color: var(--ink-mute); }
.ip-crumbs a:hover, .article-crumbs a:hover { color: var(--ember); border-bottom: 0; }
.article-crumbs__current { color: var(--ember); }

/* Unified breadcrumb pattern (ol-based, semantic) */
.crumbs {
  padding: 24px 0 8px;
}
.crumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.crumbs__item:not(:last-child)::after {
  content: '/';
  color: var(--ink-faint);
  font-weight: 400;
}
.crumbs__item a {
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  padding: 2px 0;
}
.crumbs__item a:hover {
  color: var(--ember);
  border-bottom-color: var(--ember-border);
}
.crumbs__item[aria-current="page"] {
  color: var(--ember);
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

.ip-hero {
  padding: 24px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.ip-hero .kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
}
.ip-hero__addr {
  margin: 0 0 18px;
  font-family: var(--display);              /* match home count: rounded Nunito */
  font-size: clamp(56px, 9vw, 112px);       /* same scale as home .display__line--num */
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ember);
  line-height: 1;
  word-break: break-all;
}
.ip-hero__sub {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ip-hero__sub .ip-flag { font-size: 1em; line-height: 1; }
.ip-hero__sep { color: var(--ink-faint); padding: 0 4px; }
.ip-hero__protos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ip-hero__protos .badge { height: 26px; padding: 0 12px; font-size: 11px; }
.ip-hero__notin {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin: 12px 0 0;
}

.ip-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 32px 0;
}
.ip-block {
  background: var(--paper);
  padding: 28px;
}
.ip-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.ip-block__head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  font-weight: 500;
}
.ip-block__empty {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 15px;
}
.ip-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 16px;
  font-size: 13px;
}
.ip-dl dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 2px;
}
.ip-dl dd {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  word-break: break-word;
}
.ip-dl dd code {
  font-family: var(--mono);
  background: var(--paper-2);
  padding: 1px 6px;
  color: var(--ember);
  border: 1px solid var(--rule);
  font-size: 11px;
}
.ip-dl__hint { color: var(--ink-mute); font-size: 11px; }
.ip-map-link {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ember);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ember-border);
}
.ip-map-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.ip-occ {
  margin: 32px 0;
}
.ip-occ__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
}
.ip-occ__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.ip-occ__row {
  display: grid;
  grid-template-columns: 60px 1fr 80px auto 70px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  position: relative;
}
.ip-occ__row:last-child { border-bottom: 0; }
.ip-occ__row:hover { background: var(--paper-3); }
.ip-occ__addr { color: var(--ink); }
.ip-occ__addr .ip-occ__port { color: var(--ember); }
.ip-occ__cc {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.ip-occ__times {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.ip-occ__times time { color: var(--ink); }

@media (max-width: 800px) {
  .ip-blocks { grid-template-columns: 1fr; }
  .ip-occ__row { grid-template-columns: 56px 1fr auto; }
  .ip-occ__cc, .ip-occ__times { display: none; }
}

/* =================================================================
   RTL (ar)
   ================================================================= */
[dir="rtl"] .hero__margin {
  left: auto;
  right: -8px;
  transform: rotate(90deg) translateX(50%);
  transform-origin: 100% 0;
}
[dir="rtl"] .proto[aria-selected="true"]::before {
  content: '◂';
  left: auto;
  right: 6px;
}
[dir="rtl"] .ledger__rows .row:hover::before {
  left: auto;
  right: 0;
}
[dir="rtl"] .col--meta { text-align: left; }
[dir="rtl"] .col__sub,
[dir="rtl"] .colophon__cols { text-align: start; }
[dir="rtl"] .lang-menu a[aria-current="true"]::before {
  content: '◂';
  margin-inline-end: 0;
  margin-inline-start: 4px;
}
/* Use a thicker-stroked Arabic-friendly serif weight for headlines */
[dir="rtl"] .display {
  font-family: 'Newsreader', 'Amiri', 'Noto Naskh Arabic', serif;
  font-weight: 400;
}
[dir="rtl"] .row .origin .cc { margin-left: 0; margin-right: auto; }
[dir="rtl"] .display__line--num em {
  /* Latin numerals look weird in RTL paragraph context — keep direction LTR */
  direction: ltr;
  unicode-bidi: bidi-override;
}
