/* Ocean data page — shared by /ocean-data/ and /fr/donnees-ocean/
   Built on the article template tokens (Playfair Display, DM Sans, Caveat, paper and ink).
   The map itself is kept neutral and scientific. */
:root {
  --ink: #201a16; --ink-soft: #57504a; --muted: #948c84; --muted-text: #756c64;
  --paper: #fbf8f2; --paper-warm: #f4eee2;
  --line: rgba(32,26,22, 0.12); --line-strong: rgba(32,26,22, 0.22);
  --teal: #2a9d8f; --teal-text: #1f7a70; --coral: #e07a5f; --coral-text: #c4583d; --marker-light: #f7c1a6;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w0: #6fbcaf; --w1: #3a9e90; --w2: #287d73; --w3: #1c5e57; --w4: #12433e;
  --card-shadow: 0 16px 32px -24px rgba(32,26,22,0.3);
  --maxw: 1180px;
  --text: 74ch;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* nav and footer: same as the articles */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: block; text-decoration: none; }
.nav-brand img { height: 60px; width: auto; display: block; }
.nav-right { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.nav-right a { color: var(--ink-soft); }
.footer { text-align: center; padding: 24px; font-size: 12px; color: var(--muted-text); border-top: 1px solid var(--line); margin-top: 56px; }
.footer a { color: var(--ink-soft); }

/* layout: every section shares one width; running text keeps a readable measure */
.wide { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.prose { max-width: var(--text); }
section.block { padding-top: clamp(48px, 6vw, 76px); }
.od-head { padding-top: 48px; }
.eyebrow { font-family: var(--hand); font-size: 24px; color: var(--teal); transform: rotate(-2deg); display: inline-block; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 10px 0 14px; text-wrap: balance; max-width: 22ch; }
.meta { font-size: 13px; color: var(--muted-text); margin-bottom: 24px; }
.meta strong { color: var(--ink-soft); font-weight: 500; }
.lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 20px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.25; }
p { margin-bottom: 14px; text-wrap: pretty; }
.small { font-size: 14px; color: var(--ink-soft); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #120e0c; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* headline figures */
.figures {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow);
  margin-top: 28px;
}
.figures > div { padding: 18px 18px 20px; display: grid; gap: 4px; align-content: start; }
.figures > div + div { border-left: 1px dashed var(--line-strong); }
.fig-num { font-family: var(--hand); font-size: clamp(30px, 3.2vw, 38px); line-height: 1; color: var(--coral-text); font-weight: 600; white-space: nowrap; }
.fig-num small { font-size: 0.62em; font-weight: 500; }
.fig-label { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 960px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div + div { border-left: 0; }
  .figures > div { border-top: 1px dashed var(--line-strong); }
  .figures > div:nth-child(-n + 2) { border-top: 0; }
  .figures > div:nth-child(even) { border-left: 1px dashed var(--line-strong); }
  .figures > div:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* map: neutral and scientific */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 18px 0 14px; }
.ctl-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ctl-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-text); margin-right: 4px; }
.pill {
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  padding: 6px 12px; font-size: 13px; color: var(--ink-soft); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: #1d2328; border-color: #1d2328; color: #fff; }
.map-card {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid rgba(20,24,28,0.25);
  background: #e9ecec; height: clamp(480px, 74vh, 800px);
}
#od-map { position: absolute; inset: 0; }
.coords {
  position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 11.5px; color: #1d2328; background: rgba(255,255,255,0.82);
  border: 1px solid rgba(20,24,28,0.15); border-radius: 4px; padding: 3px 7px; font-variant-numeric: tabular-nums;
}
.coords:empty { display: none; }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 30px; font-size: 12.5px; color: var(--ink-soft); }
.lg-title { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-bottom: 5px; }
.lg-bar { width: 300px; max-width: 70vw; height: 10px; border-radius: 1px; border: 1px solid rgba(20,24,28,0.25); }
.lg-ticks { position: relative; height: 18px; width: 300px; max-width: 70vw; font-variant-numeric: tabular-nums; }
.lg-ticks span { position: absolute; top: 3px; transform: translateX(-50%); font-size: 11px; color: var(--ink-soft); }
.lg-ticks span::before { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 4px; background: rgba(20,24,28,0.45); }
.lg-steps { display: flex; width: 360px; max-width: 80vw; height: 11px; border: 1px solid rgba(20,24,28,0.25); }
.lg-steps i { flex: 1 1 0; }
.lg-ticks-steps { width: 360px; }
.lg-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lg-col { flex-direction: column; gap: 5px; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-item .sw { width: 16px; height: 10px; border-radius: 1px; display: inline-block; }
.lg-item .sw-nobottom { height: 2px; background: #5f6b73; }
.lg-item .sw-iso { height: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(20,24,28,0.35); }
.lg-item .arrow { font-size: 15px; line-height: 1; }
.hint { font-size: 12px; color: var(--muted-text); margin: 0; }
.map-fail { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--ink-soft); }

/* popups */
.od-pop .maplibregl-popup-content {
  background: #fff; color: #1d2328; border: 1px solid rgba(20,24,28,0.18); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15); font-family: var(--sans); padding: 8px 11px 9px; font-size: 12.5px; line-height: 1.45; min-width: 150px;
}
.od-pop .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #fff; }
.od-pop .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #fff; }
.od-pop .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #fff; }
.od-pop .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #fff; }
.t-h { font-weight: 700; font-size: 13px; }
.t-m { color: var(--muted-text); }
.t-row strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.t-mono { font-family: var(--mono); font-size: 11px; color: var(--muted-text); margin-bottom: 3px; }

/* charts */
.chart { position: relative; margin: 18px 0 0; }
.chart svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); }
.axis text { fill: var(--muted-text); font-size: 11px; font-variant-numeric: tabular-nums; }
.axis .gl { stroke: var(--line); stroke-width: 1; }
.axis .base { stroke: var(--line-strong); stroke-width: 1; }
.ax-title { fill: var(--muted-text); font-size: 11px; }
.sst-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mk { stroke: var(--line-strong); stroke-width: 1; }
.mk-label { fill: var(--ink-soft); font-size: 11.5px; font-weight: 500; }
.ann-dot, .hdot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.ann { fill: var(--coral-text); font-family: var(--hand) !important; font-size: 19px; font-weight: 600; }
.xhair { stroke: var(--ink); stroke-width: 1; opacity: 0.3; }
.tide-dots { fill: none; stroke: #9aa3aa; stroke-width: 2.6; stroke-linecap: round; opacity: 0.8; }
.tide-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.rw0 { fill: var(--w0); } .rw1 { fill: var(--w1); } .rw2 { fill: var(--w2); } .rw3 { fill: var(--w3); } .rw4 { fill: var(--w4); }
.rose .gl { fill: none; stroke: var(--line); stroke-width: 1; }
.rose .spoke { stroke: var(--line); stroke-width: 1; }
.rose .card { fill: var(--ink); font-family: var(--serif) !important; font-size: 15px; }
.rose .ring-label { fill: var(--muted-text); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.rose.dim .sector:not(.on) { opacity: 0.3; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 160px; max-width: 250px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15);
  padding: 8px 11px 9px; font-size: 12.5px; line-height: 1.45;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; list-style: none; }
.chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* wind */
.wind-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px 56px; align-items: center; margin-top: 8px; }
@media (max-width: 860px) { .wind-grid { grid-template-columns: minmax(0, 1fr); } }
.facts { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 24px; box-shadow: var(--card-shadow); }
.facts ul { list-style: none; }
.facts li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.facts li:last-child { border-bottom: none; }
.facts .num { font-family: var(--hand); font-size: 26px; color: var(--coral-text); line-height: 1.1; font-weight: 600; white-space: nowrap; }

