:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f3f2ee;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.1);

  /* status — reserved for state, always paired with icon + label */
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --maint: #6da7ec;
  --unknown: #c3c2b7;

  /* categorical series, fixed order: sectors / chart series */
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --unknown: #4a4a46;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --unknown: #4a4a46;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 20px; }
/* Header logo to the left of the title */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.brand-text { min-width: 0; }
.brand-text .sub { white-space: nowrap; }
/* The header title is shortened to GSSR on phones; the full name stays in the page for screen readers */
.t-short { display: none; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
button, input { font: inherit; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
/* ── Jump bar (quick links to each section) ── */
html { scroll-padding-top: var(--jump-offset, 140px); }
.jump {
  position: sticky; top: var(--topbar-h, 79px); z-index: 19;
  display: flex; gap: 6px; align-items: center; padding: 6px 24px;
  overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--page) 96%, transparent);
  border-bottom: 1px solid var(--border);
}
.jump::-webkit-scrollbar { display: none; }
.jump[hidden] { display: none; }
.jump-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.jump-btn:hover { background: var(--surface-2); color: var(--ink); }
.jump-btn:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.jump-btn.on { color: var(--ink); border-color: var(--ink-2); background: var(--surface-2); }
.jump-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.jump-btn svg { transition: transform 0.15s; }
.jump-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.jump-dot[hidden] { display: none; }
.jump-menu {
  position: fixed; z-index: 30; min-width: 220px; max-height: min(70vh, 480px); overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.jump-menu[hidden] { display: none; }
.jump-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.jump-menu a:hover, .jump-menu a:focus-visible { background: var(--surface-2); outline: none; }
.to-top {
  position: fixed; right: 16px; bottom: calc(var(--ticker-h, 0px) + 16px); z-index: 40; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--surface-2); }
@media (max-width: 640px) { .jump { padding: 6px 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .jump-btn svg { transition: none; } }

.sub { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ctl { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); cursor: pointer; }
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.btn:hover { background: var(--surface-2); }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 84px; white-space: nowrap; flex: none; }
.theme-btn svg { width: 16px; height: 16px; flex: none; }
.conn { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 13px; }
.viewers { display: inline-flex; gap: 5px; align-items: center; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.viewers b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.viewers[hidden] { display: none; }
@media (max-width: 520px) { .viewers #viewersWord { display: none; } }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--unknown); }
.conn.live .dot { background: var(--good); position: relative; }
/* Pulsing "live" dot: a ring expands and fades out behind the solid dot. */
.conn.live .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--good);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .conn.live .dot::after { animation: none; } }

/* Settings drawer (native <dialog>: focus stays inside, Escape closes) */
.menu-btn, .icon-btn { display: inline-grid; place-items: center; width: 36px; height: 34px; padding: 0; }
.menu-btn svg, .icon-btn svg { width: 16px; height: 16px; }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(360px, 100vw); padding: 0;
  border: none; border-left: 1px solid var(--border); background: var(--surface); color: var(--ink);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.25);
}
.drawer[open] { animation: drawerIn 0.22s ease-out; }
.drawer::backdrop { background: rgba(0, 0, 0, 0.35); }
@keyframes drawerIn { from { transform: translateX(100%); } }
/* Support dialog (the PayPal button loads into it on first open) */
.menu-btn.support-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 12px; font-weight: 600; }
.support-btn:hover { color: var(--good); }
.support {
  width: min(440px, calc(100vw - 24px)); padding: 0; margin: auto; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.support::backdrop { background: rgba(0, 0, 0, 0.45); }
.support[open] { animation: supportIn 0.18s ease-out; }
@keyframes supportIn { from { opacity: 0; transform: translateY(8px); } }
.support-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.support-body p { margin: 0; line-height: 1.5; }
.support-state { color: var(--ink-2); font-size: 13px; }
.support-state[hidden] { display: none; }
.support-pay { background: #fff; color: #111; color-scheme: light; border-radius: 10px; padding: 12px; min-height: 120px; }
.support-fine { color: var(--muted); font-size: 12px; }
.support-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.support-actions .linklike { color: var(--muted); font-size: 12px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.linklike:hover { color: var(--ink); }
@media (max-width: 640px) {
  .support { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; border-bottom: 0; }
  .support[open] { animation-name: sheetIn; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .support[open] { animation: none; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
.drawer.drawer-inline { position: static; height: auto; max-height: none; width: auto; margin: 0 24px; border: 1px solid var(--border); box-shadow: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 16px; margin: 0; }
.drawer-group { padding: 14px 18px; border-bottom: 1px solid var(--border); display: grid; gap: 12px; }
.drawer-group h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
/* Share and Support: in the header on wide screens, in the menu on phones */
.drawer-small { display: none; }
.drawer-action { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; text-align: left; }
.drawer-action svg { width: 16px; height: 16px; flex: none; }
.drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.drawer-row > span { display: grid; gap: 2px; }
.drawer-row small { color: var(--ink-2); font-size: 12px; }
.drawer-btn { justify-self: start; }
/* Checkbox styled as a switch; still a real checkbox for keyboard and screen readers */
.switch {
  appearance: none; flex: none; width: 38px; height: 22px; border-radius: 11px; margin: 0; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); position: relative; transition: background 0.15s;
}
.switch::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink-2); transition: transform 0.15s, background 0.15s;
}
.switch:checked { background: var(--s1); border-color: var(--s1); }
.switch:checked::before { transform: translateX(16px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.conn.down .dot { background: var(--critical); }

/* ── Banner ── */
.banner {
  margin: 16px 24px 0; padding: 12px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--critical);
  display: flex; gap: 12px; align-items: flex-start;
}
.banner > svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner a { text-decoration: none; font-weight: 600; color: var(--ink); }
.banner a:hover { text-decoration: underline; }
.banner.bn-partial { border-left-color: var(--serious); }
.banner.bn-degraded { border-left-color: var(--warning); }
.banner strong { display: block; }
.banner ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }

main { padding: 16px 24px 24px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
main > *, .grid-2 > *, .grid-main > *, .sector-col, .military > *, .mil-grid > *, .out-grid > *, .tfr-grid > *, .gold-grid > * { min-width: 0; }

/* ── Panels ── */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; min-width: 0;
}
.panel-h { margin-bottom: 12px; }
.hint { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.chart-box { position: relative; height: 240px; }
.empty-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: 1fr; } }

/* ── Overview tiles ── */
.overview { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  text-decoration: none; display: block;
}
.tile:hover { border-color: var(--axis); }
.tile .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile .name { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.tile .swatch { width: 10px; height: 10px; border-radius: 3px; }
.tile .big { font-size: 28px; font-weight: 600; margin: 8px 0 2px; }
.tile .big small { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.segbar { display: flex; gap: 2px; height: 8px; margin: 10px 0 6px; }
.segbar span { border-radius: 2px; min-width: 4px; }
.tile .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: 12px; }

/* ── Status badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.badge svg { width: 16px; height: 16px; flex: none; }

/* ── Sector sections ── */
.sector { margin-bottom: 16px; }
.sector > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 12px; }
.sector > header h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.sector > header .meta { color: var(--ink-2); font-size: 13px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.card.st-degraded { box-shadow: inset 3px 0 0 var(--warning); }
.card.st-partial { box-shadow: inset 3px 0 0 var(--serious); }
.card.st-major { box-shadow: inset 3px 0 0 var(--critical); }
.card .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.card .title { font-weight: 600; text-decoration: none; }
.card .title:hover { text-decoration: underline; }
.card .summary { color: var(--ink-2); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.card .issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; }
.card .issues li { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); overflow-wrap: anywhere; }
.card .issues li svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.card .issues a { text-decoration: none; }
.card .issues a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2);
  padding: 2px 6px; border-radius: 6px; background: var(--surface-2);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.more { background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 12px; cursor: pointer; text-decoration: underline; text-align: left; }
.note { font-size: 11px; color: var(--muted); margin: 0; }

.uptime { margin-top: auto; }
.uptime .strip { display: flex; gap: 2px; height: 24px; align-items: stretch; }
.uptime .strip span { flex: 1; border-radius: 2px; min-width: 2px; }
.uptime .strip span:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.uptime .scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 4px; }
.uptime .scale b { color: var(--ink); font-weight: 600; }

