:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #6f6d68;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11,11,11,0.10);
  --land: #ebeae5; --land-gulf: #dcdad2; --water: #f3f6f9; --sts: #b88a00;
  --route: #52514e; --pipe: #8a6d1f;
  --up-1: #f4c4bf; --up-2: #ec8f8a; --up-3: #e34948; --up-4: #b52f2f;
  --down-1: #cde2fb; --down-2: #86b6ef; --down-3: #2a78d6;
  --mid: #c9c7be;
  --accent: #2a78d6; --hormuz: #d03b3b;
  --up-text: #a62a2a; --down-text: #1c5cab;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #9a988f;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10);
    --land: #2a2a28; --land-gulf: #383835; --water: #141a20; --sts: #e0b400;
    --route: #c3c2b7; --pipe: #d1a94a;
    --up-1: #5a2a28; --up-2: #8f3634; --up-3: #e66767; --up-4: #f29b9b;
    --down-1: #1f3550; --down-2: #256abf; --down-3: #6da7ec;
    --mid: #55544f; --accent: #3987e5;
    --up-text: #f29b9b; --down-text: #86b6ef;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #9a988f;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10);
  --land: #2a2a28; --land-gulf: #383835; --water: #141a20; --sts: #e0b400;
  --route: #c3c2b7; --pipe: #d1a94a;
  --up-1: #5a2a28; --up-2: #8f3634; --up-3: #e66767; --up-4: #f29b9b;
  --down-1: #1f3550; --down-2: #256abf; --down-3: #6da7ec;
  --mid: #55544f; --accent: #3987e5;
  --up-text: #f29b9b; --down-text: #86b6ef;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-underline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.masthead { margin-bottom: 16px; }
.kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hormuz); }
h1 { margin: 4px 0 8px; font-size: clamp(26px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.dek { margin: 0 0 8px; max-width: 60ch; color: var(--ink-2); font-size: 17px; }
.dek #polling { display: block; margin-top: 6px; color: var(--ink); font-weight: 750; }
.dek #polling::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--hormuz); vertical-align: 1px; }
.stamp { margin: 0; font-size: 13px; color: var(--muted); }

/* Headline tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px 10px; min-width: 0; }
.tile .lab { font-size: clamp(16px, 1.2vw + 10px, 18px); font-weight: 750; color: var(--ink); line-height: 1.25; min-height: 2.5em; }
.tile .val { font-size: clamp(18px, 1vw + 12px, 22px); font-weight: 650; line-height: 1.15; margin-top: 8px; white-space: nowrap; }
.tile .val small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.tile .ctx { font-size: 12px; font-weight: 650; color: var(--ink); margin-top: 2px; }
.tile .per { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.chg { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.up { color: var(--up-text); } .chg.down { color: var(--down-text); }
.tile { container-type: inline-size; }
/* The change is the biggest, boldest thing on a headline card, sized to the card so it fits on a phone. */
.tile .cv { margin-top: 8px; }
.tile .cv .chg.big { display: block; font-size: 28px; font-size: clamp(24px, 18cqi, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.tile .cv .vs { display: block; margin-top: 2px; }
.tile .vs { font-size: 12px; color: var(--muted); }
.tile svg.spark { display: block; width: 100%; height: 40px; margin-top: 6px; overflow: visible; }
.tile .src { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* Map */
.mapcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin: 16px 0; position: relative; }
.map { background: var(--water); border-radius: 8px; overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.graticule { fill: none; stroke: var(--grid); stroke-width: .5; }
.country { fill: var(--land); stroke: var(--surface); stroke-width: .5; }
.country.gulf { fill: var(--land-gulf); }
.country.tracked { cursor: pointer; }
.route { fill: none; stroke: var(--route); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55;
  stroke-dasharray: 2 6; }
.route.measured { stroke-dasharray: none; opacity: .8; }
.branch { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 10; opacity: .9; }
.pipe { fill: none; stroke: var(--pipe); stroke-width: 2; stroke-linecap: round; }
.dest { cursor: pointer; }
.dest .dot { stroke: var(--surface); stroke-width: 2; }
.dest .ring { fill: none; stroke-width: 1.5; opacity: 0; }
.dest.on .dot { stroke: var(--ink); }
.hormuz .core { fill: var(--hormuz); stroke: var(--surface); stroke-width: 2; }
.hormuz .ring { fill: none; stroke: var(--hormuz); stroke-width: 1.5; opacity: 0; }
.inset-bg { fill: var(--water); }
.inset-frame { fill: none; stroke: var(--axis); stroke-width: 1; }
.inset .lbl { font-size: 11px; fill: var(--ink-2); font-weight: 600; letter-spacing: .04em; }
.inset .lbl.strong { fill: var(--ink); font-size: 12px; letter-spacing: 0; }
.inset .lbl.small { font-size: 10px; font-weight: 500; letter-spacing: 0; }
.inset .lbl.water { font-size: 10px; font-weight: 400; font-style: italic; fill: var(--muted); letter-spacing: 0; }
.inset .route { stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .route { animation: flow 2.4s linear infinite; }
  .branch { animation: flow 1.6s linear infinite; }
  .hormuz .ring { animation: ripple 2.6s ease-out infinite; }
  .hormuz .ring.r2 { animation-delay: 1.3s; }
  .dest .ring { animation: ripple 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
}
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(4); opacity: 0; } }

.maptip { min-height: 1.5em; font-size: 14px; color: var(--ink-2); padding: 8px 6px 0; }
.maptip b { color: var(--ink); }
.legend { list-style: none; margin: 4px 0 2px; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 18px; height: 0; border-top: 2.4px dotted var(--route); }
.key.pipe { border-top: 2px solid var(--pipe); }
.key.dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--hormuz); }
.scale { display: inline-flex; gap: 2px; }
.scale i { width: 14px; height: 8px; border-radius: 2px; display: block; }

/* Groups and cards */
.group { margin: 24px 0; }
.group h2 { margin: 0 0 2px; font-size: 22px; }
.group .lede { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.section-h { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
details.row + details.row { border-top: 1px solid var(--grid); }
details.row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 4.6em; gap: 10px; align-items: baseline; padding: 11px 12px; }
details.row summary::-webkit-details-marker { display: none; }
details.row summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
details.row summary .name { font-size: 15px; }
details.row summary .num { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
details.row summary .chg { text-align: right; font-size: 15px; }
details.row summary .name::before { content: "+"; display: inline-block; width: 1em; color: var(--muted); font-weight: 600; }
details.row[open] summary .name::before { content: "\2212"; }
.detail { padding: 0 12px 14px; }
.detail .chart { position: relative; }
.detail svg { display: block; width: 100%; height: 150px; overflow: visible; }
.detail .facts { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.detail .facts a { color: var(--ink-2); }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; font-size: 12px; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.axis-t { font-size: 10px; fill: var(--muted); }
.base-l { stroke: var(--axis); stroke-width: 1; }
.base-t { font-size: 10px; fill: var(--muted); }
.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.yr25 { fill: var(--grid); opacity: .5; }
.end { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.cross { stroke: var(--axis); stroke-width: 1; }

.notes { margin: 28px 0 8px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.notes h2 { font-size: 18px; color: var(--ink); margin: 18px 0 6px; }
.notes h3 { font-size: 14px; color: var(--ink); margin: 14px 0 4px; }
.sources { padding-left: 0; margin: 0; list-style: none; }
.sources .sgroup { font-weight: 700; margin-top: 14px; }
.sources .sgroup ul { font-weight: 400; padding-left: 18px; margin: 6px 0 0; }
.sources .sgroup li { margin: 3px 0; }
.sources .sstat { color: var(--muted); font-size: 13px; }
.sources .sstat.live { color: var(--ink); font-weight: 650; }
.sources .sstat.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hormuz); margin: 0 5px 1px 2px; }
.sourcelead { color: var(--ink-2); }
.embedbtn { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); cursor: pointer; }
.embedbox pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; overflow-x: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

.credit { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--grid); margin-top: 24px; padding-top: 12px; font-size: 14px; color: var(--ink-2); }
.credit a { font-weight: 650; color: var(--ink); }
.embed-only { display: none; }

/* Embedded: headline, map and the credit only. */
body.embed .wrap { padding: 12px; }
body.embed .groups, body.embed .full-only, body.embed .dek { display: none; }
body.embed .embed-only { display: inline; }
body.embed h1 { font-size: 24px; }
body.embed .credit { margin-top: 10px; }

/* Map layout: world map, then the Gulf region up close */
.mapgrid { display: grid; gap: 8px; }
@media (max-width: 699px) {
  #map, #region { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  #map svg { width: 760px; max-width: none; }
  #region svg { width: 820px; max-width: none; }
}
/* Gulf region map (built from the team's Nov 17 reference map by tools/build_region.py) */
.r-sea { fill: var(--water); }
.r-land path { fill: var(--land); stroke: var(--mid); stroke-width: .8; }
.r-cty { fill: var(--muted); font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.r-cty.sm { font-size: 13px; letter-spacing: 2px; } .r-cty.xs { font-size: 10.5px; letter-spacing: 1px; }
.r-water { fill: var(--muted); font-style: italic; font-size: 16px; font-family: Georgia, serif; }
.r-place { fill: var(--ink); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--land); stroke-width: 3px; stroke-linejoin: round; }
.r-place.r-big { font-size: 16px; stroke: var(--water); }
.r-pipelbl { fill: var(--pipe); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--land); stroke-width: 3px; }
.r-pipelbl.sm2 { font-size: 11.5px; }
.r-city { fill: var(--ink); stroke: var(--surface); stroke-width: 1.2; }
.r-flow { fill: none; stroke-linecap: round; stroke-dasharray: 2 9; }
.r-tanker { stroke: var(--route); stroke-width: 4; opacity: .7; }
.r-pipe { stroke: var(--pipe); stroke-width: 3; stroke-dasharray: 10 6; }
.r-halo { fill: var(--hot); fill-opacity: .12; stroke: var(--hot); stroke-opacity: .55; stroke-width: 1.5; }
.r-band { fill: none; stroke: var(--hot); stroke-opacity: .16; stroke-linecap: round; }
.r-sts { fill: var(--sts); fill-opacity: .16; stroke: var(--sts); stroke-width: 2; stroke-dasharray: 5 4; }
#region .hot .hmark { stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) { .r-flow { animation: rflow 1.6s linear infinite; } }
@keyframes rflow { to { stroke-dashoffset: -22; } }
.key.sts { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--sts); background: transparent; }
.key.ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--hot); background: transparent; }