/* depth figures */
.stat-row { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 4px 0 6px; font-size: 14px; color: var(--ink-soft); }
.stat-row strong { font-family: var(--hand); font-size: 24px; color: var(--coral-text); font-weight: 600; margin-right: 5px; }
h3.sub { margin: 30px 0 8px; }
.bay-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .bay-grid { grid-template-columns: minmax(0, 1fr); } }
.bay-fig { margin: 0; }
.bay-fig .chart { margin: 0; }
.bay-map { position: relative; height: clamp(300px, 36vw, 440px); border-radius: 6px; overflow: hidden; border: 1px solid rgba(20,24,28,0.25); background: #dfe6ea; }
.bay-fig figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; }
.bay-fig figcaption strong { color: var(--ink); font-weight: 500; }
.bay-key { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.bay-key li { display: inline-flex; align-items: center; gap: 6px; }
.bay-key .k-dots { width: 22px; height: 8px; background: linear-gradient(90deg, #6ece58 0 33%, #1f9e89 33% 66%, #3e4989 66%); border-radius: 4px; }
.bay-key .k-pt { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #1d2328; }
.bay-key .k-iso { width: 18px; height: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(20,24,28,0.35); }
.bay-key .k-anchor { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--coral-text); }

/* notes, downloads, call to action */
.note {
  background: var(--paper-warm); border-left: 3px solid var(--teal);
  padding: 16px 18px; border-radius: 0 6px 6px 0; margin: 20px 0; font-size: 15px;
}
.note .hand { font-family: var(--hand); font-size: 21px; color: var(--teal-text); display: block; margin-bottom: 4px; line-height: 1.1; }
.note p:last-child { margin-bottom: 0; }
.cite { font-size: 14px; color: var(--ink-soft); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 8px; }
@media (max-width: 900px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
.dl {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; box-shadow: var(--card-shadow);
}
.dl h3 { margin-bottom: 4px; }
.dl p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.dl .spec { font-size: 12.5px; color: var(--muted-text); margin-top: 6px; font-variant-numeric: tabular-nums; }
.dl .btn { align-self: flex-start; }
.cta { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 30px; margin-top: 28px; text-align: center; }
.cta .hand { font-family: var(--hand); font-size: 26px; color: var(--marker-light); display: block; margin-bottom: 8px; line-height: 1.1; }
.cta p { color: rgba(251,248,242,0.88); max-width: 64ch; margin-inline: auto; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 6px; }
.cta .btn:hover { background: #fff; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 48px; }
@media (max-width: 800px) { .methods { grid-template-columns: minmax(0, 1fr); } }
.methods > div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.methods dt { font-weight: 700; margin-bottom: 2px; }
.methods dd { color: var(--ink-soft); font-size: 15px; }
.table-view { margin-top: 14px; }
.table-view summary { width: max-content; max-width: 100%; cursor: pointer; font-size: 13.5px; color: var(--teal-text); font-weight: 500; }
.tv { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
th, td { padding: 7px 14px 7px 0; border-bottom: 1px dashed var(--line); text-align: left; white-space: nowrap; }
th { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
