/* The investigation format (inv.css, with inv.js): the article page type of the design system, for documented
 * investigations and future research publications. Layout and article components only: every token, the shell and
 * the shared components (ui-btn, ui-seg, ui-table, ui-key, ui-notice, ui-status, details.ui-more) come from site.css.
 * How to publish with it: the redesign docs (INVESTIGATION_FORMAT.md).
 *
 * Layout on a wide screen (1320 px and up): a contents rail, the reading column (--read) and a margin column for the
 * notes, which float level with their reference (no script places them, so they cannot drift).
 *   [rail 184] 40 [reading column 680] 44 [notes 268]
 * From 1060 to 1319 px the rail is dropped; under 1060 px the page is one column and every note opens in the reading
 * line from its numbered reference. */

/* ------------------------------------------------------------------ the article grid */
.inv {
  --inv-rail: 184px; --inv-gap1: 40px; --inv-gap: 44px; --inv-note: 268px;
  max-width: var(--wrap); margin: 0 auto; padding: 40px var(--g) 80px;
  display: grid; grid-template-columns: [rail] var(--inv-rail) var(--inv-gap1) [main] calc(var(--read) + var(--inv-gap) + var(--inv-note));
  justify-content: center; align-items: start;
}
.inv-rail { grid-column: rail; grid-row: 1; position: sticky; top: 24px; min-width: 0; padding-top: 4px; }
.inv-main { grid-column: main; grid-row: 1; min-width: 0; }
.inv-main > *, .inv-sec > *, .inv-head > * { max-width: var(--read); }
.inv-main > .inv-head, .inv-main > .inv-sec { max-width: none; }
.inv-main > .inv-wide, .inv-sec > .inv-wide, .inv-head > .inv-wide { max-width: none; clear: right; }
.inv-sec { clear: both; margin-top: 60px; }
.inv-sec::after { content: ""; display: block; clear: both; }

/* ------------------------------------------------------------------ head: headline, standfirst, byline */
.inv-head { margin: 0 0 8px; }
.inv-title { font: 600 var(--t-3xl)/1.06 var(--serif); letter-spacing: -0.016em; margin: 0 0 20px; text-wrap: balance; }
.inv-head > .inv-title { max-width: 16.5em; }
.inv-standfirst { margin: 0 0 24px; font: 400 var(--t-l)/1.46 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.inv-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; margin: 0; padding: 9px 0 10px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font: 400 var(--t-ui)/1.5 var(--sans); color: var(--ink-2); }
.inv-head > .inv-byline { max-width: none; }
.inv-byline > span { white-space: normal; }
.inv-byline > span:not(:last-child)::after { content: "\00b7"; margin: 0 0.55em; color: var(--ink-4); }
.inv-byline b { font-weight: 600; color: var(--ink); }
.inv-byline .ui-status { font-size: var(--t-ui); }
.inv-head .ui-notice { margin: 18px 0 0; }
.inv-head .inv-lead { margin-top: 30px; }

/* ------------------------------------------------------------------ reading text */
.inv-sec > h2 { margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--ink); font: 600 var(--t-xl)/1.2 var(--serif); letter-spacing: -0.006em; }
.inv-sec h3 { margin: 30px 0 8px; font: 600 19px/1.3 var(--sans); }
.inv-sec h4 { margin: 22px 0 6px; font: 600 var(--t-m)/1.35 var(--sans); }
.inv-sec > p, .inv-text, .inv-sec > ul:not([class]) > li, .inv-sec > ol:not([class]) > li {
  font: 400 var(--t-body)/1.62 var(--serif); color: var(--ink); }
.inv-sec > p { margin: 0 0 1em; }
.inv-sec > ul:not([class]), .inv-sec > ol:not([class]) { margin: 0 0 1.1em; padding-left: 1.3em; }
.inv-sec > ul:not([class]) > li, .inv-sec > ol:not([class]) > li { margin-bottom: 0.45em; }
.inv-sec > p.inv-small, .inv-small { font: 400 var(--t-ui)/1.5 var(--sans); color: var(--ink-2); }
.inv-num { font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; font-size: 0.94em; }
.inv-slot:empty::after { content: "\2026"; color: var(--ink-3); }

/* definitions and technical lists: the interface face, denser than reading text */
.inv-sec > ul.inv-defs { margin: 0 0 1.1em; padding-left: 1.2em; }
.inv-defs > li { margin: 0 0 0.5em; font: 400 var(--t-m)/1.55 var(--sans); color: var(--ink); }
.inv-defs b { font-weight: 600; }
.inv-nw { white-space: nowrap; }