.pipe-end { fill: var(--pipe); }

/* Hot spots: a status color always ships with its triangle icon and a text label */
.hot { cursor: pointer; }
.hot .hmark { fill: var(--hot); stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; }
.hot .hring { fill: none; stroke: var(--hot); stroke-width: 1.5; opacity: 0; }
.hot .hlbl { font-size: 10.5px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--water); stroke-width: 3px; stroke-linejoin: round; }
.hot.on .hmark { stroke: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .hot .hring { animation: ripple 3.2s ease-out infinite; animation-delay: var(--d, 0s); } }
.key.hot { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--hot); border-top: 0; }
:root { --hot: #d03b3b; --warn: #fab219; }
.hotspots { margin: 20px 0; }
.hotspots h2 { margin: 0 0 2px; font-size: 22px; }
.hotspots .lede { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.hotlist { display: grid; gap: 10px; }
@media (min-width: 760px) { .hotlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hotcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; scroll-margin-top: 12px; }
.hotcard.on { border-color: var(--hot); }
.hotcard h3 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.badge::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--hot); }
.hotcard p { margin: 6px 0; font-size: 14px; color: var(--ink-2); }
.hotcard .srcs { font-size: 12px; color: var(--muted); margin: 0; }
.hotcard .srcs a { color: var(--muted); }
.reviewed { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
body.embed .hotspots { display: none; }
.tile svg.spark { height: auto; aspect-ratio: 200 / 44; }
.detail svg { height: auto; aspect-ratio: 600 / 160; }
.axisrow { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.axisrow span:nth-child(2) { text-align: center; }
.map svg :focus { outline: none; }
.map svg :focus-visible .hmark, .map svg :focus-visible .dot { stroke: var(--ink); stroke-width: 2.5; }

/* Before the war / Now: one switch for the whole page */
.viewbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: var(--page); padding: 8px 0; margin: 0 0 4px; border-bottom: 1px solid var(--grid); }
.viewbar button { font: inherit; font-size: 15px; font-weight: 650; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--axis); background: var(--surface); color: var(--ink); }
.viewbar button[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.viewbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viewnote { margin: 0; font-size: 13px; color: var(--ink-2); flex: 1 1 220px; }
.chg.base { color: var(--muted); font-weight: 600; }
.key.vol { border-top: 4px dashed var(--route); }
/* Route volume callouts on the Gulf map */
.r-tag rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; opacity: .95; }
.r-tag text { fill: var(--ink); font-size: 13px; }
.r-tag .r-t1 { font-weight: 700; font-size: 12.5px; letter-spacing: 1px; fill: var(--hormuz); }
.r-tag .r-big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.r-tanker.r-measured { stroke-dasharray: 18 9; stroke-linecap: butt; opacity: .75; }
@media (prefers-reduced-motion: no-preference) { .r-tanker.r-measured { animation-duration: 1.2s; } }
/* What moves with the switch */
.map .country, .map .dot, .map .ring, .map [data-branch], .r-measured, .hot, .r-nowonly, .r-sts, .r-band {
  transition: fill 1.2s ease, stroke 1.2s ease, stroke-width 1.2s ease, opacity .8s ease; }
