@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Tokens. Type: 12 14 16 20 + one section size + one display size. Weights: 400 500 600.
   Space: 4 8 12 16 24 32 48 64 96 128. Radius: 6 (small control), 8 (control), 12 (box). */
:root {
  view-transition-name: none;
  color-scheme: dark;
  --canvas: #0a0a0a;
  --panel: #0e0e0e;
  --ctl: rgb(255 255 255 / 0.06);
  --ctl-hover: rgb(255 255 255 / 0.1);
  --row-hover: rgb(255 255 255 / 0.03);
  --rule: rgb(255 255 255 / 0.08);
  --rule-strong: rgb(255 255 255 / 0.14);
  --text: #ededed;
  --text-bright: #ffffff;
  --muted: #a1a1a1;
  --faint: #8a8a8a;
  --yellow: #f5c518;
  --yellow-bright: #ffda48;
  --up: #78c6a3;
  --down: #e98989;
  --font: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-1: 12px;
  --fs-2: 14px;
  --fs-3: 16px;
  --fs-4: 20px;
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-page: clamp(32px, 4vw, 48px);
  --fs-h1: clamp(48px, 5.5vw, 76px);
  --r-s: 6px;
  --r: 8px;
  --r-box: 12px;
  --gutter: 24px;
  --section: 128px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-feedback: 150ms;
  --motion-state: 220ms;
  --motion-feature: 300ms;
  --motion-exit: 120ms;
  /* Aliases read by assets/fx.css (the effects layer). */
  --k-text: var(--text);
  --k-text-2: var(--muted);
  --k-card: var(--panel);
  --k-r-xs: var(--r-s);
  --k-r: var(--r);
  --k-r-box: var(--r-box);
  --k-r-card: var(--r-box);
  --k-s-9: 48px;
  font-family: var(--font);
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--rule-strong) var(--canvas);
  scrollbar-width: thin;
}

*, *::before, *::after { box-sizing: border-box; }
/* The scrollbar space is always reserved: a page that grows past the window (an opened comparison) must not shift sideways. */
html { scroll-padding-top: 80px; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--canvas); font-size: var(--fs-3); line-height: 1.6; }
/* A short page puts the footer at the bottom of the window. It stays hidden until the route has rendered: no visible jump. */
main { flex: 1 0 auto; view-transition-name: page-content; }
:root:not([data-ready]) .site-footer { visibility: hidden; }
main:focus, h1:focus { outline: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { letter-spacing: -0.04em; }
h2 { letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
/* No double-tap zoom wait on controls. */
a, button, summary, select, label { touch-action: manipulation; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; opacity: 0.5; }
img { display: block; max-width: 100%; }
input { caret-color: var(--text); }
::selection { color: var(--canvas); background: var(--yellow); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1168px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 24px; z-index: 100; padding: 12px 16px; color: var(--canvas); background: var(--text); border-radius: var(--r); font-size: var(--fs-2); font-weight: 500; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; vertical-align: middle; }

/* Header: clear over the hero, blurred with a hairline once the page moves (fx.js sets data-scrolled). */
.site-header { position: sticky; top: 0; z-index: 20; background: transparent; box-shadow: inset 0 -1px 0 transparent; transition: background-color var(--motion-state) var(--ease-out), box-shadow var(--motion-state) var(--ease-out); }
.site-header[data-scrolled] { background: rgb(10 10 10 / 0.72); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: inset 0 -1px 0 var(--rule); }
.nav-inner, .site-footer { max-width: none; }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 32px; }
.wordmark { flex: 0 0 auto; display: inline-flex; align-items: center; height: 32px; font-size: var(--fs-4); font-weight: 600; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.logo-dot { color: var(--yellow); }
.primary-nav { position: relative; align-self: stretch; display: flex; align-items: stretch; gap: 24px; }
.nav-link { position: relative; display: flex; align-items: center; justify-content: center; min-width: 24px; color: var(--muted); font-size: var(--fs-2); font-weight: 400; transition: color var(--motion-feedback) ease; }
.nav-indicator { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; background: var(--yellow); pointer-events: none; opacity: 0; transform-origin: left center; transition: transform var(--motion-state) var(--ease-out), opacity var(--motion-feedback) ease; }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-actions { position: relative; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.telegram-menu { position: relative; }
.header-telegram, .hero-telegram { gap: 6px; }
.hero-telegram { gap: 8px; }
.telegram-count { padding: 2px 5px; border-radius: 4px; background: rgb(245 197 24 / 0.16); font: 500 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.telegram-chevron { width: 12px; height: 12px; transition: transform var(--motion-feedback) var(--ease-out); }
.telegram-menu-trigger[aria-expanded="true"] { background: rgb(245 197 24 / 0.16); }
.telegram-menu-trigger[aria-expanded="true"] .telegram-chevron { transform: rotate(180deg); }
.telegram-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 256px; max-width: calc(100vw - 2 * var(--gutter)); padding: 6px; border: 1px solid var(--rule-strong); border-radius: var(--r-box); background: #111111; box-shadow: 0 16px 40px rgb(0 0 0 / 0.65); text-align: left; translate: var(--menu-shift, 0px) 0; }
.hero-telegram-menu .telegram-menu-panel { right: auto; left: 50%; translate: calc(-50% + var(--menu-shift, 0px)) 0; }
@keyframes telegram-menu-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  .telegram-menu-panel:not([hidden]) { animation: telegram-menu-in var(--motion-feedback) var(--ease-out) both; }
}
.telegram-menu-heading { padding: 6px 10px 8px; color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.telegram-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 10px; border-radius: var(--r); color: var(--text); font-size: var(--fs-2); transition: background-color var(--motion-feedback) ease, color var(--motion-feedback) ease; }
.telegram-menu-item:active { background: var(--ctl-hover); }
.telegram-menu-lang { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.telegram-flag { flex: 0 0 auto; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); }
.telegram-menu-handle { color: var(--faint); font: 400 var(--fs-1)/1.4 var(--mono); white-space: nowrap; transition: color var(--motion-feedback) ease; }
.telegram-menu-divider { height: 1px; margin: 4px 6px; background: var(--rule); }

/* Buttons: one filled, one quiet. Three heights: 32 (bars and rows), 40 (page), 48 (hero). */
.button { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: var(--r); font-size: var(--fs-2); font-weight: 500; line-height: 1; white-space: nowrap; -webkit-user-select: none; user-select: none; transition: background-color var(--motion-feedback) ease, color var(--motion-feedback) ease, transform 100ms var(--ease-out); }
.button { position: relative; isolation: isolate; overflow: hidden; }
/* Hover: a band of light crosses the button once. */
.button::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 32%, rgb(255 255 255 / 0.3) 50%, transparent 68%); transform: translateX(-110%); }
@keyframes button-sheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--yellow); color: var(--canvas); }
/* Two button looks on the whole site: solid yellow for the one main action, yellow outline for every other button. */
:is(.button-accent, .button-secondary) { background: rgb(245 197 24 / 0.1); color: var(--yellow); box-shadow: inset 0 0 0 1px rgb(245 197 24 / 0.4); }
:is(.button-accent, .button-secondary):active { background: rgb(245 197 24 / 0.2); }
.button-small { height: 32px; padding: 0 12px; border-radius: var(--r-s); }
.button-large { height: 48px; padding: 0 24px; font-size: var(--fs-3); }
.x-label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.inline-x .icon { width: 0.8em; height: 0.8em; vertical-align: -0.08em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--fs-2); transition: color var(--motion-feedback) ease; }
.text-link:active { color: var(--text-bright); }

