/* Ocean Data Initiative. Scoped to .odi-root so it never touches the site's
   own Bootstrap theme. The site has no dark mode, so neither does this:
   the chart surface matches the page's white sections. */
.odi-root {
  color-scheme: light;
  --odi-surface: #fcfcfb;
  --odi-surface-2: #f3f6fa;
  --odi-ink: #1b2a4e;          /* the site's navy */
  --odi-ink-2: #52514e;
  --odi-muted: #6b6a66;
  --odi-rule: #e4e3df;
  --odi-grid: #ecebe7;
  --odi-gauge: #2a78d6;        /* categorical slot 1 */
  --odi-model: #eb6834;        /* categorical slot 2 */
  --odi-oisst: #1baf7a;        /* categorical slot 3 */
  --odi-certain: #0ca30c;      /* status: good */
  --odi-guess: #c3c2b7;        /* neutral: undecided */
  --odi-refuted: #d03b3b;      /* status: critical */
  --odi-seq-1: #cde2fb;
  --odi-seq-2: #86b6ef;
  --odi-seq-3: #3987e5;
  --odi-seq-4: #1c5cab;
  --odi-seq-5: #0d366b;
  --odi-sea: #f3f8fd;
  color: var(--odi-ink);
  font-size: 16px;
  line-height: 1.55;
}
.odi-root *, .odi-root *::before, .odi-root *::after { box-sizing: border-box; }