/* the finding, set off once near the top: a left rule, never a box */
.inv-finding { margin: 0 0 26px; padding: 2px 0 2px 18px; border-left: 3px solid var(--ink); }
.inv-finding p { margin: 0; font: 400 var(--t-l)/1.5 var(--serif); color: var(--ink); }
.inv-finding .inv-finding-scope { margin-top: 8px; font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-3); }
.inv-finding .inv-finding-scope b { color: var(--ink-2); font-weight: 600; }

/* "what this does not show": a ruled list in the reading column */
.inv-notshown { margin: 26px 0 0; padding: 14px 0 4px; border-top: 1px solid var(--rule); }
.inv-notshown > h3 { margin-top: 0; }
.inv-notshown ul { margin: 0; padding: 0; list-style: none; }
.inv-notshown li { position: relative; margin: 0 0 10px; padding-left: 22px; font: 400 17px/1.55 var(--serif); }
.inv-notshown li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 1.5px; background: var(--ink-2); }

/* numbered limitations */
.inv-limits { margin: 0; padding: 0; list-style: none; counter-reset: lim; }
.inv-limits > li { counter-increment: lim; position: relative; padding: 11px 0 12px 2.2em; border-top: 1px solid var(--rule); font: 400 17px/1.55 var(--serif); }
.inv-limits > li:last-child { border-bottom: 1px solid var(--rule); }
.inv-limits > li::before { content: counter(lim); position: absolute; left: 0; top: 13px; font: 600 var(--t-s)/1.2 var(--sans); color: var(--ink-3); }
.inv-limits b { font-weight: 600; }

/* ------------------------------------------------------------------ notes: margin column on a wide screen, in the line on a phone */
.inv-nref { display: inline; margin: 0 1px 0 1px; padding: 0 2px; border: 0; background: none; color: var(--ink-2); cursor: pointer;
  font: 600 0.64em/1 var(--sans); vertical-align: super; font-variant-numeric: tabular-nums; }
.inv-nref:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); }
.inv-note { float: right; clear: right; position: relative; width: var(--inv-note);
  margin: 5px calc(-1 * (var(--inv-gap) + var(--inv-note))) 16px 0;
  font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-2); text-align: left; text-indent: 0; }