/* Shared news wire: one quiet strip under the header, faded at both ends. */
.wire { display: flex; align-items: stretch; flex: 0 0 auto; min-width: 0; height: 40px; border-block: 1px solid var(--rule); font: var(--fs-1)/1.5 var(--mono); }
.wire-label, .wire-status, .wire-pause { display: none !important; }
.wire-label { display: flex; align-items: center; flex: 0 0 auto; padding: 0 16px; border-right: 1px solid var(--rule); color: var(--yellow); letter-spacing: 0.08em; }
.wire-viewport { flex: 1; min-width: 0; overflow: hidden; }
.wire-track { display: flex; width: max-content; height: 100%; animation: wire-scroll var(--wire-duration, 180s) linear infinite; }
.wire-group { display: flex; align-items: center; flex: 0 0 auto; gap: 32px; padding-right: 32px; }
.wire-item { display: inline-flex; align-items: center; gap: 12px; height: 100%; color: var(--muted); white-space: nowrap; transition: color var(--motion-feedback) ease; }
.wire-time { color: var(--faint); }
.wire-item:focus-visible { outline-offset: -4px; }
.wire-status { display: flex; align-items: center; justify-content: center; flex: 0 0 112px; border-left: 1px solid var(--rule); color: var(--faint); }
.wire-pause { display: grid; place-items: center; align-self: center; flex: 0 0 32px; width: 32px; height: 32px; margin-right: 8px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--faint); transition: background-color var(--motion-feedback) ease, color var(--motion-feedback) ease; }
.wire-pause:active { background: var(--ctl-hover); }
.wire-pause svg { width: 12px; height: 12px; fill: currentColor; }
.wire-play-icon, .wire-paused .wire-pause-icon { display: none; }
.wire-paused .wire-play-icon { display: block; }
.wire:hover .wire-track, .wire:focus-within .wire-track { animation-play-state: paused !important; }
.wire-viewport:focus-within { overflow-x: auto; }
.wire-viewport:focus-within .wire-track, .wire-still .wire-track { animation: none; }
.wire-viewport:focus-within .wire-group[aria-hidden], .wire-still .wire-group[aria-hidden] { display: none; }
.wire-still .wire-viewport { overflow-x: auto; }
.wire-still .wire-track { padding-left: 12px; }
@keyframes wire-scroll { to { transform: translateX(-50%); } }