body.view-before .hot, body.view-before .r-nowonly, body.view-before .r-sts { opacity: 0; pointer-events: none; }
body.view-before .hotcard { opacity: .7; }
body.still *, body.still *::before { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .map *, .r-measured, .hot { transition: none !important; } }
/* Statements table: a table on wide screens, stacked cards on phones */
.claims { margin: 20px 0; }
.claims h2 { margin: 0 0 2px; font-size: 22px; }
.claims .lede { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.claimtab { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.claimtab th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--grid); }
.claimtab td { vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--grid); color: var(--ink-2); }
.claimtab td:first-child { white-space: nowrap; color: var(--ink); font-weight: 600; }
@media (max-width: 699px) {
  .claimtab thead { display: none; }
  .claimtab, .claimtab tbody, .claimtab tr, .claimtab td { display: block; width: 100%; }
  .claimtab tr { border-top: 1px solid var(--grid); padding: 6px 0; }
  .claimtab tr:first-child { border-top: 0; }
  .claimtab td { border: 0; padding: 3px 12px; }
  .claimtab td::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .claimtab td:first-child { white-space: normal; }
}
body.embed .claims { display: none; }
.mapgrid > * { min-width: 0; }
.tile .pk { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.tile .pk b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
/* Hunger projection: a dated scenario, labeled as such, not a live figure */
.projection { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--hormuz); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.projection .ptag { margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.projection .ptag span { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); border: 1px solid var(--axis); border-radius: 4px; padding: 0 6px; }
.projection .pbig { margin: 4px 0; font-size: 17px; color: var(--ink-2); line-height: 1.35; }
.projection .pn { font-size: clamp(28px, 6vw, 36px); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.projection .pu { font-size: 18px; font-weight: 650; color: var(--ink); }
.projection .pl b { color: var(--up-text); }
.projection .ptext { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.frow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 15px; }
.frow + .frow { border-top: 1px solid var(--grid); }
.fnote { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }
/* Colin's review, Nov 24: green Before the war, red Now; layout identical in both views */
.viewbar button[data-view="before"][aria-pressed="true"] { background: #1e7b34; border-color: #1e7b34; color: #fff; }
.viewbar button[data-view="now"][aria-pressed="true"] { background: #c62828; border-color: #c62828; color: #fff; }
.chg { transition: color .8s; }
body.view-before .chg.up, body.view-before .chg.down { color: var(--muted); }
body.still .chg { transition: none; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section-h .savg { text-transform: none; letter-spacing: 0; font-size: 14px; white-space: nowrap; }
.section-h .savg-l { font-weight: 500; color: var(--muted); font-size: 12px; }
.gsum { margin: -4px 0 10px; font-size: 16px; color: var(--ink); }
.gsum .chg { font-size: 18px; }
#f-ew { transition: stroke-width 1.2s; }
body:not(.view-before) #f-ew { stroke-width: 5; }
@media (prefers-reduced-motion: no-preference) { body:not(.view-before) #f-ew { animation: rflow 1s linear infinite; } }
.r-reroute rect { fill: var(--surface); stroke: var(--pipe); stroke-width: 1.5; opacity: .95; }
.r-reroute text { fill: var(--ink); font-size: 13px; }
.r-reroute .r-t1 { fill: var(--pipe); font-weight: 700; font-size: 12.5px; letter-spacing: 1px; }
details.row summary .cc { text-align: right; font-variant-numeric: tabular-nums; }
.section-h .savg { padding-right: 13px; font-variant-numeric: tabular-nums; }
.gsum .chg { font-variant-numeric: tabular-nums; }
/* Colin's review, Nov 24: each map titled, captioned and keyed, in reading order */
.mapfig { margin: 0; padding: 4px 2px 6px; }
.mapfig + .mapfig { border-top: 1px solid var(--grid); padding-top: 12px; margin-top: 4px; }
.maph { margin: 2px 4px 2px; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mapno { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700; flex: none; }
.mapcap { margin: 0 4px 8px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
#map .hots { display: none; }

/* Oil and LNG through the strait: EIA's quarterly estimates, the same quarter a year apart */
.flows .fh { margin: 0; font-size: clamp(20px, 1.4vw + 14px, 24px); font-weight: 750; line-height: 1.2; color: var(--ink); }
.flows .fsub { margin: 2px 0 6px; font-size: 12px; color: var(--muted); }
.flows .fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
@media (max-width: 480px) { .flows .fgrid { grid-template-columns: 1fr; } }
.flows .pbig { margin: 4px 0 0; }
.flows .fchg { margin: 0; font-size: 13px; color: var(--muted); }
.flows .fchg .chg { font-size: 15px; }
.flows .cg-split { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.flows .cg-h { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--ink); }
.flows .cg-row { margin: 0 0 8px; }
.flows .cg-l { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); }
.flows .cg-pct { font-size: 17px; color: var(--up-text); font-variant-numeric: tabular-nums; }
.flows .cg-bar { height: 12px; margin: 3px 0 2px; border-radius: 3px; background: var(--border); overflow: hidden; }
.flows .cg-bar i { display: block; height: 100%; width: 100%; background: var(--up-3); border-radius: 3px; transition: width 1.2s cubic-bezier(.65,0,.35,1), background-color .6s; }
.flows .cg-abs { margin: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.flows .cg-why { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
body.view-before .flows .cg-pct { color: var(--muted); }
body.view-before .flows .cg-bar i { background: var(--mid); }
@media (prefers-reduced-motion: reduce) { .flows .cg-bar i { transition: none; } }
/* Shipping and insurance: reported figures, labeled Secondary and dated */
.shipping { margin: 20px 0; }
.shipping h2 { margin: 0 0 2px; font-size: 22px; }
.shipping .lede { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.shiplist { display: grid; gap: 10px; }
@media (min-width: 760px) { .shiplist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shiplist .projection { margin: 0; border-left-color: var(--axis); }

/* Text version of every figure (pipeline/text_version.py): for readers and tools that don't run JavaScript. */
.textversion { margin: 28px 0 0; }
details.textver > summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
details.textver > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.textver h3 { font-size: 15px; margin: 18px 0 6px; }
details.textver ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.5; }
details.textver p { font-size: 14px; }