.inv-note-n { margin-right: 0.4em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.inv-note code { font-size: 0.92em; overflow-wrap: anywhere; }
.inv-note.hl { background: var(--paper-3); box-shadow: -6px 0 0 var(--paper-3), 6px 0 0 var(--paper-3); }
@media (prefers-reduced-motion: no-preference) { .inv-note { transition: background-color 0.4s, box-shadow 0.4s; } }

/* ------------------------------------------------------------------ figures and tables */
.inv-fig { margin: 34px 0 40px; }
.inv-fig > .ui-key, .inv-fig > .inv-fig-key { margin: 0 0 12px; }
.inv-fig-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 var(--t-s)/1.35 var(--sans); color: var(--ink-2); }
.inv-fig-key > span { display: inline-flex; align-items: center; gap: 8px; }
.inv-fig-key i { display: inline-block; width: 16px; height: 10px; flex: none; }
.inv-fig-key i.ln { height: 0; border-top: 2.5px solid currentColor; }
.inv-fig-key i.dot { width: 9px; height: 9px; border-radius: 50%; }
.inv-fig-key i.shade { background: var(--paper-3); }
.inv-plot { position: relative; }
.inv-plot > svg, .inv-chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.inv-chart.inv-map { overflow: hidden; }
.inv-chart text { font: 400 13px var(--sans); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.inv-chart .t-tick { fill: var(--ink-3); }
.inv-chart .t-title { font-weight: 600; font-size: 14px; fill: var(--ink); }
.inv-chart .t-val { font-weight: 600; fill: var(--ink); }
.inv-chart .t-sub { fill: var(--ink-3); }
.inv-chart .t-water { font-family: var(--serif); font-style: italic; fill: var(--ink); }
.inv-chart .t-halo { paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }
.inv-chart .grid { stroke: var(--rule); stroke-width: 1; }
.inv-chart .zero { stroke: var(--ink); stroke-width: 1; }
.inv-chart .frame { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.inv-chart [data-hit] { cursor: default; }
.inv-chart [data-hit]:focus { outline: none; }
.inv-chart [data-hit]:focus-visible { outline: 2px solid var(--ink); }
.inv-readout { min-height: 1.5em; margin: 0 0 6px; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.inv-readout b { color: var(--ink); font-weight: 600; }
.inv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; font: 400 var(--t-s)/1.3 var(--sans); color: var(--ink-3); }
.inv-credit { margin: 6px 0 0; font: 400 var(--t-xs)/1.45 var(--sans); color: var(--ink-3); text-align: right; }
.inv-fig > figcaption { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--rule); font: 400 var(--t-s)/1.55 var(--sans); color: var(--ink-2); }
.inv-fig.inv-wide > figcaption { max-width: var(--read); }
.inv-fig-no { margin-right: 0.35em; font-weight: 600; color: var(--ink); }
.inv-fig > details { margin-top: 10px; }
.inv-fig img { display: block; max-width: 100%; height: auto; }
.inv-fig .inv-orig { display: block; border: 1px solid var(--rule-2); background: #fff; }
/* tables as numbered exhibits: caption above */
.inv-tab > figcaption { order: -1; margin: 0 0 10px; padding: 0; border: 0; }
.inv-tab { display: flex; flex-direction: column; }
.inv-tab .inv-scroll { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font: 400 var(--t-ui)/1.4 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.inv-table th, .inv-table td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.inv-table thead th { font: 600 var(--t-s)/1.3 var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.inv-table thead tr.grp th { border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; color: var(--ink); }
.inv-table .n { text-align: right; white-space: nowrap; }
.inv-table th[scope="row"] { font-weight: 400; color: var(--ink); }
.inv-table tr.sub th[scope="row"] { padding-left: 1em; color: var(--ink-2); font-size: var(--t-s); }
.inv-table tr.sub td { color: var(--ink-2); font-size: var(--t-s); }
.inv-table tr.shade td, .inv-table tr.shade th { background: var(--paper-2); }
.inv-table tbody tr:last-child th, .inv-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.inv-table td.gap, .inv-table th.gap { width: 18px; padding: 0; border-bottom-color: transparent; }
.inv-table small { font-size: var(--t-s); color: var(--ink-3); }
.inv-table code { font-size: 0.86em; overflow-wrap: anywhere; }
details.ui-more .inv-table { margin: 6px 0 4px; }

/* ------------------------------------------------------------------ an interactive map as a figure: the map, then its key */
.inv-mapbox { position: relative; }
.inv-map-frame { height: clamp(420px, 66vh, 680px); border: 1px solid var(--ink-2); }
.inv-mapbox .ui-map-status { z-index: 4; }
.inv-mapbox .inv-inset { position: absolute; left: 10px; bottom: 44px; width: 80px; z-index: 3; pointer-events: none; }
.inv-maplabel { padding: 2px 6px; background: rgba(253, 252, 249, 0.88); border: 1px dashed var(--ink-3); font: 500 var(--t-xs)/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.inv-pin { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.inv-mapkey { column-width: 290px; column-gap: 30px; margin-top: 18px; }
.inv-kgrp { break-inside: avoid; margin: 0 0 16px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--ink); min-width: 0; }
.inv-kgrp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 0; float: left; margin-bottom: 4px; font: 600 var(--t-ui)/1.35 var(--sans); color: var(--ink); }
.inv-kgrp-h + * { clear: left; }
.inv-kgrp-h .n { font: 400 var(--t-s)/1.3 var(--sans); color: var(--ink-3); }
.inv-kgrp .inv-ev { white-space: normal; }
.inv-kcav, .inv-kgrp-cav { clear: left; margin: 2px 0 6px; font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-3); }
.inv-kcav b { color: var(--ink-2); }
.inv-krow { display: grid; grid-template-columns: 18px 18px minmax(0, 1fr); align-items: start; column-gap: 8px; width: 100%; min-height: 40px; padding: 5px 0; color: var(--ink); }
.inv-krow input { margin-top: 2px; }
.inv-krow b { display: block; font-weight: 500; }
.inv-krow small { display: block; font-size: var(--t-s); color: var(--ink-3); }
.inv-krow.sub { padding-left: 26px; }
.inv-klegend { list-style: none; margin: 0 0 8px 26px; padding: 0; font: 400 var(--t-s)/1.4 var(--sans); color: var(--ink-2); }
.inv-klegend li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; padding: 2px 0; }
.inv-klegend b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
/* the key's swatches: small marks in the colours of the map (the words stay ink) */
.inv-sw { display: block; width: 16px; height: 12px; margin-top: 3px; box-sizing: border-box; }
.inv-sw.none { border: 1px solid var(--rule-2); }
.inv-sw.sfha { background: repeating-linear-gradient(-45deg, var(--dated) 0 1.2px, rgba(138, 90, 0, 0.06) 1.2px 4px); box-shadow: inset 0 0 0 1.2px var(--dated); }
.inv-sw.x02 { background: repeating-linear-gradient(-45deg, var(--dated) 0 1px, transparent 1px 6px); box-shadow: inset 0 0 0 1px rgba(138, 90, 0, 0.6); }
.inv-sw.xmin { border: 1px dotted var(--dated); }
.inv-sw.leveed { border: 1.5px dashed var(--dated); background: repeating-linear-gradient(45deg, rgba(138, 90, 0, 0.35) 0 1px, transparent 1px 5px); }
.inv-sw.levee { height: 0; margin-top: 8px; border-top: 2.5px solid var(--ink); }
.inv-sw.femalevee { height: 0; margin-top: 8px; border-top: 2px dashed var(--ink-3); }
.inv-sw.dmg { width: 10px; height: 10px; margin: 4px 3px 0; border-radius: 50%; background: var(--ink); }
.inv-sw.hwm { width: 12px; height: 11px; margin: 3px 2px 0; background: var(--water); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.inv-sw.gauge { width: 11px; height: 11px; margin: 3px 2px 0; background: var(--src-official); }
.inv-sw.gauge.hollow { background: var(--surface); box-shadow: inset 0 0 0 1.8px var(--src-official); }
.inv-sw.nws { width: 10px; height: 10px; margin: 3px 3px 0; box-shadow: inset 0 0 0 1.8px var(--ink-3); }
.inv-sw.calsip { width: 10px; height: 10px; margin: 3px 3px 0; border-radius: 50%; box-shadow: inset 0 0 0 1.8px var(--ink-3); }
.inv-sw.structure { width: 6px; height: 6px; margin: 6px 5px 0; border-radius: 50%; background: var(--ink-3); }
.inv-sw.peak { border: 2px dashed var(--ink-2); }
.inv-sw.owater { background: repeating-linear-gradient(0deg, var(--water) 0 1.2px, var(--lake) 1.2px 3px); box-shadow: inset 0 0 0 1px var(--water); }
.inv-sw.owater3 { background: repeating-linear-gradient(0deg, rgba(29, 90, 128, 0.65) 0 1px, rgba(198, 220, 230, 0.5) 1px 4px); border: 1px dashed var(--water); }
.inv-sw.extent { background: var(--water-ink); }
.inv-sw.extent3 { background: var(--water); opacity: 0.6; }
.inv-sw.nwater { background: var(--lake); }
.inv-sw.unk { background: radial-gradient(var(--ink-3) 0.8px, transparent 1px) 0 0 / 3px 3px, rgba(253, 252, 249, 0.5); box-shadow: inset 0 0 0 1px var(--ink-3); }
.inv-sw.relief { background: linear-gradient(135deg, var(--paper-3), var(--ink-4)); }
.inv-sw.dm-region { border: 2.5px solid var(--ink); }
.inv-sw.dm-et { background: rgba(87, 53, 23, 0.2); box-shadow: inset 0 0 0 1px var(--lv0); }
.inv-sw.dm-well { width: 6px; height: 6px; margin: 6px 5px 0; border-radius: 50%; background: var(--ink-3); }
.inv-sw.dm-matched { width: 11px; height: 11px; margin: 3px 2px 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.2px var(--ink); }
.inv-sw.dm-res { width: 12px; height: 12px; margin: 3px 2px 0; border-radius: 50%; background: var(--water); }
.inv-sw.dm-sjv { border: 1.5px dashed var(--ink-4); background: var(--paper-2); }
/* a clicked feature's record: in a popup, or under the map on a phone */
.inv-pp { font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-2); }
.inv-pp-t { margin: 0 0 4px; font: 600 var(--t-m)/1.3 var(--sans); color: var(--ink); }
.inv-pp-l { margin: 0 0 6px; }
.inv-pp dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 2px; margin: 6px 0; max-height: 220px; overflow: auto; }
.inv-pp dt { color: var(--ink-3); }
.inv-pp dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.inv-pp-c { margin: 4px 0 0; color: var(--ink-3); }
.inv-inspect { margin-top: 10px; padding: 10px 0 4px; border-top: 1px solid var(--ink); }
.inv-inspect .inv-inspect-x { float: right; margin: 0 0 6px 10px; }
.maplibregl-popup-content .inv-pp { padding-right: 14px; }
/* the season picker of a map figure */
.inv-season { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; font: 400 var(--t-ui)/1.4 var(--sans); }
.inv-season-v { flex-basis: 100%; margin: 0; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-2); }
.inv-season-v b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ the list of tests, facts and timeline rows */
.inv-rows { margin: 0; padding: 0; list-style: none; counter-reset: row; }
.inv-rows > li { counter-increment: row; position: relative; padding: 12px 0 13px 2.2em; border-top: 1px solid var(--rule); font: 400 var(--t-ui)/1.5 var(--sans); }
.inv-rows > li:last-child { border-bottom: 1px solid var(--rule); }
.inv-rows > li::before { content: counter(row); position: absolute; left: 0; top: 14px; font: 600 var(--t-s)/1.2 var(--sans); color: var(--ink-3); }
.inv-rows .r-h { display: block; font-weight: 600; color: var(--ink); }
.inv-rows .r-what { display: block; color: var(--ink-2); }
.inv-rows .r-found { display: block; margin-top: 3px; color: var(--ink); }
.inv-rows .r-out { display: block; margin-top: 4px; font-size: var(--t-s); color: var(--ink-3); }
.inv-rows .r-out b { color: var(--ink-2); font-weight: 600; }
.inv-rows.inv-wide > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 180px); column-gap: 26px; }
.inv-rows.inv-wide .r-found, .inv-rows.inv-wide .r-out { margin-top: 0; }
.inv-rows.inv-wide .r-out { font-size: var(--t-s); }
.inv-verdict { margin: 18px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--ink); }
.inv-verdict p { margin: 0 0 8px; font: 400 17px/1.55 var(--serif); }
.inv-verdict p:first-child { font: 600 var(--t-m)/1.4 var(--sans); }