/* Home: introduction. */
.home-intro { position: relative; z-index: 10; padding: 48px 0; text-align: center; }
.home-intro h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.045em; color: var(--text-bright); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-intro h1 { background: linear-gradient(180deg, #ffffff 30%, rgb(255 255 255 / 0.6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.intro-description { max-width: 32ch; margin: 24px auto 0; color: var(--muted); font-size: var(--fs-4); line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.prose a[href^="https://t.me/"]::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.12em; background: currentColor; -webkit-mask: url('/assets/icons/telegram-logo.svg') center / contain no-repeat; mask: url('/assets/icons/telegram-logo.svg') center / contain no-repeat; }

/* Publication speed: one outlined list split by hairlines, shared by home and the archive. */
.speed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.speed-heading h2, .home-contact h2 { font-size: var(--fs-h2); line-height: 1.1; }
.speed-heading > :is(.text-link, .button) { flex: 0 0 auto; }
.speed-records { border: 1px solid var(--rule); border-radius: var(--r-box); overflow: clip; }
.speed-records:empty { display: none; }
.speed-record { --fx-spot: rgb(245 197 24 / 0.07); --fx-spot-edge: rgb(245 197 24 / 0.5); position: relative; }
.speed-title :is(h2, h3), .speed-lead strong { transition: color var(--motion-feedback) ease; }
@keyframes record-flash { from { background-color: rgb(245 197 24 / 0.14); } }
@keyframes source-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes lag-grow { from { transform: scaleX(0); } }
@keyframes replay-wait { from, to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .speed-record.is-revealing { animation: record-flash 700ms var(--ease-out); }
  /* The table rows hold still: the avatars fly to their final place, so a row that slides would make them jump on landing. */
  .is-revealing .comparison-footer { animation: source-in 450ms var(--ease-out) both; animation-delay: calc(120ms + var(--i, 8) * 45ms); }
  .is-revealing .source-lag i { animation: lag-grow 700ms var(--ease-out) both; animation-delay: calc(240ms + var(--i, 0) * 45ms); }
  .replay-message[role="status"] { animation: replay-wait 250ms both; }
}
.speed-record + .speed-record { border-top: 1px solid var(--rule); }
.speed-record.is-morphing { overflow: clip; }
.speed-record.is-expanded .source-avatars,
.speed-record.is-morphing .source-avatars,
.speed-record.is-morphing .source-avatar { visibility: hidden; }
.speed-avatar-flight { position: absolute; z-index: 2; max-width: none; border-radius: 50%; object-fit: cover; transform-origin: top left; pointer-events: none; }
.speed-record summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 24px; padding: 24px; list-style: none; cursor: pointer; transition: background-color var(--motion-feedback) ease; }
.speed-record summary::-webkit-details-marker { display: none; }
.speed-record summary:focus-visible { outline-offset: -2px; }
.home-layout .speed-record summary { padding-block: 20px; }
/* Home on desktop: one-line headlines and spacing scaled to the window height so the whole page,
   contact block and footer included, fits one screen on 1440p monitors. */
@media (min-width: 721px) {
  /* Rows look the same on home and the Comparisons page. */
  .speed-records .speed-record summary { padding-block: clamp(12px, 1.3vh, 20px); }
  .speed-records .speed-title :is(h2, h3) { max-width: none; }
  .speed-records .speed-meta { margin-top: 6px; }
  .home-layout .home-intro { padding-block: clamp(20px, 2.6vh, 48px); }
  /* Floors keep landscape phones from shrinking headings below the row titles. */
  .home-layout .home-intro h1 { font-size: clamp(32px, 6vh, var(--fs-h1)); }
  .home-layout .intro-description { max-width: none; margin-top: clamp(10px, 1.4vh, 24px); }
  .home-layout .intro-description br { display: none; }
  .home-layout .intro-actions { margin-top: clamp(16px, 2.4vh, 40px); }
  .home-layout :is(.speed-heading, .home-contact) h2 { font-size: clamp(22px, 3.6vh, var(--fs-h2)); }
  .home-layout .speed-heading { margin-bottom: clamp(12px, 1.8vh, 32px); }
  .home-layout .home-contact { margin-top: clamp(12px, 2vh, 32px); padding-block: clamp(16px, 2.2vh, 32px); }
  .home-layout .home-contact p { margin-top: 6px; }
  .home-layout .home-contact .text-link { margin-top: 2px; }
  .home-layout .home-contact-grid { gap: clamp(10px, 1.6vh, 24px) 48px; }
  :root[data-route="home"] .site-footer { margin-top: clamp(12px, 2vh, 32px); padding-block: clamp(12px, 1.6vh, 24px); }
}
.speed-record.is-expanded summary { padding-bottom: 8px; }
.speed-title { min-width: 0; }
.speed-title :is(h2, h3) { max-width: 44ch; font-size: var(--fs-4); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; text-wrap: pretty; }
.speed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; color: var(--faint); }
.speed-meta time { font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.source-avatars { display: flex; align-items: center; gap: 4px; }
.source-avatars img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.speed-record summary, .source-avatars img, .source-avatar, .speed-avatar-flight { -webkit-user-select: none; user-select: none; }
.source-avatars img, .source-avatar, .speed-avatar-flight { -webkit-user-drag: none; }
.speed-lead { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.speed-lead strong { color: var(--yellow); font-family: var(--mono); font-size: var(--fs-4); font-weight: 400; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.speed-lead > span { color: var(--faint); font-size: var(--fs-1); line-height: 1.5; }
.speed-record summary > .icon { color: var(--faint); transition: transform var(--motion-state) var(--ease-out), color var(--motion-feedback) ease; }
.speed-record[open]:not(.is-morphing) summary > .icon,
.speed-record.is-expanded summary > .icon { transform: rotate(180deg); }
/* A closed record keeps no boxes: nothing hidden can be measured, focused or overlapped. */
.speed-record:not([open]) > .speed-record-body { display: none; }
.speed-record.is-expanded, .speed-record[open] { background: var(--row-hover); }
/* Right padding lines the difference column up with the lead figure in the row above. */
.speed-record-body { padding: 8px 64px 24px 24px; }
.speed-record-body .comparison-footer { margin-top: 16px; }
.source-row-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.source-row-content .replay-toggle { flex: 0 0 auto; justify-content: center; margin-right: auto; }
.replay-toggle { position: relative; isolation: isolate; overflow: hidden; height: 32px; min-height: 32px; padding: 0 12px; border-radius: var(--r-s); background: rgb(245 197 24 / 0.1); box-shadow: inset 0 0 0 1px rgb(245 197 24 / 0.4); font-size: var(--fs-2); font-weight: 500; color: var(--yellow); white-space: nowrap; transition: background-color var(--motion-feedback) ease; }
.replay-toggle-label { position: relative; z-index: 1; color: inherit; }
.replay-toggle::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 18%) 48%, rgb(255 255 255 / 6%) 56%, transparent 74%); transform: translateX(-140%); }
@keyframes replay-shine { 0%, 58% { transform: translateX(-140%); } 85%, 100% { transform: translateX(140%); } }
@media (prefers-reduced-motion: no-preference) {
  .replay-toggle::before { animation: replay-shine 4s ease-in-out infinite; }
}
.replay-toggle[aria-expanded="true"], .replay-toggle:active { background: rgb(245 197 24 / 0.16); }
.replay-panel { margin-top: 32px; overflow: clip; overflow-clip-margin: 8px; }
.replay-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.replay-event { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 8px; color: var(--muted); font: var(--fs-1) var(--mono); }
.replay-event.has-post .replay-event-label { color: var(--yellow); }
.replay-event time { font-variant-numeric: tabular-nums; }
.replay-heading h4 { font-size: var(--fs-3); font-weight: 500; }
.replay-value { display: grid; gap: 4px; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The since-post lines keep their space before they show: the chart below does not jump mid-replay. */
.replay-value [hidden] { display: block !important; visibility: hidden; }
.replay-value span:empty::before { content: "\a0"; }
.replay-value strong { font-size: var(--fs-3); font-weight: 400; }
.replay-value span { font-size: var(--fs-1); }
.replay-value small { color: var(--faint); font: var(--fs-1) var(--font); }
.replay-value .replay-peak { color: var(--text); }
.replay-rate { color: var(--faint); font: var(--fs-1) var(--mono); }
.replay-rate:empty { display: none; }
.price-up { color: var(--up); }
.price-down { color: var(--down); }
.replay-chart { width: 100%; min-width: 0; }
.replay-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--rule); stroke-width: 1; }
.chart-label { fill: var(--faint); font: var(--fs-1) var(--mono); }
.chart-post { stroke: var(--yellow); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
.chart-post-pill { fill: var(--yellow); }
.chart-post-label { fill: var(--canvas); font: 600 var(--fs-1) var(--mono); }
.chart-post-ring { fill: var(--canvas); stroke: var(--yellow); stroke-width: 1.5; }
.chart-current { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; opacity: .45; }
.chart-peak path { fill: none; stroke: var(--yellow); stroke-width: 1; }
.chart-peak circle { fill: var(--yellow); stroke: var(--canvas); stroke-width: 1.5; }
.chart-peak-label { fill: var(--yellow); font: 500 var(--fs-1) var(--mono); paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.candle-up { fill: var(--up); stroke: var(--up); stroke-width: 1; }
.candle-down { fill: var(--down); stroke: var(--down); stroke-width: 1; }
.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.replay-playback, .replay-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.replay-settings { margin-left: auto; }
.replay-controls .button { height: 32px; padding: 0 12px; border-radius: var(--r-s); }
.replay-speed { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-2); }
/* Same fill and ring as the buttons beside it. */
.replay-speed select { height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-s); color: var(--yellow); background-color: rgb(245 197 24 / 0.1); box-shadow: inset 0 0 0 1px rgb(245 197 24 / 0.4); font-weight: 500; transition: background-color var(--motion-feedback) ease; }
.replay-speed select option { background: var(--canvas); color: var(--text); }
.replay-toggle > .icon { transition: transform var(--motion-feedback) var(--ease-out); }
.replay-toggle[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.replay-timeline { display: block; margin: 16px 0 12px; color: var(--muted); font-size: var(--fs-1); }
.replay-timeline > span { display: flex; justify-content: space-between; gap: 12px; }
.replay-timeline output { color: var(--text); font-family: var(--mono); }
.replay-timeline input { display: block; width: 100%; height: 24px; margin: 4px 0 0; accent-color: var(--text); cursor: pointer; }
.replay-message { color: var(--muted); font-size: var(--fs-2); line-height: 1.6; }

/* Home: the closing contact box (assets/fx.css draws the travelling edge light). */
.home-contact { --fx-spot-edge: rgb(245 197 24 / 0.75); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; margin-top: 32px; padding: 32px 48px; border-radius: var(--r-box); background: var(--rule); }
.home-contact p { margin-top: 12px; color: var(--muted); }
.home-contact .text-link { margin-top: 8px; }
.home-contact-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 24px 48px; }
.home-contact-item { min-width: 0; }
.home-contact-item h3 { margin-bottom: 4px; color: var(--muted); font-size: var(--fs-2); font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.home-contact .partner-email { font-size: var(--fs-3); letter-spacing: -0.01em; }
.email-link { display: inline-block; max-width: 100%; color: var(--text); font-size: var(--fs-4); font-weight: 500; letter-spacing: -0.02em; line-height: 1.5; overflow-wrap: anywhere; transition: color var(--motion-feedback) ease; }

/* Source table: rows separated by space, no rules. */
.source-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--fs-2); }
.source-col { width: 36%; }
.lag-col { width: 32%; }
.time-col { width: 16%; }
.delta-col { width: 16%; }
.source-table th[scope="row"] { padding: 8px 0; color: var(--text); font-size: inherit; font-weight: 400; text-align: left; vertical-align: middle; }
.source-table td { padding: 8px 0 8px 8px; vertical-align: middle; }
.source-table .source-lag { padding: 8px 16px; }
.source-lag i { display: block; height: 4px; border-radius: 2px; background: var(--rule-strong); transform: scaleX(var(--lag)); transform-origin: left center; }
.is-apewire .source-lag i { width: 4px; background: var(--yellow); transform: none; }
.source-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.source-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.source-handle { min-width: 0; font-size: var(--fs-2); font-weight: 400; line-height: 1.4; }
.source-time, .source-delta { color: var(--muted); font-family: var(--mono); font-size: var(--fs-2); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.source-delta { text-align: right; line-height: 1.5; }
.source-delta.source-label { white-space: normal; }
.is-apewire .source-handle, .is-apewire .source-time, .is-apewire .source-delta { color: var(--yellow); }
.is-apewire .source-handle { font-weight: 500; }

/* Inner pages. */
.page-heading { padding: 96px 0 32px; }
.page-heading h1, .partner-intro h1, .legal-page h1 { font-size: var(--fs-page); line-height: 1.1; }
.compare-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.compare-heading .compare-average { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; font-size: var(--fs-2); }
.compare-average strong { color: var(--yellow); font: 400 var(--fs-4)/1.4 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-average > span { color: var(--muted); }
.compare-sample { white-space: nowrap; }
.compare-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.filter-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.filter-tab { height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); font-size: var(--fs-2); font-weight: 500; transition: color var(--motion-feedback) ease, background-color var(--motion-feedback) ease; }
.filter-tab[aria-pressed="true"] { color: var(--yellow); background: rgb(245 197 24 / 0.1); }
.filter-tab:active { background: var(--ctl-hover); }
.search-field { display: flex; align-items: center; gap: 8px; width: 320px; max-width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--ctl); box-shadow: inset 0 0 0 1px var(--rule); color: var(--faint); transition: box-shadow var(--motion-feedback) ease; }
.search-field:focus-within { box-shadow: inset 0 0 0 1px var(--muted); }
.search-field input { width: 100%; min-width: 0; height: 32px; padding: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: var(--fs-2); }
.search-field input::placeholder { color: var(--faint); opacity: 1; }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.result-count { margin: 24px 0 12px; color: var(--faint); font-size: var(--fs-2); }
.comparison-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: var(--fs-2); }
.comparison-footer p, .comparison-footer small { color: var(--faint); font-size: var(--fs-1); }
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state h2 { margin-bottom: 8px; font-size: var(--fs-4); font-weight: 500; }
.empty-state p { margin-bottom: 24px; color: var(--muted); font-size: var(--fs-2); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }

.legal-page { max-width: 640px; margin-inline: auto; padding-top: 96px; }
.prose { font-size: var(--fs-3); line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.prose h1, .prose h2, .prose h3 { color: var(--text); }
.prose h1 { margin-bottom: 16px; }
.prose .updated { margin-bottom: 48px; color: var(--faint); font-size: var(--fs-2); }
.prose h2 { margin: 48px 0 12px; font-size: var(--fs-4); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.prose h3 { margin: 32px 0 8px; font-size: var(--fs-3); font-weight: 500; }
.prose p + p { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rule-strong); overflow-wrap: anywhere; transition: text-decoration-color var(--motion-feedback) ease; }
.prose strong { color: var(--text); font-weight: 500; }
.prose .back-link { display: inline-flex; min-height: 32px; align-items: center; margin-bottom: 24px; font-size: var(--fs-2); }

/* Partnerships: one outlined grid split by hairlines. */
.partner-page { padding-top: 96px; }
.partner-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 64px; margin-bottom: 48px; }
.partner-intro > p { max-width: 36ch; color: var(--muted); font-size: var(--fs-4); line-height: 1.5; letter-spacing: -0.01em; }
.partner-grid { border: 1px solid var(--rule); border-radius: var(--r-box); overflow: clip; }
.partner-contacts, .partner-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-contact { min-width: 0; padding: 32px; }
.partner-contact + .partner-contact { border-left: 1px solid var(--rule); }
.partner-powered, .partner-secondary { border-top: 1px solid var(--rule); }
.partner-contact h2, .partner-powered h2 { margin-bottom: 8px; color: var(--muted); font-size: var(--fs-2); font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.partner-email { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 32px; color: var(--text); font-size: var(--fs-4); font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; transition: color var(--motion-feedback) ease; }
.partner-email span { min-width: 0; overflow-wrap: anywhere; }
.partner-email > .icon { color: var(--faint); transition: color var(--motion-feedback) ease, transform var(--motion-feedback) var(--ease-out); }
.partner-secondary .partner-email { font-size: var(--fs-3); letter-spacing: -0.01em; }
.partner-powered { padding: 32px; }
.partner-powered h2 { margin-bottom: 16px; }
.powered-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 64px; }
.powered-partner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.powered-partner > img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r); object-fit: contain; }
.powered-partner > span { display: flex; flex-direction: column; min-width: 0; }
.powered-partner strong { font-size: var(--fs-3); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; transition: color var(--motion-feedback) ease; }
.powered-partner span > span { color: var(--faint); font-size: var(--fs-2); line-height: 1.4; }
.powered-partner > .icon { color: var(--faint); transition: color var(--motion-feedback) ease, transform var(--motion-feedback) var(--ease-out); }

