/* ocean-microbiome.org — shared stylesheet for v1 (OM-RGC.v1, 2015) and v2 (OM-RGC.v2, 2019).
   v1/static/css/site.css and v2/static/css/site.css are identical copies; edit both. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0f1d2b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --page: #f5f7fa;
  --tint: #eaf2fa;
  --navy: #12304b;
  --link: #0b5c97;
  --accent: #e05f3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 29 43 / 5%), 0 10px 30px rgb(15 29 43 / 6%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --glyph-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-4.5-4.5M12 15l4.5-4.5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E");
  --glyph-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E");
  --glyph-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  --glyph-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --glyph-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
  --glyph-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5a8.5 8.5 0 1 0 11 11z'/%3E%3C/svg%3E");
  --glyph-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E");
  /* surfaces of individual components */
  --chip: #eef2f6;
  --topbar: rgb(255 255 255 / 85%);
  --glow-1: rgb(11 92 151 / 12%);
  --glow-2: rgb(224 95 59 / 7%);
  --stat-bg: rgb(255 255 255 / 70%);
  --button-bg: #12304b;
  --button-fg: #ffffff;
  --code-bg: #0f1d2b;
  --code-fg: #e2e8f0;
  --footer-bg: #12304b;
  --footer-fg: #c9d6e3;
  /* read by the chart scripts (map, bar charts) */
  --map-ocean: #dcebf7;
  --map-land: #ffffff;
  --map-outline: #c7d6e4;
  --chart-bar: #12304b;
  --chart-text: #475569;
  color-scheme: light;
}

/* Dark mode: set on <html> before the page paints (inline script in each page's head),
   from the visitor's choice or else the system setting. */