/* key facts with who said them (investigations of events) */
.inv-facts { margin: 6px 0 0; padding: 0; list-style: none; }
.inv-facts > li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); column-gap: 22px; padding: 14px 0 15px; border-top: 1px solid var(--rule); }
.inv-facts > li:first-child { border-top: 1px solid var(--ink); }
.inv-facts > li:last-child { border-bottom: 1px solid var(--rule); }
.inv-fact-v { margin: 0; font: 600 var(--t-l)/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; white-space: pre-line; }
.inv-fact-v small { display: block; margin-top: 2px; font: 400 var(--t-s)/1.3 var(--sans); color: var(--ink-3); }
.inv-fact-t { margin: 0; font: 400 17px/1.5 var(--serif); color: var(--ink); }
.inv-fact-s { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-3); }
.inv-fact-x { margin: 4px 0 0; font: 400 var(--t-ui)/1.5 var(--sans); color: var(--ink-2); }
.inv-facts > li.absent .inv-fact-v { color: var(--ink-2); font-weight: 600; }

/* on a wide screen the "who said it" line of a fact sits in the margin column */
@media (min-width: 1060px) {
  .inv-facts.inv-wide > li { grid-template-columns: minmax(0, 150px) minmax(0, calc(var(--read) - 172px)) minmax(0, 1fr); }
  .inv-facts.inv-wide .inv-fact-s { grid-column: 3; grid-row: 1 / span 3; margin: 3px 0 0 var(--inv-gap); flex-direction: column; gap: 3px; }
  .inv-facts.inv-wide .inv-fact-x { grid-column: 2; }
}
.inv-facts .inv-fact-t, .inv-facts .inv-fact-x { grid-column: 2; }
.inv-facts .inv-fact-v { grid-row: 1 / span 3; }