/* Copy controls accompany email links across routes and the persistent footer. */
.email-copy-group { position: relative; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; vertical-align: middle; }
.email-copy-group > a { min-width: 0; overflow-wrap: anywhere; }
.email-copy-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--faint); transition: background-color var(--motion-feedback) ease, color var(--motion-feedback) ease; }
.email-copy-button:active { background: var(--ctl-hover); }
.email-copy-button[data-copied] { color: var(--text-bright); }
.email-copy-status { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 2; width: max-content; max-width: min(240px, 100%); padding: 4px 8px; border-radius: var(--r-s); background: #1a1a1a; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--text); font: var(--fs-1)/1.5 var(--font); pointer-events: none; }
.email-copy-status:empty { display: none; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; padding-block: 24px 32px; background: linear-gradient(var(--rule), var(--rule)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; color: var(--faint); font-size: var(--fs-2); }
.footer-brand { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-left: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; transition: color var(--motion-feedback) ease; }
.footer-socials { display: flex; gap: 4px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-s); transition: color var(--motion-feedback) ease, background-color var(--motion-feedback) ease; }

@media (hover: hover) {
  .nav-link:hover, .text-link:hover, .footer-links a:hover, .wire-item:hover { color: var(--text); }
  .prose a:hover { text-decoration-color: var(--text); }
  .button-primary:hover { background: var(--yellow-bright); }
  :is(.button-accent, .button-secondary, .replay-toggle):hover { background: rgb(245 197 24 / 0.16); }
  .replay-speed select:hover { background-color: rgb(245 197 24 / 0.16); }
  .button:hover::after { animation: button-sheen 650ms var(--ease-out) both; }
  .speed-record summary:hover .speed-title :is(h2, h3) { color: var(--text-bright); }
  .speed-record summary:hover .speed-lead strong { color: var(--yellow-bright); }
  .filter-tab:not([aria-pressed="true"]):hover { color: var(--text); }
  .filter-tab[aria-pressed="true"]:hover { background: rgb(245 197 24 / 0.16); }
  .speed-record summary:hover { background: var(--row-hover); }
  .speed-record summary:hover > .icon { color: var(--yellow); transform: translateY(3px); }
  .speed-record[open]:not(.is-morphing) summary:hover > .icon, .speed-record.is-expanded summary:hover > .icon { transform: rotate(180deg) translateY(3px); }
  .email-link:hover, .partner-email:hover, .powered-partner:hover strong { color: var(--text-bright); }
  .partner-email:hover > .icon, .powered-partner:hover > .icon { color: var(--text); }
  .wire-pause:hover, .email-copy-button:hover, .footer-socials a:hover { color: var(--text); background: var(--ctl); }
  .telegram-menu-item:hover { background: var(--ctl); color: var(--text-bright); }
  .telegram-menu-item:hover .telegram-menu-handle { color: var(--muted); }
}

/* --page-leave-shift (app.js) is minus the scroll distance: the old page fades where it was read, while its box already sits where the new page starts. */
@keyframes page-leave { from { transform: translateY(var(--page-leave-shift, 0px)); } to { opacity: 0; transform: translateY(calc(var(--page-leave-shift, 0px) - 3px)); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(6px); } }
@keyframes replay-enter { from { opacity: 0.85; } }
::view-transition { pointer-events: none; }
::view-transition-group(page-content) { animation: none; }
::view-transition-old(page-content) { animation: page-leave var(--motion-exit) ease both; mix-blend-mode: normal; }
::view-transition-new(page-content) { animation: page-enter var(--motion-state) var(--ease-out) both; mix-blend-mode: normal; }
@media (prefers-reduced-motion: no-preference) {
  .replay-panel:not([hidden]) { animation: replay-enter var(--motion-state) ease-out both; }
  :is(.button, .text-link) > .icon[style*="arrow"] { transition: transform var(--motion-feedback) var(--ease-out); }
  :is(.button, .text-link):focus-visible > .icon[style*="arrow-right"] { transform: translateX(2px); }
  :is(.partner-email, .powered-partner):focus-visible > .icon[style*="arrow"] { transform: translate(2px, -2px); }
  @media (hover: hover) {
    :is(.button, .text-link):hover > .icon[style*="arrow-right"] { transform: translateX(2px); }
    :is(.button, .text-link, .partner-email, .powered-partner):hover > .icon[style*="arrow-up-right"] { transform: translate(2px, -2px); }
  }
}

@media (pointer: coarse) {
  .replay-toggle, .filter-tab, .replay-controls .button, .replay-speed select { height: 40px; min-height: 40px; }
  .email-copy-button, .footer-socials a, .wire-pause { width: 40px; height: 40px; flex-basis: 40px; }
  .button-small, .search-field input { height: 40px; }
  .text-link, .partner-email, .footer-links a, .telegram-menu-item { min-height: 40px; }
  /* Taller track so the thumb is easy to grab; negative margins keep the old spacing. */
  .replay-timeline input { height: 40px; margin: -4px 0 -8px; }
  /* Wider hit area without moving the links. */
  .nav-link::before { content: ""; position: absolute; inset: 0 -8px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 80px; }
  html { scroll-padding-top: 112px; }
  .nav-inner { height: auto; flex-wrap: wrap; row-gap: 0; }
  .nav-inner > .wordmark, .nav-actions { height: 56px; display: flex; align-items: center; }
  .primary-nav { order: 3; width: 100%; height: 40px; align-self: auto; }
  .nav-actions .telegram-menu { position: static; }
  .header-telegram { width: 32px; padding: 0; }
  .header-telegram span, .header-telegram .telegram-chevron, .nav-actions .button-primary > .icon { display: none; }
  .wire-label { padding: 0 12px; }
  .wire-status { flex-basis: 96px; }
  .home-intro { padding-bottom: 64px; }
  .intro-description { font-size: var(--fs-3); }
  .intro-actions { margin-top: 32px; }
  .speed-heading { flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
  .speed-record summary { grid-template-columns: minmax(0, 1fr) 16px; gap: 12px 16px; padding: 16px; }
  .speed-title { grid-column: 1; grid-row: 1; }
  .speed-title :is(h2, h3) { font-size: var(--fs-3); line-height: 1.45; }
  .speed-lead { grid-column: 1; grid-row: 2; align-items: flex-start; text-align: left; }
  .speed-lead strong { font-size: var(--fs-3); }
  .speed-record summary > .icon { grid-column: 2; grid-row: 1; align-self: start; margin-top: 4px; }
  .speed-record-body { padding: 0 16px 16px; }
  .lag-col, .source-lag { display: none; }
  .source-col { width: 50%; }
  .time-col { width: 28%; }
  .delta-col { width: 22%; }
  .source-identity { gap: 8px; }
  .source-avatar { width: 24px; height: 24px; flex-basis: 24px; }
  .source-handle, .source-time, .source-delta { font-size: var(--fs-1); }
  .source-handle { overflow-wrap: anywhere; }
  .source-row-content { align-items: flex-start; flex-direction: column; gap: 8px; }
  .replay-settings { width: 100%; margin-left: 0; }
  .home-contact { align-items: flex-start; flex-direction: column; gap: 24px; padding: 24px; }
  .home-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .desktop-break { display: none; }
  .page-heading, .partner-page, .legal-page { padding-top: 64px; }
  .page-heading { padding-bottom: 24px; }
  .search-field { width: 100%; }
  .partner-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
  .partner-intro > p { font-size: var(--fs-3); }
  .partner-intro-break { display: none; }
  .partner-contacts, .partner-secondary, .powered-list { grid-template-columns: minmax(0, 1fr); }
  .partner-contact, .partner-powered { padding: 24px; }
  .partner-contact + .partner-contact { border-left: 0; border-top: 1px solid var(--rule); }
  .partner-email { font-size: var(--fs-3); }
  .site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .footer-socials { grid-column: 2; grid-row: 1; }
}
@media (max-width: 720px) and (pointer: coarse) {
  .nav-actions .header-telegram { width: 40px; }
}
/* Narrow phones: nav, footer links and emails stay on one line each. */
@media (max-width: 360px) {
  .primary-nav { gap: 16px; }
  .footer-links { column-gap: 16px; font-size: var(--fs-1); }
  .partner-contact, .partner-powered, .home-contact { padding: 16px; }
  .partner-email, .home-contact .partner-email, .partner-secondary .partner-email { font-size: var(--fs-2); }
  .partner-email > .icon[style*="arrow-up-right"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(page-content), ::view-transition-new(page-content), ::view-transition-group(page-content) { animation: none; }
  .wire-viewport { overflow-x: auto; }
  .wire-group[aria-hidden] { display: none; }
}

/* Phones: a field under 16px makes iOS zoom the page when tapped. */
@media (max-width: 480px), (pointer: coarse) { .search-field input, .replay-speed select { font-size: var(--fs-3); } }

/* API access: centred like the home page: headline, three figures, the trial form, then the proof list. */
.api-page { display: grid; justify-items: center; gap: 32px; }
.api-description { max-width: 44ch; }
.api-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.api-page .home-intro { padding-bottom: 16px; }
.api-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 720px; margin: 0; border: 1px solid var(--rule); border-radius: var(--r-box); text-align: center; }
.api-stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 24px 16px; }
.api-stats div + div { border-left: 1px solid var(--rule); }
.api-stats dt { color: var(--muted); font-size: var(--fs-2); }
.api-stats dd { margin: 0; color: var(--yellow); font: 400 var(--fs-h2)/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.api-form { --fx-spot-edge: rgb(245 197 24 / 0.75); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; width: 100%; max-width: 720px; padding: 32px; border-radius: var(--r-box); background: var(--rule); }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.api-form > .button, .api-form-note, .api-form-error, .api-done { grid-column: 1 / -1; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-2); }
.field label small { color: var(--faint); font-size: var(--fs-1); }
.field input { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--text); font-size: var(--fs-3); transition: box-shadow var(--motion-feedback) ease; }
.field input::placeholder { color: var(--faint); opacity: 1; }
.field input:focus-visible { outline-offset: 0; }
.button:disabled { opacity: 0.6; cursor: default; }
.api-form-note, .api-form-error { font-size: var(--fs-1); }
.api-form-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; color: var(--muted); }
.api-form-error { color: var(--down); }
:is(.api-form-note, .api-form-error) a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; transition: color var(--motion-feedback) ease; }
.api-done { text-align: center; }
.api-done:focus { outline: none; }
.api-done h2 { font-size: var(--fs-4); font-weight: 500; }
.api-done p { margin-top: 8px; color: var(--muted); font-size: var(--fs-2); }
@media (hover: hover) {
  .field input:hover { box-shadow: inset 0 0 0 1px var(--muted); }
  :is(.api-form-note, .api-form-error) a:hover { color: var(--text-bright); }
}
@media (max-width: 720px) {
  .api-form { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .api-stats div { padding: 16px 8px; }
  .api-stats dd { font-size: var(--fs-4); }
  .api-stats dt { font-size: var(--fs-1); }
}

/* Internal comparison & competitor benchmark links (minimal terminal styling). */
.source-handle-link { transition: color var(--motion-feedback) ease; }
.comparison-permalink { margin-left: auto; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 48px; color: var(--faint); font-size: var(--fs-2); }
.breadcrumbs a { color: var(--muted); transition: color var(--motion-feedback) ease; }
.breadcrumbs span[aria-current="page"] { color: var(--text); }

/* Competitor benchmark chip strip on /compare and /vs/<slug>. */
.vs-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.vs-strip-label { color: var(--faint); font-size: var(--fs-1); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.vs-strip-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vs-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--r-s); background: var(--panel); color: var(--muted); font-size: var(--fs-2); transition: border-color var(--motion-feedback) ease, color var(--motion-feedback) ease, background-color var(--motion-feedback) ease; }
.vs-chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: 0 0 18px; }
.vs-chip-count { color: var(--faint); font: 400 var(--fs-1)/1 var(--mono); font-variant-numeric: tabular-nums; }
.vs-chip-all { border-color: rgb(245 197 24 / 0.35); color: var(--yellow); background: rgb(245 197 24 / 0.06); }

