/* Niche Sources tracking - "Shipment story" */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-400.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ubuntu-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-700.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-mono-700.woff2") format("woff2"); }

:root {
  --ink: #1D1D1D;
  --ink-2: #4A4A4A;
  --ink-3: #6B6B6B;
  --line: #E4E4DF;
  --line-2: #CFCFC9;
  --paper: #FFFFFF;
  --soft: #FAFAFA;
  --band: #F4F4F1;
  --orange: #F9912A;
  --orange-hover: #EC8318;
  --orange-ink: #A24F00;
  --orange-pale: #FEF3E7;
  --radius: 3px;
  --wrap: 1240px;
  --gut: 40px;
  --sans: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img, svg { display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

/* buttons: small-radius rectangles, orange fill with dark text (contrast 7.3:1) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { flex: none; }
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--ink); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }

/* tags: Actual / Estimated / Planned */
.tag { display: inline-block; padding: 1px 8px; border-radius: var(--radius); font: 700 12px/1.6 var(--sans); letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.tag.act { background: var(--ink); color: #fff; }
.tag.est { background: #FDE5CC; color: #7A3E00; }
.tag.pln { background: var(--paper); color: var(--ink-2); border-color: #8C8C86; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 148px; height: auto; }
.top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 500; text-decoration: none; color: var(--orange-ink); }
.top-link:hover { color: var(--ink); }

/* ---------- search band ---------- */
.band { background: var(--band); border-bottom: 1px solid var(--line); }
.band-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.band-copy { max-width: 640px; }
.band-title { margin: 14px 0 26px; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; }
.band-lede { margin: 0 0 36px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.band-art { display: flex; justify-content: center; }
.route-art { width: 100%; max-width: 500px; height: auto; }
.find { display: grid; gap: 10px; }
.find-label { font-weight: 700; font-size: 16px; }
.find-input { width: 100%; min-height: 64px; padding: 0 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper);
  font: 400 22px/1 var(--mono); color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.find-input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.find-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.find-err { margin: 0; font-size: 15px; font-weight: 700; color: #9A1B1B; }
.find-btn { justify-self: start; margin-top: 22px; min-height: 54px; padding: 0 28px; font-size: 17px; }
.nf-q { background: var(--paper); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: var(--radius); color: var(--ink); }
.band-art-miss .route-art path { stroke: #A8A8A2; }

.matches { padding-top: 64px; padding-bottom: 16px; }
.matches-title { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.matches-title .mono { font-size: .95em; }
.matches-lede { margin: 0 0 28px; color: var(--ink-2); }
.match-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.match { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto 24px; grid-template-areas: "no route status go" "ctr date date go"; column-gap: 24px; row-gap: 4px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 44px; }
.match:hover { background: var(--soft); color: var(--ink); }
.match:hover .match-go { color: var(--orange-ink); transform: translateX(3px); }
.match-no { grid-area: no; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.match-route { grid-area: route; font-weight: 500; }
.match-status { grid-area: status; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius); background: var(--orange-pale); color: #7A3E00; white-space: nowrap; }
.match-date { grid-area: date; font-size: 14px; color: var(--ink-3); }
.match-ctr { grid-area: ctr; font-size: 15px; color: var(--ink-3); }
.match-go { grid-area: go; color: var(--ink-3); transition: transform .15s; }
.notes { padding-top: 48px; padding-bottom: 72px; }
.notes p { margin: 0; max-width: 46em; color: var(--ink-2); font-size: 15px; line-height: 1.9; text-wrap: pretty; }
.notes .tag { margin: 0 1px; }
.notes .tag { vertical-align: 1px; }

/* ---------- track: lead ---------- */
.lead { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.blrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.blno { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.headline { text-wrap: balance; margin: 18px 0 14px; max-width: 21ch; font-size: clamp(32px, 4.3vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.lead-sub { margin: 0; max-width: 36em; text-wrap: pretty; font-size: 19px; color: var(--ink-2); }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.route-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-weight: 500; }
.rl-arrow { width: 52px; height: 2px; margin: 0 4px; background: var(--ink); position: relative; }
.rl-arrow::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; }
.rl-arrow::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--ink); }
.rl-via { color: var(--ink-3); font-weight: 400; }
.age { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 3px 12px 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.age-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.age-fresh { background: #E4F3EA; color: #1E6B45; }
.age-warn { background: #FCEFD2; color: #7A4B00; }
.age-stale { background: #EDEDEA; color: #575757; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* arrival answer in the lead: right half on wide screens, under the route line on mobile */
.lead-eta { margin-top: 26px; padding: 4px 0 2px 22px; border-left: 3px solid var(--orange); }
.lead-eta p { margin: 0; }
.le-k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.le-port { margin-top: 2px !important; font-size: 21px; font-weight: 500; line-height: 1.3; }
.le-port .mono { font-size: 17px; color: var(--ink-3); font-weight: 400; }
.le-v { margin-top: 6px !important; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.le-v-soft { font-size: 21px !important; color: var(--ink-2); }
.le-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px !important; font-size: 14px; color: var(--ink-2); }
.le-r .src { font-weight: 700; }
.note-late { color: #7A3E00 !important; font-weight: 500; }
.le-next { margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.le-next .tag { margin-left: 4px; vertical-align: 1px; }
.le-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 6px !important; }
.le-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px; }
@media (min-width: 961px) {
  /* same columns as the story / side card below, so the summary lines up with the map card */
  .lead .wrap { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); column-gap: 64px;
    grid-template-areas: "bl eta" "h eta" "sub eta" "meta eta" "act eta"; grid-template-rows: auto auto auto auto 1fr; }
  .lead .blrow { grid-area: bl; }
  .lead .headline { grid-area: h; }
  .lead .lead-sub { grid-area: sub; }
  .lead .lead-meta { grid-area: meta; }
  .lead .lead-actions { grid-area: act; align-self: start; }
  .lead .lead-eta { grid-area: eta; align-self: start; margin-top: 62px; padding: 6px 0 4px 26px; }
  .lead .headline { max-width: none; }
  .le-map { display: none !important; }
}

/* ---------- track: story + sticky side ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); grid-template-areas: "story side" "details side"; column-gap: 64px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.story { grid-area: story; }
.side { grid-area: side; position: sticky; top: 24px; align-self: start; }
.details { grid-area: details; }
.is-limited .layout { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); grid-template-areas: "details side"; }
.ask-title { margin: 4px 0 6px; font-size: 22px; line-height: 1.3; text-wrap: balance; }
.ask-actions { display: grid; gap: 10px; margin-top: 18px; }
.ask-actions .btn { justify-content: flex-start; overflow-wrap: anywhere; text-align: left; }
.rl-neutral .rl-arrow::after { background: var(--paper); box-shadow: none; border: 2px solid var(--ink); box-sizing: border-box; }
.story-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.utc { margin: 0; font-size: 14px; color: var(--ink-3); }
.legend { list-style: none; margin: 14px 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-3); }
.legend li { display: flex; align-items: center; gap: 8px; }

.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 136px 36px minmax(0, 1fr); grid-template-areas: "when rail what"; }
.ev-when { grid-area: when; text-align: right; padding: 1px 6px 0 0; line-height: 1.3; }
.ev-when b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ev-when span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.ev-when .soft { font-weight: 500; color: var(--ink-3); font-size: 14px; white-space: normal; }
.ev-rail { grid-area: rail; position: relative; }
.ev-rail::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: -12px; width: 2px; background: var(--orange); }
.ev-rail i { position: absolute; left: 12px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--paper); }
.ev-next .ev-rail::before { background: repeating-linear-gradient(180deg, #A8A8A2 0 5px, transparent 5px 11px); }
.ev-next .ev-rail i { background: var(--paper); border: 2px solid #8C8C86; }
.ev-last .ev-rail::before { display: none; }
.ev-what { grid-area: what; padding: 0 0 40px 10px; min-width: 0; }
.ev-what h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.35; font-weight: 500; }
.ev-what p { margin: 0; color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.ev-next .ev-what h3 { color: var(--ink-2); }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px !important; font-size: 13px !important; }
.ev-meta .src { color: var(--ink-2); font-weight: 700; }
.ev-meta .note { color: var(--ink-2); }
.ev-today .ev-what { background: var(--orange-pale); border-left: 3px solid var(--orange); padding: 18px 22px 20px; margin: -8px 0 40px 10px; border-radius: 0 var(--radius) var(--radius) 0; }
.ev-today .ev-what h3 { font-size: 22px; font-weight: 700; color: var(--ink); }
.ev-today .ev-what p { color: var(--ink-2); }
.ev-today .ev-when b { color: var(--orange-ink); }
.ev-today .ev-rail i { left: 8px; top: 2px; width: 20px; height: 20px; background: var(--paper); border: 5px solid var(--ink); }
.ev-today .ev-rail::before { background: repeating-linear-gradient(180deg, #A8A8A2 0 5px, transparent 5px 11px); }
.ev-today.ev-last .ev-what { margin-bottom: 0; }
/* planned dates already passed: own group above Today, still planned (dashed) */
.ev-group .ev-rail::before { background: repeating-linear-gradient(180deg, #A8A8A2 0 5px, transparent 5px 11px); }
.ev-group .ev-what { padding-bottom: 26px; }
.ev-group .ev-what h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7A3E00; }
.ev-group .ev-what p { font-size: 15px; color: var(--ink-3); }
.ev-late .ev-when b { color: var(--ink-3); }
/* Actual intermediate stops fold behind one toggle */
.ev.is-folded { display: none; }
.ev-toggle .ev-what { padding-bottom: 34px; }
.nw { white-space: nowrap; }
.ev-toggle .ev-rail i { left: 13px; top: 17px; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--orange); }
.ev-toggle .ev-when b { padding-top: 12px; }
.ev-toggle .btn svg { transition: transform .15s; }
.ev-toggle [aria-expanded="true"] svg { transform: rotate(180deg); }
.fold-names { margin-top: 8px !important; font-size: 14px !important; color: var(--ink-3) !important; }

.side-card { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); overflow: hidden; box-shadow: 0 1px 0 rgba(29, 29, 29, .03), 0 12px 32px -18px rgba(29, 29, 29, .18); }
.map-box { position: relative; }
.map { height: 420px; background: #D3E0E5; }
.map-focus { position: absolute; left: 12px; bottom: 34px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: rgba(255, 255, 255, .96); font: 700 14px/1 var(--sans); color: var(--ink); cursor: pointer; }
.map-focus:hover { border-color: var(--ink); }
.map-key { list-style: none; margin: 0; padding: 12px 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--soft); }
.map-key li { display: flex; align-items: center; gap: 8px; }
.kk { display: inline-block; width: 24px; height: 0; flex: none; }
.k-sailed { border-top: 4px solid var(--orange); border-radius: 2px; }
.k-togo { border-top: 2px dashed var(--ink); }
.k-togo.k-arc { border-top-color: var(--ink-3); }
.k-onward { border-top: 3px dotted #6B6B6B; }
.k-ship { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid var(--orange); }
.k-ts { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--orange); background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.k-fin { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--ink); background: var(--orange); }
.side-sec { padding: 20px 22px; }
.side-sec + .side-sec { border-top: 1px solid var(--line); }
.side-sec .k { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.eta-v { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.eta-blk + .eta-blk { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.eta-later .eta-v { font-size: 22px; }
.eta-basis { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.eta-v2 { margin: 0; font-size: 21px; font-weight: 700; }
.eta-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.eta-r .src { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.eta-r .note { color: var(--ink-2); font-size: 13px; }
.eta-ts { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.k-src { margin-top: 18px !important; }
.eta-src { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.eta-src li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.eta-src li:last-child { border-bottom: 0; }
.eta-src .t { font-weight: 700; color: var(--ink); white-space: nowrap; }
.vsl-name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.muted { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; text-wrap: pretty; }
.vfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.vfacts div { min-width: 0; }
.vfacts dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.vfacts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }

/* map markers: zero-size anchor, dot absolutely centred on the coordinate */
.mk { position: absolute; width: 0; height: 0; }
.mk .pt { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; }
.port-load .pt { background: var(--paper); border: 3px solid var(--ink); }
.port-final .pt { left: -8px; top: -8px; width: 16px; height: 16px; background: var(--orange); border: 3px solid var(--ink); }
.port-ts .pt { left: -7px; top: -7px; width: 14px; height: 14px; background: var(--paper); border: 4px solid var(--orange); box-shadow: 0 0 0 1.5px var(--ink); }
.port-call .pt { left: -4px; top: -4px; width: 8px; height: 8px; background: #6B6B6B; border: 1.5px solid var(--paper); }
.mk .lb { position: absolute; white-space: nowrap; padding: 3px 7px; border-radius: var(--radius); background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(29, 29, 29, .14);
  font: 400 12px/1.25 var(--sans); color: var(--ink); pointer-events: none; }
.mk .lb b { font-weight: 700; }
.mk .lb small { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.port-call .lb { color: var(--ink-2); }
.port-call .lb b { font-weight: 500; }
.mk[data-side="right"] .lb { left: 13px; top: 0; transform: translateY(-50%); }
.mk[data-side="left"] .lb { right: 13px; top: 0; transform: translateY(-50%); }
.mk[data-side="above"] .lb { left: 0; bottom: 13px; transform: translateX(-50%); }
.mk[data-side="below"] .lb { left: 0; top: 13px; transform: translateX(-50%); }
.mk.dot-only .lb { display: none; }
.mk.compact .lb b { display: none; }
.ship { z-index: 2; }
.ship .pt { left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 0; }
.ship .lb { background: var(--ink); color: #fff; box-shadow: none; font-weight: 700; }
.ship[data-side="right"] .lb { left: 18px; }
.ship[data-side="left"] .lb { right: 18px; }
.ship[data-side="above"] .lb { bottom: 18px; }
.ship[data-side="below"] .lb { top: 18px; }
.ship.tip-off .lb { display: none; }
.ship .halo { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(249, 145, 42, .28); }
.ship-fresh .halo { animation: halo 2.4s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
.maplibregl-ctrl-attrib-inner { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-attrib a { color: #333; }
.maplibregl-cooperative-gesture-screen { font-family: var(--sans); }

/* ---------- details ---------- */
.details { margin-top: 24px; }
.is-limited .details { margin-top: 0; }
.blk { padding: 40px 0; border-top: 1px solid var(--line); }
.is-limited .blk:first-child { border-top: 0; padding-top: 0; }
.blk .sec-title { margin-bottom: 18px; }
.cargo-what { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.3; }
.rows { margin: 18px 0 0; }
.rows div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.rows div:first-child { border-top: 1px dashed var(--line); }
.rows dt { color: var(--ink-3); font-size: 15px; }
.rows dd { margin: 0; font-weight: 500; }
.sub-title { margin: 28px 0 12px; font-size: 16px; font-weight: 700; }
.ctrs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ctrs li { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); font-size: 17px; font-weight: 700; text-align: center; }
.ctrs-many li[data-extra] { display: none; }
.ctrs-many.open li[data-extra] { display: block; }
.legs { list-style: none; margin: 0; padding: 0; }
.legs li { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.legs li:first-child { border-top: 1px dashed var(--line); }
.leg-n { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--orange-ink); }
.leg-v { margin: 0; font-size: 19px; font-weight: 700; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.contact-co { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.doc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.doc-t { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

@media (min-width: 1101px) {
  /* details continue the story grid: section names sit in the date margin */
  .blk { display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 46px; align-items: start; }
  .blk > .sec-title { grid-column: 1; grid-row: 1 / span 12; text-align: right; font-size: 17px; line-height: 1.35; margin: 3px 0 0; padding-right: 6px; }
  .blk > :not(.sec-title) { grid-column: 2; }
  .blk > .rows:first-of-type, .blk > .legs { margin-top: 0; }
  .blk > .rows:first-child { margin-top: 0; }
  .blk > .sec-title + .rows div:first-child, .blk > .sec-title + .legs li:first-child { border-top: 0; padding-top: 1px; }
  .blk-doc > .sec-title { margin-top: 21px; }
  .details { margin-top: 8px; }
}

/* ---------- footer ---------- */
.foot { background: var(--soft); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 36px; padding-bottom: 40px; }
.foot-brand img { width: 118px; height: auto; margin-bottom: 12px; }
.foot-contact { font-style: normal; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; max-width: 44em; }
.foot-addr { margin: 0; font-size: 14px; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.foot-stamp { margin: 0; font-size: 14px; color: var(--ink-3); }
.noscript { padding: 24px var(--gut); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 500; font-size: 15px; transition: opacity .2s, transform .2s; overflow-wrap: anywhere; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .layout { column-gap: 40px; }
  .ev { grid-template-columns: 112px 36px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --gut: 28px; }
  .layout, .is-limited .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "story" "side" "details"; padding-top: 44px; }
  .is-limited .layout { grid-template-areas: "details" "side"; }
  .side-limited { margin-top: 32px; }
  .side { position: static; margin-top: 8px; }
  .map { height: 380px; }
  .details { margin-top: 40px; }
  .band-in { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 32px; padding-top: 64px; padding-bottom: 72px; }
}
@media (max-width: 720px) {
  .band-art { display: none; }
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .match { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "no go" "route go" "date go" "ctr go" "status go"; }
  .match-status { justify-self: start; margin-top: 4px; }
}
@media (max-width: 600px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .top-in { min-height: 64px; }
  .brand img { width: 120px; }
  .top-link span { display: none; }
  .top-link { width: 44px; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); }
  .band-in { padding-top: 44px; padding-bottom: 52px; }
  .band-lede { font-size: 17px; margin-bottom: 28px; }
  .find-input { font-size: 19px; min-height: 58px; }
  .find-btn { justify-self: stretch; }
  .lead { padding: 36px 0 32px; }
  .blno { font-size: 18px; }
  .lead-sub { font-size: 17px; }
  .lead-actions .btn { flex: 1 1 auto; }
  .sec-title { font-size: 23px; }
  .legend { margin-bottom: 28px; }
  /* story: date moves above the narrative, rail stays on the left */
  .ev { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "rail when" "rail what"; }
  .ev-when { text-align: left; padding: 0 0 4px 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .ev-when time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .ev-when b, .ev-when span { display: inline; margin: 0; }
  .ev-when b { font-size: 14px; }
  .ev-when span { font-size: 13px; }
  .ev-rail::before { left: 9px; }
  .ev-rail i { left: 4px; }
  .ev-today .ev-rail i { left: 0; }
  .ev-what { padding: 0 0 28px 6px; }
  .ev-what h3 { font-size: 17px; }
  .ev-what p { font-size: 15px; }
  .ev-today .ev-what { margin: 4px 0 32px 6px; padding: 14px 16px 16px; }
  .ev-today .ev-what h3 { font-size: 19px; }
  .ev-group .ev-what, .ev-toggle .ev-what { padding-left: 6px; }
  .ev-toggle .ev-rail i { left: 5px; }
  .ev-toggle .ev-when { display: none; }
  .lead-eta { margin-top: 22px; padding-left: 16px; }
  .le-v { font-size: 25px; }
  .map { height: 320px; }
  .side-sec { padding: 18px; }
  .map-key { padding: 10px 18px; }
  .eta-v { font-size: 26px; }
  .rows div { grid-template-columns: 118px minmax(0, 1fr); gap: 0 12px; }
  .rows dt { font-size: 14px; }
  .foot-links { flex-direction: column; }
  .lead-actions .btn-primary { flex-basis: auto; }
  .blk { padding: 32px 0; }
  .doc .btn { width: 100%; }
  .ctrs { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}
@media (max-width: 360px) {
  .headline { font-size: 29px; }
  .band-title { font-size: 33px; }
  .find-input { font-size: 17px; padding: 0 12px; }
  .ctrs li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- r5 states (CONTRACT 9) ---------- */
/* archived / historical / schedule-not-confirmed status: calm paper chip with an outlined dot, never alarming */
.age-arc { background: var(--band); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.age-arc .age-dot { background: transparent; border: 2px solid currentColor; box-sizing: border-box; }
/* container-token view: masked B/L number, no copy button, one hint line */
.blno-masked { color: var(--ink-2); letter-spacing: .02em; }
.cview-hint { flex: 1 0 100%; margin: -2px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.cv-how { font-weight: 500; color: var(--ink); }
/* cargo closing: a reference date from the B/L, drawn like a planned row (hollow dot, dashed rail) */
.ev-ref .ev-what h3 { color: var(--ink-2); }