/* definitions of the evidence classes */
.inv-classes { margin: 0; padding: 0; }
.inv-classes > div { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); column-gap: 22px; padding: 12px 0 13px; border-top: 1px solid var(--rule); }
.inv-classes > div:last-child { border-bottom: 1px solid var(--rule); }
.inv-classes dt { margin: 0; }
.inv-classes dt small { display: block; margin-top: 3px; font: 400 var(--t-xs)/1.3 var(--sans); color: var(--ink-3); }
.inv-classes dd { margin: 0; font: 400 var(--t-ui)/1.5 var(--sans); color: var(--ink); }
.inv-classes dd p { margin: 0 0 4px; }
.inv-classes dd .c { color: var(--ink-2); }
.inv-classes dd .in { color: var(--ink-3); font-size: var(--t-s); }

/* small multiples (one panel per date) */
.inv-passes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 22px 22px; }
.inv-pass { margin: 0; min-width: 0; }
.inv-pass .inv-pass-h { margin: 0 0 6px; font: 600 var(--t-m)/1.3 var(--sans); color: var(--ink); }
.inv-pass .inv-pass-h span { font-weight: 400; color: var(--ink-3); }
.inv-pass p { margin: 6px 0 0; font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-2); }
.inv-pass p b { color: var(--ink); font-weight: 600; }