/* Dedicated comparison permalink page (/compare/<id>). */
.story-page { max-width: 900px; margin-inline: auto; padding-bottom: 48px; }
.story-header { padding: 24px 0 32px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; color: var(--faint); font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.story-lead { color: var(--yellow); font-family: var(--mono); }
.story-badge { padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: var(--r-s); color: var(--muted); font-size: var(--fs-1); font-family: var(--mono); }
.story-header h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.03em; color: var(--text-bright); }
.story-summary { margin-top: 16px; color: var(--muted); font-size: var(--fs-3); line-height: 1.6; }
.story-card { padding: 24px; border: 1px solid var(--rule); border-radius: var(--r-box); background: var(--panel); }
.story-card .comparison-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.story-related { margin-top: 48px; }
.story-related-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.story-related-header h2 { font-size: var(--fs-4); font-weight: 500; }
.related-list { border: 1px solid var(--rule); border-radius: var(--r-box); overflow: clip; }
.related-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; padding: 16px 20px; transition: background-color var(--motion-feedback) ease; }
.related-item + .related-item { border-top: 1px solid var(--rule); }
.related-title { color: var(--text); font-size: var(--fs-2); font-weight: 500; min-width: 0; }
.related-meta { display: flex; align-items: baseline; gap: 12px; flex: 0 0 auto; white-space: nowrap; }
.related-meta time { color: var(--faint); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.related-meta strong { color: var(--yellow); font: 400 var(--fs-2)/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.story-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* Competitor benchmark index (/vs) and detail (/vs/<slug>). */
.vs-index-page .page-heading, .vs-detail-page .page-heading { padding-top: 24px; }
.vs-intro { max-width: 62ch; margin-bottom: 32px; color: var(--muted); font-size: var(--fs-3); line-height: 1.6; }
.vs-list { border: 1px solid var(--rule); border-radius: var(--r-box); overflow: clip; }
.vs-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; transition: background-color var(--motion-feedback) ease; }
.vs-row + .vs-row { border-top: 1px solid var(--rule); }
.vs-row-source { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vs-row-source img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
.vs-row-source h2 { font-size: var(--fs-3); font-weight: 500; color: var(--text); }
.vs-row-source p { margin-top: 2px; color: var(--faint); font-size: var(--fs-2); }
.vs-row-metrics { display: flex; align-items: center; gap: 28px; flex: 0 0 auto; }
.vs-metric { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.vs-metric strong { color: var(--yellow); font: 400 var(--fs-4)/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-metric span { color: var(--faint); font-size: var(--fs-1); white-space: nowrap; }
.vs-row-metrics > .icon { color: var(--faint); }
.vs-cta { display: flex; justify-content: center; margin-top: 32px; }
.vs-detail-title { display: flex; align-items: flex-start; gap: 20px; }
.vs-detail-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; margin-top: 4px; }
.vs-detail-title .vs-intro { margin: 12px 0 0; }
.vs-stats { max-width: none; margin-bottom: 32px; }
.vs-other { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.vs-other h2 { margin-bottom: 16px; color: var(--muted); font-size: var(--fs-2); font-weight: 500; }

/* Custom 404 page. */
.not-found-page { max-width: 560px; margin-inline: auto; padding: 96px 0; text-align: center; }
.not-found-code { color: var(--yellow); font: 400 var(--fs-3)/1 var(--mono); letter-spacing: 0.08em; margin-bottom: 12px; }
.not-found-page h1 { font-size: var(--fs-page); }
.not-found-text { margin-top: 12px; color: var(--muted); }

@media (hover: hover) {
  .source-handle-link:hover { color: var(--text-bright); text-decoration: underline; text-decoration-color: var(--rule-strong); }
  .breadcrumbs a:hover { color: var(--text); }
  .vs-chip:hover { border-color: var(--rule-strong); color: var(--text); background: var(--ctl); }
  .vs-chip-all:hover { border-color: rgb(245 197 24 / 0.55); color: var(--yellow-bright); background: rgb(245 197 24 / 0.14); }
  .related-item:hover, .vs-row:hover { background: var(--row-hover); }
  .vs-row:hover .vs-row-source h2 { color: var(--text-bright); }
  .vs-row:hover .vs-row-metrics > .icon { color: var(--yellow); transform: translateX(2px); }
}

@media (max-width: 720px) {
  .breadcrumbs { padding-top: 28px; }
  .comparison-permalink { margin-left: 0; }
  .story-card { padding: 16px; }
  .related-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
  .vs-row { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
  .vs-row-metrics { width: 100%; justify-content: space-between; gap: 16px; }
  .vs-metric { align-items: flex-start; text-align: left; }
  .vs-detail-title { gap: 12px; }
  .vs-detail-avatar { width: 36px; height: 36px; flex-basis: 36px; }
}