:root[data-theme='dark'] {
  --ink: #e6edf5;
  --text: #c2cfdc;
  --muted: #8d9eb1;
  --line: #22354a;
  --surface: #101b29;
  --page: #0a131e;
  --tint: #132a40;
  --link: #7ab7ef;
  --accent: #f07b57;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px rgb(0 0 0 / 30%);
  --chip: #1a2a3c;
  --topbar: rgb(10 19 30 / 82%);
  --glow-1: rgb(122 183 239 / 14%);
  --glow-2: rgb(240 123 87 / 8%);
  --stat-bg: rgb(16 27 41 / 75%);
  --button-bg: #e6edf5;
  --button-fg: #0a131e;
  --code-bg: #050c14;
  --code-fg: #d6e2ee;
  --footer-bg: #050c14;
  --footer-fg: #9fb1c4;
  --map-ocean: #0f2438;
  --map-land: #1f354c;
  --map-outline: #31506e;
  --chart-bar: #7ab7ef;
  --chart-text: #a9b8c8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  font-feature-settings: 'cv11', 'ss01';
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
h4 { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
b, strong { font-weight: 650; color: var(--ink); }
sup { font-size: 0.7em; }
code { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: 0.5rem 1rem; background: var(--surface); }

/* Icons: CSS masks, coloured with currentColor. */
.i-file::before, .i-doc::before, .ext::after, .out::after {
  content: '';
  display: inline-block;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat;
  mask: var(--g) center / contain no-repeat;
}
.i-file::before, .i-doc::before { width: 1.05em; height: 1.05em; margin-right: 0.5em; vertical-align: -0.17em; }
.i-file::before { --g: var(--glyph-file); }
.i-doc::before { --g: var(--glyph-doc); }
.ext::after, .out::after { --g: var(--glyph-out); width: 0.75em; height: 0.75em; margin-left: 0.15em; vertical-align: 0.05em; }
.ext::after { vertical-align: 0.45em; }

/* Top bar ----------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand img { display: block; width: auto; height: 44px; }
.nav { display: flex; gap: 0.25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav a { display: block; padding: 0.4rem 0.75rem; border-radius: 8px; color: var(--muted); font-size: 0.92rem; font-weight: 550; }
.nav a:hover { background: var(--page); color: var(--ink); text-decoration: none; }
.versions { display: flex; padding: 3px; border-radius: 999px; background: var(--chip); }
.versions a { white-space: nowrap; padding: 0.25rem 0.75rem; border-radius: 999px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.versions a:hover { color: var(--ink); text-decoration: none; }
.versions [aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(15 29 43 / 12%); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.button:hover { background: var(--accent); text-decoration: none; }
.theme-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle::before { content: ''; display: block; width: 18px; height: 18px; margin: auto; background: currentColor; -webkit-mask: var(--glyph-moon) center / contain no-repeat; mask: var(--glyph-moon) center / contain no-repeat; }
:root[data-theme='dark'] .theme-toggle::before { -webkit-mask-image: var(--glyph-sun); mask-image: var(--glyph-sun); }
.theme-toggle:hover { color: var(--accent); }
:root[data-theme='dark'] .brand img { padding: 3px 6px; border-radius: 8px; background: #fff; }

/* Hero ---------------------------------------------------------------------------- */
.hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--glow-1), transparent 70%),
    radial-gradient(600px 300px at 0% 0%, var(--glow-2), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-compact { padding: 3rem 0 2.25rem; }
.hero.hero-compact h1 { max-width: none; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.eyebrow { margin: 0 0 0.75rem; color: var(--accent); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { max-width: 30ch; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.citation { margin: 1.25rem 0 0; font-size: 1.05rem; font-weight: 550; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
}
.stats div { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--stat-bg); }
.stats dt { color: var(--muted); font-size: 0.82rem; font-weight: 550; }
.stats dd { margin: 0; order: -1; color: var(--ink); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column; }

/* Cards and layout ------------------------------------------------------------------ */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: 1.5rem; }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.map-card { overflow: hidden; }
.map-card #chartdiv { height: 460px; }
.map-card #chartdiv.world { height: auto; aspect-ratio: 1.55; }   /* v2: the whole world map */
.map-legend { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; margin: 0.6rem 0 0; padding: 0; list-style: none; color: var(--text); font-size: 0.85rem; }
.map-legend li::before { content: ''; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.45em; border-radius: 50%; background: var(--dot); vertical-align: 0.02em; }
.map-card img { display: block; width: 100%; height: auto; }
.map-card figcaption, .card-foot { padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.map-card figcaption strong { display: block; color: var(--ink); font-size: 0.98rem; }
figure.map-card { margin: 0; }

.panel { display: flex; flex-direction: column; max-height: 560px; }
.panel-head { padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 650; }
.panel [role='tabpanel'] { overflow: auto; padding: 0.5rem 1.25rem 1.25rem; }
.panel h4 { margin: 1.1rem 0 0.4rem; }
.panel h4 a { color: inherit; }
.linklist { margin: 0; padding: 0; list-style: none; }
.linklist li { padding: 0.2rem 0; font-size: 0.94rem; }

.tablist { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 11px; background: var(--chip); }
.tablist [role='tab'] {
  flex: 1 1 auto;
  padding: 0.4rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 550 0.88rem/1.3 var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.tablist [role='tab']:hover { color: var(--ink); }
.tablist [aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(15 29 43 / 12%), 0 1px 8px rgb(15 29 43 / 5%); }

.section { padding: 4rem 0 1rem; }
.section > .wrap > h2 { margin-bottom: 1.5rem; }
.section + .section { padding-top: 2.5rem; }
.block { margin-top: 1.5rem; padding: 1.75rem; }
.block > h3 { margin-bottom: 1rem; }
.block > h3 + .byline { margin: -0.6rem 0 1rem; color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.prose { max-width: 75ch; }
.prose a { overflow-wrap: anywhere; }   /* long URLs as link text */
.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.05rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.2rem 0; }
.aside { display: grid; gap: 1rem; }

.facts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.facts caption { padding-bottom: 0.6rem; color: var(--ink); font-weight: 650; text-align: left; }
.facts th { padding: 0 0 0.4rem; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-align: left; text-transform: uppercase; }
.facts td { padding: 0.45rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.facts td + td, .facts th + th { padding-left: 0.75rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts tr.total td { color: var(--ink); font-weight: 650; }


.prose .files, .files { margin: 0.75rem 0 1.25rem; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose .files li, .files li { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; padding: 0.75rem 1rem; }
.files li + li { border-top: 1px solid var(--line); }
.files a { margin-right: auto; font-weight: 600; }
.files .meta { color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.files .md5 { flex-basis: 100%; padding-left: 1.55em; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.files .md5 code { font-size: 1em; }

.tables-list { margin: 0.5rem 0 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 2rem; }
.tables-list li { break-inside: avoid; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }

pre.code {
  margin: 0.75rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  overflow: auto;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-fg);
  font: 0.84rem/1.6 var(--mono);
  white-space: pre-wrap;
}
.names { font-size: 0.94rem; line-height: 1.8; }

/* Footer ------------------------------------------------------------------------------ */
.cta { margin: 4rem auto 0; padding: 2.25rem; text-align: center; background: var(--tint); border: 0; box-shadow: none; }
.cta h2 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; letter-spacing: -0.01em; }
.site-footer { margin-top: 4rem; padding: 2.25rem 0; background: var(--footer-bg); color: var(--footer-fg); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 40%); text-underline-offset: 3px; }

/* Popup ---------------------------------------------------------------------------- */
.popup { padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgb(15 29 43 / 35%); }
.popup::backdrop { background: rgb(5 12 20 / 60%); backdrop-filter: blur(3px); }
.popup[open] { animation: pop 0.22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.popup-chart { width: min(1120px, 94vw); height: min(760px, 90vh); }
.popup iframe { display: block; width: 100%; height: 100%; border: 0; }
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.popup-close::before { content: ''; display: block; width: 16px; height: 16px; margin: auto; background: currentColor; -webkit-mask: var(--glyph-x) center / contain no-repeat; mask: var(--glyph-x) center / contain no-repeat; }
.popup-close:hover { color: var(--accent); }

/* Embedded pages: station profiles (shown inside the popup) ------------------------- */
.embedded { background: var(--surface); }
.station { padding: 1.75rem 2rem 2rem; }
.station h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.station .eyebrow { margin-bottom: 0.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.chips li { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 0.85rem; }
.station h2 { margin: 0.5rem 0 0.25rem; font-size: 1.15rem; font-weight: 650; }
.hint { color: var(--muted); font-size: 0.92rem; }
.station .tablist { display: inline-flex; margin: 0.25rem 0 1.25rem; }
.station [role='tabpanel'] { padding: 0; }
.layer { margin: 1.25rem 0 0.5rem; }
.barchart { height: 380px; border: 1px solid var(--line); border-radius: 12px; }
.nodata { color: var(--muted); font-size: 0.92rem; }
.notice { margin-top: 0.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); font-size: 0.94rem; }
.notice ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.notice p { margin: 0; }
.sample { color: var(--muted); font-size: 0.9rem; }
.sunburst-plot { width: 100%; height: 600px; }
.taxtable { margin: 0.5rem 0 1rem; }
.taxtable summary { color: var(--link); font-size: 0.9rem; font-weight: 550; cursor: pointer; }
.taxtable table { margin-top: 0.75rem; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.taxtable th, .taxtable td { padding: 0.3rem 1.25rem 0.3rem 0; border-bottom: 1px solid var(--line); text-align: right; }
.taxtable th:first-child, .taxtable td:first-child { text-align: left; }
.taxtable th { color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.taxtable .depth1 td { color: var(--ink); font-weight: 650; }
.taxtable .depth2 td:first-child { padding-left: 1.2rem; }

/* Stats table (DataTables 3) ------------------------------------------------------- */
.wrap-wide { width: min(1280px, 100% - 2.5rem); margin-inline: auto; }
.table-card { margin-top: 2rem; padding: 1.25rem 1.25rem 1.5rem; overflow-x: auto; }
#stats { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
#stats.dataTable > thead > tr > th, #stats.dataTable > tbody > tr > td { padding: 8px 6px; }
#stats.dataTable > thead > tr > th.dt-orderable-asc, #stats.dataTable > thead > tr > th.dt-orderable-desc { padding-right: 18px; }
#stats thead th { color: var(--ink); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em; }
#stats td:first-child { white-space: nowrap; color: var(--ink); font-weight: 550; }
.dt-container .dt-search input, .dt-container .dt-length select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
  border: 0 !important;
  border-radius: 8px;
  background: var(--chip) !important;
  color: var(--ink) !important;
  font-weight: 650;
}
.dt-container .dt-paging .dt-paging-button { border-radius: 8px; }

/* Small screens ------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .overview, .split { grid-template-columns: minmax(0, 1fr); }
  .panel { max-height: none; }
  .nav { display: none; }
  .versions { margin-left: auto; }
}
@media (max-width: 560px) {
  .topbar .wrap { gap: 0.75rem; }
  .brand img { height: 36px; }
  .versions a { padding: 0.25rem 0.6rem; font-size: 0.78rem; }
  .versions .long { display: none; }   /* v1 · v2 · OMDB */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .stats div { padding: 0.8rem 1rem; }
  .stats dd { font-size: 1.3rem; }
  .contact { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .contact::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--glyph-mail) center / contain no-repeat; mask: var(--glyph-mail) center / contain no-repeat; }
  .topbar .versions .out::after { display: none; }
  .hero { padding-top: 3rem; }
  .block { padding: 1.25rem; }
  .station { padding: 1.25rem; }
  .map-card #chartdiv { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