/* a figure's own controls: the gauges shown */
.inv-gauges { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; border: 0; }
.inv-gauges .ui-check { min-height: 40px; color: var(--ink-2); }
.inv-gauges .ui-check i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid currentColor; }
.inv-gauges .ui-check i.pts { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }

/* the limits of one section, next to its data */
.inv-seclims { margin: 26px 0 0; }
.inv-seclims ul { margin: 0; padding: 0 0 6px; list-style: none; }
.inv-seclims li > span:first-child { align-self: start; padding-top: 2px; }
.inv-lim-k { font: 600 var(--t-xs)/1.3 var(--cond); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.inv-tl-what > p:first-child { max-width: 44em; }
.inv-seclims li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); column-gap: 14px; padding: 5px 0; font: 400 var(--t-ui)/1.5 var(--sans); color: var(--ink-2); }

/* who said it: a shaped swatch and the class name, never a pill */
.inv-ev { display: inline-flex; align-items: baseline; gap: 7px; font: 600 var(--t-xs)/1.3 var(--cond); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.inv-ev::before { content: ""; width: 10px; height: 10px; flex: none; align-self: center; box-sizing: border-box; background: var(--ink-4); }
.inv-ev.OBSERVED_POINT::before, .inv-ev.observation::before { border-radius: 50%; background: var(--ink); }
.inv-ev.OBSERVED_WATER::before { background: var(--water); }
.inv-ev.OBSERVED_EXTENT::before { background: var(--water-ink); }
.inv-ev.MODELED_INUNDATION::before { background: none; border: 1.5px dashed var(--src-model); }
.inv-ev.POTENTIAL_HAZARD::before { background: repeating-linear-gradient(-45deg, var(--dated) 0 1.5px, transparent 1.5px 3.5px); box-shadow: inset 0 0 0 1px var(--dated); }
.inv-ev.UNKNOWN::before { background: repeating-linear-gradient(45deg, var(--ink-3) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 0 1px var(--ink-3); }
.inv-ev.CONTEXT::before { background: none; border: 1.5px solid var(--ink-4); }
.inv-ev.official::before { background: var(--src-official); }
.inv-ev.reported::before { width: 9px; height: 9px; background: none; border: 1.5px solid var(--ink-2); transform: rotate(45deg); }
.inv-ev.absent { color: var(--ink-3); }
.inv-fact-s .inv-ev, .inv-tl .inv-ev, .inv-classes .inv-ev, .inv-fig-key .inv-ev { white-space: normal; }
.inv-fact-s .inv-ev::before { align-self: flex-start; margin-top: 2px; }
.inv-ev.absent::before { background: none; border: 1.5px dotted var(--ink-3); box-shadow: none; }

/* timeline */
.inv-tl { margin: 0; padding: 0; list-style: none; }
.inv-tl > li { display: grid; grid-template-columns: 34px minmax(0, 150px) minmax(0, 1fr); column-gap: 14px; padding: 11px 0 12px; border-top: 1px solid var(--rule); }
.inv-tl > li:last-child { border-bottom: 1px solid var(--rule); }
.inv-tl-n { font: 600 var(--t-s)/1.5 var(--sans); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.inv-tl-when { font: 500 var(--t-ui)/1.45 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.inv-tl-when small { display: block; font: 400 var(--t-xs)/1.4 var(--sans); color: var(--ink-3); }
.inv-tl-what p { margin: 0; font: 400 var(--t-m)/1.5 var(--sans); color: var(--ink); }
.inv-tl-what .inv-fact-s { margin-top: 4px; }

/* ------------------------------------------------------------------ references, data and code, how to cite */
.inv-refs { margin: 0; padding: 0; list-style: none; }
.inv-refs > li { position: relative; padding: 0 0 12px 2.6em; font: 400 var(--t-ui)/1.55 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.inv-ref-n { position: absolute; left: 0; top: 0; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.inv-refs i { font-style: italic; }
.inv-refs .inv-ref-x { color: var(--ink-3); }
a.inv-cite { font-family: var(--sans); font-size: 0.82em; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.inv-cite:hover { text-decoration: underline; }
:target { scroll-margin-top: 24px; }
.inv-refs > li:target { background: var(--paper-3); box-shadow: -8px 0 0 var(--paper-3), 8px 0 0 var(--paper-3); }

.inv-data { width: 100%; border-collapse: collapse; font: 400 var(--t-ui)/1.4 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.inv-data th, .inv-data td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.inv-data thead th { font: 600 var(--t-s)/1.3 var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.inv-data .n { text-align: right; white-space: nowrap; }
.inv-data .t-name { display: block; font-weight: 600; color: var(--ink); }
.inv-data td:first-child { min-width: 250px; width: 34%; }
.inv-data .t-path { display: block; font: 400 var(--t-s)/1.4 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.inv-data .t-role { display: block; margin-top: 2px; font-size: var(--t-s); color: var(--ink-2); }
.inv-data .t-get a { display: inline-block; margin: 0 10px 2px 0; white-space: nowrap; }
.inv-data tr.withheld td, .inv-data tr.withheld .t-name { color: var(--ink-2); }
.inv-terms { display: block; font-weight: 500; color: var(--ink); }
.inv-terms + small { display: block; font-size: var(--t-s); color: var(--ink-3); }
.inv-terms.withheld::before, .inv-terms.link::before, .inv-terms.part::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px;
  vertical-align: 0.05em; border-radius: 50%; background: var(--dated); }
.inv-terms.link::before { background: none; box-shadow: inset 0 0 0 1.5px var(--dated); }
.inv-data-wrap { overflow-x: auto; }

.inv-citeblock { margin: 0 0 8px; padding: 2px 0 2px 16px; border-left: 3px solid var(--ink); }
.inv-citeblock p { margin: 0 0 10px; font: 400 17px/1.55 var(--serif); overflow-wrap: anywhere; }
.inv-citeblock .inv-cite-do { display: flex; align-items: center; gap: 12px; font: 400 var(--t-s)/1.4 var(--sans); color: var(--ink-3); }
.inv-changes { margin: 10px 0 0; padding: 0; list-style: none; }
.inv-changes > li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); column-gap: 16px; padding: 9px 0 10px; border-top: 1px solid var(--rule); font: 400 var(--t-ui)/1.5 var(--sans); }
.inv-changes > li:last-child { border-bottom: 1px solid var(--rule); }
.inv-changes .d { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ the contents rail */
.inv-toc-h { margin: 0 0 10px; font: 600 var(--t-xs)/1.2 var(--cond); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.inv-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.inv-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 13px; border-left: 2px solid transparent; color: var(--ink-2);
  font: 400 var(--t-ui)/1.3 var(--sans); text-decoration: none; }
.inv-toc a:hover { color: var(--ink); border-left-color: var(--rule-2); }
.inv-toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.inv-rail-more { margin: 18px 0 0; font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-3); }

/* ------------------------------------------------------------------ the investigations index: a publication list */
.inv-index { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--g) 80px; }
.inv-index-head { max-width: 44em; margin: 0 0 34px; }
.inv-index-head h1 { font: 600 var(--t-2xl)/1.1 var(--serif); margin: 0 0 12px; }
.inv-index-head p { margin: 0; font: 400 var(--t-l)/1.45 var(--serif); color: var(--ink-2); }
.inv-pubs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.inv-pub { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 170px); column-gap: 36px; padding: 26px 0 28px; border-bottom: 1px solid var(--rule); }
.inv-pub-when { font: 500 var(--t-ui)/1.45 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.inv-pub-when small { display: block; font: 400 var(--t-s)/1.45 var(--sans); color: var(--ink-3); }
.inv-pub h2 { margin: 0 0 8px; font: 600 25px/1.2 var(--serif); }
.inv-pub h2 a { color: var(--ink); text-decoration: none; }
.inv-pub h2 a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.inv-pub-dek { margin: 0 0 10px; font: 400 var(--t-body)/1.55 var(--serif); color: var(--ink-2); max-width: 36em; }
.inv-pub-by { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-3); }
.inv-pub-by > span:not(:last-child)::after { content: "\00b7"; margin: 0 0.5em; color: var(--ink-4); }
.inv-pub-by b { color: var(--ink-2); font-weight: 600; }
.inv-pub-fig { margin: 0; max-width: 170px; }
.inv-pub-fig svg { display: block; width: 100%; height: auto; }
.inv-pub-fig figcaption { margin-top: 6px; font: 400 var(--t-xs)/1.4 var(--sans); color: var(--ink-3); }
.inv-index-note { max-width: 46em; margin: 40px 0 0; }
.inv-index-note h2 { font: 600 var(--t-xl)/1.2 var(--serif); margin: 0 0 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.inv-index-note p { font: 400 var(--t-body)/1.62 var(--serif); margin: 0 0 1em; }

/* ------------------------------------------------------------------ medium screens: no rail */
@media (max-width: 1319px) {
  .inv { --inv-gap: 40px; --inv-note: 260px; grid-template-columns: [main] calc(var(--read) + var(--inv-gap) + var(--inv-note)); }
  .inv-rail { display: none; }
  .inv-main { grid-column: main; }
}
/* ------------------------------------------------------------------ one column: notes open in the reading line */
@media (max-width: 1059px) {
  .inv { display: block; max-width: calc(var(--read) + 2 * var(--g)); padding-top: 26px; }
  .inv-main > .inv-wide, .inv-sec > .inv-wide, .inv-head > .inv-wide { max-width: none; }
  .inv-note { display: none; float: none; width: auto; margin: 8px 0 12px; padding: 8px 0 8px 12px; border-left: 2px solid var(--ink-3); font-size: var(--t-s); }
  .inv-note.open { display: block; }
  .inv-note.hl { box-shadow: none; }
  .inv-nref { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin: 0 2px; padding: 0 5px;
    border: 1px solid var(--rule-2); border-radius: var(--r); font-size: 12.5px; line-height: 1; vertical-align: 0.15em; }
  .inv-nref[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .inv-pub { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .inv-rows.inv-wide > li { display: block; }
  .inv-rows.inv-wide .r-found, .inv-rows.inv-wide .r-out { margin-top: 3px; }
  .inv-pub-fig { max-width: 150px; margin-top: 10px; }
}
@media (max-width: 720px) {
  .inv-sec { margin-top: 48px; }
  .inv-map-frame { height: 60vh; height: 60svh; min-height: 340px; }
  .inv-classes > div { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .inv-seclims li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .inv-facts > li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .inv-facts .inv-fact-v, .inv-facts .inv-fact-t, .inv-facts .inv-fact-x, .inv-facts .inv-fact-s { grid-column: 1; grid-row: auto; }
  .inv-tl > li { grid-template-columns: 26px minmax(0, 1fr); }
  .inv-tl-what { grid-column: 2; margin-top: 4px; }
  .inv-changes > li { grid-template-columns: minmax(0, 1fr); }
  .inv-sec > p, .inv-text { font-size: var(--t-body); }
  .inv-fig { margin: 28px 0 34px; }
  .inv-data thead { display: none; }
  .inv-data, .inv-data tbody, .inv-data tr, .inv-data td { display: block; width: 100%; }
  .inv-data tr { padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
  .inv-data td { padding: 2px 0; border: 0; text-align: left; }
  .inv-data td.n { text-align: left; }
  .inv-data td[data-h]::before { content: attr(data-h) ": "; color: var(--ink-3); }
}

/* ------------------------------------------------------------------ print: the article, not the interface */
@media print {
  .inv { display: block; max-width: none; padding: 0; }
  .inv-rail, .inv-controls, .inv-readout, [data-noprint], .inv-citeblock button, .inv-mapkey input, .ui-map-status, .inv-season select { display: none !important; }
  .inv-map-frame { height: 420px; break-inside: avoid; }
  .inv-main > *, .inv-sec > *, .inv-head > * { max-width: none !important; }
  /* the reading column and its margin notes on paper: notes stay level with their reference */
  .inv-sec > p { max-width: 64% !important; }
  .inv-title { font-size: 24pt; }
  .inv-standfirst { font-size: 13pt; }
  .inv-sec { margin-top: 18pt; }
  .inv-sec > h2 { font-size: 15pt; break-after: avoid; }
  .inv-sec > p, .inv-text, .inv-limits > li, .inv-notshown li { font-size: 10.5pt; }
  .inv-note { display: block !important; float: right; clear: right; width: 50%; margin: 2pt -56% 6pt 0; padding: 0; border: 0; font-size: 8pt; line-height: 1.4; }
  .inv-nref { border: 0; font-size: 7pt; color: #000; }
  .inv-fig, .inv-tab, .inv-facts > li, .inv-tl > li, .inv-rows > li { break-inside: avoid; }
  .inv-refs a::after { content: " <" attr(href) ">"; font-size: 8pt; color: #444; }
  .inv-refs a[href^="#"]::after, .inv-refs a[href^="/"]::after { content: ""; }
  .inv-data .t-get a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
  .inv-pub { grid-template-columns: 120px 1fr; }
  .inv-pub-fig { display: none; }
}

/* the way back to the flood map (restored to the reader's last view when there is one) */
.inv-back { margin: 0 0 14px; font: 500 var(--t-ui)/1.4 var(--sans); }
