
/* The sampling scene follows the live cruise comparison. */
.ocean-station{position:relative;isolation:isolate;display:block;padding:0;overflow:hidden;gap:0;background:#0b354b;border:1px solid #6f9992;border-radius:9px;margin-top:clamp(28px,4vw,48px)}
.station-sketch{display:block;width:100%;height:auto;aspect-ratio:1240/365;margin:0}
.station-copy{position:absolute;left:27px;bottom:27px;z-index:1;max-width:490px;color:#e3edda;text-shadow:0 1px 10px #082f43}
.station-copy::before{content:'';position:absolute;inset:-22px -45px -27px -27px;z-index:-1;background:linear-gradient(90deg,#0b354be8,#0b354b8c 70%,#0b354b00)}
.station-copy .eyebrow{font-size:10px;letter-spacing:.16em;color:#b9d3b8;margin-bottom:9px}
.station-copy p:last-child{font-size:13px;line-height:1.8;letter-spacing:.015em}
.ocean-room .room-intro h1,.ocean-room .room-intro>p{margin-bottom:0}
.ocean-instrument{border:1px solid #76978c;grid-template-columns:minmax(0,1fr) minmax(0,1.16fr);border-radius:9px;box-shadow:0 16px 45px #1a49411b}
.ocean-record{background:linear-gradient(115deg,#eff3e9,#e2ece1);border-top:3px solid #2e676d;border-inline-start:1px solid #a8bdac}
.ocean-record-head h2{font-size:29px;letter-spacing:-.035em;margin-bottom:12px}
.ocean-record-head .source-badge{font-size:9px;line-height:1.7;letter-spacing:.1em;border:1px solid #8fa99a;padding:6px 9px;color:#41695f;transform:rotate(-2deg)}
.ocean-plot{border-radius:3px;background:#fbfcf3;box-shadow:0 0 0 1px #abc3b7,0 4px 15px #244e3b0b}
.ocean-comparison{min-width:0;background:linear-gradient(105deg,#fbf7eb,#f5efdf);border-top:3px solid #c4b08a;border-left:0}
.ocean-card{border-radius:3px;background:#fffaf0;box-shadow:0 3px 8px #2f544b06}
.ocean-card .sample-letter{letter-spacing:.12em}
.ocean-card strong{letter-spacing:-.035em}
.chemistry-world{border-radius:5px;box-shadow:0 9px 30px #2d57430b}
.chemistry-scene{position:relative;background:radial-gradient(ellipse at 78% 36%,#316e6b,#144653 62%,#0b3447);padding:20px;box-shadow:inset 0 0 70px #062d3b44}
.chemistry-scene svg{overflow:visible}
.chemistry-copy{background:linear-gradient(120deg,#e9eee0,#e1e9d8)}
@media(max-width:900px) and (min-width:651px){.station-copy{left:21px;bottom:20px;max-width:390px}.station-copy p:last-child{font-size:11px}.station-copy .eyebrow{font-size:9px}}
@media(max-width:650px){
  .ocean-station{display:flex;flex-direction:column;padding:0}
  .station-sketch{aspect-ratio:690/365;order:1;margin:0}
  .station-copy{position:relative;order:2;left:auto;bottom:auto;max-width:none;width:100%;padding:16px 18px 19px;background:#0d3b4d;text-shadow:none;border-top:1px solid #82b6aa3b}
  .station-copy::before{display:none}
  .station-copy p:last-child{font-size:12px;line-height:1.7}
  .station-copy .eyebrow{font-size:9px;margin-bottom:7px}
  .station-annotation{display:none}
  .ocean-record-head h2{font-size:24px}
  .ocean-comparison{border-top:3px solid #bba57e}
  .ocean-record{border-top:1px solid #a8bdac}
  .chemistry-scene{padding:17px 10px;min-height:225px}
}

/* Keep the selection, difference and scale switch together. */
html{scroll-behavior:smooth}
.ocean-comparison .comparison-start{font-size:13px;line-height:1.5;margin:0 0 12px;color:#465d52}
.ocean-card .sample-unit{min-height:1.5em}
.ocean-comparison h2{font-size:29px;line-height:1.12;margin:0 0 6px}
.ocean-readout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 10px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #447379;
  border-radius: 7px;
  background: linear-gradient(135deg,#143944,#20595e);
  color: #f3efd8;
}
.ocean-readout .ocean-translate {
  justify-self: start;
  width: auto;
  min-height: 44px;
  margin: 0;
  border-color: #e2c48c;
  background: #f0d59e;
  color: #193b43;
  text-align: left;
}
.ocean-readout .ocean-translate:hover { background: #f6e0b1; }
.ocean-readout .ocean-translate:focus-visible { outline: 3px solid #fff3d1; outline-offset: 4px; }
.ocean-readout .ocean-answer{display:grid;gap:5px;min-height:0;margin:0;color:#f3efd8;font-size:13px;line-height:1.4}
.ocean-answer>strong{color:#fff4d0;font:clamp(23px,2.6vw,34px)/1.08 Georgia,serif;font-variant-numeric:tabular-nums}
.ocean-answer>span{max-width:40ch}
.ocean-comparison-detail .ocean-window{margin:12px 0 6px}
.ocean-window a{display:inline-flex;align-items:center;min-height:44px}
.ocean-card .relative-caption{font:11px/1.5 ui-monospace,monospace;color:#255d5e;margin:6px 0 10px;overflow-wrap:anywhere}
.conversion-bridge{border:1px solid #b4b995;border-radius:4px;background:linear-gradient(110deg,#f1ebd7,#e7eedc);padding:13px 15px;margin:15px 0 18px}
.bridge-intro{font-size:12px;line-height:1.5;color:#3c5b4f;margin:0 0 11px}
.scale-bridge{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.scale-bridge li{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:3px 10px;border-top:1px solid #98ad9955;padding-top:9px;align-items:center}
.scale-bridge li>span{font:10px/1.5 ui-monospace,monospace;color:#49695b}
.scale-bridge strong{font:20px/1.25 Georgia,serif;color:#174b50;overflow-wrap:anywhere}
.scale-bridge sup{font-size:.6em}
.scale-bridge small{grid-column:2;font-size:11px;line-height:1.5;color:#4b6659}
.ocean-card .relative-track{height:10px;background:#cfdbbd}
.ocean-card[data-slot=A] .relative-caption{color:#87472d}
.ocean-card[data-slot=B] .relative-caption{color:#164f5b}
@media(max-width:650px){#ocean-pair,#pair-title{scroll-margin-top:114px}.ocean-entry{margin-top:12px}.scale-bridge li{grid-template-columns:1fr;gap:4px}.scale-bridge small{grid-column:auto}.scale-bridge strong{font-size:22px}.ocean-card .relative-caption{font-size:11px}.conversion-bridge{padding:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* The field scene is an inspection surface; light never changes the record. */
.station-controls{position:absolute;top:16px;right:18px;z-index:3;display:flex;gap:7px;flex-wrap:wrap}
.ocean-station .station-controls button{min-height:44px;padding:9px 12px;border:1px solid #b6c7ab;border-radius:3px;background:#113e4be8;color:#f5efd1;font:12px/1.4 ui-monospace,monospace;box-shadow:inset 0 1px #dce2bd33,0 2px 6px #173a3c33;cursor:pointer}
.ocean-station .station-controls button:hover{background:#245e65}
.ocean-station .station-controls button:focus-visible{outline:3px solid #f6de9a;outline-offset:3px}
.station-copy>p:nth-child(2){font-size:13px;line-height:1.8;letter-spacing:.015em}
.ocean-station .station-copy .sampler-description{font-size:12px;line-height:1.6;letter-spacing:0;margin:10px 0 0;padding-top:9px;border-top:1px solid #aecdb350;max-width:53ch;color:#eff2d5}
.sampler-description[hidden],.pair-ruler[hidden]{display:none}
.station-inspection-lens{visibility:hidden;opacity:0;transform:scale(.94);transform-origin:980px 244px;transition:opacity .2s,transform .25s,visibility .2s}
.is-inspecting .station-inspection-lens{visibility:visible;opacity:1;transform:scale(1)}
.is-inspecting .station-annotation{opacity:0}
.station-light-rays{animation:ocean-water-light 16s ease-in-out infinite;animation-play-state:paused}
.station-caustics{animation:ocean-caustic-light 19s ease-in-out infinite;animation-play-state:paused}
.water-light-moving .station-light-rays,.water-light-moving .station-caustics{animation-play-state:running}
@keyframes ocean-water-light{0%,100%{opacity:.5}48%{opacity:1}76%{opacity:.7}}
@keyframes ocean-caustic-light{0%,100%{opacity:.6}62%{opacity:1}}

/* One common zero and scale replace the two separately framed card bars. */
.has-ratio-ruler .ocean-card .relative-track{display:none}
.pair-ruler{margin:15px 0 17px;border:1px solid #a5b49a;border-radius:5px;padding:13px 14px 11px;background:repeating-linear-gradient(0deg,#fff9dd0c 0 1px,transparent 1px 4px),linear-gradient(110deg,#e9e4cb,#f5efd8 45%,#e0e6cf);box-shadow:inset 0 1px #ffffe8,0 3px 8px #244c3f12}
.pair-ruler figcaption{display:flex;gap:3px 10px;justify-content:space-between;flex-wrap:wrap;color:#244f4d}
.pair-ruler figcaption>span{font:600 13px/1.5 ui-monospace,monospace}
.pair-ruler figcaption strong{font:11px/1.6 ui-monospace,monospace;color:#42675b}
#ratio-ruler-drawing svg{width:100%;height:auto;display:block;margin-top:7px;overflow:visible}
#ratio-ruler-drawing text{font:12px ui-monospace,monospace;fill:#355d55}
#ratio-ruler-drawing .ratio-letter{font-size:15px;font-weight:700}
.ratio-tick{fill:none;stroke:#7e9a833b;stroke-width:1}
.ratio-origin{fill:none;stroke:#607e6c;stroke-width:1}
.ratio-track{fill:none;stroke:#b4c2a766;stroke-width:13}
.ratio-bar{fill:none;stroke-width:13;stroke-dasharray:1;animation:ratio-trace .35s ease-out both}
.ratio-a{stroke:url(#ratio-a-metal)}.ratio-b{stroke:url(#ratio-b-metal)}
.ratio-difference{fill:#d7af5a;opacity:.23}
.ratio-bracket{stroke:#866332;fill:none;stroke-width:1.2;stroke-dasharray:2 2}
.pair-ruler>p{margin:4px 0 0;font:11px/1.6 ui-monospace,monospace;color:#385b50;overflow-wrap:anywhere}
@keyframes ratio-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}

/* Formulas change with each chemical step; the shell is not a response model. */
.chem-form rect{fill:url(#chem-form-glass);stroke:#c0d7ba;stroke-width:1.2}
.chem-form path{fill:none;stroke:#eff2cf;stroke-opacity:.55;stroke-width:1}
.chem-form text{font:26px Georgia,serif;fill:#f4f0d5}
.chem-plus{font:20px Georgia,serif;fill:#c9d7bc}
.chem-equilibrium{fill:none;stroke:#e3bf7e;stroke-width:1.7;stroke-linejoin:round}
.chem-shell-route{fill:none;stroke:#edcf93;stroke-width:1.6;stroke-dasharray:4 3}
.chem-reaction-diagram{animation:chemistry-reveal .24s ease-out both}
@keyframes chemistry-reveal{from{opacity:.25}to{opacity:1}}
@media(max-width:900px) and (min-width:651px){.station-copy>p:nth-child(2){font-size:11px}.ocean-station .station-copy .sampler-description{font-size:11px;line-height:1.5}.station-controls{top:10px;right:11px}.ocean-station .station-controls button{font-size:11px;padding:8px}}
@media(max-width:650px){.station-controls{position:relative;order:3;top:auto;right:auto;padding:12px 16px;background:#0c3649;border-top:1px solid #82b6aa3b}.ocean-station .station-controls button{flex:1 1 130px;font-size:11px;padding:9px}.station-copy>p:nth-child(2){font-size:12px}.ocean-station .station-copy .sampler-description{font-size:12px}.pair-ruler{padding:12px 10px}.pair-ruler figcaption{display:block}.pair-ruler figcaption strong{display:block;margin-top:3px}}
@media(prefers-reduced-motion:reduce){.station-light-rays,.station-caustics,.ratio-bar,.chem-reaction-diagram{animation:none}.station-inspection-lens{transition:none}}

/* Leave room to read the comparison when opening a saved section link. */
#ocean-pair,#pair-title{scroll-margin-top:84px}
.ocean-comparison .ocean-card{position:relative;padding:12px}
.ocean-card>button{position:absolute;top:10px;right:10px;min-width:44px;min-height:44px}
.ocean-card .sample-date{display:flex;align-items:center;min-height:44px;margin:0 48px 6px 0;font-size:11px}
.ocean-card strong{margin:4px 0 5px}
.ocean-card .sample-unit{margin:0 0 6px}
.ocean-card .relative-caption{margin:0 0 5px}
.ocean-card input[type=range]{min-height:44px;margin:0}
.pair-ruler{margin-top:12px;margin-bottom:12px}
.pair-ruler>p{margin-top:0}
.ocean-instrument{
  grid-template-areas:"selection chart" "details chart";
  grid-template-rows:auto 1fr;
}
.ocean-comparison{grid-area:selection}
.ocean-record{grid-area:chart}
.ocean-comparison-detail{
  grid-area:details;min-width:0;padding:0 23px 23px;
  background:linear-gradient(145deg,#fffaf0,#f2ecdc);
}
#record-plot{touch-action:pan-y}
@media(max-width:820px){
  .ocean-instrument{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"selection" "chart" "details";
    grid-template-rows:none;
  }
  .ocean-record{border-inline-start:0;overflow-anchor:none}
  .ocean-comparison-detail{padding:10px 17px 18px}
}
@media(max-width:650px){
  #ocean-pair{scroll-margin-top:8px}
  .ocean-room .room-intro{margin-top:12px}
  .ocean-room .room-intro h1{font-size:clamp(33px,8.4vw,39px)}
  .ocean-room .room-intro>p:last-child{font-size:14px;line-height:1.45}
  .ocean-comparison,.ocean-record{padding:11px 12px}
  .ocean-comparison h2{font-size:23px;margin-bottom:3px}
  .ocean-comparison .comparison-start{font-size:.73rem;margin-bottom:7px}
  .ocean-readout{grid-template-columns:minmax(0,1fr) minmax(0,112px);gap:7px;padding:9px;margin-bottom:8px;align-items:center}
  .ocean-readout .ocean-translate{grid-column:2;grid-row:1;padding:6px 8px;font-size:.74rem;max-width:100%;overflow-wrap:anywhere}
  .ocean-readout .ocean-answer{grid-column:1;grid-row:1;min-width:0;font-size:.70rem;line-height:1.35}
  .ocean-readout .ocean-answer>strong{font-size:clamp(17px,5vw,22px)}
  .ocean-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .ocean-comparison .ocean-card{padding:7px}
  .ocean-card>button{top:5px;right:5px}
  .ocean-card-meta{min-height:44px;margin:0 46px 2px 0;font:11px/1.25 var(--sans,system-ui,sans-serif)}
  .ocean-card .sample-date{display:block;min-height:0;margin:0;white-space:normal}
  .ocean-card-meta .source-badge{font-size:9px}
  .ocean-card-reading{display:flex;align-items:baseline;gap:2px 7px;flex-wrap:wrap}
  .ocean-card strong{margin:0;font-size:23px}
  .ocean-card .sample-unit{margin:0;min-height:0;font-size:9px}
  .ocean-card input[type=range]{display:block}
  .has-ratio-ruler .ocean-card .relative-caption{display:none}
  .ocean-record-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px}
  .ocean-record-head h2{font-size:21px;margin-bottom:0}
  .ocean-record-head .source-badge{max-width:none;transform:none;font-size:8px;padding:2px 4px}
  .ocean-record-head .source-badge br{display:none}
  #plot-axis-label{margin:4px 0 7px;font-size:.7rem;line-height:1.3}
}
