:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #10151d;
  --panel-2: #151c26;
  --line: #263242;
  --text: #f4f7fb;
  --muted: #aab5c4;
  --accent: #ff6b35;
  --accent-2: #ffb347;
  --ok: #42d392;
  --warn: #ffd166;
  --danger: #ff5d73;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -10%, rgba(255, 107, 53, .18), transparent 30rem),
    linear-gradient(180deg, #0a0e14 0%, var(--bg) 45%);
  line-height: 1.65;
}
a { color: #ffb06f; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #ffd2aa; }
img { max-width: 100%; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; padding: .7rem 1rem; background: #fff; color: #000; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8, 11, 16, .88);
  backdrop-filter: blur(18px);
}
.header-inner, main, .footer-inner { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: linear-gradient(145deg, #ff963f, #e52e1e); box-shadow: 0 0 28px rgba(255, 92, 35, .35); }
.brand small { color: var(--muted); font-weight: 650; letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: .35rem .85rem; align-items: center; }
.nav a { color: #dfe6ef; text-decoration: none; font-size: .92rem; }
.nav .live-link { padding: .45rem .72rem; border: 1px solid rgba(255, 107, 53, .5); border-radius: 999px; color: #fff; background: rgba(255, 107, 53, .12); }
main { padding-block: 2.1rem 5rem; }
.breadcrumbs { color: var(--muted); font-size: .88rem; margin-bottom: 1.6rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #556376; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); gap: 1.5rem; align-items: stretch; }
.eyebrow { margin: 0 0 .55rem; color: var(--accent-2); text-transform: uppercase; font-size: .78rem; font-weight: 850; letter-spacing: .13em; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.8rem); }
h2 { margin: 2.8rem 0 .9rem; font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { margin: 0 0 .55rem; font-size: 1.12rem; }
.lead { max-width: 780px; margin: 1rem 0 1.25rem; color: #c9d2de; font-size: clamp(1.03rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); color: #fff; background: var(--panel-2); text-decoration: none; font-weight: 800; }
.button.primary { border-color: transparent; background: linear-gradient(135deg, #ff7a3c, #dd341f); box-shadow: 0 10px 34px rgba(221, 52, 31, .25); }
.button:hover { color: #fff; transform: translateY(-1px); }
.hero-aside, .status-card, .card, .toc, .source-box, .answer-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(21, 28, 38, .94), rgba(12, 17, 24, .96));
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}
.hero-aside { padding: 1.2rem; }
.hero-aside dl { margin: 0; display: grid; gap: .85rem; }
.hero-aside div { display: grid; gap: .08rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.hero-aside div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: 0; font-weight: 760; }
.notice { margin: 1.4rem 0; padding: .9rem 1rem; border-left: 3px solid var(--warn); border-radius: 0 10px 10px 0; color: #e9dfc0; background: rgba(255, 209, 102, .07); }
.status-card { position: relative; overflow: hidden; margin: 1.8rem 0 1rem; padding: 1.25rem; }
.status-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--warn); }
.status-card[data-state="clear"]::before { background: var(--ok); }
.status-card[data-state="alert"]::before { background: var(--danger); }
.status-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .65rem; }
.status-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.status-value { margin: .35rem 0; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 880; }
.status-detail { margin: .35rem 0 0; color: var(--muted); }
.detection-list { margin: .8rem 0 0; padding-left: 1.2rem; color: #d9e0e8; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 1.15rem; }
.card p { margin: .35rem 0 0; color: #bbc6d3; }
.metric { display: block; margin-bottom: .35rem; color: var(--accent-2); font-size: 1.45rem; font-weight: 900; }
.toc { margin: 2rem 0; padding: 1rem 1.2rem; }
.toc strong { display: block; margin-bottom: .35rem; }
.toc ol { columns: 2; margin: 0; padding-left: 1.2rem; }
.content { max-width: 860px; }
.content p, .content li { color: #c6d0dc; }
.answer-box { margin: 1.2rem 0; padding: 1.15rem; border-color: rgba(255, 107, 53, .35); background: linear-gradient(145deg, rgba(255,107,53,.1), rgba(16,21,29,.95)); }
.answer-box p { margin: 0; font-size: 1.06rem; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; margin: 1rem 0; }
.link-grid a { display: block; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: #f4f7fb; background: #111821; text-decoration: none; }
.link-grid a:hover { border-color: rgba(255,107,53,.55); background: #171f2b; }
.source-box { margin-top: 2.5rem; padding: 1.1rem 1.2rem; }
.source-box ul { margin-bottom: 0; padding-left: 1.2rem; }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin-bottom: 0; }
.city-index { columns: 3; gap: 2rem; }
.city-index li { break-inside: avoid; margin-bottom: .32rem; }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: #070a0e; }
.footer-inner { padding-block: 1.5rem 2.2rem; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.footer-links a { color: #d7dee8; }
.fine-print { font-size: .82rem; color: #8794a5; }

@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .75rem; }
  .hero { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .toc ol, .city-index { columns: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .link-grid a { transition: transform .16s ease, border-color .16s ease, background .16s ease; }
}
