/* Winsky Freight - shipment tracking ("Route Board") */
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0d0f;
  --ink-2: #2a2f34;
  --muted: #5a6168;
  --line: #d9dee3;
  --line-2: #eceff2;
  --bg: #f3f5f7;
  --white: #fff;
  --cyan: #01aef0;
  --cyan-ink: #006e99;
  --cyan-tint: #e6f7fe;
  --cta: #c2410c;
  --cta-hover: #a6370a;
  --ok-fg: #0a6b37; --ok-bg: #e3f4ea;
  --warn-fg: #7a4e00; --warn-bg: #fff1d1;
  --stale-fg: #3e444a; --stale-bg: #e9ecef;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gut: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Work Sans", Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-ink); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; font-feature-settings: "zero" 1; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- top utility bar + header ---------- */
.ubar { background: #000; color: #fff; font-size: 13px; }
.ubar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.ubar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr { background: var(--white); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.hdr .logo { display: inline-flex; align-items: center; min-height: 44px; }
.hdr .logo img { width: 230px; height: auto; }
.hdr nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); }
.hdr nav a:hover { background: var(--ink); color: #fff; }
.hdr nav a svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; border-radius: 0; white-space: nowrap; }
.btn:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn-ghost { border-color: var(--line); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; border-radius: 0; flex: none; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- search page ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--cyan); }
.strip form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 0; padding: 26px 0; }
.strip h1 { margin: 0; display: flex; font-size: inherit; }
.strip label { display: flex; align-items: center; padding: 0 22px 0 0; font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.strip input { min-width: 0; height: 56px; border: 2px solid var(--ink); border-right: 0; padding: 0 16px; font-family: var(--mono); font-size: 18px; font-weight: 500; text-transform: uppercase; color: var(--ink); background: var(--white); border-radius: 0; }
.strip input::placeholder { color: #6b7279; text-transform: none; font-family: "Work Sans", Arial, sans-serif; font-weight: 400; }
.strip input:focus-visible { outline-offset: -4px; }
.strip .btn-cta { height: 56px; padding: 0 30px; font-size: 16px; }
.explain { background: var(--bg); }
/* search page: the explanation row is drawn as a three-stop route and fills the canvas down to the footer */
.pg-search main, .pg-notfound main { display: flex; flex-direction: column; }
.pg-search .explain, .pg-notfound .explain { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.explain > .wrap { width: 100%; }
.pg-search main.page-pad, .pg-notfound main.page-pad { padding-bottom: 0; }
.pg-search .foot, .pg-notfound .foot { margin-top: 0; }
.pg-search main.has-results { padding-bottom: 56px; }
.pg-search .has-results .explain { flex: none; }
.pg-search .has-results .steps { padding: 28px 0 30px; }
.steps { list-style: none; margin: 0; padding: 48px 0 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.steps::before { content: ""; position: absolute; left: 28px; right: 33.33%; top: 74px; border-top: 4px solid var(--ink); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 14px; padding-right: 32px; }
.steps li b { position: relative; display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: 4px solid var(--ink); font-size: 24px; font-weight: 800; }
.steps strong { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.steps span { max-width: 36ch; text-wrap: pretty; }
.msg { margin: 24px 0 0; padding: 16px 18px; background: var(--white); border-left: 4px solid var(--cta); font-size: 15px; }
.msg strong { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.results { margin: 28px 0 0; }
.results h2, .sec-h { margin: 0 0 12px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.res-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); background: var(--white); }
.res-list li { border-bottom: 1px solid var(--line); }
.res-list a { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; color: var(--ink); text-decoration: none; min-height: 56px; }
.res-list a:hover { background: var(--cyan-tint); }
.res-list .r-no { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.res-list .r-route { font-weight: 600; }
.res-list .r-meta { color: var(--muted); font-size: 14px; }
.res-list .r-go { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--cyan-ink); }
.page-pad { padding-bottom: 56px; }

/* ---------- track page: title band ---------- */
.band { background: var(--white); border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: 22px; padding-bottom: 20px; }
.band-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.blno { display: flex; align-items: center; gap: 12px; min-width: 0; }
.blno .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; }
.blno .v { font-family: var(--mono); font-feature-settings: "zero" 1; font-weight: 500; font-size: 20px; overflow-wrap: anywhere; line-height: 1.25; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.headline { margin-top: 18px; }
.headline .badge { margin-bottom: 10px; }
.headline h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.headline p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; max-width: 980px; }
.headline .hl-text { min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; font-size: 13px; font-weight: 600; background: var(--stale-bg); color: var(--stale-fg); }
.badge::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.stale { background: var(--stale-bg); color: var(--stale-fg); }
.badge.info { background: var(--cyan-tint); color: var(--cyan-ink); }

/* ---------- route board ---------- */
.board { margin-top: 22px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.board-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.board-h h2 { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.board-h h2 span { color: var(--muted); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); align-items: center; }
.legend .tag { margin-right: 6px; }
.legend .ln { display: inline-block; width: 22px; vertical-align: middle; margin-right: 5px; border-top: 4px solid var(--cyan); }
.legend .ln.d { border-top: 3px dashed #6b7279; }
.legend .ln.o { border-top: 3px dotted #6b7279; }
.route-scroll { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding: 0 24px; -webkit-overflow-scrolling: touch; }
.route-scroll.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.route-scroll.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.route-scroll.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
/* equal columns inside 24 px side padding; the board only scrolls when n x --nw does not fit */
.route { --nw: 128px; position: relative; display: flex; padding: 0 24px; width: 100%; min-width: calc(var(--n, 2) * var(--nw) + 48px); scroll-padding: 0 24px; }
.route .rline { position: absolute; z-index: 1; top: 70px; height: 0; border-top: 4px solid var(--cyan); pointer-events: none; }
.route .rline.dash { border-top: 3px dashed #6b7279; top: 70.5px; }
.route .rline.onward { border-top: 3px dotted #6b7279; }
.route .legband { position: absolute; z-index: 1; top: 8px; height: 30px; display: flex; align-items: flex-start; font-size: 11px; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-left: 2px solid var(--ink); padding: 1px 8px 0; overflow: clip; pointer-events: none; }
/* the bracket text stays inside the visible part of a scrolled board (sticky), never cut mid-word */
.route .legband > span { position: sticky; left: 30px; right: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: fit-content; max-width: 100%; }
.route .legband b { color: var(--ink); margin-right: 5px; }
.node { position: relative; flex: 1 1 0; min-width: 0; scroll-snap-align: start; border: 0; background: transparent; padding: 60px 6px 16px; text-align: center; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 230px; }
.node:hover { background: #f7fafc; }
.node[aria-expanded="true"] { background: var(--cyan-tint); box-shadow: inset 0 -4px 0 var(--cyan-ink); }
.node .mk { position: relative; z-index: 2; width: 20px; height: 20px; background: var(--white); border: 3px solid var(--ink); margin: 2px 0 10px; flex: none; }
.node.done .mk { background: var(--ink); }
.node.ts .mk { transform: rotate(45deg); width: 18px; height: 18px; margin: 3px 0 11px; }
.node.final .mk { width: 24px; height: 24px; border-width: 4px; margin: 0 0 8px; }
.node.final.done .mk { background: var(--cyan); border-color: var(--ink); }
.node.here .mk { background: var(--cyan); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(1, 174, 240, .3); }
.node > * { max-width: 100%; }
.node .role { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); line-height: 1.25; text-wrap: balance; }
.node .pn { font-size: 16px; font-weight: 700; line-height: 1.2; min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; overflow-wrap: break-word; hyphens: auto; }
.node .passed { margin-top: 4px; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--muted); text-wrap: balance; }
.node .pc { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.node .dt { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.node .dt small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.node .tag { margin-top: 6px; }
.node .dir { font-size: 12px; color: var(--muted); }
.node > .now { margin-top: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; white-space: nowrap; max-width: none; position: relative; z-index: 2; }
.ship { position: absolute; top: 59px; z-index: 3; transform: translateX(-50%); pointer-events: none; }
.ship.here { top: 31px; }
.ship svg { width: 28px; height: 28px; }
.route .waitchip { position: absolute; z-index: 3; top: 39px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; white-space: nowrap; pointer-events: none; }
.route-hint { display: none; font-size: 12px; color: var(--muted); padding: 0 18px 10px; }

/* tags: Actual / Estimated / Planned */
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid transparent; white-space: nowrap; }
.tag.act { background: var(--cyan); color: #000; }
.tag.est { background: var(--white); color: var(--cyan-ink); border-color: var(--cyan-ink); }
.tag.pln { background: var(--white); color: var(--muted); border: 1px dashed var(--muted); }

/* ---------- event drawer ---------- */
.drawer { border-top: 1px solid var(--line); background: #fbfcfd; }
.drawer[hidden] { display: none; }
.drawer-in { padding: 18px 18px 20px; }
.drawer-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.drawer-h h3 { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.drawer-h h3 .mono { font-size: 14px; color: var(--ink-2); margin-left: 8px; }
.drawer-h p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ev { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ev li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); padding: 12px 14px; }
.ev li.act { border-left-color: var(--cyan); }
.ev li.est { border-left-color: var(--cyan-ink); }
.ev li.pln { border-left-style: dashed; border-left-color: var(--muted); }
.ev li.note { border-left-color: var(--ink); }
.ev .e-h { font-weight: 700; font-size: 15px; }
.ev .e-t { font-size: 14px; margin-top: 2px; }
.ev .e-x { font-size: 13px; color: var(--muted); }
.ev .e-p { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.ev .e-p a, .facts dd a.tap { color: var(--cyan-ink); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.ev .e-m { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- main grid: map 68 / side 32 ---------- */
.main { display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 24px; margin-top: 24px; align-items: start; }
.mapbox { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.map { position: relative; flex: none; height: clamp(420px, calc(100vh - 160px), 640px); background: #e9e6df; }
.map.no-map::after { content: "Map not available"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.mapkey { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 14px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line-2); align-items: center; }
.mapkey i { display: inline-block; width: 28px; vertical-align: middle; margin-right: 6px; border-top: 4px solid #0090c8; }
.mapkey i.k-rem { border-top: 3px dashed #1f2a33; }
.mapkey i.k-onw { border-top: 3px dotted #6b7782; }
.mapkey i.k-port { width: 10px; height: 10px; border: 2px solid var(--ink); background: #fff; }
.mapkey i.k-ts { width: 9px; height: 9px; border: 2px solid var(--ink); background: #fff; transform: rotate(45deg); margin-right: 8px; }
.mapkey .focus-btn { margin-left: auto; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; align-self: start; }
.details { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 18px; }
.card h2 { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); }
.eta { border-top: 4px solid var(--cyan); }
.eta .lbl { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.eta .big { margin: 6px 0 2px; font-size: 30px; line-height: 1.1; font-weight: 800; }
.eta .rng { font-size: 15px; color: var(--ink-2); }
.eta .rng b { color: var(--ink); }
.eta .note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.eta .then { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.eta .then .big { font-size: 22px; }
.eta .tagrow { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.src-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.src-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.src-list li span { color: var(--ink-2); }
.src-list li b { font-weight: 600; text-align: right; white-space: nowrap; }
.src-h { margin-top: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; font-size: 14px; }
.facts dt, .facts dd { padding: 7px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.facts dt { color: var(--muted); padding-right: 10px; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { color: var(--cyan-ink); font-weight: 600; }
.vname { font-size: 20px; font-weight: 800; text-transform: uppercase; line-height: 1.2; }
.vsub { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.legs { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: leg; }
.legs li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.legs li::before { counter-increment: leg; content: counter(leg); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--white); border: 2px solid var(--ink); font-size: 12px; font-weight: 800; grid-row: span 2; }
.legs li.done::before { background: var(--ink); color: #fff; }
.legs li.now::before { background: var(--cyan); }
.legs .l-n { font-weight: 700; font-size: 14px; text-transform: uppercase; }
.legs .l-s { font-size: 13px; color: var(--muted); }
.details-toggle { display: none; }

/* ---------- cargo / documents strip ---------- */
.cstrip { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); display: flex; flex-wrap: wrap; align-items: stretch; }
.cstrip .cs { padding: 14px 18px; border-right: 1px solid var(--line-2); min-width: 0; }
.cstrip .cs:last-child { border-right: 0; }
.cstrip .k { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.cstrip .v { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.cs-ctr { flex: 0 1 auto; max-width: 100%; }
.cs-docs { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-docs .btn { white-space: normal; text-align: center; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip-c { flex: 0 0 172px; }
.chips .chip-c { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-feature-settings: "zero" 1; font-weight: 500; font-size: 13px; padding: 0 0 0 8px; min-height: 40px; }
.chips .chip-c .icon-btn { width: 40px; height: 40px; border: 0; background: transparent; }
.chips .chip-c .icon-btn:hover { background: var(--ink); }
.chips .x-more { display: none; }
.chips.open .x-more { display: flex; }
.more-btn { margin-top: 8px; min-height: 44px; }
.cstrip .cs-small { flex: 0 1 auto; }

/* ---------- footer ---------- */
.foot { margin-top: 40px; background: #000; color: #e6e8ea; font-size: 13px; }
.foot .wrap { padding-top: 16px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 32px; }
.foot .contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.foot a { color: #7fd6f8; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.foot .who { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px); overflow-wrap: anywhere; transition: transform .2s ease; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- map markers (pins: absolutely positioned inside a 0x0 marker) ---------- */
.ws-pin { position: absolute; width: 0; height: 0; }
.ws-pin .ws-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: #fff; border: 3px solid var(--ink); }
.ws-pin.done .ws-dot { background: var(--ink); }
.ws-pin.ts .ws-dot { transform: rotate(45deg); }
.ws-pin.final .ws-dot { left: -8px; top: -8px; width: 16px; height: 16px; background: var(--cyan); }
.ws-pin.quiet .ws-dot { left: -4px; top: -4px; width: 8px; height: 8px; border-width: 2px; }
.ws-pin .ws-lab { position: absolute; top: 0; left: 0; white-space: nowrap; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); padding: 2px 6px; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.35; pointer-events: none; }
.ws-pin .ws-lab small { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--ink-2); margin-left: 4px; }
.ws-pin[data-side="right"] .ws-lab { transform: translate(12px, -50%); }
.ws-pin[data-side="left"] .ws-lab { transform: translate(calc(-100% - 12px), -50%); }
.ws-pin[data-side="below"] .ws-lab { transform: translate(-50%, 12px); }
.ws-pin[data-side="above"] .ws-lab { transform: translate(-50%, calc(-100% - 12px)); }
.ws-pin[data-side="ne"] .ws-lab { transform: translate(7px, calc(-100% - 7px)); }
.ws-pin[data-side="nw"] .ws-lab { transform: translate(calc(-100% - 7px), calc(-100% - 7px)); }
.ws-pin[data-side="se"] .ws-lab { transform: translate(7px, 7px); }
.ws-pin[data-side="sw"] .ws-lab { transform: translate(calc(-100% - 7px), 7px); }
.ws-pin.nocode .ws-lab small { display: none; }
.ws-pin.dot-only .ws-lab, .ws-pin.quiet .ws-lab { display: none; }
.ws-pin.ship .ws-dot { left: -16px; top: -16px; width: 32px; height: 32px; border: 0; background: transparent; }
.ws-pin.ship .ws-dot svg { width: 32px; height: 32px; }
.ws-pin.ship .ws-lab { background: var(--ink); color: #fff; border-color: var(--ink); }
.ws-pin.ship .ws-lab.tip-hidden { display: none; }
/* zoom buttons: 44 px targets, square, brand outline */
.maplibregl-ctrl-group { border-radius: 0 !important; box-shadow: none !important; border: 2px solid var(--ink); }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; border-radius: 0 !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { background-size: 36px 36px; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.ws-narrow .ws-pin .ws-lab small { display: none; }
.maplibregl-ctrl-attrib-inner { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; }
.maplibregl-ctrl-bottom-right { max-width: 100%; }
.maplibregl-ctrl-attrib { max-width: calc(100% - 20px); width: max-content; }

/* ---------- limited ---------- */
.lim { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); gap: 24px; align-items: start; }
.lim .card p { margin: 0 0 10px; color: var(--ink-2); }
.lim .card .lim-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lim .card .lim-act .btn { white-space: normal; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main, .lim { grid-template-columns: minmax(0, 1fr); }
  .map { height: 460px; }
  .main { align-items: start; }
  .side { display: flex; flex-direction: column; gap: 16px; }
  .cstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .cstrip .cs { border-bottom: 1px solid var(--line-2); }
  .cstrip .cs-ctr, .cstrip .cs-docs { grid-column: 1 / -1; }
  .cs-docs { margin-left: 0; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .ubar .wrap { min-height: 30px; font-size: 12px; }
  .ubar .u-r { display: none; }
  .hdr .wrap { min-height: 64px; }
  .hdr .logo img { width: 170px; }
  .strip form { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; row-gap: 10px; }
  .strip h1 { grid-column: 1 / -1; }
  .strip label { font-size: 16px; padding: 0; }
  .strip input { height: 52px; font-size: 16px; padding: 0 12px; }
  .strip .btn-cta { height: 52px; padding: 0 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0 32px; font-size: 14px; }
  .steps::before { display: none; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: -18px; border-left: 4px solid var(--ink); }
  .steps li b { z-index: 1; }
  .steps li { flex-direction: row; gap: 14px; padding-right: 0; }
  .steps li b { width: 40px; height: 40px; font-size: 17px; }
  .steps strong { font-size: 15px; }
  .res-list a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .headline h1 { font-size: 26px; }
  .blno .v { font-size: 16px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; padding: 0 12px; }
  .actions .btn-cta { flex-basis: 100%; order: -1; }
  .route-hint { display: block; }
  .route { --nw: 136px; }
  .map { height: 360px; }
  .chips .chip-c { flex: 1 1 100%; }
  .hdr nav a { padding: 0 12px; font-size: 13px; }
  .side { display: flex; flex-direction: column; }
  .details-toggle { display: flex; width: 100%; justify-content: space-between; }
  .details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .details { display: flex; flex-direction: column; gap: 16px; }
  .details[data-closed="true"] { display: none; }
  .cstrip { display: flex; flex-direction: column; }
  .cstrip .cs { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .cs-docs { margin-left: 0; }
  .cs-docs .btn { flex: 1 1 100%; }
  .eta .big { font-size: 26px; }
  .drawer-in { padding: 14px; }
  .ev { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot .contact { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .hdr nav a { font-size: 12px; }
  .hdr .logo img { width: 150px; }
  .route { --nw: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* r5 (CONTRACT 9): container-token hint, closing-date reference, historical shipment */
.c-hint { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid var(--cyan); background: var(--cyan-tint); color: var(--ink); font-size: 15px; line-height: 1.45; max-width: 820px; }
.c-hint > svg { width: 20px; height: 20px; flex: none; color: var(--cyan-ink); }
.c-hint p { margin: 0; min-width: 0; }
.facts dd .ref { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.card.hist { box-shadow: inset 0 4px 0 var(--cyan); }