.odi-section { margin: 0 0 56px; }
.odi-h { font-size: 22px; line-height: 1.3; margin: 0 0 8px; color: var(--odi-ink); }
.odi-lede { font-size: 18px; max-width: 760px; margin: 0 0 8px; }
.odi-muted { color: var(--odi-muted); font-size: 14px; margin: 4px 0 12px; }
.odi-small { font-size: 13px; color: var(--odi-ink-2); }
.odi-error { color: var(--odi-refuted); }
.odi-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Stat tiles */
.odi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.odi-stat { background: var(--odi-surface-2); border-radius: 10px; padding: 14px 16px; }
.odi-stat-label { font-size: 13px; color: var(--odi-ink-2); }
.odi-stat-value { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.odi-stat-note { font-size: 12px; color: var(--odi-muted); }

/* Charts */
.odi-chart { position: relative; background: var(--odi-surface); border: 1px solid var(--odi-rule); border-radius: 10px; padding: 8px; }
.odi-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.odi-grid { stroke: var(--odi-grid); stroke-width: 1; }
.odi-grid-v { stroke-dasharray: 2 4; }
.odi-axis { fill: var(--odi-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.odi-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.odi-gauge-line { stroke: var(--odi-gauge); }
.odi-model-line { stroke: var(--odi-model); }
.odi-oisst { fill: var(--odi-oisst); stroke: var(--odi-surface); stroke-width: 2; }
.odi-strip { stroke: var(--odi-surface); stroke-width: 0.5; }
.odi-strip.odi-certain { fill: var(--odi-certain); }
.odi-strip.odi-guess { fill: var(--odi-guess); }
.odi-strip.odi-refuted { fill: var(--odi-refuted); }
.odi-crosshair { stroke: var(--odi-ink-2); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.odi-hit { fill: transparent; cursor: pointer; }

/* Map */
.odi-sea { fill: var(--odi-sea); }
.odi-grat { stroke: #dfe8f2; stroke-width: 1; }
.odi-region { fill: var(--odi-ink-2); font-size: 13px; font-style: italic; }
.odi-place { stroke: var(--odi-surface); stroke-width: 2; pointer-events: none; }
.odi-place.odi-seq-1 { fill: var(--odi-seq-1); stroke: var(--odi-seq-3); }
.odi-place.odi-seq-2 { fill: var(--odi-seq-2); }
.odi-place.odi-seq-3 { fill: var(--odi-seq-3); }
.odi-place.odi-seq-4 { fill: var(--odi-seq-4); }
.odi-place.odi-seq-5 { fill: var(--odi-seq-5); }
.odi-profile { stroke: var(--odi-surface); stroke-width: 1.5; pointer-events: none; }
.odi-profile.odi-certain, .odi-dot.odi-certain { fill: var(--odi-certain); }
.odi-profile.odi-guess, .odi-dot.odi-guess { fill: #8f8e88; }
.odi-profile.odi-none, .odi-dot.odi-none { fill: none; stroke: var(--odi-muted); }

/* Scatter */
.odi-band { fill: var(--odi-surface-2); }
.odi-diagonal { stroke: var(--odi-ink-2); stroke-width: 1; stroke-dasharray: 4 4; }
.odi-dot { stroke: var(--odi-surface); stroke-width: 2; pointer-events: none; }

/* Tooltip */
.odi-tip {
  position: absolute; top: 12px; transform: translateX(12px);
  background: #ffffff; border: 1px solid var(--odi-rule); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(27, 42, 78, 0.12);
  padding: 8px 10px; font-size: 13px; line-height: 1.45; pointer-events: none; min-width: 170px; z-index: 2;
}
.odi-tip.odi-tip-left { transform: translateX(calc(-100% - 12px)); }
.odi-tip-map { transform: translate(14px, -50%); }
.odi-tip-map.odi-tip-left { transform: translate(calc(-100% - 14px), -50%); }
.odi-tip-title { font-weight: 600; margin-bottom: 2px; }
.odi-tip .odi-muted { margin: 0; font-size: 12px; }
.odi-verdict { margin-top: 4px; font-weight: 600; }
.odi-verdict::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--odi-guess); }
.odi-verdict.odi-certain::before { background: var(--odi-certain); }
.odi-verdict.odi-refuted::before { background: var(--odi-refuted); }

/* Legends and keys */
.odi-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--odi-ink-2); margin: 10px 0; }
.odi-legend-title { font-weight: 600; color: var(--odi-ink); }
.odi-legend-gap { flex-basis: 8px; }
.odi-key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.odi-key.odi-gauge { background: var(--odi-gauge); }
.odi-key.odi-model { background: var(--odi-model); }
.odi-dotkey { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; background: var(--odi-oisst); }
.odi-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.odi-swatch.odi-seq-1 { background: var(--odi-seq-1); box-shadow: inset 0 0 0 1px var(--odi-seq-3); }
.odi-swatch.odi-seq-2 { background: var(--odi-seq-2); }
.odi-swatch.odi-seq-3 { background: var(--odi-seq-3); }
.odi-swatch.odi-seq-4 { background: var(--odi-seq-4); }
.odi-swatch.odi-seq-5 { background: var(--odi-seq-5); }
.odi-swatch.odi-certain { background: var(--odi-certain); }
.odi-swatch.odi-guess { background: var(--odi-guess); }
.odi-diamond { display: inline-block; width: 10px; height: 10px; transform: rotate(45deg); margin: 0 8px 0 2px; vertical-align: 0; }
.odi-diamond.odi-certain { background: var(--odi-certain); }
.odi-diamond.odi-guess { background: #8f8e88; }

/* Filters */
.odi-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.odi-chip {
  border: 1px solid var(--odi-rule); background: #ffffff; color: var(--odi-ink);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; line-height: 1.3;
}
.odi-chip:hover { border-color: var(--odi-gauge); }
.odi-chip-on { background: var(--odi-ink); border-color: var(--odi-ink); color: #ffffff; }
.odi-chip:focus-visible, .odi-link-button:focus-visible { outline: 2px solid var(--odi-gauge); outline-offset: 2px; }
.odi-link-button { background: none; border: 0; padding: 0; margin: 12px 0 0; color: var(--odi-gauge); font-size: 14px; cursor: pointer; text-decoration: underline; }

/* Bars */
.odi-bars { display: grid; gap: 8px; margin-top: 12px; }
.odi-bar-row { display: grid; grid-template-columns: minmax(140px, 230px) 1fr minmax(150px, 230px); align-items: center; gap: 12px; font-size: 14px; }
.odi-bar-track { height: 14px; background: var(--odi-surface-2); border-radius: 4px; overflow: hidden; }
.odi-bar { height: 100%; background: var(--odi-seq-3); border-radius: 0 4px 4px 0; min-width: 2px; }
.odi-bar-value { font-variant-numeric: tabular-nums; }
.odi-bar-value .odi-muted { font-size: 13px; }

/* Two columns */
.odi-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }

/* Cards */
.odi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.odi-card { border: 1px solid var(--odi-rule); border-radius: 10px; padding: 14px 16px; background: #ffffff; }
.odi-card-title { font-weight: 600; }
.odi-card .odi-muted { margin: 0 0 6px; }
.odi-species { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.odi-species li { padding: 2px 0; }

/* Tables */
.odi-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--odi-rule); border-radius: 10px; }
.odi-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.odi-table th, .odi-table td { padding: 8px 12px; border-bottom: 1px solid var(--odi-rule); text-align: left; vertical-align: top; }
.odi-table th { position: sticky; top: 0; background: var(--odi-surface-2); font-weight: 600; font-size: 13px; }
.odi-table th.odi-num, .odi-table td.odi-num { text-align: right; }
.odi-table a { color: var(--odi-gauge); }
.odi-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }
.odi-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--odi-guess); }
.odi-status-on::before { background: var(--odi-certain); }
.odi-status-wait::before { background: #fab219; }

.odi-credits p { font-size: 13px; color: var(--odi-ink-2); max-width: 860px; }
.odi-credits a { color: var(--odi-gauge); }

@media (max-width: 760px) {
  .odi-two { grid-template-columns: 1fr; gap: 16px; }
  .odi-bar-row { grid-template-columns: 1fr; gap: 4px; }
  .odi-stat-value { font-size: 24px; }
  .odi-h { font-size: 20px; }
}
.odi-table-wrap.odi-scroll { max-height: 480px; overflow-y: auto; }
.odi-dotkey.odi-certain { background: var(--odi-certain); }
.odi-dotkey.odi-guess { background: #8f8e88; }

/* ------------------------------------------------------------------
   Front page (data-view="home"). Same tokens as the data page; the
   site's own fonts when present.
   ------------------------------------------------------------------ */
.ocf-home {
  --ocf-navy: #1b2a4e;
  --ocf-deep: #0b1a36;
  --ocf-blue: #1470af;
  --ocf-sky: #1aa3e9;
  --ocf-ink: #1b2a4e;
  --ocf-ink-2: #52514e;
  --ocf-tint: #f3f6fa;
  --ocf-rule: #e4e3df;
  --ocf-display: "miller-display", Georgia, "Times New Roman", serif;
  --ocf-sans: "neue-haas-grotesk-display", "Helvetica Neue", Arial, sans-serif;
  color: var(--ocf-ink);
  font-family: var(--ocf-sans);
  font-size: 17px;
  line-height: 1.6;
  /* The site's theme paints the page body black; these pages are white. */
  background: #ffffff;
}
.ocf-home *, .ocf-home *::before, .ocf-home *::after { box-sizing: border-box; }
.ocf-home p { margin: 0 0 16px; }
.ocf-home a { text-decoration: none; }

.ocf-eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #9cc9ec; margin-bottom: 14px; font-weight: 600; }
.ocf-eyebrow-dark { color: var(--ocf-blue); }
.ocf-h2 { font-family: var(--ocf-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 18px; color: var(--ocf-navy); }
.ocf-muted { color: #6b6a66; font-size: 15px; }
.ocf-muted-light { color: rgba(255, 255, 255, 0.6); }
.ocf-link { color: var(--ocf-blue); font-weight: 600; }
.ocf-link:hover { text-decoration: underline; }

.ocf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ocf-actions-center { justify-content: center; }
.ocf-btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ocf-btn-light { background: #ffffff; color: var(--ocf-navy); }
.ocf-btn-light:hover { background: #dcecf9; color: var(--ocf-navy); }
.ocf-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: #ffffff; }
.ocf-btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.ocf-btn-dark { background: var(--ocf-navy); color: #ffffff; margin-top: 8px; }
.ocf-btn-dark:hover { background: var(--ocf-blue); color: #ffffff; }
.ocf-btn:focus-visible, .ocf-pulse-nav button:focus-visible, .ocf-partner:focus-visible { outline: 2px solid var(--ocf-sky); outline-offset: 3px; }

/* Hero */
.ocf-hero {
  position: relative; overflow: hidden; color: #ffffff;
  background: radial-gradient(120% 90% at 75% 40%, #164a7c 0%, var(--ocf-deep) 62%);
  border-radius: 0 0 28px 28px;
}
.ocf-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.ocf-ring { fill: none; stroke: rgba(154, 205, 245, 0.16); stroke-width: 1.2; }
.ocf-ring-strong { stroke: rgba(154, 205, 245, 0.32); }
.ocf-contour-drift { transform-origin: 820px 260px; animation: ocf-drift 90s ease-in-out infinite alternate; }
@keyframes ocf-drift { from { transform: rotate(-4deg) scale(1); } to { transform: rotate(5deg) scale(1.06); } }
.ocf-hero-inner {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 96px 24px 88px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr); gap: 56px; align-items: center;
}
.ocf-hero-title { font-family: var(--ocf-display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; margin: 0 0 22px; color: #ffffff; letter-spacing: -0.01em; }
.ocf-hero-lede { font-size: 19px; color: rgba(255, 255, 255, 0.82); max-width: 560px; }

/* Ocean pulse */
.ocf-pulse {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px; padding: 22px 24px 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ocf-pulse-head { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.75); margin-bottom: 16px; }
.ocf-pulse-count { margin-left: auto; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ocf-dot-live { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 0 rgba(94, 224, 138, 0.6); animation: ocf-ping 2.4s infinite; }
@keyframes ocf-ping { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 138, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(94, 224, 138, 0); } }
.ocf-pulse-place { font-size: 18px; font-weight: 600; }
.ocf-pulse-value { font-family: var(--ocf-display); font-size: 64px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ocf-pulse-value span { font-family: var(--ocf-sans); font-size: 22px; color: rgba(255, 255, 255, 0.7); margin-left: 4px; }
.ocf-pulse-sub { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.ocf-spark { width: 100%; height: 68px; display: block; overflow: visible; }
.ocf-spark path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ocf-spark-gauge { stroke: #7cc0ff; }
.ocf-spark-model { stroke: #f59a6f; stroke-dasharray: 4 4; }
.ocf-spark-key { display: flex; gap: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.8); margin: 6px 0 12px; }
.ocf-spark-key i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.ocf-k-gauge { background: #7cc0ff; }
.ocf-k-model { background: repeating-linear-gradient(90deg, #f59a6f 0 4px, transparent 4px 7px); }
.ocf-spark-key .ocf-muted-light { margin-left: auto; }
.ocf-pulse-verdict { font-size: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }
.ocf-pulse-verdict::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #c3c2b7; vertical-align: 1px; }
.ocf-v-certain::before { background: #5ee08a; }
.ocf-v-refuted::before { background: #ff7b7b; }
.ocf-pulse-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ocf-pulse-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #ffffff; font-size: 20px; line-height: 1; cursor: pointer; }
.ocf-pulse-nav button:hover { background: rgba(255, 255, 255, 0.12); }
.ocf-pulse-nav a { margin-left: auto; color: #ffffff; font-size: 14px; font-weight: 600; }

/* Numbers */
.ocf-numbers { max-width: 1180px; margin: -44px auto 0; position: relative; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ocf-number { background: #ffffff; padding: 26px 24px; border: 1px solid var(--ocf-rule); }
.ocf-number:first-child { border-radius: 16px 0 0 16px; }
.ocf-number:last-child { border-radius: 0 16px 16px 0; }
.ocf-number + .ocf-number { border-left: 0; }
.ocf-number-value { font-family: var(--ocf-display); font-size: 40px; line-height: 1.1; color: var(--ocf-navy); font-variant-numeric: tabular-nums; }
.ocf-number-label { font-size: 14px; color: var(--ocf-ink-2); margin-top: 4px; }

/* Bands */
.ocf-band { max-width: 1180px; margin: 0 auto; padding: 96px 24px; }
.ocf-band-tint { max-width: none; background: var(--ocf-tint); }
.ocf-band-tint > * { max-width: 1132px; margin-left: auto; margin-right: auto; }
.ocf-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.ocf-centered { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.ocf-centered:last-child { margin: 32px auto 0; }

/* Mission */
.ocf-mission { max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ocf-mission-image { min-height: 440px; border-radius: 24px; background: var(--ocf-mission-img, linear-gradient(160deg, #164a7c, #0b1a36)) center / cover no-repeat; box-shadow: 0 24px 60px rgba(11, 26, 54, 0.25); }

/* Communities */
.ocf-communities { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ocf-community { background: #ffffff; border-radius: 16px; padding: 22px 18px; border: 1px solid var(--ocf-rule); display: flex; flex-direction: column; gap: 22px; min-height: 130px; transition: transform 0.2s, box-shadow 0.2s; }
.ocf-community:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27, 42, 78, 0.1); }
.ocf-community-n { font-size: 13px; color: var(--ocf-blue); font-variant-numeric: tabular-nums; }
.ocf-community-name { font-family: var(--ocf-display); font-size: 22px; line-height: 1.15; margin-top: auto; }

/* Partners */
.ocf-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ocf-partner { display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px; border-radius: 14px; border: 1px solid var(--ocf-rule); background: #ffffff; color: var(--ocf-navy); font-weight: 600; font-size: 15px; text-align: center; transition: border-color 0.2s; }
.ocf-partner:hover { border-color: var(--ocf-blue); color: var(--ocf-navy); }
.ocf-partner img { max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s; }
.ocf-partner:hover img { filter: none; opacity: 1; }

/* Closing */
.ocf-closing { margin: 0 24px 64px; border-radius: 28px; padding: 88px 24px; text-align: center; color: #ffffff; background: radial-gradient(100% 120% at 50% 0%, #1470af 0%, var(--ocf-deep) 70%); }
.ocf-closing h2 { font-family: var(--ocf-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; margin: 0 auto 14px; max-width: 760px; color: #ffffff; }
.ocf-closing p { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 980px) {
  .ocf-hero-inner, .ocf-split, .ocf-mission { grid-template-columns: 1fr; gap: 36px; }
  .ocf-hero-inner { padding: 64px 20px 80px; }
  .ocf-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocf-number { border-radius: 0 !important; border-left: 1px solid var(--ocf-rule) !important; }
  .ocf-numbers .ocf-number:nth-child(1) { border-radius: 16px 0 0 0 !important; }
  .ocf-numbers .ocf-number:nth-child(2) { border-radius: 0 16px 0 0 !important; }
  .ocf-numbers .ocf-number:nth-child(3) { border-radius: 0 0 0 16px !important; }
  .ocf-numbers .ocf-number:nth-child(4) { border-radius: 0 0 16px 0 !important; }
  .ocf-communities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ocf-band { padding: 72px 20px; }
  .ocf-mission { padding: 0 20px 72px; }
  .ocf-mission-image { min-height: 280px; }
}
@media (max-width: 560px) {
  .ocf-numbers { grid-template-columns: 1fr; }
  .ocf-number-value { font-size: 32px; }
  .ocf-communities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocf-closing { margin: 0 12px 48px; padding: 64px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ocf-contour-drift, .ocf-dot-live { animation: none; }
  .ocf-community, .ocf-btn, .ocf-partner img { transition: none; }
}

/* Reef heat stress (Coral Reef Watch alert levels, always with a text label) */
.odi-root { --odi-baa-0: #c3c2b7; --odi-baa-1: #fab219; --odi-baa-2: #ec835a; --odi-baa-3: #d03b3b; --odi-baa-4: #8a1c1c; }
.odi-reefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.odi-reefs-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.odi-reef { border: 1px solid var(--odi-rule); border-radius: 12px; padding: 14px 16px; background: #ffffff; display: flex; flex-direction: column; gap: 8px; }
.odi-reef-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.odi-reef-name { font-weight: 600; line-height: 1.3; }
.odi-reef-where { margin: 2px 0 0; font-size: 12px; }
.odi-reef-numbers b { font-size: 26px; font-variant-numeric: tabular-nums; }
.odi-reef-numbers span { font-size: 13px; color: var(--odi-ink-2); margin-left: 4px; }
.odi-reef-numbers .odi-muted { margin: 0; font-size: 12px; }
.odi-reef-date { margin: 0; font-size: 12px; }
.odi-baa { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: #1b2a4e; background: var(--odi-baa-0); }
.odi-baa.odi-baa-1 { background: var(--odi-baa-1); }
.odi-baa.odi-baa-2 { background: var(--odi-baa-2); }
.odi-baa.odi-baa-3 { background: var(--odi-baa-3); color: #ffffff; }
.odi-baa.odi-baa-4 { background: var(--odi-baa-4); color: #ffffff; }
.odi-baa-strip { display: flex; gap: 3px; }
.odi-baa-cell { flex: 1; height: 10px; border-radius: 2px; background: var(--odi-baa-0); }
.odi-baa-cell.odi-baa-1, .odi-swatch.odi-baa-1 { background: var(--odi-baa-1); }
.odi-baa-cell.odi-baa-2, .odi-swatch.odi-baa-2 { background: var(--odi-baa-2); }
.odi-baa-cell.odi-baa-3, .odi-swatch.odi-baa-3 { background: var(--odi-baa-3); }
.odi-baa-cell.odi-baa-4, .odi-swatch.odi-baa-4 { background: var(--odi-baa-4); }
.odi-swatch.odi-baa-0 { background: var(--odi-baa-0); }
.odi-dhw { width: 100%; height: 44px; display: block; }
.odi-dhw-line { fill: none; stroke: var(--odi-gauge); stroke-width: 2; vector-effect: non-scaling-stroke; }
.odi-dhw-dot { fill: var(--odi-gauge); stroke: #ffffff; stroke-width: 1.5; }
.odi-dhw-eight { stroke: var(--odi-baa-4); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0.6; }

/* Daily three-source matrix */
.odi-days td.odi-day { text-align: center; font-weight: 700; }
.odi-day-certain { background: #e7f6e7; color: #0a7a0a; }
.odi-day-refuted { background: #fbe9e9; color: #b02a2a; }
.odi-day-guess { background: #f3f2ee; color: #6b6a66; }
.odi-day-none { color: #b9b8b2; }
.odi-swatch.odi-refuted-swatch { background: var(--odi-refuted); }
.odi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Front page reef band */
.ocf-split-reefs { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 980px) {
  .ocf-split-reefs { grid-template-columns: 1fr; }
}
