/* Geyser Gazette static site. One cascade: tokens, shell, home, shared sections, article pages, responsive. */
:root {
  color-scheme: dark;
  --ink: #f5f8fa;
  --muted: #afc1cd;
  --surface: #0f1e2a;
  --surface-2: #172a39;
  --line: #29485b;
  --gold: #e85d24;
  --cyan: #70c8ea;
  --coral: #ff9b50;
  --green: #9cc9ad;
  --max: 1180px;
  --header: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: #07131d;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--cyan); }
a:hover { color: #c8edfb; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
img, iframe { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shell ------------------------------------------------------------------ */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: var(--gold); color: #101820; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 900; min-height: var(--header); border-bottom: 1px solid var(--line); background: rgba(7, 19, 29, .96); backdrop-filter: blur(12px); }
.nav-shell { width: min(var(--max), calc(100% - 32px)); min-height: var(--header); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.34rem; }
.brand span { color: var(--gold); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a { min-height: 42px; padding: 9px 11px; border-radius: 4px; color: var(--muted); text-decoration: none; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.main-nav a.nav-report { border: 1px solid rgba(145, 216, 255, .62); color: var(--cyan); }
.main-nav a.nav-report:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.nav-alerts { background: var(--gold); border-color: var(--gold); color: #101820; }
.main-nav a.nav-alerts:hover { background: #ff7947; color: #101820; }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 1.2rem; }

.site-footer { border-top: 1px solid var(--line); background: #050e16; }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 30px 0 42px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 8px 18px; }

/* Shared type and controls ------------------------------------------------ */
.band { border-top: 1px solid var(--line); }
.band-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 52px 0; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.13; letter-spacing: 0; }
h1 { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 5.8rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.08rem; }
.lede { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 800; }
.button:hover { border-color: var(--cyan); color: var(--ink); }
.button.primary { background: var(--gold); border-color: var(--gold); color: #101820; }
.text-link { display: inline-flex; gap: 7px; margin-top: 18px; color: var(--cyan); font-weight: 850; text-decoration: none; }
.text-link:hover { color: var(--ink); }

/* Home: intent buttons, then today's activity first ----------------------- */
.home-hero { border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 18%, rgba(112, 200, 234, .16), transparent 32rem), #091722; }
.home-hero-inner { width: min(var(--max), calc(100% - 24px)); margin: 0 auto; padding: 18px 0 26px; }
.home-hero h1 { margin: 0 0 12px; font: 800 clamp(1.1rem, 2.6vw, 1.55rem)/1.25 Inter, ui-sans-serif, system-ui, sans-serif; }
.home-intent-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.home-intent-nav a { display: grid; gap: 1px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(15, 30, 42, .92); color: var(--ink); text-decoration: none; text-align: center; }
.home-intent-nav a:hover { border-color: var(--cyan); background: var(--surface-2); }
.home-intent-nav strong { color: var(--cyan); font-size: .95rem; }
.home-intent-nav span { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.home-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-path-grid > * { min-width: 0; }
.home-path { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: rgba(15, 30, 42, .94); }
.home-path h2 { margin-bottom: 8px; font-size: 1.25rem; }
.home-path p:not(.eyebrow) { color: var(--muted); }
.home-path .text-link { margin-top: auto; padding-top: 16px; }
.home-report { border-color: rgba(232, 93, 36, .56); }
.home-alerts { border-color: rgba(156, 201, 173, .5); }
.today-home { grid-column: 1 / -1; padding: 0; border: 0; background: transparent; }
.today-home > .eyebrow { display: none; }
.today-home > h2 { margin: 0 0 4px; font-size: 1.2rem; }
#today-home-title { scroll-margin-top: calc(var(--header) + 12px); }
.today-home-date { margin: 0 0 8px; font-weight: 800; color: var(--muted); }
.today-home-counts { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-bottom: 6px; }
.today-count { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.today-home-status { display: flex; align-items: center; gap: 7px; min-height: 24px; margin: 0; font-size: .8rem; color: var(--muted); }
.today-home-status.is-error { color: #ffb0a7; }
.today-freshness-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(175, 193, 205, .12); }
.today-home-status.is-live .today-freshness-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(156, 201, 173, .15); }
.today-home-status.is-error .today-freshness-dot { background: #ff8b82; box-shadow: 0 0 0 3px rgba(255, 139, 130, .14); }
.home-compact-links { margin: 2px 0 6px; font-size: .82rem; color: var(--muted); }

.today-home-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
.today-search { flex: 1 1 100%; min-width: 0; }
.today-search input, .today-time-mode select, .today-order select { width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(7, 19, 29, .72); color: var(--ink); font: inherit; }
.today-time-mode, .today-order { flex: 0 1 190px; min-width: 150px; }
.today-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; cursor: pointer; }
.today-filter:has(input:checked) { border-color: var(--cyan); color: var(--ink); background: rgba(112, 200, 234, .12); }
.today-filter input { accent-color: var(--cyan); }
.today-clear-filters { min-height: 42px; padding: 6px 10px; border: 0; background: transparent; color: var(--cyan); font: inherit; font-size: .85rem; cursor: pointer; }
.today-clear-filters:hover { color: var(--ink); text-decoration: underline; }
.today-home-filter-status { min-height: 18px; margin: 0 0 4px; color: var(--muted); font-size: .8rem; }
.today-home-filter-status:empty, .today-home-hidden-list:empty { display: none; }
.today-home-hidden-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.today-home-hidden-list button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--cyan); font: inherit; font-size: .85rem; cursor: pointer; }

.today-home-table-frame { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; overflow: visible; background: rgba(7, 19, 29, .56); }
.today-home-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.today-home-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.today-home-table thead { position: sticky; top: var(--header); z-index: 2; background: #142a39; }
.today-home-table th, .today-home-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.today-home-table thead th { color: var(--ink); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.today-home-table thead th:first-child { width: 28%; }
.today-home-table tbody tr:last-child > * { border-bottom: 0; }
.today-home-table tbody th { color: var(--ink); font-size: .95rem; font-weight: 700; }
.today-home-table tbody th a { color: var(--cyan); text-decoration: none; }
.today-home-table tbody th a:hover { color: var(--ink); text-decoration: underline; }
.today-geo-note { display: block; margin-top: 1px; color: var(--muted); font-size: .76rem; font-weight: 400; }
.today-row-tools { display: inline-flex; margin-right: 4px; vertical-align: -3px; }
.today-favorite { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.today-favorite.today-hide { color: var(--muted); font-size: 1rem; }
.today-favorite:hover, .today-favorite:focus-visible { color: var(--ink); }
.today-home-placeholder td { padding: 16px 12px; color: var(--muted); font-size: .9rem; }
.today-retry { min-height: 36px; margin-left: 10px; padding: 4px 14px; }
.today-home-noscript { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.today-home-more { margin: 8px 0; color: var(--muted); font-size: .82rem; }
.today-home-more summary { color: var(--cyan); cursor: pointer; }
.today-home-compact-legend { margin: 6px 0; color: var(--muted); font-size: .8rem; }

/* Each report is its own pill, so the details never run together with the next time. */
.today-entry-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.today-entry-list li { min-width: 0; max-width: 100%; }
.today-entry-list li > a, .today-entry-list li > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(23, 42, 57, .6); color: var(--ink); text-decoration: none; font-size: .88rem; }
.today-entry-list li > a:hover { border-color: var(--cyan); color: var(--ink); }
.today-entry-list .today-entry-time { color: var(--coral); font-weight: 800; }
.today-entry-list .today-entry-detail { color: var(--muted); font-size: .78rem; }
.today-entry-more { flex-basis: 100%; }
.today-show-all { padding: 2px 0; border: 0; background: transparent; color: var(--cyan); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.today-show-all:hover, .today-show-all:focus-visible { color: var(--ink); text-decoration: underline; }

/* Headings inserted by geography.js. Kept here because the site CSP forbids injected <style>. */
.geography-heading { grid-column: 1 / -1; overflow-wrap: anywhere; }
.geography-heading th, div.geography-heading { padding: 6px 12px; background: var(--surface-2); color: var(--ink); text-transform: none; }
.geography-heading th { font-size: .95rem; }
.geography-heading button { display: inline-block; max-width: 100%; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: left; white-space: normal; cursor: pointer; }
.geography-heading button::before { content: "▾ "; }
.geography-heading button[aria-expanded="false"]::before { content: "▸ "; }
.group-page-link { display: inline-block; margin-left: 14px; padding: 6px 0; font-size: .88rem; }

/* More from the home page ------------------------------------------------- */
.homepage-dashboard { border-top: 1px solid var(--line); background: #081721; }
.homepage-dashboard > summary { width: min(var(--max), calc(100% - 24px)); margin: auto; padding: 14px 0; color: var(--cyan); cursor: pointer; font-weight: 800; }
.report-flow { background: #081721; }
.section-note { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.flow-grid, .alert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow-grid li, .alert-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.flow-grid strong, .alert-card h3 { display: block; margin-bottom: 10px; color: var(--ink); font-size: 1.1rem; }
.flow-grid span, .alert-card p:not(.alert-label) { color: var(--muted); }
.alert-section { background: var(--surface); }
.alert-card { display: flex; flex-direction: column; }
.alert-card .text-link { margin-top: auto; padding-top: 18px; }
.alert-card-sms { border-color: rgba(112, 200, 234, .52); }
.alert-label { margin: 0 0 20px; color: var(--gold); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.browse-section { background: #07131d; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-link { min-height: 175px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--surface); }
.feature-link:hover { background: var(--surface-2); color: var(--ink); }
.feature-link span { display: block; margin-top: 10px; color: var(--muted); }
.feature-link strong { color: var(--gold); }
.map-preview { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr) auto; gap: 22px; align-items: center; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-decoration: none; }
.map-preview:hover { border-color: var(--cyan); color: var(--ink); }
.map-preview img { display: block; width: 100%; height: 180px; object-fit: cover; }
.map-preview span { display: grid; gap: 5px; }
.map-preview strong { color: var(--gold); font-size: 1.2rem; }
.map-preview small { color: var(--muted); }
.map-preview b { padding-right: 24px; color: var(--cyan); font-size: 1.7rem; }

/* About, legal, contact and 404 pages ------------------------------------- */
.page-hero { border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .band-inner { padding-top: 76px; padding-bottom: 64px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #d7e4eb; }
.prose li + li { margin-top: 8px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--surface-2); }
.contact-list { padding: 0; list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .menu-button { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; top: var(--header); left: 0; right: 0; display: none; padding: 10px 16px 18px; background: #07131d; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { border: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .home-path-grid { grid-template-columns: 1fr; }
  .flow-grid, .alert-grid, .link-grid { grid-template-columns: 1fr; }
  .feature-link { min-height: 128px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .map-preview { grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr) auto; }
}
@media (max-width: 620px) {
  .home-intent-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intent-nav span { display: none; }
  .home-intent-nav a { min-height: 46px; align-content: center; padding: 8px 6px; }
  .today-home-controls { gap: 6px; }
  .today-filter { min-height: 38px; padding: 4px 10px; font-size: .82rem; }
  .today-time-mode, .today-order { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .today-search input, .today-time-mode select, .today-order select { min-height: 40px; }
  /* Narrow screens: the geyser name sits above its reports instead of squeezing into a side column. */
  .today-home-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
  .today-home-table, .today-home-table tbody, .today-home-table tr, .today-home-table th, .today-home-table td { display: block; width: 100%; }
  .today-home-table tbody th { padding: 10px 12px 2px; border: 0; }
  .today-home-table tbody td { padding: 2px 12px 12px; border-bottom: 1px solid var(--line); }
  .today-home-table tbody tr:last-child td { border-bottom: 0; }
  .today-home-table .geography-heading th { padding: 4px 12px; border-bottom: 1px solid var(--line); }
  .group-page-link { display: block; margin: 0 0 6px; padding: 0 0 2px 1.25em; }
}
@media (max-width: 460px) {
  .brand span { display: none; }
  .nav-shell, .band-inner, .footer-inner { width: min(100% - 22px, var(--max)); }
  .main-nav.open { grid-template-columns: 1fr; }
  .page-hero .band-inner { padding-top: 48px; padding-bottom: 40px; }
  .map-preview { grid-template-columns: 1fr; gap: 0; }
  .map-preview span { padding: 18px 18px 0; }
  .map-preview b { padding: 12px 18px 18px; }
}
