/* The hub homepage: what is happening now, a card per live map, the newest headlines, then every page by group.
   Built on migration.css (hero, kicker, footer) and header.css (site bar, FAQ). */
/* The other pages get border-box sizing from crossings.css, which this page does not load. */
.hub-page *, .hub-page *::before, .hub-page *::after { box-sizing: border-box; }
body.hub-page { margin: 0; }
.hub-draft { margin: 0; padding: 8px 16px; background: #facc1514; color: #facc15; font: 600 12px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: center; }
.hub { --ink: #f2f2f3; --muted: #9b9ba3; --faint: #6e6e76; --card: #111113; --line: #222226; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.hub-hero { border-bottom: 0; padding-bottom: 18px; }
.hub-hero h1 .hero-red { display: inline-block; max-width: 15ch; }
.hub-hero p { max-width: 64ch; }
.hub .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Right now: four figures, each a link to its map. */
.hub-now ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.hub-now a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, transform 100ms ease-out; }
.hub-now span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hub-now b { color: var(--accent); font-size: clamp(26px, 3.2vw, 34px); font-weight: 750; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hub-now small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.hub-section { padding: 36px 0 0; }
.hub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px; }
.hub-head h2 { margin: 0; color: var(--ink); font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.hub-head h2::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 3px; }
.hub-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* Live maps: one card per map, the whole card a link, its live figure at the foot. */
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hub-card { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s, transform 100ms ease-out; }
.hub-card h3 { margin: 12px 0 4px; font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.012em; }
.hub-card p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hub-figure { padding-top: 11px; border-top: 1px solid #ffffff10; color: var(--muted); font-size: 13px; }
.hub-figure b { color: var(--accent); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hub-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* Latest headlines: a grouped list, the section as a small tag. */
.hub-news { margin: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); list-style: none; }
.hub-news li + li { border-top: 1px solid #ffffff10; }
.hub-news a { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 13px 0; color: var(--ink); text-decoration: none; }
.hub-news strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.hub-news small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 12px; }
.hub-tag { grid-row: 1 / span 2; align-self: start; justify-self: start; margin-top: 2px; padding: 2px 7px; border-radius: 6px; background: #ffffff10; color: #c6c6cb; font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }

/* Every other page, grouped: an icon, the name and what it holds. */
.hub-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.hub-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s, transform 100ms ease-out; }
.hub-links .hub-icon { width: 34px; height: 34px; border-radius: 10px; }
.hub-links strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.hub-links small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }

.hub-app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 40px 0 0; padding: 20px 22px; border: 1px solid #ff405833; border-radius: 18px; background: linear-gradient(135deg, #ff40581a, #111113 60%); }
.hub-app h2 { margin: 0 0 4px; color: var(--ink); font-size: 20px; letter-spacing: -.015em; }
.hub-app p { max-width: 56ch; margin: 0; color: #c6c6cb; font-size: 14px; line-height: 1.5; }
.hub-button { padding: 11px 20px; border: 0; border-radius: 12px; background: #ff4058; color: #fff; font: 700 15px/1 system-ui, -apple-system, sans-serif; cursor: pointer; transition: transform 100ms ease-out, background .15s; }

/* Live world map: a dot per place named in the last 24 hours. Fresh ones (3 hours) pulse; tap one for its headline. */
.hub-map { padding-top: 6px; }
.hub-chips, .hub-tabs { display: flex; gap: 6px; margin: 0 0 12px; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.hub-chips::-webkit-scrollbar, .hub-tabs::-webkit-scrollbar { display: none; }
.hub-chips button, .hub-tabs button { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 36px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: #c6c6cb; font: 600 13px/1 system-ui, -apple-system, sans-serif; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform 100ms ease-out; }
.hub-chips button i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.hub-chips button b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.hub-chips button[aria-pressed="true"], .hub-tabs button[aria-pressed="true"] { border-color: #ffffff3d; background: #f2f2f3; color: #0b0b0c; }
.hub-chips button[aria-pressed="true"] b { color: #3a3a40; }
.hub-chips button:active, .hub-tabs button:active { transform: scale(.96); }
.hub-world { position: relative; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(120% 90% at 50% 0%, #121217, #0a0a0c); }
.hub-world-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.hub-world-scroll::-webkit-scrollbar { display: none; }
.hub-world svg { display: block; width: 100%; height: auto; }
.hub-dots circle { fill: var(--dot); fill-opacity: .78; stroke: #0a0a0c; stroke-width: .8; cursor: pointer; transform-box: fill-box; transform-origin: center; transition: fill-opacity .15s, transform .15s; }
.hub-world.ready .hub-dots circle { animation: dot-in .5s cubic-bezier(.32, .72, 0, 1) backwards; }
.hub-dots circle.fresh { fill-opacity: .95; filter: drop-shadow(0 0 3px var(--dot)); }
.hub-dots circle.on, .hub-dots circle:hover { fill-opacity: 1; transform: scale(1.5); stroke: #fff; stroke-width: 1; }
.hub-dots g { transition: opacity .2s; }
.hub-dots g.off { opacity: 0; pointer-events: none; }
@keyframes dot-in { from { transform: scale(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hub-dots circle.fresh { animation: dot-in .5s cubic-bezier(.32, .72, 0, 1) backwards, dot-pulse 2.4s ease-in-out .6s infinite; }
}
@keyframes dot-pulse { 50% { fill-opacity: .45; } }
.hub-world figcaption { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 99px; background: rgb(11 11 12 / .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #c6c6cb; font-size: 12px; }
.hub-live { width: 7px; height: 7px; border-radius: 50%; background: #ff4058; box-shadow: 0 0 0 3px #ff405838; }
.hub-world.failed .hub-dots { display: none; }
.hub-pop { position: absolute; z-index: 2; width: min(260px, 80%); padding: 12px 14px; border: 1px solid #ffffff1f; border-radius: 14px; background: rgb(17 17 19 / .9); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 18px 40px #000a; transform: translate(-50%, calc(-100% - 14px)); animation: pop-in .22s cubic-bezier(.32, .72, 0, 1); }
.hub-pop.below { transform: translate(-50%, 14px); }
.hub-pop-tag { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.hub-pop-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.hub-pop strong { display: block; margin: 5px 0 4px; color: var(--ink); font-size: 14px; line-height: 1.35; }
.hub-pop small { display: block; color: var(--muted); font-size: 12px; }
.hub-pop a { display: inline-block; margin-top: 8px; color: #ff8190; font-size: 13px; font-weight: 600; text-decoration: none; }
@keyframes pop-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hub-pop { animation: none; } .hub-world.ready .hub-dots circle { animation: none; } }

/* 24-hour sparkline at the foot of each map card. */
.hub-figure { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.hub-spark { flex: none; width: 96px; height: 24px; }
.hub-spark rect { fill: var(--accent); opacity: .55; transition: opacity .15s; }
.hub-spark rect:hover { opacity: 1; }
.hub-news li[hidden] { display: none; }
.hub-tag { background: color-mix(in srgb, var(--dot, #fff) 16%, transparent); color: var(--dot, #c6c6cb); }

/* Feedback on press, a lift on hover where there is a pointer. */
.hub-now a:active, .hub-card:active, .hub-links a:active, .hub-button:active { transform: scale(.98); }
@media (hover: hover) {
  .hub-now a:hover, .hub-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .hub-card:hover { background: #151518; }
  .hub-links a:hover, .hub-news a:hover strong { background: #18181b; }
  .hub-news a:hover strong { background: none; text-decoration: underline; text-underline-offset: 3px; }
  .hub-button:hover { background: #ff5a6e; }
}
.hub a:focus-visible, .hub-button:focus-visible { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }
.hub .site-faq { padding-top: 44px; }

@media (max-width: 1100px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hub-world { border-radius: 14px; margin: 0 -4px; }
  .hub-world svg { width: 230%; }  /* sideways to explore; dots big enough to tap */
  .hub-figure { white-space: nowrap; }
  .hub-spark { width: 72px; }
  .hub-world figcaption { left: 8px; bottom: 8px; font-size: 11px; }
  .hub-now ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid, .hub-links { grid-template-columns: 1fr; }
  .hub-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .hub-card .hub-icon { grid-row: 1 / span 3; }
  .hub-card h3 { margin-top: 0; }
  .hub-card p { margin-bottom: 10px; }
  .hub-figure { grid-column: 2; padding-top: 9px; }
  .hub-news a { grid-template-columns: 1fr; }
  .hub-tag { grid-row: auto; margin: 0 0 6px; }
  .hub-news small { grid-column: 1; }
  .hub-section { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .hub * { transition: none !important; } }

/* Scales on the "Right now" figures: five steps for the two threat levels, today's count on its 2-week range for the rest. */
.hub-now ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-now a { align-content: start; }
.hub-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 8px; margin: 12px 0 0; }
.hub-steps i { border-radius: 3px; background: #ffffff12; }
.hub-steps i.lit { background: var(--c); }
.hub-range { position: relative; display: block; height: 8px; margin: 12px 0 0; border-radius: 4px; background: linear-gradient(90deg, #ffffff10, color-mix(in srgb, var(--c) 35%, transparent)); }
.hub-range i { position: absolute; top: -3px; bottom: -3px; left: var(--usual); width: 2px; border-radius: 1px; background: #ffffff59; }  /* the usual day */
.hub-range b { position: absolute; top: 50%; left: var(--at); width: 14px; height: 14px; border: 3px solid #111113; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #ffffff40; transform: translate(-50%, -50%); }
.hub-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .hub-now ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub-now .hub-ends span { color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
@media (max-width: 760px) { .hub-now .hub-ends span:nth-child(2):not(:last-child) { display: none; } }
/* /liveuamap-alternative: a text comparison, so cells wrap instead of the number tables' one-line cells */
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.5; }
.compare-table th, .compare-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid #ffffff14; text-align: left; vertical-align: top; color: #c6c6cb; white-space: normal; }
.compare-table thead th { color: var(--ink, #f2f2f3); font-size: 13px; font-weight: 700; }
.compare-table tbody th { width: 18%; color: var(--ink, #f2f2f3); font-weight: 600; }
@media (max-width: 640px) { .compare-table { font-size: 13px; } .compare-table tbody th { width: 26%; } }
