/* AWS IP Map
   Product-site language shared by Google, Apple and Airbnb: a centred search-first hero, full-bleed bands
   (white, light grey, one black showcase band for the map), big confident headlines, pill controls,
   real elevation only where something is interactive. Orange is the action colour (Amazon convention), blue is links. */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Roboto Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --r-pill: 999px; --r-lg: 22px; --r-md: 14px; --r-sm: 8px;
  --wrap: min(1180px, 100% - clamp(2rem, 6vw, 5rem));
  --z-nav: 30; --z-toast: 50;
  --cta: #ff9900; --cta-hover: #f08800; --on-cta: #111111;
  /* the map band is always dark, in both themes */
  --map-bg: 10 10 12; --map-label: rgba(235, 235, 245, 0.26);
  --tip-bg: rgba(28, 28, 30, 0.94);
  --geo-na: #3f86e8; --geo-sa: #34a853; --geo-eu: #8e6ee8; --geo-mea: #e3a21a; --geo-ap: #f06b3e; --geo-cn: #e0466a; --geo-gov: #5f9bb0; --geo-global: #1bb3b8;
}
:root, [data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f5f5f7; --surface: #ffffff;
  --ink: #1d1d1f; --ink-2: #424245; --mute: #6e6e73;
  --rule: #d2d2d7; --rule-soft: #e8e8ed;
  --link: #0066cc;
  --ok: #138a42; --bad: #d70015; --warn: #b25000;
  --field: #ffffff; --field-edge: #c9c9ce;
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.05);
  --elev-search: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
  --elev-search-hover: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 28px rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --chip: #f2f2f4; --chip-hover: #e8e8ed;
}
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000; --bg-2: #161617; --surface: #1c1c1e;
  --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #a1a1a6;
  --rule: #424245; --rule-soft: #2c2c2e;
  --link: #2997ff;
  --ok: #30d158; --bad: #ff453a; --warn: #ffd60a;
  --field: #1c1c1e; --field-edge: #48484a;
  --elev-1: 0 0 0 1px #2c2c2e;
  --elev-search: 0 0 0 1px #3a3a3c, 0 8px 28px rgba(0, 0, 0, 0.6);
  --elev-search-hover: 0 0 0 1px #48484a, 0 10px 32px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(22, 22, 23, 0.78);
  --chip: #1c1c1e; --chip-hover: #2c2c2e;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; overflow-x: clip; background: var(--bg); }
body { margin: 0; min-height: 100svh; overflow-x: clip; color: var(--ink); background: var(--bg); font: 400 1.0625rem/1.47 var(--font); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p a, td a, .faq a, .fine a, .lede a, .more-link, .api-teaser p a { color: var(--link); }
p a:hover, td a:hover, .faq a:hover, .fine a:hover, .more-link:hover { text-decoration: underline; text-underline-offset: .18em; }
code, pre, textarea { font-family: var(--mono); font-size: 0.9em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--cta) 32%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 99; border-radius: var(--r-pill); }
.muted { color: var(--mute); }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.nw { white-space: nowrap; }
.num { text-align: right; }

