/* ==========================================================================
   isitdownrightnow.app · "Road traffic report" preview (local only until approved)
   The live layout (assets/v3/site.css) in the road world: asphalt header, a blue
   motorway-sign panel, an LED line for the live state and the last 24 hours as a
   traffic-flow road strip. Fonts: Barlow, served from this site.
   ========================================================================== */

/* ---------- fonts: Barlow, Barlow Semi Condensed (SIL Open Font License) ---------- */
/* Barlow 400 latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/barlow-400-latin-ext-c10e6afb.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow 400 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/barlow-400-latin-1793b6dd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow 600 latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-600-latin-ext-7792696b.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow 600 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-600-latin-635ba4a4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow 700 latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-700-latin-ext-d81c2f8d.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow 700 latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-700-latin-5bb2752c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow Semi Condensed 600 latin-ext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-semi-condensed-600-latin-ext-60daa2ea.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow Semi Condensed 600 latin */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlow-semi-condensed-600-latin-809b18ac.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Barlow Semi Condensed 700 latin-ext */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-semi-condensed-700-latin-ext-e3511aa3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Barlow Semi Condensed 700 latin */
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlow-semi-condensed-700-latin-5debb06b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens: asphalt (default) ---------- */
:root {
  color-scheme: dark;
  --bg: #121417;
  --surface: #1b1e22;
  --surface-2: #23272c;
  --line: #2c3036;
  --line-2: #3a3f46;
  --line-3: #4f565f;
  --text: #eef0f3;
  --text-2: #bcc3cc;
  --text-3: #8f98a4;
  --accent: #8fb6f5;
  --bar: #4a515b;
  --ok: #43cf86;   --ok-tint: rgba(47, 179, 107, .14);
  --warn: #f2b03a; --warn-tint: rgba(242, 165, 22, .14);
  --bad: #ff6153;  --bad-tint: rgba(224, 53, 43, .16);
  --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .6);

  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sign-font: "Barlow Semi Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --mono: "Barlow Semi Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;   /* numbers: sign lettering, tabular */
  --code: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;                /* commands and addresses */
  --fs-answer: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  --fs-h1: clamp(1.0625rem, 1rem + .45vw, 1.25rem);
  --fs-h2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  /* the road world */
  --sign: #1d4f9c;          /* motorway sign blue */
  --sign-2: #163f80;
  --asphalt: #0d0f11;       /* header and footer, both themes */
  --led: #ffb000;           /* the live message line */
  --flow: #2fb36b; --slow: #f2a516; --jam: #e0352b;   /* one state vocabulary: strips, bars, pills */

  --st: var(--ok);
  --st-tint: var(--ok-tint);
  --st-led: #3ddc84;        /* the LED lamp: the live state, bright enough for the black plate */
  --slow-mark: #f2a516;     /* amber bars and dots on the page surface */
  --theme-color: #0d0f11;   /* the browser bar matches the asphalt header in both themes */
}
/* ---------- tokens: concrete (light) ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #eceef1;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --line: #d8dce1;
  --line-2: #c5cad1;
  --line-3: #a9b0b9;
  --text: #15171a;
  --text-2: #3c424a;
  --text-3: #5b626d;
  --accent: #1d55b0;
  --bar: #c3c8cf;
  --ok: #126b3e;   --ok-tint: rgba(47, 179, 107, .13);
  --warn: #875300; --warn-tint: rgba(242, 165, 22, .17);
  --bad: #b42219;  --bad-tint: rgba(224, 53, 43, .12);
  --shadow-pop: 0 18px 50px -14px rgba(20, 22, 26, .22);
  --slow-mark: #b97700;
}
[data-status="warning"] { --st: var(--warn); --st-tint: var(--warn-tint); --st-led: var(--led); }
[data-status="danger"]  { --st: var(--bad);  --st-tint: var(--bad-tint); --st-led: #ff4a3d; }
[data-status="gone"]    { --st: var(--text-3); --st-tint: rgba(109, 117, 131, .14); --st-led: #8f98a4; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ico { flex: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 15.5px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.brand b { font-weight: 500; color: var(--text-3); }
.hdr-search { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.hdr-search > .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.hdr-search input {
  width: 100%; height: 40px; padding: 0 40px 0 38px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: 400 14.5px var(--font);
  transition: border-color .15s, background .15s;
}
.hdr-search input::placeholder { color: var(--text-3); }
.hdr-search input:focus { outline: none; border-color: var(--line-3); background: var(--surface-2); }
.hdr-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11.5px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.hdr-nav { display: flex; align-items: center; gap: 6px; }
.hdr-nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.hdr-nav a:hover { color: var(--text); background: var(--surface-2); }
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-3); }
.theme-dark-only { display: none; }
[data-theme="light"] .theme-dark-only { display: block; }
[data-theme="light"] .theme-light-only { display: none; }
.search-toggle { display: none; }
.results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 6px; box-shadow: var(--shadow-pop); max-height: min(420px, 70vh); overflow: auto;
}
.results[hidden] { display: none; }
.results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.results a:hover, .results a[aria-selected="true"] { background: var(--surface-2); }
.results .r-status { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.results .r-empty { padding: 14px 12px; color: var(--text-3); font-size: 14px; }

/* ---------- status dots & pills ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.warning { background: var(--warn); }
.dot.danger { background: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-tint); }
.pill.warning { color: var(--warn); background: var(--warn-tint); }
.pill.danger { color: var(--bad); background: var(--bad-tint); }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 28px 0 16px; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .ico { opacity: .55; }

/* ---------- hero: the answer ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(1000px 440px at 0% 0%, var(--st-tint), transparent 62%), var(--surface);
}
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--st), transparent 72%); }
.svc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.svc-logo img { width: 28px; height: 28px; object-fit: contain; }
.svc-name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.svc-domain { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 14px; text-decoration: none; }
.svc-domain:hover { color: var(--text-2); }
.live { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.live .dot { background: var(--st); animation: ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.hero-q { margin-top: 28px; font-size: var(--fs-h1); font-weight: 500; line-height: 1.35; letter-spacing: -.012em; color: var(--text-2); }
.hero-q span { color: var(--text-3); font-weight: 400; }
.answer { position: relative; margin-top: 6px; padding-left: .5em; font-size: var(--fs-answer); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; color: var(--text); text-wrap: balance; }
.answer-dot { position: absolute; left: .02em; top: .38em; width: .3em; height: .3em; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 .09em var(--st-tint); }
.answer-detail { margin-top: 18px; font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); color: var(--text-2); max-width: 58ch; line-height: 1.55; }
.hero-meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-shot { width: 340px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); overflow: hidden; box-shadow: var(--shadow-pop); }
.hero-shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--text-3); }
.hero-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); }
.hero-shot-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; background: var(--surface-2); }
.answer.is-long { font-size: calc(var(--fs-answer) * .8); }
.answer.is-xlong { font-size: calc(var(--fs-answer) * .68); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn[aria-pressed="true"] { color: var(--st); border-color: color-mix(in srgb, var(--st) 45%, transparent); background: var(--st-tint); }

/* ---------- chart + metrics ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.chart-panel { margin-top: 20px; padding: 26px var(--pad) 0; --pad: clamp(18px, 3vw, 30px); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.panel-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.panel-sub { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-3); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--bar); }
.legend i.c1 { background: var(--warn); }
.legend i.c2 { background: var(--bad); }
.legend i.base { height: 0; width: 14px; border-radius: 0; background: none; border-top: 1.5px dashed var(--text-3); }
.chart { position: relative; margin: 22px 0 0; padding-left: 40px; }
/* scale labels live in their own left gutter, so they can never cover a bar (the newest data is on the right) */
.chart .ymax, .chart .ymid { position: absolute; left: 0; width: 32px; text-align: right; transform: translateY(-50%); font: 500 11.5px var(--mono); color: var(--text-3); line-height: 1; pointer-events: none; }
.chart .ymax { top: 4%; }
.chart + .axis { padding-left: 40px; }
.chart svg { width: 100%; height: 220px; overflow: visible; }
.chart .b { fill: var(--bar); transition: fill .12s; }
.chart .b.c1 { fill: var(--warn); }
.chart .b.c2 { fill: var(--bad); }
.chart .b.is-hot { fill: var(--text); }
.chart .base { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis { display: flex; justify-content: space-between; margin-top: 10px; font: 500 12px var(--mono); color: var(--text-3); }
.tip {
  position: absolute; z-index: 5; top: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 10px));
  min-width: 148px; padding: 9px 12px; border-radius: 10px; background: var(--text); color: var(--bg);
  font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-pop); white-space: nowrap;
}
.tip[hidden] { display: none; }
.tip b { font: 600 15px var(--mono); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px calc(-1 * var(--pad)) 0; border-top: 1px solid var(--line); }
.metric { padding: 20px var(--pad) 22px; border-left: 1px solid var(--line); min-width: 0; }
.metric:first-child { border-left: 0; }
.metric-label { font-size: 13px; color: var(--text-3); }
.metric-value { margin-top: 6px; font: 600 1.625rem/1.15 var(--mono); letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-sub { margin-top: 6px; display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.metric-sub.up { color: var(--bad); }
.metric-sub.down { color: var(--ok); }

/* ---------- jump bar (mobile table of contents) ---------- */
.jump { display: none; gap: 8px; margin: 20px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 14px; white-space: nowrap; }

/* ---------- page layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; margin-top: 72px; align-items: start; }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.others { margin-top: 96px; }
.others-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 26px; align-items: start; }
.links-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 20px; }
.links-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14.5px; }
.links-grid a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.links-grid span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.sec + .sec { margin-top: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; margin-bottom: 12px; }
.sec-title { font-size: var(--fs-h2); font-weight: 650; letter-spacing: -.028em; line-height: 1.2; }
.sec-lead { margin-top: 12px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; max-width: 66ch; }
.sec-lead + .sec-lead { margin-top: 10px; }
.sec-lead strong, .prose strong { color: var(--text); font-weight: 600; }

/* incidents */
.inc-list { list-style: none; margin: 26px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.inc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.inc:first-child { border-top: 0; }
.inc-main { font-size: 15px; font-weight: 500; }
.inc-sub { font-size: 13.5px; color: var(--text-3); }
.inc-peak { text-align: right; font-size: 13px; color: var(--text-2); }
.inc-peak .num { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.empty { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text-2); }
.empty .ico { color: var(--ok); margin-top: 2px; }
.empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* fix steps */
.steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
}
.step h3 { margin-top: 5px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.step p { margin-top: 6px; color: var(--text-2); line-height: 1.7; }

/* device tabs */
.tabs { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.tablist { display: none; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.js .tablist { display: flex; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 500; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.tabpanel { padding: 24px; }
.tabpanel + .tabpanel { border-top: 1px solid var(--line); }
.js .tabpanel + .tabpanel { border-top: 0; }
.js .tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.kv dt { font-size: 13px; font-weight: 600; color: var(--text-3); padding-top: 3px; }
.kv dd { margin: 0; color: var(--text-2); line-height: 1.7; }
.cmds { margin-top: 20px; display: grid; gap: 10px; }
.cmds-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-top: 20px; }
.cmd { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); }
.cmd-body { min-width: 0; flex: 1; }
.cmd code { display: block; font: 500 13.5px var(--mono); color: var(--text); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.copy { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--line-3); }
.copy.is-done { color: var(--ok); }

/* long-form copy */
.prose { margin-top: 22px; color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; max-width: 68ch; }
.prose p + p { margin-top: 1.05em; }
.prose h3 { margin: 30px 0 10px; color: var(--text); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }

/* FAQ */
.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.faq summary .ico { color: var(--text-3); transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq summary:hover h3 { color: var(--text); }
.faq .ans { padding: 0 44px 24px 0; color: var(--text-2); line-height: 1.75; max-width: 70ch; }

/* methodology note */
.method { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.method .sec-title { font-size: 1.125rem; }
.method p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* posts from X */
.posts { margin-top: 24px; display: grid; gap: 12px; }
.post { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.post-meta a { margin-left: auto; color: var(--text-2); text-decoration: none; }
.post-meta a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.post-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.post-head img { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); }
.post-head b { font-weight: 600; }
.post-head span { color: var(--text-3); }
.post p { margin-top: 10px; color: var(--text-2); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.post-meta { margin-top: 12px; display: flex; gap: 16px; font-size: 12.5px; color: var(--text-3); }

/* ---------- sidebar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .01em; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 10px; margin: 0 -10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--st); }
.channels { list-style: none; margin: 0; padding: 0; }
.channels a { display: flex; align-items: center; gap: 12px; margin: 0 -8px; padding: 10px 8px; border-radius: 9px; text-decoration: none; color: var(--text); }
.channels a:hover { background: var(--surface-2); }
.channels .ico { color: var(--text-3); }
.ch-text { min-width: 0; flex: 1; }
.ch-text b { display: block; font-size: 14.5px; font-weight: 500; }
.ch-text span { display: block; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channels .go { color: var(--text-3); }
.card-note { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); line-height: 1.55; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.rel { list-style: none; margin: 0; padding: 0; }
.rel a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14.5px; }
.rel li:first-child a { border-top: 0; padding-top: 2px; }
.rel a:hover .rel-name { text-decoration: underline; text-underline-offset: 3px; }
.rel-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel .num { font-size: 12.5px; color: var(--text-3); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.card-more:hover { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { margin-top: 112px; border-top: 1px solid var(--line); padding: 44px 0 64px; color: var(--text-3); font-size: 14px; }
.ftr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ftr p { max-width: 56ch; line-height: 1.65; margin-top: 12px; }
.ftr-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.ftr-nav a { color: var(--text-2); text-decoration: none; }
.ftr-nav a:hover { color: var(--text); }
.ftr-copy { margin-top: 28px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 56px; }
  .side { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .others-grid { grid-template-columns: minmax(0, 1fr); }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side .toc { display: none; }
  .jump { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .hdr { gap: 10px; }
  .hdr-nav { display: none; }
  .hdr-search { display: none; }
  .search-toggle { display: grid; margin-left: auto; }
  .site-header.search-open .hdr-search { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); max-width: none; margin: 0; }
  .site-header.search-open .hdr-search input { height: 46px; background: var(--surface-2); box-shadow: var(--shadow-pop); }
  .hdr-search kbd { display: none; }
  .crumbs { margin-top: 18px; }
  .hero { border-radius: 16px; }
  .hero-q { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 0; padding: 0 12px; font-size: 14.5px; }
  .hero-actions .btn-primary { flex-basis: 100%; }
  .hide-sm { display: none; }
  .chart svg { height: 170px; }
  .chart, .chart + .axis { padding-left: 32px; }
  .chart .ymax, .chart .ymid { width: 26px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .metric-value { font-size: 1.375rem; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .others { margin-top: 72px; }
  .links-grid { grid-template-columns: minmax(0, 1fr); }
  .sec + .sec { margin-top: 64px; }
  .inc { grid-template-columns: minmax(0, 1fr) auto; }
  .inc .pill { grid-column: 1 / -1; justify-self: start; }
  .faq .ans { padding-right: 0; }
  .tabpanel { padding: 20px 18px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd + dt { margin-top: 12px; }
  .ftr { grid-template-columns: minmax(0, 1fr); }
  .ftr-nav { justify-content: flex-start; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .hero-actions, .side, .jump, .site-footer, .tabs .tablist { display: none !important; }
  .js .tabpanel[hidden] { display: block !important; }
  body { background: #fff; color: #000; }
}

/* live status-change notice (shown by app.js when the 60s poll sees a new status) */
.status-change { margin-top: 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--st-tint); border: 1px solid color-mix(in srgb, var(--st) 35%, transparent); font-size: 14px; color: var(--text); }
.status-change[hidden] { display: none; }
.status-change a { color: var(--text); font-weight: 600; }
.show-sm { display: none; }
@media (max-width: 760px) { .show-sm { display: inline; } }

/* ==========================================================================
   Homepage
   ========================================================================== */
.home-hero { max-width: 860px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.home-eyebrow { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; font-size: 13.5px; color: var(--text-3); }
.home-title { margin-top: 22px; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
.home-lead { margin: 20px auto 0; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--text-2); line-height: 1.55; }
.big-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 34px auto 0; padding: 7px 7px 7px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-pop); text-align: left; }
.big-search:focus-within { border-color: var(--line-3); }
.big-search > .ico { color: var(--text-3); }
.big-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: 400 17px var(--font); }
.big-search input::placeholder { color: var(--text-3); }
.big-search input:focus { outline: none; }
.big-search .btn { height: 46px; border-radius: 11px; }
.big-search .results { top: calc(100% + 10px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; max-width: 600px; margin: 22px auto 0; padding: 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.chips a:hover { color: var(--text); border-color: var(--line-3); background: var(--surface); }
.summary { padding: 0 var(--pad); --pad: clamp(18px, 3vw, 30px); }
.summary .metrics { margin-top: 0; border-top: 0; }
.metric-name { font-family: var(--font); letter-spacing: -.02em; }
.metric-name a { color: var(--text); text-decoration: none; }
.metric-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-sec { margin-top: 88px; }
.tiles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.tile:hover { border-color: var(--line-3); background: var(--surface-2); }
.tile-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tile-top img { width: 28px; height: 28px; flex: none; border-radius: 8px; background: #fff; object-fit: contain; padding: 3px; }
.tile-top b { min-width: 0; flex: 1; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { width: 100%; height: 28px; }
.spark .s0 { fill: var(--bar); }
.spark .s1 { fill: var(--warn); }
.spark .s2 { fill: var(--bad); }
.tile:hover .spark .s0 { fill: var(--line-3); }
.tile-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.tile-meta .num { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
.tiles-wide .tile-meta .num { margin-left: 0; color: var(--text); font-size: 13px; font-weight: 600; }
.browse { margin-top: 22px; }
.how { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: how; }
.how li { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; font: 600 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line-2); }
.how b { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.how span { display: block; margin-top: 8px; color: var(--text-2); line-height: 1.65; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .home-hero { text-align: left; padding-top: 32px; }
  .home-eyebrow, .chips { justify-content: flex-start; }
  .chips { margin-left: 0; }
  .home-lead { margin-left: 0; }
  .big-search { margin-left: 0; padding-left: 14px; }
  .big-search .btn { display: none; }
  .tiles, .tiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .home-sec { margin-top: 64px; }
}
@media (max-width: 420px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Documents (privacy, terms) and other text pages
   ========================================================================== */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) 0 0; }
.doc-title { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; }
.doc-meta { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.doc .prose { max-width: none; margin-top: 30px; }
.doc .prose h2 { margin: 40px 0 12px; color: var(--text); font-size: 1.3125rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.doc .prose ul, .doc .prose ol { margin: 12px 0 0; padding-left: 1.3em; }
.doc .prose li + li { margin-top: 8px; }
.doc .prose a { color: var(--accent); text-underline-offset: 3px; }
.doc .prose a:hover { text-decoration-thickness: 2px; }
.doc-foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* ==========================================================================
   Services directory
   ========================================================================== */
.dir-hero { padding: clamp(8px, 2vw, 20px) 0 28px; }
.dir-hero .home-eyebrow { justify-content: flex-start; }
.dir-hero .doc-title { margin-top: 18px; max-width: 18ch; }
.dir-intro { margin-top: 18px; max-width: 70ch; color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; }
.dir-intro p + p { margin-top: .9em; }
.dir-intro strong { color: var(--text); font-weight: 600; }
.dir-tools { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dir-search { position: relative; flex: 1 1 360px; max-width: 520px; }
.dir-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.dir-search input { width: 100%; height: 48px; padding: 0 16px 0 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); font: 400 16px var(--font); }
.dir-search input::placeholder { color: var(--text-3); }
.dir-search input:focus { outline: none; border-color: var(--line-3); background: var(--surface-2); }
.dir-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.dir-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.dir-count { width: 100%; font-size: 13.5px; color: var(--text-3); min-height: 1em; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.cat-nav a:hover { color: var(--text); border-color: var(--line-3); background: var(--surface); }
.cat-nav .num { font-size: 12px; color: var(--text-3); }
.dir-sec { margin-top: 72px; scroll-margin-top: calc(var(--header-h) + 24px); }
.dir-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.dir-n { font-size: 14px; color: var(--text-3); }
.dir-sec .sec-lead { max-width: 72ch; }
.dir-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.dir-grid li { min-width: 0; }
.dir-item { display: flex; align-items: center; gap: 11px; height: 48px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14.5px; }
.dir-item img { width: 20px; height: 20px; flex: none; border-radius: 5px; background: #fff; object-fit: contain; }
.dir-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-item:hover .dir-name { text-decoration: underline; text-underline-offset: 3px; }
.dir-r { font-size: 12px; color: var(--text-3); }
.dir-item .pill { height: 22px; font-size: 11.5px; padding: 0 8px; }
.dir-none { margin-top: 40px; }
.dir-none[hidden] { display: none; }
.js [data-filter-section][hidden], [data-filter] ~ * [hidden] { display: none; }
@media (max-width: 1100px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; } .dir-sec { margin-top: 56px; } }
@media (max-width: 420px) { .dir-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Not found (404 / 503) ---------- */
.home-title.is-sm { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.nf-code { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px/1 var(--mono); color: var(--text-2); }
.nf-dym { margin-top: 30px; font-size: 14px; color: var(--text-3); }
.nf-chips { margin-top: 12px; }
.nf-sec { margin-top: 48px; }
@media (max-width: 760px) { .nf-chips { justify-content: flex-start; } }
.nf-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* ---------- Monthly reports ---------- */
.rp-note { margin-top: 16px; max-width: 70ch; font-size: 14px; line-height: 1.65; color: var(--text-3); }
.rp-sec { margin-top: 72px; }
.rp-sec .sec-lead { max-width: 70ch; }
.chart .b.nd { fill: var(--line-2); }
.chart-panel .chart svg.rp-days { height: 180px; }
.chart-panel .chart svg.rp-hours { height: 140px; }
.rp-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rp-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.rp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; color: var(--text-2); }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-table .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.rp-table th.n { color: var(--text-3); font-family: var(--font); }
.rp-table .rk { width: 1%; padding-right: 0; font-family: var(--mono); color: var(--text-3); }
.rp-svc { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
.rp-svc img { width: 22px; height: 22px; flex: none; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.rp-svc:hover { text-decoration: underline; text-underline-offset: 3px; }
.rp-table .nowrap { white-space: nowrap; }
.pill.neutral { color: var(--text-2); background: var(--surface-2); }
.rp-cats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-cat { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rp-cat h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.rp-cat h3 a { color: var(--text); text-decoration: none; }
.rp-cat h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rp-cat-n { margin-top: 10px; font: 600 1.375rem/1.2 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.rp-cat-n span { margin-left: 6px; font: 400 13px var(--font); color: var(--text-3); }
.rp-cat p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.rp-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; }
.rp-months { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.rp-month { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.rp-month:hover { border-color: var(--line-3); background: var(--surface-2); }
.rp-month h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.rp-month p { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.rp-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.rp-teaser p { font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 70ch; }
.rp-teaser b { color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .rp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rp-cats { grid-template-columns: minmax(0, 1fr); }
  .rp-table th, .rp-table td { padding: 10px 12px; }
  .rp-hide-sm { display: none; }
  .rp-table td.rp-when { white-space: normal; min-width: 7.5em; }
  .rp-sec { margin-top: 56px; }
  .rp-month { padding: 18px; }
}

/* ---------- Service history (last 30 days) ---------- */
.hist-chart { margin-top: 20px; }
.hist-chart svg { height: 120px; }
.hist-more { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.hist-note { margin-top: 14px; max-width: 70ch; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.hist-note a { color: var(--text-2); }

/* ---------- Official status (the service's own status page) ---------- */
.official-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.official-line .dot { margin-top: 7px; flex: none; }
.official-line b { color: var(--text); font-weight: 600; }
.official-line a { color: var(--text-2); }
.official-line.is-danger b { color: var(--bad); }
.official-line.is-warning b { color: var(--warn); }
.dot.neutral { background: var(--text-3); box-shadow: none; }
.official { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.official.is-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.official.is-warning { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.official-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.official-src { font-size: 13.5px; color: var(--text-3); }
.official-src a, .official-list a { color: var(--text-2); }
.official-sub { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.official-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.official-list li { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.official-list b { display: block; color: var(--text); font-weight: 600; }
.official-list span { color: var(--text-3); font-size: 13.5px; }
.official-comps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.official-comps li { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text); }
.official-comps li span { color: var(--warn); margin-left: 4px; }
.official-comps li.more { color: var(--text-3); }
.official-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--text-3); }
.hero-spike { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line-3); }
.hero-spike:hover { color: var(--text); }

/* ---------- Servers and network ---------- */
.tech-grid { margin: 18px 0 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.tech-grid > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); }
.tech-grid > div:first-child { border-top: 0; }
.tech-grid dt { font-size: 13.5px; color: var(--text-3); }
.tech-grid dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.tech-grid .ip { font-family: var(--mono); font-size: 14px; color: var(--text); }
.ip-more { margin-top: 6px; }
.ip-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); list-style: none; }
.ip-more summary::-webkit-details-marker { display: none; }
.ip-more summary::before { content: '+'; font-family: var(--mono); color: var(--text-3); }
.ip-more[open] summary::before { content: '−'; }
.ip-more summary:hover { color: var(--text); }
.ip-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ip-more .ip-rest { font-size: 13px; color: var(--text-3); }
.tech-note { margin-top: 12px; max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--text-3); }
.world { margin-top: 40px; }
.world-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.world-lead { margin: 10px 0 0; max-width: 70ch; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.world-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.world-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.world-table thead th { padding: 12px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.world-table td, .world-table tbody th { padding: 12px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; color: var(--text-2); }
.world-table tbody tr:last-child > * { border-bottom: 0; }
.world-table tbody th { color: var(--text); font-weight: 500; white-space: nowrap; }
.world-cc { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.world-res { line-height: 1.45; }
.world-res .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.world-res .dot.idle { background: var(--text-3); }
.world-table .n { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.world-table thead th.n { font-family: var(--font); font-size: 12.5px; color: var(--text-3); }
.world-ip .ip { font-family: var(--mono); font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.world-sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.world-table tr.is-fail .world-res, .world-table tr.is-error .world-res { color: var(--bad); }
@media (max-width: 760px) {
  .world-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .world-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .world-table tbody tr:last-child { border-bottom: 0; }
  .world-table td, .world-table tbody th { padding: 0; border: 0; }
  .world-table .world-res { grid-column: 1; }
  .world-table .n { grid-column: 2; grid-row: 1; }
  .world-table .world-ip { grid-column: 1 / -1; }
  .world-cc { display: inline; margin: 0 0 0 6px; }
}
@media (max-width: 760px) { .tech-grid > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; } }

/* ---------- ping test (/ping-test/) ---------- */
.pt-hero .doc-title { max-width: none; }
.pt { --pad: clamp(18px, 3vw, 30px); margin-top: 8px; overflow: hidden; }
.pt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.pt-modes { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); }
.pt-mode { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: 500 14.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.pt-mode span { font-size: 12.5px; color: var(--text-3); }
.pt-mode:hover { color: var(--text); }
.pt-mode[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pt-mode:disabled { cursor: not-allowed; opacity: .55; }
.pt-conn { margin: 0; font-size: 13px; color: var(--text-3); overflow-wrap: anywhere; }
.pt-conn b { font: 500 13px var(--mono); color: var(--text-2); }
.pt-pane { padding: 26px var(--pad) 0; }
.pt-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.pt-field { display: grid; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.pt-field > span { font-size: 13px; font-weight: 600; color: var(--text-3); }
.pt-field select { height: 46px; width: 100%; padding: 0 40px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236d7583' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: 400 15px var(--font); appearance: none; -webkit-appearance: none; cursor: pointer; }
.pt-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-field select:disabled { opacity: .6; cursor: not-allowed; }
.pt-go { min-width: 168px; }
.pt-hint { margin: 0; flex: 1 1 320px; max-width: 60ch; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.pt-read { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; margin-top: 30px; }
.pt-big { margin: 0; display: flex; align-items: baseline; gap: 8px; line-height: .9; }
.pt-num { font: 600 clamp(3.25rem, 2.2rem + 4.4vw, 5.25rem)/.9 var(--mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--text); min-width: 1.4ch; }
.pt-unit { font: 500 1.25rem var(--mono); color: var(--text-3); }
.pt-read-side { display: grid; gap: 10px; justify-items: start; padding-bottom: 6px; }
.pt-read-side p { margin: 0; max-width: 52ch; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.pt.is-running .pt-num { color: var(--text-2); }
.pt-chart { position: relative; margin-top: 28px; padding-left: 52px; }
.pt-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.pt-ymax { position: absolute; left: 0; top: 0; width: 44px; text-align: right; transform: translateY(-50%); font: 500 11.5px var(--mono); color: var(--text-3); }
.pt-chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pt-b { fill: var(--text-3); }
.pt-b.now { fill: var(--text); }
.pt-b.sp { fill: var(--bad); }
.pt-lost { fill: var(--bad); opacity: .6; }
.pt-med { stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.pt-chart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 14px; padding-left: 52px; }
.legend i.pt-k-ping { background: var(--text-3); }
.pt-count { font: 500 12.5px var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 26px calc(-1 * var(--pad)) 0; border-top: 1px solid var(--line); }
.pt-stats > div { padding: 18px var(--pad) 22px; border-left: 1px solid var(--line); min-width: 0; }
.pt-stats > div:first-child { border-left: 0; }
.pt-stats dt { font-size: 13px; color: var(--text-3); }
.pt-stats dd { margin: 6px 0 0; font: 600 1.375rem/1.15 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.pt-table-wrap { margin: 26px calc(-1 * var(--pad)) 0; border-top: 1px solid var(--line); }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pt-table thead th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.pt-table td, .pt-table tbody th { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; color: var(--text-2); }
.pt-table thead th:first-child, .pt-table td:first-child { padding-left: var(--pad); }
.pt-table thead th:last-child, .pt-table td:last-child { padding-right: var(--pad); }
.pt-table tbody tr:last-child > * { border-bottom: 0; }
.pt-table .n { width: 1%; font: 500 12.5px var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pt-table tbody th { color: var(--text); font-weight: 500; }
.pt-table tbody th span { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.pt-table .pt-net { font: 400 12.5px var(--mono); color: var(--text-3); white-space: nowrap; }
.pt-table .pt-ms { width: 34%; min-width: 190px; }
.pt-ms-in { display: flex; align-items: center; gap: 14px; }
.pt-meter { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pt-meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--text-3); transform: scaleX(0); transform-origin: left center; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.pt-ms-in b { min-width: 76px; text-align: right; font: 600 14px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.pt-table tr.is-wait b, .pt-table tr.is-run b { color: var(--text-3); font-weight: 500; }
.pt-table tr.is-run { background: var(--surface-2); }
.pt-table tr.is-ok .pt-meter i { background: var(--ok); }
.pt-table tr.is-warn .pt-meter i { background: var(--warn); }
.pt-table tr.is-bad .pt-meter i { background: var(--bad); }
.pt-table tr.is-warn b { color: var(--warn); }
.pt-table tr.is-bad b, .pt-table tr.is-fail b { color: var(--bad); }
.pt-scale { margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad) 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.pt-pane[data-pane="one"] { padding-bottom: 0; }
.pt-noscript { margin: 0; padding: 18px var(--pad); color: var(--text-2); }
.pt-sec { margin-top: 88px; }
.pt-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pt-clear { height: 38px; padding: 0 14px; font-size: 14px; }
.pt-hist { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pt-hist li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pt-hist time { font: 500 13px var(--mono); color: var(--text-3); }
.pt-h-what { color: var(--text); font-size: 15px; }
.pt-h-what small { display: block; margin-top: 2px; font: 400 12.5px var(--mono); color: var(--text-3); }
.pt-h-ms { display: inline-flex; align-items: center; gap: 12px; justify-self: end; font: 600 15px var(--mono); color: var(--text); white-space: nowrap; }
.pt-h-more { grid-column: 2 / -1; font-size: 13px; color: var(--text-3); }
.pt-grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.pt-g { padding: 20px 22px 22px; border-left: 1px solid var(--line); }
.pt-g:first-child { border-left: 0; }
.pt-g b { display: block; font: 600 1.125rem var(--mono); letter-spacing: -.02em; color: var(--text); }
.pt-g span { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.pt-g span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pt-g.ok span { color: var(--ok); }
.pt-g.warn span { color: var(--warn); }
.pt-g.bad span { color: var(--bad); }
.pt-g p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.pt-grades + .sec-lead { margin-top: 22px; }
@media (max-width: 900px) {
  .pt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-stats > div:nth-child(4) { border-left: 0; }
  .pt-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pt-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-g:nth-child(3) { border-left: 0; }
  .pt-g:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pt-table .pt-reg { display: none; }
}
@media (max-width: 640px) {
  .pt-mode { padding: 0 12px; }
  .pt-mode span { display: none; }
  .pt-go { width: 100%; }
  .pt-field { max-width: none; }
  .pt-chart, .pt-chart-foot { padding-left: 0; }
  .pt-ymax { left: auto; right: 0; top: -14px; width: auto; transform: none; }
  .pt-chart svg { height: 140px; }
  .pt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-stats > div:nth-child(odd) { border-left: 0; }
  .pt-stats > div:nth-child(4) { border-left: 1px solid var(--line); }
  .pt-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pt-table .pt-net { display: none; }
  .pt-table tbody th span { display: block; margin: 2px 0 0; }
  .pt-table .pt-ms { width: auto; min-width: 128px; }
  .pt-ms-in { gap: 10px; }
  .pt-ms-in b { min-width: 58px; font-size: 13.5px; }
  .pt-grades { grid-template-columns: minmax(0, 1fr); }
  .pt-g { border-left: 0; }
  .pt-g:nth-child(n+2) { border-top: 1px solid var(--line); }
  .pt-hist li { grid-template-columns: minmax(0, 1fr) auto; }
  .pt-hist time { grid-column: 1 / -1; }
  .pt-h-more { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .pt-meter i { transition: none; } }

/* ---------- privacy page: what is stored, as a table ---------- */
.doc-wide { max-width: 960px; }
.doc .prose code { font: 500 .88em var(--mono); color: var(--text); overflow-wrap: anywhere; }
.store-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.store-table thead th { padding: 0 16px 12px 0; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.store-table tbody th, .store-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; color: var(--text-2); }
.store-table tbody th { color: var(--text); }
.store-table thead th:nth-child(1) { width: 19%; }
.store-table thead th:nth-child(2) { width: 20%; }
.store-table thead th:nth-child(4) { width: 17%; }
.store-table thead th:nth-child(5) { width: 14%; }
.store-table td:last-child { padding-right: 0; }
.store-table .pill { height: auto; min-height: 26px; padding: 5px 10px; white-space: normal; line-height: 1.35; }
.store-table + p { margin-top: 22px; }
@media (max-width: 760px) {
  .store-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .store-table tbody tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .store-table tbody th, .store-table td { display: block; width: auto; padding: 0; border: 0; }
  .store-table tbody th { margin-bottom: 10px; font-size: 15px; }
  .store-table td + td { margin-top: 8px; }
  .store-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
}

/* ==========================================================================
   Road traffic report: the live layout in the road world
   ========================================================================== */

/* ---------- shell: an asphalt band with a sign-blue edge ---------- */
.site-header { background: var(--asphalt); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 3px solid var(--sign); }
.brand { color: #ffffff; font-family: var(--sign-font); font-size: 19px; font-weight: 700; letter-spacing: 0; }
.brand b { color: #9aa3ae; font-weight: 600; }
.brand-mark { background: var(--sign); color: #ffffff; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 3.5px #ffffff; }
.hdr-search > .ico { color: #5b626d; }
.hdr-search input { background: #ffffff; color: #15171a; border-color: #ffffff; color-scheme: light; }
.hdr-search input::placeholder { color: #5b626d; }
.hdr-search input:focus { background: #ffffff; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(29, 79, 156, .5); }
.hdr-search kbd { color: #5b626d; border-color: #c5cad1; }
.hdr-nav a { color: #d4d9e0; font-family: var(--sign-font); font-size: 16px; font-weight: 600; }
.hdr-nav a:hover { color: #ffffff; background: #23272c; }
.site-header .icon-btn { border-color: #3a4048; color: #e2e6eb; }
.site-header .icon-btn:hover { background: #23272c; color: #ffffff; border-color: #545b65; }
.site-footer { margin-top: 96px; background: var(--asphalt); border-top: 3px solid var(--sign); color: #aab2bd; }
.site-footer .brand { color: #ffffff; }
.ftr-nav a { color: #d4d9e0; font-family: var(--sign-font); font-weight: 600; font-size: 15.5px; }
.ftr-nav a:hover { color: #ffffff; }
/* focus rings on the dark bands and the blue sign keep their contrast in the light theme too */
.site-header .brand, .hdr-nav, .site-header .icon-btn, .site-footer, .sign, .skip { --accent: #8fb6f5; }
.skip { background: #ffffff; color: #15171a; }

/* ---------- type: road-sign lettering for headings and numbers ---------- */
.sec-title, .panel-title, .doc-title, .home-title, .card-title, .answer { font-family: var(--sign-font); letter-spacing: 0; }
.sec-title { font-weight: 700; }
.panel-title { font-size: 1.1875rem; font-weight: 700; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.metric-value { font: 700 1.875rem/1.12 var(--sign-font); letter-spacing: 0; }
.inc-peak .num, .rel .num, .rk-n { font-family: var(--sign-font); font-weight: 700; }
/* section labels become small blue sign plates */
.eyebrow { padding: 3px 10px; border-radius: 5px; background: var(--sign); color: #ffffff; box-shadow: inset 0 0 0 1.5px var(--sign), inset 0 0 0 2.6px #ffffff; font-family: var(--sign-font); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.eyebrow .ico { color: #ffffff; }

/* ---------- the answer: a direction sign, an LED line, the road strip ---------- */
.sign { background: var(--sign); border-radius: 12px; padding: 18px 22px 18px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px #ffffff; }
.sign .svc-name { color: #ffffff; font-family: var(--sign-font); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 700; letter-spacing: 0; line-height: 1.05; }
.sign .svc-logo { border-radius: 8px; box-shadow: none; }
.sign .svc-domain { color: #dbe6f7; }
.sign .svc-domain:hover { color: #ffffff; }
.sign .hero-q { margin-top: 10px; color: #e7eefa; font-weight: 600; }
.sign .hero-q span { color: #c4d4ee; }
.vms { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 16px; border-radius: 8px; background: #080808; box-shadow: inset 0 0 0 1px #2a2a2a; color: var(--led); font-family: var(--sign-font); font-size: 18px; font-weight: 700; letter-spacing: .09em; line-height: 1.25; text-transform: uppercase; }
.vms::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: radial-gradient(circle, transparent 54%, rgba(8, 8, 8, .6) 56%) 0 0 / 3px 3px; pointer-events: none; }
.vms i { width: 11px; height: 11px; border-radius: 50%; background: var(--st-led); flex: none; }
.answer { margin-top: 20px; font-weight: 700; }
.answer.is-xlong { font-size: max(calc(var(--fs-answer) * .68), 1.75rem); }   /* the answer stays the largest text in the card */
.road { margin: 30px 0 0; }
.road svg { display: block; width: 100%; height: 40px; }
.road-bed { fill: #2b2f35; }
.seg.s0 { fill: var(--flow); }
.seg.s1 { fill: var(--slow); }
.seg.s2 { fill: var(--jam); }
.road .seg.s2 { stroke: #ffffff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }   /* jams stay visible without colour */
.road .lane { stroke: #ffffff; stroke-opacity: .6; stroke-width: 1.4; stroke-dasharray: 9 9; vector-effect: non-scaling-stroke; }
.road-posts { position: relative; height: 26px; margin-top: 2px; font-family: var(--sign-font); font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.road-posts span { position: absolute; top: 9px; transform: translateX(-50%); }
.road-posts span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 7px; margin-left: -1px; background: var(--line-3); }
.road-posts .road-now { right: 0; left: auto; transform: none; color: var(--text); }
.road-posts .road-now::before { left: auto; right: 0; }
.road-posts .road-start { transform: none; }
.road-posts .road-start::before { left: 0; margin-left: 0; }
.road figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; color: var(--text-3); }
@media (min-width: 1101px) { .road figcaption > span:first-child { flex-basis: 100%; } }
.road figcaption b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.road figcaption b::before { content: ""; width: 14px; height: 7px; border-radius: 2px; }
.road figcaption .k0::before { background: var(--flow); }
.road figcaption .k1::before { background: var(--slow); }
.road figcaption .k2::before { background: var(--jam); box-shadow: inset 0 0 0 1px #ffffff; }
.mini { flex: none; border-radius: 2px; overflow: hidden; background: #2b2f35; }
.rel .num { min-width: 6.6em; text-align: right; }

/* ---------- states in the road palette: bars, legend, buttons ---------- */
.chart .b.c1, .spark .s1 { fill: var(--slow-mark); }
.chart .b.c2, .spark .s2 { fill: var(--jam); }
.legend i.c1 { background: var(--slow-mark); }
.legend i.c2 { background: var(--jam); }
.btn { font-family: var(--sign-font); font-size: 16.5px; font-weight: 700; }
.btn-primary { background: var(--sign); color: #ffffff; }
.btn-primary:hover { background: var(--sign-2); }
[data-theme="light"] .btn-primary { background: var(--sign); color: #ffffff; }
.pill { font-family: var(--sign-font); font-size: 13.5px; }
.step::before, .steps .step > span:first-child { font-family: var(--sign-font); }

/* ---------- additions: problem types and this month ---------- */
.ptypes { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 14px 0 0; padding: 0; list-style: none; max-width: 40em; }
.ptypes li { color: var(--text-2); font-size: 15.5px; }
.ptypes li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--text-3); }
.kvt { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 560px; margin: 22px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.kvt dt, .kvt dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kvt dt { color: var(--text-2); }
.kvt dd { font: 700 17px var(--sign-font); text-align: right; }

/* ---------- reading comfort and small fixes ---------- */
.sec-lead, .dir-sec .sec-lead, .rp-sec .sec-lead, .prose, .faq .ans, .step p, .method p, .post p, .hist-note, .tech-note, .rp-note, .dir-intro, .world-lead, .rp-teaser p { max-width: 33em; }   /* about 72 characters of Barlow */
.doc .prose > p, .doc .prose > ul, .doc .prose > ol { max-width: 35em; }
.toc a.is-active { box-shadow: none; background: color-mix(in srgb, var(--sign) 18%, var(--surface)); color: var(--text); font-weight: 600; }
.cmds { grid-template-columns: minmax(0, 1fr); }
.cmd { min-width: 0; }
b, strong { font-weight: 600; }

@media (max-width: 760px) {
  .sign { padding: 14px 16px; }
  .vms { font-size: 15.5px; letter-spacing: .07em; }
  .road-posts { font-size: 12px; }
  .metric-value { font-size: 1.5rem; }
  .site-header.search-open .hdr-search input { background: #ffffff; color: #15171a; }
}
@media (max-width: 400px) {
  .hero-meta > span:last-child { display: none; }   /* "Updated n min ago" already says how fresh it is */
  .hero-actions { margin-top: 24px; }
}

/* numbers in sign lettering; real code and addresses stay monospaced */
.num, .axis, .chart .ymax, .chart .ymid, .metric-value, .rp-table .n, .pt-num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cmd code, .tech-grid .ip, .world-ip .ip, .ip, code, kbd, .hdr-search kbd, .hero-shot-bar, .nf-code, .pt-conn b { font-family: var(--code); }