.lvl-operational { background: var(--good); }
.lvl-degraded { background: var(--warning); }
.lvl-partial { background: var(--serious); }
.lvl-major { background: var(--critical); }
.lvl-maintenance { background: var(--maint); }
.lvl-unknown { background: var(--unknown); }

.key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); }
.key span { display: inline-flex; align-items: center; gap: 4px; }
.key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Sector-specific charts */
.extras { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); margin-bottom: 12px; }
.extras .chart-box { height: 220px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 8px 16px; margin: 4px 0 12px; }
.kpi .k { color: var(--muted); font-size: 11px; }
.kpi .v { font-weight: 600; font-size: 14px; }

/* ── Alerts feed ── */
.feed { position: sticky; top: calc(var(--jump-offset, 94px) - 4px); max-height: calc(100vh - var(--jump-offset, 94px) - 20px); display: flex; flex-direction: column; }
.alerts { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 8px; }
.alerts li { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.alerts li .when { color: var(--muted); font-size: 11px; }
.alerts li .t { font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.alerts li .t svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.alerts li .m { color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.alerts .empty { background: none; color: var(--muted); }

/* ── Tooltip & toasts ── */
.tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 300px;
  background: var(--ink); color: var(--page); border-radius: 8px; padding: 8px 10px; font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.tip b { display: block; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--critical);
  border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  animation: slide 0.2s ease-out;
}
.toast.lvl-b-partial { border-left-color: var(--serious); }
.toast.lvl-b-degraded { border-left-color: var(--warning); }
.toast.lvl-b-operational { border-left-color: var(--good); }
.toast.lvl-b-info, .toast.lvl-b-maintenance { border-left-color: var(--maint); }
.toast b { display: block; }
.toast p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }

/* ── Motion: intro reveal on first load + smooth hover/state changes ── */
@media (prefers-reduced-motion: no-preference) {
  .intro .uptime .strip span { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) both; transform-origin: bottom; }
  .intro .segbar span { animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: left; }
  .intro .tile, .intro .panel, .intro .card { animation: fade 0.5s ease-out both; }
  .tile, .card, .btn { transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.3s ease; }
  .uptime .strip span { transition: background-color 0.4s ease, outline-color 0.15s ease; }
  .alerts li:first-child { animation: slide 0.35s ease-out; }
}
@keyframes rise { from { transform: scaleY(0); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ── US power outage map ── (ordinal ramp validated: one hue, monotone, faint end >= 2:1 vs surface) */
:root { --o1: #eb9f80; --o2: #df7a50; --o3: #c9562c; --o4: #a13b1b; --o5: #6c200e; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --o1: #7e3521; --o2: #a5462b; --o3: #cc6239; --o4: #ea8b63; --o5: #f9c1a7; } }
:root[data-theme="dark"] { --o1: #7e3521; --o2: #a5462b; --o3: #cc6239; --o4: #ea8b63; --o5: #f9c1a7; }
.out-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.outages { margin-bottom: 12px; }
.out-head h3 { font-size: 15px; }
.out-kpis { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.out-kpis .kpi .v { font-size: 20px; }
/* The panel now sits in the sector column beside the alert feed, so the side lists get a narrower track. */
.out-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
@media (max-width: 1250px) { .out-grid { grid-template-columns: 1fr; } }
.us-map { position: relative; width: 100%; aspect-ratio: 975 / 610; min-height: 200px; }
.us-map svg { width: 100%; height: 100%; display: block; }
.us-map .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.c-county { fill: var(--land); stroke: none; }
.c-county.o1 { fill: var(--o1); } .c-county.o2 { fill: var(--o2); } .c-county.o3 { fill: var(--o3); } .c-county.o4 { fill: var(--o4); } .c-county.o5 { fill: var(--o5); }
.c-county.hit:hover { stroke: var(--ink); stroke-width: 1.2; }
.c-state { fill: none; stroke: var(--surface); stroke-width: 0.9; stroke-linejoin: round; pointer-events: none; }
.c-nation { fill: none; stroke: var(--axis); stroke-width: 0.8; pointer-events: none; }
.out-key { margin-top: 8px; }
.out-key i { width: 18px !important; height: 10px !important; }
.out-side h3 { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.out-side h3:not(:first-child) { margin-top: 14px; }
.mil-list .bar i.ob { background: var(--o3); }
.out-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* ── Military section ── */
:root { --s7: #6250d6; --land: #e9e8e2; --sea: #f3f6f9; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --s7: #9085e9; --land: #2a2a28; --sea: #141618; } }
:root[data-theme="dark"] { --s7: #9085e9; --land: #2a2a28; --sea: #141618; }
.military { display: grid; gap: 12px; }
.mil-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; }
.mil-head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.mil-head .meta { color: var(--ink-2); font-size: 13px; }
.mil-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s7); display: inline-block; }
.mil-map-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mil-layers { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.mil-map { position: relative; width: 100%; aspect-ratio: 2 / 1; min-height: 240px; border-radius: 10px; overflow: hidden; background: var(--sea); cursor: grab; }
.mil-map:active { cursor: grabbing; }
.mil-map svg { width: 100%; height: 100%; display: block; }
.mil-map .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.m-land { fill: var(--land); stroke: var(--surface); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.m-grat { fill: none; stroke: var(--grid); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.m-hot { fill: var(--critical); fill-opacity: 0.32; stroke: var(--critical); stroke-opacity: 0.85; stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-hot:hover { fill-opacity: 0.55; }
.m-carrier { fill: var(--s1); stroke: var(--surface); stroke-width: 1.5; }
.m-amphib { fill: var(--s7); stroke: var(--surface); stroke-width: 1.5; }
.m-ship:hover .m-carrier, .m-ship:hover .m-amphib, .m-ship.focus .m-carrier, .m-ship.focus .m-amphib { stroke: var(--ink); }
.m-ship.inport .m-carrier, .m-ship.inport .m-amphib { fill-opacity: 0.55; }
.m-label { font: 600 10px system-ui, -apple-system, "Segoe UI", sans-serif; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.m-pulse { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mil-key { margin-top: 10px; }
.mil-key svg { flex: none; }
.mil-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.mil-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mil-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 4px 10px; align-items: start; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.mil-list li:hover, .mil-list li:focus-visible { background: var(--surface-2); outline: none; }
.mil-list li.static { cursor: default; }
.mil-list .nm { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.mil-list .sub { color: var(--ink-2); font-size: 12px; }
.mil-list .note { grid-column: 2 / 4; color: var(--muted); font-size: 12px; margin: 0; }
.mil-list .val { font-weight: 600; font-size: 13px; text-align: right; white-space: nowrap; }
.mil-list .rank { color: var(--muted); font-size: 12px; text-align: right; padding-top: 1px; }
.mil-list .bar { grid-column: 2 / 4; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.mil-list .bar i { display: block; height: 100%; background: var(--critical); border-radius: 2px; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mil-warn { color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 0 0 8px; }
#milSsr h3 { font-size: 14px; margin: 8px 0; }

.foot { padding: 0 24px 24px; color: var(--muted); font-size: 12px; }
.foot h2 { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.foot p { max-width: 1100px; margin: 0 0 8px; }

/* Server-rendered status list (what search engines and no-JS visitors see before the live dashboard loads) */
.ssr-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.ssr-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); font-size: 13px; }
.ssr-list a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Four sector tiles: 4 across on wide screens, 2 x 2 on tablets, stacked on phones */
@media (min-width: 641px) and (max-width: 1000px) { .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .topbar, main { padding-left: 16px; padding-right: 16px; }
  /* One compact row on phones: title on the left, Live + menu on the right */
  .topbar { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .topbar .brand { min-width: 0; }
  .topbar #btnSupport, .topbar #btnShare { display: none; }
  .drawer-small { display: grid; }
  .brand .logo { width: 32px; height: 32px; }
  .topbar h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar h1 .t-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .topbar h1 .t-short { display: inline; letter-spacing: 0.04em; }
  .topbar .sub { font-size: 12px; }
  .topbar .controls { flex-wrap: nowrap; flex: none; gap: 10px; }
  .grid-2, .extras { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .chart-box { height: 220px; }
  .tbl-controls > * { max-width: 100%; }
  .tbl-search { flex: 1 1 100%; }
  .update-bar { bottom: 10px; }
  .banner { margin: 12px 16px 0; }
  .foot { padding: 0 16px 16px; }
  .grid-2, .extras { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .feed { position: static; max-height: none; }
}

/* ── Skeleton placeholders ──
   html.skel is set before first paint and removed once the first data arrives. Placeholders only fill containers
   that are still empty, so anything already rendered (server-side cards, finished charts) is never covered. */
:root { --skel-a: color-mix(in srgb, var(--ink) 7%, transparent); --skel-b: color-mix(in srgb, var(--ink) 14%, transparent); }
@keyframes skelShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel .chart-box::after, .skel .mil-list:empty::before, .skel .out-kpis:empty::before, .skel .hint:empty::before,
.skel .meta:empty::before, .skel .tbl-wrap:has(tbody:empty)::after, .mil-map:empty, .us-map:empty {
  background: linear-gradient(90deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 0 0 / 300% 100%;
  animation: skelShimmer 1.4s linear infinite;
}
/* Charts: a soft block where the chart will draw */
.skel .chart-box canvas, .skel #healthEmpty { visibility: hidden; }
.skel .chart-box::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
/* Lists (fleet, conflicts, TFRs, outage states/utilities): a stack of text lines */
.skel .mil-list:empty::before {
  content: ""; display: block; height: 196px; border-radius: 4px;
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 16px, transparent 16px 28px); mask: repeating-linear-gradient(to bottom, #000 0 16px, transparent 16px 28px);
}
/* Headline figures */
.skel .out-kpis:empty::before { content: ""; display: block; width: 220px; max-width: 100%; height: 40px; border-radius: 6px; }
/* One-line hints and meta text that fill in with the data */
.skel .hint:empty::before, .skel .meta:empty::before { content: ""; display: inline-block; width: 60%; min-width: 120px; height: 12px; border-radius: 4px; vertical-align: middle; }
/* Tables: header row stays, rows shimmer below it */
.skel .tbl-wrap:has(tbody:empty)::after {
  content: ""; display: block; height: 240px; margin: 8px 10px;
  -webkit-mask: repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 32px); mask: repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 32px);
}
/* Server-rendered fallback lists are for visitors without JavaScript and search engines; hide them behind the skeletons */
.skel #tfrSsr, .skel #goldSsr, .skel #outSsr, .skel #forcesSsr, .skel #milSsr { display: none; }
/* Sector cards are built by the page script: show a heading line and a grid of card placeholders until then.
   The TFR, gold and outage panels stay hidden until the script moves them into their sections (no jump). */
.skel #sectors > *, .skel #sec-tfr, .skel #sec-gold, .skel #sec-outages, .skel #sec-energy { display: none; }
.skel #sectors { --skel-col: 33.333%; }
@media (min-width: 1500px) { .skel #sectors { --skel-col: 25%; } }
@media (max-width: 1000px) { .skel #sectors { --skel-col: 50%; } }
@media (max-width: 640px) { .skel #sectors { --skel-col: 100%; } }
.skel #sectors::before, .skel #sectors::after {
  content: ""; display: block;
  background: linear-gradient(90deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 0 0 / 300% 100%;
  animation: skelShimmer 1.4s linear infinite;
}
.skel #sectors::before { width: 180px; height: 20px; border-radius: 6px; margin: 8px 0 14px; }
.skel #sectors::after {
  height: 724px; width: calc(100% + 12px);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(var(--skel-col) - 12px), transparent calc(var(--skel-col) - 12px) var(--skel-col)),
                repeating-linear-gradient(180deg, #000 0 230px, transparent 230px 247px);
  -webkit-mask-composite: source-in;
  mask: repeating-linear-gradient(90deg, #000 0 calc(var(--skel-col) - 12px), transparent calc(var(--skel-col) - 12px) var(--skel-col)),
        repeating-linear-gradient(180deg, #000 0 230px, transparent 230px 247px);
  mask-composite: intersect;
}
.skel .sector-col { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .skel #sectors::before, .skel #sectors::after { animation: none; } }
/* Maps shimmer until their outlines finish downloading and drawing */
.mil-map:empty, .us-map:empty { border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  .skel .chart-box::after, .skel .mil-list:empty::before, .skel .out-kpis:empty::before, .skel .hint:empty::before,
  .skel .meta:empty::before, .skel .tbl-wrap:has(tbody:empty)::after, .mil-map:empty, .us-map:empty { animation: none; }
}

/* ── App version + update notice ── */
.app-version { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.update-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70;
  width: min(720px, calc(100vw - 32px)); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-left: 4px solid var(--s1);
  border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); font-size: 13px;
  animation: updateIn 0.25s ease-out;
}
@keyframes updateIn { from { transform: translate(-50%, 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .update-bar { animation: none; } }
.update-actions { display: flex; gap: 8px; }
.btn.primary { background: var(--s1); border-color: var(--s1); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }

/* ── FAA TFR map ── (categorical slots 1-3 validate for all-pairs maps; "Other" stays neutral gray) */
:root { --t-security: var(--s1); --t-hazards: var(--s2); --t-space: var(--s3); --t-other: #898781; }
.tfr { margin-top: 12px; }
.aviation { margin-top: 16px; }
.tfr-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 1250px) { .tfr-grid { grid-template-columns: 1fr; } }
.tfr-map { aspect-ratio: 16 / 9; }
.avi-map { aspect-ratio: 975 / 610; cursor: default; }
.avi-map:active { cursor: default; }
#aviKey { margin-top: 8px; }
.avk { border-radius: 50% !important; }
.a-state { fill: none; stroke: var(--surface); stroke-width: 0.9; stroke-linejoin: round; pointer-events: none; }
.a-land { fill: var(--land); stroke: none; }
.a-dot { stroke: var(--surface); stroke-width: 1.5; cursor: pointer; }
.a-lbl { fill: var(--ink-2); font-size: 11px; font-weight: 600; pointer-events: none; paint-order: stroke; stroke: var(--sea); stroke-width: 3px; }
.avi-list li { grid-template-columns: 10px 1fr; align-items: start; cursor: default; }
.avi-list .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; }
.skel #sec-aviation { display: none; }
.tfr-list { max-height: 460px; overflow: auto; }
.tk { width: 10px !important; height: 10px !important; border-radius: 50% !important; display: inline-block; }
.tk-security { background: var(--t-security); } .tk-hazards { background: var(--t-hazards); }
.tk-space { background: var(--t-space); } .tk-other { background: var(--t-other); }
.t-area { fill-opacity: 0.28; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.t-dot { stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.t-security .t-area, .t-security .t-dot { fill: var(--t-security); stroke: var(--t-security); }
.t-hazards .t-area, .t-hazards .t-dot { fill: var(--t-hazards); stroke: var(--t-hazards); }
.t-space .t-area, .t-space .t-dot { fill: var(--t-space); stroke: var(--t-space); }
.t-other .t-area, .t-other .t-dot { fill: var(--t-other); stroke: var(--t-other); }
.t-dot { stroke: var(--surface) !important; }
.t-item:hover .t-area, .t-item.focus .t-area { fill-opacity: 0.5; }
.t-item.focus .t-dot { stroke: var(--ink) !important; }

/* ── Data tables (gold reserves, military strength) ── */
:root { --pos: #2a78d6; --neg: #e34948; }   /* diverging pair: bought = blue, sold = red */
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --pos: #3987e5; --neg: #e66767; } }
:root[data-theme="dark"] { --pos: #3987e5; --neg: #e66767; }
.gold { margin-bottom: 12px; }
.tbl-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.tbl-search, .tbl-select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; min-width: 0;
}
.tbl-search { width: min(260px, 100%); }
.tbl-count { color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: 12px; background: var(--surface); color: var(--ink-2); border: 0; padding: 6px 10px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--ink); color: var(--page); font-weight: 600; }
.gold-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
@media (max-width: 1250px) { .gold-grid { grid-template-columns: 1fr; } }
.sub-h { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; font-weight: 600; }
.gold-chart { height: 340px; }
.tbl-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.tbl-wrap.tall { max-height: 520px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.data-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 12px; }
.data-table .num { text-align: right; }
.data-table td.name { white-space: normal; min-width: 140px; font-weight: 600; }
.data-table td.muted, .data-table .na { color: var(--muted); }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.data-table.sortable th[data-sort] { cursor: pointer; user-select: none; }
.data-table.sortable th[data-sort]:hover { color: var(--ink); }
.data-table th .arr { font-size: 10px; margin-left: 3px; }
.chg { font-weight: 600; }
.chg.up::before { content: "▲ "; color: var(--pos); font-size: 9px; }
.chg.down::before { content: "▼ "; color: var(--neg); font-size: 9px; }
.nuke { font-weight: 600; }
#sec-forces { margin-top: 0; }

/* ── Background artwork + frosted-glass surfaces ──────────────────────────────
   One analytics-style background per theme (generated by scripts/backgrounds.js).
   Cards, tiles and panels are partly see-through with a blur behind them, so the
   artwork shows through without competing with the text. */
:root {
  --bg-image: url("bg-light.svg");
  --glass: color-mix(in srgb, var(--surface) 66%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 62%, transparent);
  --glass-border: rgba(11, 11, 11, 0.08);
  --glass-blur: blur(8px) saturate(140%);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --bg-image: url("bg-dark.svg");
    --glass: color-mix(in srgb, var(--surface) 62%, transparent);
    --glass-2: color-mix(in srgb, var(--surface-2) 58%, transparent);
    --glass-border: rgba(255, 255, 255, 0.09);
  }
}
:root[data-theme="dark"] {
  --bg-image: url("bg-dark.svg");
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --glass-2: color-mix(in srgb, var(--surface-2) 58%, transparent);
  --glass-border: rgba(255, 255, 255, 0.09);
}
body {
  background-color: var(--page);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}
.panel, .tile, .card, .banner, .ssr-list li {
  background: var(--glass);
  border-color: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.banner { border-left-color: var(--critical); }
.banner.bn-partial { border-left-color: var(--serious); }
.banner.bn-degraded { border-left-color: var(--warning); }
.alerts li { background: var(--glass-2); }
.mil-map { background: color-mix(in srgb, var(--sea) 70%, transparent); }
.tile:hover { border-color: var(--axis); }

/* People who ask for less transparency (or use Windows high-contrast mode) get solid surfaces and no artwork. */
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  body { background-image: none; }
  .panel, .tile, .card, .banner, .ssr-list li { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .alerts li { background: var(--surface-2); }
  .mil-map { background: var(--sea); }
}

/* ── Energy: oil price trend and exports ── */
.energy { display: grid; gap: 12px; margin-top: 8px; }
.energy > * { min-width: 0; }
.energy-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s4); display: inline-block; }
.oil-trends { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-bottom: 12px; }
.oil-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); min-width: 0; }
.oil-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.oil-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.oil-key { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.oil-key.oil-brent { background: var(--s1); }
.oil-key.oil-wti { background: var(--s2); }
.oil-price { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.oil-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.oil-chgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.oil-chg { display: grid; gap: 2px; align-content: start; font-variant-numeric: tabular-nums; }
.oil-chg .k { color: var(--muted); font-size: 11px; }
.oil-chg .chg { font-weight: 600; font-size: 14px; }
.oil-chg .chg.up { color: var(--pos); }
.oil-chg .chg.dn { color: var(--neg); }
.oil-chg .chg.na { color: var(--muted); font-weight: 400; }
.oil-chg .sub { margin: 0; font-size: 12px; }
.oil-chart { height: 300px; }
.bar { display: inline-block; width: 110px; height: 8px; border-radius: 4px; background: var(--grid); vertical-align: middle; overflow: hidden; margin-right: 6px; }
.bar i { display: block; height: 100%; background: var(--s4); border-radius: 4px; }
.tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; vertical-align: middle; }
@media (max-width: 640px) {
  .oil-chgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oil-chart { height: 240px; }
  .bar { width: 70px; }
}
/* Skeleton while the first data loads */
.skel #energySsr { display: none; }
.skel .oil-trends:empty::before {
  content: ""; display: block; height: 130px; border-radius: 10px;
  background: linear-gradient(90deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 0 0 / 300% 100%;
  animation: skelShimmer 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .skel .oil-trends:empty::before { animation: none; } }
.oil-chg .chg.flat { color: var(--ink-2); }

/* ── Natural disasters ── */
.disasters { display: grid; gap: 12px; }
.disasters > * { min-width: 0; }
.dis-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s2); display: inline-block; }
.dis-kpis { margin-bottom: 12px; }
.dis-map { margin-top: 8px; }
.dk { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
.dk-quakes { border-radius: 50%; background: var(--s4); }
.dk-tsunamis { background: var(--s1); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dk-cyclones { border-radius: 50%; border: 2px solid var(--s7); }
.dk-fires { background: var(--s2); transform: rotate(45deg) scale(0.8); }
.dm { stroke-width: 1px; vector-effect: non-scaling-stroke; cursor: default; }
.dm-quakes { fill: color-mix(in srgb, var(--s4) 45%, transparent); stroke: var(--s4); }
.dm-tsunamis { fill: var(--s1); stroke: var(--page); }
.dm-cyclones { fill: color-mix(in srgb, var(--s7) 18%, transparent); stroke: var(--s7); stroke-width: 2px; }
.dm-fires { fill: var(--s2); stroke: var(--page); }
.dm:hover { stroke-width: 2.5px; }
.skel .dis-kpis:empty::before { content: ""; display: block; width: 320px; max-width: 100%; height: 40px; border-radius: 6px; background: linear-gradient(90deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 0 0 / 300% 100%; animation: skelShimmer 1.4s linear infinite; }
.skel #disSsr { display: none; }

.dis-chart { height: 220px; margin-bottom: 12px; }
@media (max-width: 640px) { .dis-chart { height: 190px; } }

:root { --hz-volcano: #e64980; }
.dk-volcanoes { background: var(--hz-volcano); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.dm-volcanoes { fill: var(--hz-volcano); stroke: var(--page); }

/* ── Health ── */
:root { --hz-health: #14b8a6; }
.health { display: grid; gap: 12px; }
.health > * { min-width: 0; }
.hl-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--hz-health); display: inline-block; }
.dk-health { border-radius: 50%; background: color-mix(in srgb, var(--hz-health) 35%, transparent); border: 2px solid var(--hz-health); }
.hm { fill: color-mix(in srgb, var(--hz-health) 38%, transparent); stroke: var(--hz-health); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hm:hover { stroke-width: 3px; }
.skel #hlSsr { display: none; }
#hlFeed a { color: var(--ink); text-decoration: none; font-weight: 600; }
#hlFeed a:hover { text-decoration: underline; }

.update-text { flex: 1 1 280px; min-width: 0; }
.update-sub, .update-fixes { margin: 6px 0 0; color: var(--ink-2); }
.update-list { margin: 4px 0 0; padding-left: 18px; max-height: 34vh; overflow: auto; color: var(--ink-2); display: grid; gap: 3px; }
.update-bar { align-items: flex-start; }

/* ── News ticker (sticky, bottom of the page) ── */
:root { --ticker-h: 38px; }
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; height: var(--ticker-h); display: flex; align-items: stretch;
  background: color-mix(in srgb, var(--page) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border); font-size: 13px; }
.ticker[hidden] { display: none; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--s1); color: #fff; text-decoration: none; white-space: nowrap; }
.ticker-label:hover, .ticker-label:focus-visible { filter: brightness(1.12); text-decoration: underline; }
.ticker-label:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.ticker-track { display: inline-flex; width: max-content; align-items: center; height: 100%; white-space: nowrap; animation: tickerScroll var(--ticker-dur, 120s) linear infinite; will-change: transform; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group { display: inline-flex; width: max-content; align-items: center; flex: none; }
.ni { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 0; margin-right: 22px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--border); height: 18px; }
.ni:hover .ni-title, .ni:focus-visible .ni-title { text-decoration: underline; }
.ni:focus-visible { outline: 2px solid var(--s1); outline-offset: 3px; border-radius: 3px; }
.ni-src { color: var(--muted); font-size: 11px; }
.ni-brk-tag { background: var(--critical); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; line-height: 1.2; }
.ni-brk .ni-title { font-weight: 700; }
.ni-ago { color: var(--muted); font-size: 11px; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .ticker-group + .ticker-group { display: none; }
}
body.has-ticker { padding-bottom: var(--ticker-h); }
body.has-ticker .toasts, body.has-ticker .update-bar { bottom: calc(var(--ticker-h) + 12px); }
@media (max-width: 640px) { .ticker-label { padding: 0 10px; } .ni-src { display: none; } }

/* ── Global Markets ── */
.markets { display: grid; gap: 12px; margin: 8px 0 4px; }
.markets > * { min-width: 0; }
.mk-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s3); display: inline-block; }
.mk-chart { height: 420px; margin-bottom: 12px; }
.mk-metals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-bottom: 14px; }
.mk-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); margin-bottom: 14px; }
.mk-tile { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 8px; background: var(--surface-2); min-width: 0; display: grid; gap: 2px; }
.mk-tile .mk-name { color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tile .mk-price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-tile .mk-price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.mk-tile .mk-chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-chg.up { color: var(--good); }
.mk-chg.dn { color: var(--critical); }
.mk-metal .mk-price { font-size: 26px; }
.mk-metal { padding: 12px 14px 10px; }
.spark { width: 100%; height: 44px; margin-top: 4px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark.up polyline { stroke: var(--good); }
.spark.dn polyline { stroke: var(--critical); }
.spark-area { stroke: none; }
.spark.up .spark-s0, .spark.up .spark-s1 { stop-color: var(--good); }
.spark.dn .spark-s0, .spark.dn .spark-s1 { stop-color: var(--critical); }
.spark-s0 { stop-opacity: 0.5; }
.spark-s1 { stop-opacity: 0.04; }
.spark-base { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
/* Index cards on a world map: wide screens only; narrower ones keep the grid of tiles with trend lines */
.mk-geo { container-type: inline-size; }
.mk-world { display: none; position: relative; aspect-ratio: 2 / 1; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.mk-wsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-wcards { position: absolute; inset: 0; }
.mk-card { position: absolute; transform: translate(-50%, -50%); width: clamp(124px, 12.5cqw, 210px); padding: 5px 8px 4px; border: 1px solid var(--border); border-top: 3px solid var(--s1); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); display: grid; gap: 0; line-height: 1.25; }
.mk-card .mk-name { color: var(--ink-2); font-size: clamp(11px, 0.95cqw, 16px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card .mk-price { font-size: clamp(14px, 1.35cqw, 22px); font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-card .mk-chg { font-size: clamp(12px, 1.1cqw, 18px); font-weight: 600; font-variant-numeric: tabular-nums; }
@container (min-width: 860px) { .mk-world { display: block; } #mkRegions { display: none; } }
.skel #sec-markets { display: none; }
@media (max-width: 640px) { .mk-chart { height: 380px; } }

/* ── Threat level (DEFCON-style index) ── */
.threat { display: grid; gap: 10px; margin: 16px 24px 0; }
@media (max-width: 640px) { .threat { margin: 12px 16px 0; } }
.threat:empty { min-height: 250px; border-radius: 12px; }
.skel .threat:empty { background: linear-gradient(90deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%) 0 0 / 300% 100%; animation: skelShimmer 1.4s linear infinite; }
.tl-head h2 { font-size: 17px; margin: 0; }
.tl-head .hint { max-width: 90ch; }
.tl-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .tl-grid { grid-template-columns: minmax(0, 1fr); } }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--lc); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.tl-top { display: flex; align-items: center; gap: 16px; }
.tl-num { flex: none; width: 76px; height: 76px; border-radius: 16px; background: var(--lc); color: var(--li); display: grid; place-items: center; font-size: 52px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-id { min-width: 0; flex: 1; }
.tl-scope { color: var(--ink-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.tl-name { font-size: 26px; font-weight: 700; line-height: 1.15; }
.tl-ladder { display: flex; gap: 4px; margin-top: 8px; }
.tl-ladder span { flex: 1; max-width: 44px; text-align: center; font-size: 11px; font-weight: 700; padding: 3px 0; border-radius: 5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.tl-ladder span.on { background: var(--c); color: var(--ink); border-color: transparent; outline: 2px solid var(--ink); outline-offset: 1px; }
.tl-text { margin: 12px 0 2px; color: var(--ink-2); font-size: 14px; }
.tl-sub { color: var(--muted); font-size: 12px; }
.tl-drivers, .tl-all ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tl-drivers li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.tl-drivers b, .tl-all b { color: var(--ink); font-weight: 600; }
.tl-pts { flex: none; min-width: 30px; text-align: center; font-weight: 700; font-size: 12px; padding: 1px 4px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-none { color: var(--muted) !important; }
.tl-all { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.tl-all summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tl-all li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; font-size: 12px; color: var(--ink-2); }
.tl-all li.off { opacity: 0.55; }
.tl-all em { font-style: normal; color: var(--muted); }
.tl-bar { height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 5px; overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: var(--lc); }
.tl-hist { margin: 16px 24px 0; }
.tlh-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.tlh-head h3 { margin: 0; font-size: 15px; }
.skel .tl-hist { display: none; }
@media (max-width: 640px) { .tl-hist { margin: 12px 16px 0; } }

/* ── Energy: fuel price map, nuclear reactors, total energy ── */
.gas-kpis .kpi .v small, .out-kpis .kpi .v small { font-size: 12px; font-weight: 400; color: var(--muted); }
.gas-kpis { margin-bottom: 8px; }
.gas-state.hit:hover { stroke: var(--ink); stroke-width: 1.2; }
.gas-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; pointer-events: none; }
.gas-dot-key { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--surface); border: 1.5px solid var(--ink); }
.gchg { font-variant-numeric: tabular-nums; }
.gchg.up { color: var(--good); }
.gchg.dn { color: var(--critical); }
.gchg.na { color: var(--muted); font-weight: 400; font-size: 12px; }
.gas-chart, .nuc-chart, .tot-chart { height: 260px; margin-top: 12px; }
.sub-h { font-size: 13px; margin: 0 0 4px; color: var(--ink-2); }
.nuc-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); }
.nuc-badge.nuc-normal { border-color: var(--good, #0ca30c); }
.nuc-badge.nuc-elevated { border-color: var(--warning, #fab219); }
.nuc-badge.nuc-high { border-color: var(--critical); color: var(--critical); }
.nuc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.nuc-dot.off { background: var(--critical); }
.nuc-dot.red { background: var(--o2); }
.tot-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); margin-bottom: 4px; }
.tot-card .oil-head { margin-bottom: 6px; }
.tot-sub { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.tot-sub.muted { color: var(--muted); }
.skel #sec-gas, .skel #sec-nuclear, .skel #sec-total { display: none; }
@media (max-width: 640px) { .gas-chart, .nuc-chart, .tot-chart { height: 220px; } }

/* Gas price map: light = low price, dark = high price, in both themes */
:root { --g1: #eb9f80; --g2: #df7a50; --g3: #c9562c; --g4: #a13b1b; --g5: #6c200e; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --g1: #f9c1a7; --g2: #ea8b63; --g3: #cc6239; --g4: #a5462b; --g5: #7e3521; } }
:root[data-theme="dark"] { --g1: #f9c1a7; --g2: #ea8b63; --g3: #cc6239; --g4: #a5462b; --g5: #7e3521; }
.c-county.g1 { fill: var(--g1); } .c-county.g2 { fill: var(--g2); } .c-county.g3 { fill: var(--g3); } .c-county.g4 { fill: var(--g4); } .c-county.g5 { fill: var(--g5); }

/* Global shipping */
.shipping { display: grid; gap: 12px; margin: 8px 0 4px; }
.ship-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s4); display: inline-block; }
.bdi-chart { height: 240px; }
.skel #sec-shipping { display: none; }
@media (max-width: 640px) { .bdi-chart { height: 200px; } }

/* Currency exchange rates */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0; }
.fx-card { background: var(--surface-2, transparent); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.fx-card .k { font-size: 12px; color: var(--muted); }
.fx-card .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.fx-card .v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.fx-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.fx-chg { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fx-chg.up { color: var(--good); }
.fx-chg.dn { color: var(--critical); }
.skel #sec-fx { display: none; }

/* Global food prices */
.food { display: grid; gap: 12px; margin: 8px 0 4px; }
.food-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s3); display: inline-block; }
.food-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.food-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.food-chart { height: 300px; }
:root { --f-beef: #c23b6e; --f-milk: #8c7b6b; --f-egg: #8a9a1f; --f-chicken: #1a9fb3; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --f-beef: #e0709a; --f-milk: #b9a998; --f-egg: #c3d24a; --f-chicken: #4cc4d6; } }
:root[data-theme="dark"] { --f-beef: #e0709a; --f-milk: #b9a998; --f-egg: #c3d24a; --f-chicken: #4cc4d6; }
.skel #sec-food { display: none; }

/* Global trade and tariffs */
.trade { display: grid; gap: 12px; margin: 8px 0 4px; }
.trade-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--s2); display: inline-block; }
.trade-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 4px 0 8px; }
.trade-chart { height: 220px; }
.trade .data-table td.num .fx-chg { margin-left: 4px; }
.skel #sec-trade { display: none; }

/* Crime: world map and US state grid, shaded with the same orange scale as the gas map (light = low, dark = high) */
.crime { display: grid; gap: 12px; margin: 8px 0 4px; }
.crime-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--g3); display: inline-block; }
.us-map.world-map { aspect-ratio: 960 / 480; }
.crime-c { stroke: var(--surface); stroke-width: 0.4; vector-effect: non-scaling-stroke; }
.crime-c.hit:hover, .crime-us-state.hit:hover { stroke: var(--ink); stroke-width: 1.2; }
.crime-chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--land); }
.crime-chip.g1 { background: var(--g1); } .crime-chip.g2 { background: var(--g2); } .crime-chip.g3 { background: var(--g3); } .crime-chip.g4 { background: var(--g4); } .crime-chip.g5 { background: var(--g5); }
.crime .data-table td.name .sub { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.crime .data-table td.wpn { white-space: normal; }
.crime .data-table td.wpn small { color: var(--muted); font-size: 12px; }
.skel #sec-crime { display: none; }

/* Global cybersecurity threats: map shaded with the gas-map scale, plus charts and a table */
.cyber { display: grid; gap: 12px; margin: 8px 0 4px; }
.cyber-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--critical); display: inline-block; }
.cyber-chart { height: 220px; margin-bottom: 12px; }
@media (max-width: 640px) { .cyber-chart { height: 200px; } }
.cyber .data-table td.wrap { white-space: normal; min-width: 220px; }
.cyber .data-table .rw { color: var(--critical); font-weight: 600; }
.cyber .data-table a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); }
.cyber-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.skel #sec-cyber { display: none; }

/* Analysis: Food & Fuel */
.analysis { display: grid; gap: 12px; margin: 8px 0 4px; }
.analysis-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--g3); display: inline-block; }
.ff-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ff-chart { height: 300px; margin-top: 12px; }
@media (max-width: 640px) { .ff-chart { height: 240px; } .ff-controls { justify-content: flex-start; } }
.skel #sec-analysis { display: none; }
@media (max-width: 640px) { .trade-chart { height: 200px; } }
@media (max-width: 640px) { .food-chart { height: 240px; } }
#sec-fx { margin-bottom: 16px; }

/* Unemployment and Inflation */
.econ { display: grid; gap: 12px; margin: 8px 0 4px; }
.econ-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.skel #sec-unemp, .skel #sec-infl, .skel #sec-poverty { display: none; }

/* Terrorism advisories */
.ntas { display: grid; gap: 12px; margin: 8px 0 4px; }
.ntas > * { min-width: 0; }
.skel #sec-ntas { display: none; }
.ntas-status { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.ntas-head { font-weight: 600; font-size: 16px; }
.ntas-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.ntas-dot.sm { width: 10px; height: 10px; }
.ntas-list { display: grid; gap: 12px; margin-top: 12px; }
.ntas-list:empty { display: none; }
.ntas-alert { border: 1px solid var(--border); border-left: 4px solid var(--serious); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.ntas-alert p { margin: 0; }
.ntas-top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ntas-badge { color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ntas-sum { font-weight: 600; }
.ntas-body p + p, .ntas-sec p + p { margin-top: 6px; }
.ntas-li { padding-left: 4px; }
.ntas-sec h4 { margin: 0 0 4px; font-size: 13px; }
.ntas-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ntas-chips .k { color: var(--muted); font-size: 12px; }
.ntas-chip { font-size: 12px; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; }
.ntas-feedlist li { align-items: center; }
.ntas-feedlist .ntas-dot { margin-right: 4px; }

/* Section share buttons */
.share-sec { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 8px; padding: 0; vertical-align: middle; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0.7; }
.share-sec:hover, .share-sec:focus-visible { opacity: 1; color: var(--ink); border-color: var(--border); background: var(--surface-2, transparent); }
.share-sec:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; }
@keyframes share-flash { 0% { box-shadow: 0 0 0 3px var(--accent, #3b82f6); } 100% { box-shadow: 0 0 0 3px transparent; } }
.share-flash { animation: share-flash 2.4s ease-out; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .share-flash { animation: none; } }

/* National debt clock */
.debt-clock { text-align: center; padding: 8px 0 12px; }
.debt-total { font-size: clamp(28px, 7vw, 56px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; line-height: 1.1; }
.debt-rate { margin-top: 6px; font-size: 13px; color: var(--muted); }
.debt-chart { height: 260px; margin-top: 12px; }
@media (max-width: 640px) { .debt-chart { height: 220px; } }
.skel #sec-debt { display: none; }
#sec-debt { margin-bottom: 16px; }