/* ---------- top bar (translucent, like a real product nav) ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-nav); height: 52px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding-inline: max(1rem, calc((100% - 1180px) / 2)); background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--rule-soft); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.logo-mark { width: 1.3rem; height: 1.3rem; color: var(--cta); }
.site-head nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-head nav a { color: var(--ink-2); font-size: .88rem; padding: .4rem .8rem; border-radius: var(--r-pill); white-space: nowrap; transition: color .15s, background .15s; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current] { color: var(--ink); font-weight: 600; }
.site-head .gh svg { width: 1.05rem; height: 1.05rem; display: block; }
.theme-toggle { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; margin-left: 2px; flex: none; transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--chip); color: var(--ink); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
[data-theme='dark'] .theme-toggle .i-sun, [data-theme='light'] .theme-toggle .i-moon { opacity: 0; transform: scale(.6); }

main { width: var(--wrap); margin-inline: auto; }
.section-title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.07; font-weight: 700; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
.sub-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 var(--s4); display: flex; align-items: baseline; gap: var(--s4); }
.more-link { font-size: .92rem; font-weight: 400; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s8); align-items: end; margin-bottom: var(--s7); }
.section-head > * { min-width: 0; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.06rem; max-width: 58ch; text-wrap: pretty; }
.lamp, .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--mute); }
.lamp.on { background: var(--ok); }

/* ---------- hero: search beside the map ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.hero > * { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: var(--s2); font-size: .88rem; color: var(--ink-2); margin: 0 0 var(--s5); padding: .38rem .85rem .38rem .72rem; border-radius: var(--r-pill); background: var(--chip); }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 var(--s5); text-wrap: balance; }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin: 0 0 var(--s6); text-wrap: pretty; }
.search { display: flex; align-items: center; gap: var(--s2); margin: 0; padding: 8px; padding-left: 1.4rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--elev-search); transition: box-shadow .2s var(--ease); }
.search:hover { box-shadow: var(--elev-search-hover); }
.search:focus-within { box-shadow: 0 0 0 2px var(--link), var(--elev-search-hover); }
.search-icon { width: 1.25rem; height: 1.25rem; color: var(--mute); flex: none; }
.search textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; color: var(--ink); font-size: 1.15rem; line-height: 1.5; padding: .75rem .5rem; min-height: 3.2rem; max-height: 220px; outline: none; }
.search textarea::placeholder { color: var(--mute); font-family: var(--font); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); white-space: nowrap; text-decoration: none; font: 600 1rem/1 var(--font); letter-spacing: -0.01em; border: 0; border-radius: var(--r-pill); cursor: pointer; padding: 0 1.6rem; min-height: 3.2rem; transition: background .15s, box-shadow .15s, color .15s; }
.btn.primary { color: var(--on-cta); background: var(--cta); align-self: stretch; }
.btn.primary:hover { background: var(--cta-hover); }
.btn.primary:active { background: #e07f00; }
.btn.ghost { min-height: 2.25rem; padding: 0 1rem; font-size: .9rem; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--rule); }
.btn.ghost:hover { background: var(--chip); border-color: var(--mute); }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); color: var(--mute); font-size: .92rem; margin: var(--s4) 0 0; }
.try button { font: 400 .86rem/1 var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: .5rem .85rem; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.try button:hover { color: var(--ink); border-color: var(--ink-2); }

/* ---------- results ---------- */
.results { margin-top: var(--s6); overflow-x: auto; }
.results:empty { margin: 0; }
.results.in > :first-child { animation: appear .3s var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } }
.verdict { position: relative; padding: var(--s6); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--elev-1); border: 1px solid var(--rule-soft); }
.verdict.yes { --tone: var(--ok); } .verdict.no { --tone: var(--bad); } .verdict.partial { --tone: var(--warn); }
.verdict .dot { background: var(--tone); width: 10px; height: 10px; }
.v-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 var(--s5); padding-right: 9rem; }
.v-head code { font-weight: 500; letter-spacing: -0.01em; }
.copy-result { position: absolute; top: var(--s6); right: var(--s6); }
.hit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); margin: 0; padding-top: var(--s5); border-top: 1px solid var(--rule-soft); }
.hit > div:first-child { grid-column: 1 / -1; }
.hit dt, .plate dt, .facts dt { font-size: .86rem; color: var(--mute); margin-bottom: 3px; }
.hit dd { margin: 0; }
.rlink { color: var(--link); }
.rlink:hover { text-decoration: underline; text-underline-offset: .18em; }
.hit dd > code { font-size: 1.15rem; }
.verdict p { color: var(--ink-2); margin: var(--s2) 0 0; }
.r-sub { font-size: .95rem; font-weight: 600; margin: var(--s6) 0 var(--s2); color: var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th { text-align: left; font-size: .86rem; font-weight: 500; color: var(--mute); padding: var(--s3); border-bottom: 1px solid var(--rule); }
td { padding: var(--s3); border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th.num, td.num { text-align: right; }
.mini td { padding: var(--s3) var(--s3) var(--s3) 0; }
.bulk tr.not code { color: var(--mute); }
.bulk-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); margin-bottom: var(--s3); border-radius: var(--r-md); background: var(--bg-2); }
.bulk-head p { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.bulk-head b { color: var(--ok); }
.matches { display: grid; gap: var(--s2); }
.match { display: grid; grid-template-columns: 5rem auto 1fr auto; gap: var(--s3); align-items: baseline; padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--rule-soft); transition: border-color .15s; }
.match:hover { border-color: var(--rule); }
.match:hover code { color: var(--link); }
.match .k { font-size: .86rem; color: var(--mute); }
.match span, .match small { color: var(--mute); }
.tag { display: inline-flex; gap: var(--s1); align-items: center; font: 500 .8rem/1 var(--mono); padding: .38rem .6rem; margin: 0 .35rem .35rem 0; border-radius: var(--r-sm); background: var(--chip); color: var(--ink-2); border: 1px solid var(--rule-soft); }
a.tag { color: var(--link); background: color-mix(in srgb, var(--link) 10%, transparent); border-color: color-mix(in srgb, var(--link) 28%, transparent); transition: background .15s, border-color .15s; }
a.tag:hover { background: color-mix(in srgb, var(--link) 18%, transparent); border-color: color-mix(in srgb, var(--link) 55%, transparent); color: var(--link); }
.tag span { font-family: var(--font); color: var(--mute); }
.badge { font-size: .74rem; font-weight: 600; padding: .16rem .5rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--cta) 20%, transparent); color: var(--warn); vertical-align: 1px; }

