:root {
  --ink: #252b2c;
  --muted: #687375;
  --rule: #dfe5e4;
  --grid: #eaf0ee;
  --teal: #267d78;
  --blue: #346797;
  --orange: #ba662a;
  --gold: #a78630;
  --surface: #f5f8f7;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: white; color: var(--ink); font: 14px/1.55 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .45; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
button, select, input { border-radius: 4px; }
select { padding: 7px 28px 7px 10px; border: 1px solid var(--rule); background: white; min-height: 36px; max-width: 100%; }
svg.lucide { width: 17px; height: 17px; stroke-width: 1.7; flex: 0 0 auto; }
[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; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 20; background: white; padding: 10px; }
.skip-link:focus { top: 8px; }
.site-header { max-width: 1280px; margin: 0 auto; padding: 21px 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); gap: 16px; }
.home-link { color: var(--ink); font-weight: 600; }
.home-link span { color: var(--muted); margin-left: 12px; font-weight: 400; }
.header-links { display: flex; align-items: center; gap: 26px; }
.header-links a, .paper-link { display: inline-flex; gap: 7px; align-items: center; }
.publication-label { font-size: 12px; }
main { max-width: 1216px; margin: 0 auto; padding: 0 32px; }
.heading { padding: 35px 0 27px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--teal); font-size: 12px; }
h1 { margin: 0 0 7px; font: 40px/1.15 Georgia, 'Times New Roman', serif; font-weight: 400; }
.subtitle { margin: 0; color: var(--muted); font-size: 15px; }
.release-stamp { display: flex; align-items: flex-start; gap: 9px; padding-top: 7px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 8px; }
.release-stamp strong, .release-stamp span:not(.status-dot) { display: block; }
.release-stamp strong { font-size: 14px; font-weight: 600; }
.release-stamp span:not(.status-dot) { color: var(--muted); font-size: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr 1.45fr; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); gap: 24px; }
.metrics > div { min-width: 0; }
.metrics > div + div { border-left: 1px solid var(--rule); padding-left: 24px; }
.metric-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.metrics strong { display: block; font-size: 29px; line-height: 1.25; font-weight: 500; font-variant-numeric: tabular-nums; }
.metrics .text-metric { font: 23px/1.58 Georgia, serif; overflow-wrap: anywhere; }
.metrics small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.analysis-bar { display: flex; align-items: center; gap: 22px; padding: 20px 0 19px; }
.date-control { display: flex; align-items: center; gap: 9px; }
.date-control label, .range-control label { color: var(--muted); font-size: 12px; }
.episode-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.episode-buttons button { border: 1px solid transparent; background: transparent; padding: 6px 10px; font-size: 12px; min-height: 36px; }
.episode-buttons button span { color: var(--muted); margin-left: 5px; }
.episode-buttons button:hover { background: var(--surface); }
.episode-buttons button.active { border-color: var(--rule); background: var(--surface); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--rule); background: white; margin-left: auto; }
.icon-button:hover { color: var(--teal); background: var(--surface); }
.tabs { display: flex; border-bottom: 1px solid var(--rule); gap: 27px; }
.tabs button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 0 12px; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); white-space: nowrap; font-size: 13px; }
.tabs button[aria-selected='true'] { border-color: var(--teal); color: var(--teal); font-weight: 600; }
.result-view { padding: 24px 0 35px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
h2 { font: 22px/1.35 Georgia, serif; font-weight: 400; margin: 0; }
.section-heading p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.range-control, .view-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.range-control select { font-size: 12px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; }
.chart { width: 100%; min-width: 0; position: relative; }
.chart > svg { display: block; width: 100%; height: 100%; overflow: visible; font-family: Arial, Helvetica, sans-serif; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .axis-label { font-size: 10px; }
.main-chart { height: 320px; }
.small-chart { height: 280px; }
.bar-chart { height: 286px; }
.heatmap { height: 315px; }
.geographic { overflow: hidden; background: #f3f7f8; }
.geographic > svg { overflow: hidden; }
.port-map { height: 390px; }
.figure-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 12px 0 0; }
.paired-results { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--rule); }
.paired-results > section { min-width: 0; }
.paired-results .section-heading { min-height: 50px; }
.legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.legend > span { display: flex; gap: 6px; align-items: center; }
.legend b { height: 2px; width: 18px; display: inline-block; }
.product-results { margin: 0; padding: 0; border: 0; }
.compact { align-items: center; }
.compact label { font-size: 12px; }
.compact select { max-width: 70%; font-size: 12px; }
.heat-legend { font-size: 10px; }
.map-key { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-top: 12px; }
.color-key { display: flex; gap: 7px; align-items: center; }
.color-key b { width: 95px; height: 7px; background: linear-gradient(90deg,#d8e7e8,#19577a); }
.search-field { display: flex; gap: 7px; align-items: center; border: 1px solid var(--rule); border-radius: 4px; padding: 5px 9px; min-width: 0; }
.search-field input { border: 0; outline: 0; padding: 2px; min-width: 0; width: 180px; }
.table-scroll { max-height: 420px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; background: white; z-index: 1; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule); text-align: left; padding: 10px 9px; }
th:nth-child(n+2):nth-child(-n+4), td:nth-child(n+2):nth-child(-n+4) { text-align: right; white-space: nowrap; }
th button { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
th .lucide { width: 12px; height: 12px; }
td { padding: 9px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--surface); }
.port-label { color: var(--ink); font-weight: 500; }
.port-domain { font-size: 10px; color: var(--muted); display: block; font-weight: 400; }
.empty-row { text-align: center !important; padding: 30px; color: var(--muted); }
.methods { max-width: 100%; }
.publication-citation { margin: 0 0 22px; padding: 12px 16px; border-left: 2px solid var(--teal); background: var(--surface); color: #515b5d; font-size: 12px; overflow-wrap: anywhere; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin: 23px 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 7px; }
.method-grid p { color: #515b5d; font-size: 13px; margin: 0; line-height: 1.75; }
.route-figure { margin: 30px 0; }
.route-figure img { display: block; width: 100%; height: auto; }
figcaption { margin: 8px 0; font-size: 11px; color: var(--muted); }
.source-links { display: flex; gap: 24px; flex-wrap: wrap; margin: 15px 0; font-size: 13px; }
.release-details { display: grid; grid-template-columns: 175px 1fr; margin: 22px 0; font-size: 12px; gap: 9px 20px; }
.release-details dt { color: var(--muted); }
.release-details dd { margin: 0; overflow-wrap: anywhere; }
.methods > .paper-link { margin-top: 20px; }
.error-note { padding: 16px 0; color: #a64039; }
footer { max-width: 1216px; margin: 0 auto; padding: 24px 32px 35px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--muted); }
footer > div { display: flex; justify-content: space-between; gap: 18px; }
footer p { margin: 12px 0 0; max-width: 900px; line-height: 1.65; }
#tooltip { position: fixed; z-index: 50; pointer-events: none; background: #fff; box-shadow: 0 3px 15px #1d353321; border: 1px solid var(--rule); padding: 10px 12px; max-width: 285px; border-radius: 4px; font-size: 12px; line-height: 1.6; }
#tooltip strong { display: block; font-weight: 600; }
@media (max-width: 900px) {
  main { padding: 0 24px; }
  .site-header { padding: 18px 24px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 20px; }
  .metrics > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .tabs { gap: 22px; overflow-x: auto; }
  .section-heading { flex-wrap: wrap; }
  .paired-results { gap: 25px; }
  .analysis-bar { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  main { padding: 0 17px; }
  .site-header { padding: 16px 17px; }
  .header-links { gap: 12px; }
  .home-link span { display: none; }
  .heading { padding: 25px 0 22px; align-items: flex-start; flex-direction: column; gap: 14px; }
  h1 { font-size: 32px; }
  .subtitle { font-size: 13px; }
  .release-stamp { padding: 0; }
  .release-stamp > div { display: flex; gap: 10px; align-items: baseline; }
  .metrics { gap: 17px; }
  .metrics strong { font-size: 26px; }
  .metrics .text-metric { font-size: 20px; }
  .metrics > div + div { padding-left: 17px; }
  .metrics > div:nth-child(3) { padding-left: 0; }
  .metric-label { font-size: 11px; }
  .analysis-bar { gap: 10px; }
  .episode-buttons { order: 3; width: 100%; gap: 7px; }
  .episode-buttons button { padding: 5px 7px; }
  .tabs { gap: 20px; }
  .tabs button { font-size: 12px; }
  .tabs svg { display: none; }
  .result-view { padding-top: 20px; }
  h2 { font-size: 21px; }
  .main-chart { height: 280px; }
  .paired-results, .method-grid { grid-template-columns: 1fr; gap: 26px; }
  .paired-results > section + section { border-top: 1px solid var(--rule); padding-top: 22px; }
  .heatmap { height: 340px; }
  .port-map { height: 290px; }
  .view-controls { width: 100%; }
  .view-controls select:first-child { flex: 1; min-width: 0; }
  .range-control select { width: 112px; }
  .search-field { width: 100%; }
  .search-field input { width: 100%; }
  .table-scroll { overflow-x: auto; }
  table { min-width: 640px; }
  .release-details { grid-template-columns: 1fr; gap: 3px; }
  .release-details dd { margin-bottom: 10px; }
  footer { padding: 22px 17px; }
  footer > div { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .analysis-bar, .tabs, .site-header, footer, #tooltip, .range-control { display: none; }
  main { max-width: none; padding: 0; }
  .result-view:not([hidden]) { display: block; }
  .table-scroll { overflow: visible; max-height: none; }
}