/* ---------- full-bleed bands ---------- */
.band { margin-inline: calc(50% - 50vw); padding-block: clamp(4.5rem, 10vw, 8rem); }
.band-inner { width: var(--wrap); margin-inline: auto; }
.band.gray { background: var(--bg-2); }

/* ---------- the map: a black panel in both themes ---------- */
.atlas { margin: 0; padding: 12px 12px var(--s5); border-radius: 30px; background: #000; color: #f5f5f7; color-scheme: dark;
  --ink: #f5f5f7; --ink-2: #c7c7cc; --mute: #98989d; --rule: #38383a; --rule-soft: #2c2c2e; --chip: #1c1c1e; --chip-hover: #2c2c2e;
  box-shadow: 0 0 0 1px #1c1c1e, 0 30px 80px -30px rgba(41, 151, 255, 0.35), 0 20px 40px -20px rgba(0, 0, 0, 0.35); }
.map-wrap { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; cursor: zoom-in; touch-action: manipulation; background: rgb(var(--map-bg)); box-shadow: inset 0 0 0 1px #1c1c1e; }
.map-wrap.zoomed { cursor: crosshair; }
.map-wrap img, .map-wrap .map-overlay, .map-zoom { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.map-zoom { opacity: 0; pointer-events: none; }
.map-wrap.zoomed .map-zoom { opacity: 1; }
.map-wrap.zoomed .map-img { visibility: hidden; }
.map-back { position: absolute; left: var(--s4); top: var(--s4); z-index: 4; font: 500 .88rem/1 var(--font); color: #f5f5f7; background: var(--tip-bg); border: 1px solid #3a3a3c; border-radius: var(--r-pill); padding: .6rem 1rem; cursor: pointer; }
.map-back:hover { background: #2c2c2e; }
.loupe { position: absolute; left: 0; top: 0; z-index: 4; width: 176px; height: 176px; border-radius: 50%; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .15s; background: rgb(var(--map-bg)); box-shadow: 0 0 0 2px #f5f5f7, 0 12px 32px rgba(0, 0, 0, 0.6); }
.loupe.on { opacity: 1; }
.loupe canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.map-tip { position: absolute; left: 0; top: 0; z-index: 5; width: 232px; display: grid; gap: var(--s1); padding: var(--s3) var(--s4); border-radius: var(--r-md); font-size: .86rem; color: #f5f5f7; pointer-events: none; background: var(--tip-bg); border: 1px solid #3a3a3c; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.map-tip .muted { color: #a1a1a6; }
.tip-region::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: var(--s2); }
.tip-line { font-size: .8rem; color: #d2d2d7; }
figcaption { padding: var(--s4) var(--s2) 0; }
.map-cap-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.map-where { font-weight: 600; letter-spacing: -0.015em; margin: 0 0 var(--s1); color: var(--ink); }
.map-share { margin: 0; color: var(--mute); font-size: .9rem; }
.map-share b { color: var(--ink); font-weight: 600; }
.map-note { font-size: .88rem; color: var(--mute); margin: 0 0 var(--s4); max-width: 64ch; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.legend button { display: inline-flex; align-items: center; gap: var(--s2); font: 500 .82rem/1 var(--font); color: var(--ink-2); background: var(--chip); border: 1px solid transparent; border-radius: var(--r-pill); padding: .48rem .8rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.legend button i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.legend button span { color: var(--mute); }
.legend button:hover, .legend button.on { color: var(--ink); background: var(--chip-hover); border-color: color-mix(in srgb, var(--c) 60%, transparent); }

/* ---------- allowlist builder ---------- */
.note { margin: calc(var(--s7) * -0.5) 0 var(--s6); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink-2); font-size: .97rem; max-width: 80ch; }
.note b { color: var(--ink); font-weight: 600; }
.note code { font-size: .88em; }
.builder-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); align-items: end; }
.builder-form label { display: grid; gap: var(--s2); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.builder-form select { appearance: none; font: 400 1rem/1.2 var(--font); color: var(--ink); border: 1px solid var(--field-edge); border-radius: var(--r-md); padding: .85rem 2.4rem .85rem 1rem; min-width: 0; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center; transition: border-color .15s, box-shadow .15s; }
.builder-form select:hover { border-color: var(--mute); }
.builder-form select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.builder-form .check { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s3); font-size: 1rem; font-weight: 400; color: var(--ink); cursor: pointer; width: fit-content; margin-top: var(--s2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 2.9rem; height: 1.75rem; border-radius: var(--r-pill); background: #c7c7cc; position: relative; flex: none; transition: background .2s var(--ease); }
[data-theme='dark'] .switch { background: #48484a; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(1.75rem - 4px); height: calc(1.75rem - 4px); border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform .25s var(--ease); }
.check input:checked + .switch { background: var(--ok); }
.check input:checked + .switch::after { transform: translateX(1.15rem); }
.check input:focus-visible + .switch { outline: 2px solid var(--link); outline-offset: 3px; }
.builder-out { margin-top: var(--s6); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--rule-soft); box-shadow: var(--elev-1); }
.out-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--rule-soft); font-size: .95rem; color: var(--ink-2); }
.out-head span:last-child { display: flex; gap: var(--s2); }
.builder-out textarea { display: block; width: 100%; height: 300px; border: 0; padding: var(--s5); background: transparent; color: var(--ink); resize: vertical; outline: none; line-height: 1.65; }

/* ---------- stats ---------- */
.stats { padding-block: clamp(4.5rem, 10vw, 8rem); }
.plate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 var(--s7); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.plate > div { padding: var(--s5) var(--s5) var(--s5) 0; }
.plate > div + div { padding-left: var(--s5); border-left: 1px solid var(--rule-soft); }
.plate dd { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; }
.plate dd small { font-size: .86rem; font-weight: 500; color: var(--warn); margin-left: var(--s1); letter-spacing: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); margin-top: var(--s8); }
.split > * { min-width: 0; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--rule-soft); stroke-width: 1; }
.chart .tick { font: 400 12px var(--font); fill: var(--mute); }
.chart .area { transition: opacity .2s; }
.chart .area.faded, .chart .dlabel.faded { opacity: 0.14; }
.dlabel text { font: 600 13px var(--font); fill: var(--ink-2); }
.dlabel tspan { font-weight: 400; fill: var(--mute); }
.geo-na { fill: var(--geo-na); background: var(--geo-na); } .geo-sa { fill: var(--geo-sa); background: var(--geo-sa); } .geo-eu { fill: var(--geo-eu); background: var(--geo-eu); }
.geo-mea { fill: var(--geo-mea); background: var(--geo-mea); } .geo-ap { fill: var(--geo-ap); background: var(--geo-ap); } .geo-cn { fill: var(--geo-cn); background: var(--geo-cn); }
.geo-gov { fill: var(--geo-gov); background: var(--geo-gov); } .geo-global { fill: var(--geo-global); background: var(--geo-global); }
.chart .cursor { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart:hover .cursor { opacity: 1; }
.single-area { fill: color-mix(in srgb, var(--c, var(--cta)) 18%, transparent); }
.single-line { fill: none; stroke: var(--c, var(--cta)); stroke-width: 2.2; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); min-width: 190px; display: grid; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--r-md); font-size: .86rem; color: #f5f5f7; pointer-events: none; background: var(--tip-bg); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.chart-tip ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 2px; }
.chart-tip li { display: grid; grid-template-columns: 10px 1fr auto; gap: var(--s2); align-items: center; color: #d2d2d7; }
.chart-tip b { color: #fff; font-weight: 600; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.chart.small { max-width: 940px; }

/* ---------- arrivals ---------- */
.arrivals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.arrivals li { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule-soft); }
.arrivals .yr { font-weight: 600; line-height: 2; font-size: .95rem; }
.regs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.arrival { display: inline-flex; align-items: center; gap: var(--s2); font: 400 .84rem/1 var(--mono); color: var(--ink-2); padding: .45rem .7rem; border-radius: var(--r-pill); background: var(--chip); transition: background .15s, color .15s; }
.arrival:hover { color: var(--ink); background: var(--chip-hover); }
.arrival i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.arrival em { font: 500 .78rem/1 var(--font); font-style: normal; color: var(--warn); }

/* ---------- changes ---------- */
.events { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule-soft); }
.events > li { display: grid; grid-template-columns: 9rem 8rem 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule-soft); align-items: start; }
.events.full > li { grid-template-columns: 9rem 1fr; }
.events.full > li .delta, .events.full > li details { grid-column: 2; }
.events time { font-size: .92rem; color: var(--ink-2); }
.counts b { font-weight: 700; margin-right: var(--s2); }
.delta { list-style: none; margin: 0; padding: 0; font-size: .95rem; display: grid; gap: 2px; color: var(--ink-2); }
.delta b { display: inline-block; min-width: 2.6rem; }
.delta .add b { color: var(--ok); } .delta .rem b { color: var(--bad); }
.delta .more { color: var(--mute); }
details summary { cursor: pointer; }
.events details summary { color: var(--link); font-size: .92rem; }
.raw { list-style: none; padding: 0; columns: 2 22rem; font-size: .86rem; }
.raw .add { color: var(--ok); } .raw .rem { color: var(--bad); }
.empty { color: var(--ink-2); margin: 0 0 var(--s3); }
.ledger td:first-child { white-space: nowrap; }
.ledger.compact td, .ledger.compact th { padding: var(--s2) var(--s3); }

/* ---------- browse ---------- */
.browse { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-block: var(--s8) var(--s8); border-top: 1px solid var(--rule-soft); }
.browse > * { min-width: 0; }
.browse .section-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: var(--s2); }
.browse h3 { font-size: .95rem; font-weight: 600; color: var(--mute); margin: var(--s6) 0 var(--s2); }
.index { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: var(--s6); }
.index li { break-inside: avoid; }
.index a { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .95rem; }
.index a span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index small { color: var(--mute); }
.index a:hover code, .index a:hover span { color: var(--link); }
.api-teaser { margin-top: var(--s7); padding: var(--s6); border-radius: var(--r-lg); background: var(--bg-2); }
.api-teaser h3 { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 0 0 var(--s2); }
.api-teaser p { color: var(--ink-2); font-size: .97rem; }
.api-teaser code { display: block; overflow-x: auto; white-space: nowrap; padding: var(--s3) var(--s4); margin: var(--s2) 0; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--rule-soft); cursor: copy; color: var(--ink); }
.api-teaser code:hover { border-color: var(--rule); }

/* ---------- faq ---------- */
.faq { max-width: 880px; margin-inline: auto; padding-block: var(--s8) var(--s9); }
.faq .section-title { margin-bottom: var(--s5); text-align: center; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); padding: var(--s5) 2.5rem var(--s5) 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: var(--s2); top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq p { margin: 0 0 var(--s5); color: var(--ink-2); max-width: 72ch; }

/* ---------- sub pages ---------- */
.crumbs { font-size: .9rem; color: var(--mute); margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2); }
.crumbs a { color: var(--link); }
.page-head { margin-top: var(--s5); padding-bottom: var(--s7); border-bottom: 1px solid var(--rule-soft); }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: .95rem; color: var(--ink-2); margin: 0 0 var(--s4); }
.page-head .eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--cta)); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 var(--s5); max-width: 20ch; text-wrap: balance; }
.page-head .lede { margin: 0 0 var(--s6); max-width: 60ch; font-size: 1.15rem; }
.page-head + section, main > section:not(.hero):not(.band):not(.stats):not(.browse):not(.faq) { margin-block: var(--s8); }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--s6); }
.facts div { padding: 0 var(--s6) 0 0; }
.facts div + div { padding-left: var(--s6); border-left: 1px solid var(--rule-soft); }
.facts dd { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.downloads { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.chip.dl { font-size: .92rem; font-weight: 500; padding: .6rem 1.05rem; border-radius: var(--r-pill); color: var(--ink); background: var(--chip); transition: background .15s; }
.chip.dl:hover { background: var(--chip-hover); }
.curl { padding: .6rem 1rem; border-radius: var(--r-pill); background: var(--bg-2); cursor: copy; color: var(--ink-2); max-width: 100%; overflow-x: auto; white-space: nowrap; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tw table { min-width: 34rem; }
.tw:has(.compact) table { min-width: 0; }
.svc-table tbody tr:hover td { background: var(--bg-2); }
.svc-table td a code { color: var(--link); }
.api td:first-child code { cursor: copy; word-break: break-all; }
pre { padding: var(--s5); border-radius: var(--r-md); overflow-x: auto; background: var(--bg-2); }
pre code { cursor: copy; color: var(--ink); }
h3 { font-weight: 600; letter-spacing: -0.015em; }
.list-tools { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s5); }
.filter { font: 400 1rem var(--font); color: var(--ink); padding: .75rem 1.15rem; border: 1px solid var(--field-edge); border-radius: var(--r-pill); background: var(--field); min-width: min(320px, 100%); flex: 1; max-width: 420px; outline: none; }
.filter:focus { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--chip); }
.seg button { font: 500 .9rem var(--font); background: transparent; border: 0; border-radius: var(--r-pill); padding: .5rem 1rem; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.prefixes { list-style: none; padding: 0; margin: 0; columns: 3 21rem; column-gap: var(--s6); }
.prefixes li { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--rule-soft); }
.prefixes li[hidden] { display: none; }
.prefixes code { cursor: copy; margin-right: var(--s1); font-size: .9rem; color: var(--ink); }
.prefixes code:hover { color: var(--link); }
.prefixes .tag { margin: 0; font-size: .72rem; padding: .24rem .5rem; }
.nbg, .since { font-size: .8rem; color: var(--mute); }
.nbg-list { list-style: none; padding: 0; columns: 3 16rem; }
.nbg-list li { padding: var(--s1) 0; } .nbg-list span { color: var(--mute); font-size: .9rem; }
.related .tag { font-size: .84rem; padding: .5rem .8rem; }


/* ---------- history page ---------- */
.tm-block { padding-block: var(--s7); border-bottom: 1px solid var(--rule-soft); }
.tm-block .section-head { margin-bottom: var(--s5); }
.tm-form { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: end; }
.tm-form label { display: grid; gap: var(--s2); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.tm-form input, .tm-form select { font: 400 1rem/1.2 var(--font); color: var(--ink); background: var(--field); border: 1px solid var(--field-edge); border-radius: var(--r-md); padding: .8rem 1rem; min-width: 12rem; outline: none; }
.tm-form input[name="ip"] { min-width: min(24rem, 80vw); font-family: var(--mono); }
.tm-form input:focus, .tm-form select:focus { border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.tm-form .btn.primary { align-self: end; min-height: 3rem; }
.tm-out { margin-top: var(--s5); }
.tm-out:empty { margin: 0; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s5) 0 0; }
.cmp-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s5); }
.gantt { margin-top: var(--s5); border-top: 1px solid var(--rule-soft); }
.g-axis { position: relative; height: 1.6rem; margin-left: calc(38% + var(--s4)); margin-right: calc(15rem + var(--s4)); }
.g-axis span { position: absolute; top: .3rem; transform: translateX(-50%); font-size: .76rem; color: var(--mute); }
.g-row { display: grid; grid-template-columns: 38% 1fr 15rem; gap: var(--s4); align-items: center; padding: var(--s2) 0; border-bottom: 1px solid var(--rule-soft); }
.g-label { min-width: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; }
.g-label .tag { margin: 0; font-size: .72rem; padding: .24rem .45rem; }
.g-track { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--rule-soft); }
.g-bar { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--mute); }
.g-bar.open { background: var(--cta); }
.g-dates { font-size: .86rem; color: var(--ink-2); text-align: right; }
.approx { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.g-note { font-size: .84rem; margin-top: .6rem; }
.years { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.years a { font-size: .92rem; padding: .45rem .85rem; border-radius: var(--r-pill); border: 1px solid var(--rule); color: var(--ink); }
.years a:hover { border-color: var(--ink-2); }
.years small { color: var(--mute); margin-left: .25rem; }
.events.full > li > div { min-width: 0; }
.events .counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); margin-bottom: var(--s2); }
.sources { max-width: 880px; padding-block: var(--s7) var(--s8); }
.src-list { padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: var(--s3); }
.src-list b { color: var(--ink); }
.sources p { color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--bg-2); padding: var(--s7) max(1rem, calc((100% - 1180px) / 2)) var(--s6); font-size: .82rem; color: var(--mute); border-top: 1px solid var(--rule-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s6); }
.foot-grid h2 { font-size: .82rem; font-weight: 600; color: var(--ink); margin: 0 0 var(--s3); }
.foot-grid div > a { display: block; padding: 3px 0; color: var(--ink-2); }
.foot-grid div > a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid p { color: var(--ink-2); max-width: 40ch; }
.foot-grid .brand { color: var(--ink); }
.fine { color: var(--mute); margin: var(--s6) 0 0; padding-top: var(--s4); border-top: 1px solid var(--rule-soft); }

.toast { position: fixed; left: 50%; bottom: var(--s6); z-index: var(--z-toast); transform: translate(-50%, .5rem); opacity: 0; pointer-events: none; max-width: 90vw; padding: .8rem 1.2rem; border-radius: var(--r-pill); font-size: .94rem; font-weight: 500; color: #f5f5f7; background: var(--tip-bg); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .browse, .section-head, .split { grid-template-columns: 1fr; }
  .plate { grid-template-columns: repeat(2, 1fr); }
  .plate > div, .plate > div + div { padding: var(--s4) var(--s4) var(--s4) 0; border-left: 0; border-bottom: 1px solid var(--rule-soft); }
  .plate > div:nth-child(even) { padding-left: var(--s4); border-left: 1px solid var(--rule-soft); }
  .builder-form { grid-template-columns: 1fr 1fr; }
  .events > li { grid-template-columns: 1fr; gap: var(--s1); }
  .events.full > li .delta, .events.full > li details { grid-column: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .ledger th:nth-child(5), .ledger td:nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .site-head .brand span { display: none; }
  .site-head nav a { padding: .4rem .55rem; font-size: .86rem; }
  .site-head .gh { display: none; }
  .search { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px; }
  .search-icon { display: none; }
  .search textarea { flex-basis: 100%; padding-left: var(--s3); }
  .search .btn { flex: 1; }
  .builder-form { grid-template-columns: 1fr; }
  .hit { grid-template-columns: 1fr; }
  .v-head { padding-right: 0; }
  .verdict { padding: var(--s5); }
  .copy-result { position: static; margin-bottom: var(--s4); }
  .loupe { display: none; }
  .atlas { padding: 8px 8px var(--s4); border-radius: 24px; }
  .map-wrap { border-radius: 17px; }
  .arrivals li { grid-template-columns: 1fr; gap: 0; }
  .svc-table th:nth-child(3), .svc-table td:nth-child(3) { display: none; }
  .bulk th:nth-child(4), .bulk td:nth-child(4) { display: none; }
  .match { grid-template-columns: auto 1fr; }
  .g-row { grid-template-columns: 1fr; gap: var(--s2); }
  .g-axis { display: none; }
  .g-dates { text-align: left; }
  .cmp-groups { grid-template-columns: 1fr; }
  .tm-form input, .tm-form select, .tm-form input[name="ip"] { min-width: 0; width: 100%; }
  .tm-form label { flex: 1 1 100%; }
  .facts div, .facts div + div { padding: var(--s2) var(--s5) var(--s2) 0; border-left: 0; }
  .facts dd { font-size: 1.5rem; }
  .dlabel text { font-size: 18px; }
}
@media (max-width: 440px) { .site-head nav a:nth-child(3), .site-head nav a:nth-child(4), .site-head nav a:nth-child(6) { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
