:root {
  --ink: #0F1923;
  --ink-2: #1a2534;
  --muted: #525252;
  --muted-2: #737373;
  --muted-3: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --line-3: #f7f7f7;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f5f5f5;
  --accent: #B08D57;
  --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6;
  --accent-soft-2: #FBF7F0;
  --green: #2f7a4d;
  --green-soft: #f0f7f3;
  --green-on-dark: #3FA86A;
  --red: #c94a3e;
  --red-soft: #fbe9e7;
  --red-on-dark: #E36458;
  --amber: #c98f3e;
  --amber-soft: #fbf2e7;
  --amber-on-dark: #E0A65A;
  --blue: #3b5ea5;
  --blue-soft: #eef2f8;
  --blue-on-dark: #6F8DD0;
  --finance: #2D5A66;
  --finance-soft: #EEF4F5;
  --ff-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-mono: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-w: 1440px;
  --inner-pad: 32px;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.7s;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body); color: var(--ink); background: var(--paper);
  line-height: 1.5; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.body-prose a, .day-prose a, .faq-a a, .deeper-text p a { color: var(--accent); border-bottom: 1px solid rgba(176,141,87,0.35); transition: border-color var(--dur-fast); }
.body-prose a:hover, .day-prose a:hover, .faq-a a:hover, .deeper-text p a:hover { border-bottom-color: var(--accent); }
.visually-hidden { position: absolute; 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(--max-w); margin: 0 auto; padding-left: var(--inner-pad); padding-right: var(--inner-pad); }
main > section, main > div > section { padding: 96px var(--inner-pad); border-bottom: 1px solid var(--line); }
main > section.section-tight, main > div > section.section-tight   { padding: 80px var(--inner-pad); }
.bg-paper-2{ background: var(--paper-2); }
.bg-ink    { background: var(--ink); color: #fff; }

/* Type */
.display { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.heading { font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }
.h-display { font-size: clamp(48px, 5.2vw, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.h-section { font-size: clamp(40px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.h-section-sm { font-size: clamp(36px, 3.8vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h-section-xs { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.h-card { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.h-sub { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 0s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(176, 141, 87, 0.55); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 28px -10px rgba(15, 25, 35, 0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-inv:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 16px 26px; font-size: 17px; font-weight: 600; }
.link-arrow {
  font-size: 16px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-fast) var(--ease-smooth); text-decoration: none;
}
.link-arrow:hover { gap: 10px; }

/* ============== HEADER ============== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite; flex: none;
}
.site-nav { background: var(--paper); }
.site-nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px var(--inner-pad);
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav-left { display: flex; align-items: center; gap: 44px; }
.site-nav-right { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav-link {
  font-size: 16.5px; font-weight: 500; color: var(--ink);
  padding: 8px 4px; transition: color var(--dur-fast); text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-signin { font-size: 16px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.nav-signin:hover { color: var(--accent); }
.nav-cta { padding: 10px 18px; }
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0; background: none; border: 0; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); transition: transform var(--dur-base), opacity var(--dur-base);
}
.edma-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  text-decoration: none;
}
.edma-logo .phoenix { height: 34px; width: auto; display: block; max-width: 100%; }
.edma-wordmark { font-family: var(--ff-body); }

/* ============== HERO (1) ============== */
.s-hero { text-align: center; }
.s-hero-inner { max-width: 920px; margin: 0 auto; }
.s-hero .eyebrow { display: inline-block; margin-bottom: 28px; }
.s-hero h1 { margin-bottom: 24px; }
.s-hero .lede { max-width: 820px; margin: 0 auto 36px; }
.cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============== CENTERPIECE (2) — TRACKING (Map + Timeline + List) ============== */
.s-centerpiece { padding-top: 0; padding-bottom: 96px; border-bottom: 1px solid var(--line); }
.centerpiece-frame {
  max-width: var(--max-w); margin: 0 auto;
  background: #F4F5F7;
  color: #0F1923;
  border: 1px solid #E2E6EB;
  box-shadow: 0 1px 3px rgba(15,25,35,0.05);
  overflow: hidden;
  font-family: var(--ff-body);
  font-size: 14px;
}

/* Page tab strip (Overview / Tracking / Container Planning / Costs & Freight / Customs / History) */
.sh-tabs {
  display: flex; align-items: stretch;
  border-bottom: 1px solid #E2E6EB;
  background: #F0F2F5;
  overflow-x: auto;
}
.sh-tab {
  padding: 14px 20px; font-size: 15px; font-weight: 500;
  color: #6B7A8A; white-space: nowrap;
  border-bottom: 2px solid transparent; cursor: default;
}
.sh-tab.is-active { color: #0F1923; border-bottom-color: var(--accent); }

/* Sub-tabs (Map / Timeline / List) — view switcher */
.sh-subtabs {
  display: flex; gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid #E2E6EB;
  background: #F4F5F7;
}
.sh-subtab {
  font-size: 14px; font-weight: 600;
  color: #6B7A8A;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.sh-subtab.is-active { color: #0F1923; border-bottom-color: var(--accent); }

/* Two-column grid: Map card (left) + Sidebar card (right) */
.sh-grid {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  padding: 16px;
  background: #F4F5F7;
}

/* Cards */
.sh-card {
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sh-card-head {
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #E2E6EB;
}
.sh-card-title {
  font-size: 16px; font-weight: 700;
  color: #0F1923;
  margin: 0;
}
.sh-card-meta { font-size: 14px; color: #9CA3AF; }
.sh-filter-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  font-size: 13px;
  color: #6B7A8A;
  white-space: nowrap;
}
.sh-filter-arrow { font-size: 10px; color: #9CA3AF; }

/* KPI strip — inside map card, above the map */
.sh-kpis-strip {
  display: flex;
  gap: 32px;
  padding: 14px 20px;
  border-bottom: 1px solid #E2E6EB;
  background: #FFFFFF;
}
.sh-kpi { display: flex; flex-direction: column; gap: 4px; }
.sh-kpi-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9CA3AF;
}
.sh-kpi-value {
  font-size: 16px; font-weight: 700; color: #0F1923;
  font-feature-settings: 'tnum';
}
.sh-kpi-value .c-accent { color: var(--accent); }
.sh-kpi-value.c-red { color: #B91C1C; }

/* Map area */
.sh-map {
  position: relative;
  padding: 12px 8px;
  background: #FFFFFF;
  flex: 1;
  min-height: 420px;
}
.sh-map-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
}
.sh-map-loading {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: #6B7A8A;
  margin: 0;
  pointer-events: none;
}
.sh-map-canvas svg { display: block; width: 100%; height: 100%; }

/* Zoom buttons */
.sh-zoom-btns {
  position: absolute;
  top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.sh-zoom-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  color: #6B7A8A;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15,25,35,0.05);
}

/* Sidebar card */
.sh-sidebar { min-height: 420px; }
.sh-sidebar-body { padding: 0; flex: 1; overflow-y: auto; }
.sh-ship-item {
  padding: 14px 20px;
  border-bottom: 1px solid #F0F2F5;
}
.sh-ship-item:last-child { border-bottom: 0; }
.sh-ship-row1 {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.sh-ship-id {
  font-family: var(--ff-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.sh-ship-client {
  font-size: 14px;
  font-weight: 600;
  color: #0F1923;
  margin-bottom: 2px;
}
.sh-ship-route {
  font-size: 13px;
  color: #6B7A8A;
  margin-bottom: 2px;
}
.sh-ship-vessel {
  font-size: 13px;
  color: #6B7A8A;
}
.sh-ship-warn {
  font-size: 12.5px;
  color: #B91C1C;
  margin-top: 4px;
}

/* Status badges — mirror platform badge.css */
.sh-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sh-badge-blue   { background: #EFF6FF; color: #1E40AF; }
.sh-badge-purple { background: #F5F3FF; color: #6B21A8; }
.sh-badge-red    { background: #FEF2F2; color: #B91C1C; }
.sh-badge-green  { background: #ECFDF5; color: #065F46; }
.sh-badge-amber  { background: #FFFBEB; color: #92400E; }
.sh-badge-neutral { background: #F4F5F7; color: #52525B; }
.sh-badge-accent { background: rgba(176,141,87,0.12); color: var(--accent); }

/* Progress bar */
.sh-prog-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.sh-prog-track {
  flex: 1;
  height: 4px;
  background: #E2E6EB;
  overflow: hidden;
}
.sh-prog-fill {
  height: 100%;
}
.sh-prog-accent { background: var(--accent); }
.sh-prog-red { background: #B91C1C; }
.sh-prog-pct {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  flex-shrink: 0;
}
.sh-prog-pct-accent { color: var(--accent); }
.sh-prog-pct-red { color: #B91C1C; }

.centerpiece-cap {
  max-width: var(--max-w); margin: 22px auto 0;
  font-size: 15.5px; color: var(--muted-2); text-align: center;
}

/* ============== PROBLEM (3 cards · category-rotated) ============== */
.s-problem-inner { max-width: var(--max-w); margin: 0 auto; }
.s-problem-head { max-width: 860px; margin-bottom: 56px; }
.s-problem-head .eyebrow { color: var(--accent); margin-bottom: 16px; }
.s-problem-head h2 { margin-bottom: 16px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--paper, #fff);
  border: 1px solid var(--line, #e5e5e5);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.problem-card h3 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.problem-card p {
  font-size: 16.5px; line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ============== WHAT IT DOES (4) ============== */
.s-what-head { max-width: var(--max-w); margin: 0 auto 64px; }
.s-what-head h2 { margin-bottom: 0; }
.cap {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  padding: 64px 0; border-top: 1px solid var(--line);
  align-items: center;
}
.cap:first-of-type { border-top: 0; padding-top: 0; }
.cap.cap-flip { grid-template-columns: 1.2fr 1fr; }
.cap.cap-flip .cap-text { order: 2; }
.cap.cap-flip .cap-mock { order: 1; }
.cap-text h3 { margin-bottom: 18px; }
.cap-text p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.cap-text p strong { color: var(--ink); font-weight: 600; }
.cap-text .eyebrow { display: inline-block; margin-bottom: 16px; }
.cap-mock-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 12px;
}
.cap-mock {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 20px;
}

/* ============== 4.1 — SHIPMENT DETAIL · TRACKING + TRANSPORT LEGS ============== */
.sd-surface {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
}

/* Detail header */
.sd-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.sd-head-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.sd-id {
  font-family: var(--ff-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.sd-head-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.sd-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
.sd-meta-k {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.sd-meta-v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

/* Cards used inside the detail surface */
.sd-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  margin-bottom: 12px;
}
.sd-card-head {
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-2);
}
.sd-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.sd-card-meta {
  font-size: 12px;
  color: var(--muted-2);
}

/* Cargo table */
.sd-cargo {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.sd-cargo th {
  padding: 8px 12px;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
}
.sd-cargo th.tc, .sd-cargo td.tc { text-align: center; }
.sd-cargo td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
}
.sd-cargo tr:last-child td { border-bottom: 0; }
.sd-lot {
  font-family: var(--ff-mono);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.sd-cargo td:nth-child(2) { white-space: nowrap; }

/* 2-col grid for tracking + legs */
.sd-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
}

/* Tracking timeline */
.sd-tl {
  padding: 12px 14px;
}
.sd-tl-row {
  display: grid;
  grid-template-columns: 56px 22px 1fr;
  gap: 8px;
  align-items: start;
}
.sd-tl-row + .sd-tl-row { margin-top: 8px; }
.sd-tl-date {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  padding-top: 1px;
  white-space: nowrap;
}
.sd-tl-time {
  font-weight: 400;
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 1px;
}
.sd-tl-stem {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding-top: 3px;
}
.sd-tl-ring {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  position: relative; z-index: 2;
}
.sd-tl-ring-green { background: #059669; }
.sd-tl-ring-accent { background: var(--accent); }
.sd-tl-ring-red { background: #B91C1C; }
.sd-tl-line {
  position: absolute;
  top: 16px; bottom: -10px;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.sd-tl-card {
  padding-bottom: 4px;
}
.sd-tl-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.sd-tl-loc {
  font-size: 11.5px;
  color: var(--muted-2);
}

/* Transport legs */
.sd-legs {
  padding: 6px 0;
}
.sd-leg {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
}
.sd-leg:last-child { border-bottom: 0; }
.sd-leg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 3px;
}
.sd-leg-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.sd-leg-meta {
  font-size: 11.5px;
  color: var(--muted-2);
}

/* Badges (shared by 4.1 + 4.2) */
.sd-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-block;
}
.sd-badge-blue { background: #EFF6FF; color: #1E40AF; }
.sd-badge-green { background: #ECFDF5; color: #065F46; }
.sd-badge-neutral { background: #F4F5F7; color: #52525B; }
.sd-badge-red { background: #FEF2F2; color: #B91C1C; }
.sd-badge-purple { background: #F5F3FF; color: #6B21A8; }
.sd-badge-amber { background: #FFFBEB; color: #92400E; }

/* ============== 4.2 — CONTAINER PLANNING · PLAN GENERATOR STEP 3 ============== */
.cp-surface {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
}

/* Header */
.cp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.cp-head-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.cp-head-steps {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.cp-head-right {
  font-size: 13px;
  color: var(--muted-2);
  text-align: right;
}

/* Totals strip */
.cp-totals {
  display: flex;
  gap: 32px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.cp-total-k {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.cp-total-v {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: 'tnum';
}

/* Container type cards */
.cp-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.cp-type {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-2);
  padding: 18px 16px;
  text-align: center;
}
.cp-type-best {
  border-color: var(--accent);
  border-width: 2px;
  padding-top: 24px;
}
.cp-type-best-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  white-space: nowrap;
}
.cp-type-name {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.cp-type-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.cp-type-unit {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.cp-type-bar {
  height: 6px;
  background: var(--line);
  margin-bottom: 6px;
  overflow: hidden;
}
.cp-type-bar-fill {
  height: 100%;
}
.cp-fill-green { background: #059669; }
.cp-fill-amber { background: #D97706; }
.cp-fill-red { background: #B91C1C; }
.cp-fill-green-t { color: #059669; }
.cp-fill-amber-t { color: #D97706; }
.cp-fill-red-t { color: #B91C1C; }
.cp-type-util {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cp-type-cbm {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

/* Footer */
.cp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line-2);
}
.cp-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cp-footer-k {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.cp-footer-v {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.cp-footer-summary {
  flex: 1;
  font-size: 12.5px;
  color: var(--muted-2);
  padding: 0 16px;
}
.cp-btn {
  padding: 9px 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
}

/* ============== 4.3 — COMPLIANCE GATE (checklist) ============== */
.cg-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.cg-head-left .ttl {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
}
.cg-head-left .sub { font-size: 13.5px; color: var(--muted-2); font-family: var(--ff-mono); }
.cg-status-pill {
  font-family: var(--ff-mono); font-size: 13px;
  padding: 6px 12px; border: 1px solid;
  display: inline-flex; align-items: center; gap: 6px;
}
.cg-status-pill.is-ok { color: var(--green); border-color: rgba(47,122,77,0.4); background: var(--green-soft); }

.cg-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.cg-row {
  display: grid; grid-template-columns: 24px 1.4fr 2fr 80px;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line-2);
}
.cg-row .cg-num {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2); text-align: center;
}
.cg-row .cg-cat {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.cg-row .cg-detail {
  font-size: 13.5px; color: var(--muted); line-height: 1.45;
}
.cg-row .cg-detail .check { color: var(--green); font-family: var(--ff-mono); }
.cg-pill-ok {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 3px 8px; text-align: center; justify-self: end;
  color: var(--green); border: 1px solid rgba(47,122,77,0.4); background: var(--green-soft);
}
.cg-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--paper-3); border: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.cg-foot .left {
  font-size: 14.5px; color: var(--ink);
}
.cg-foot .left .by { color: var(--muted-2); font-family: var(--ff-mono); font-size: 13px; }
.cg-foot .btn { padding: 8px 14px; font-size: 14px; }

/* ============== 4.4 — EXCEPTION DETAIL ============== */
.ex-banner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(201,74,62,0.04), rgba(201,74,62,0.04)), var(--paper);
  border: 1px solid rgba(201,74,62,0.4); border-left: 4px solid var(--red);
  margin-bottom: 16px;
}
.ex-banner .ex-tag {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.ex-banner .ex-sev {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 3px 8px; background: var(--red); color: #fff;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ex-banner .ex-cat {
  font-family: var(--ff-mono); font-size: 13.5px; color: var(--muted-2);
}
.ex-banner .ex-title {
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.ex-banner .ex-id { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }

.ex-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.ex-card {
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 14px 16px;
}
.ex-card-head {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}
.ex-fields { display: grid; gap: 8px; font-size: 14px; }
.ex-field {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 8px; align-items: baseline;
}
.ex-field .lab { font-size: 13px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; }
.ex-field .val { color: var(--ink); }
.ex-field .val.mono { font-family: var(--ff-mono); font-size: 13.5px; }

.ex-actions ul { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.ex-actions li {
  display: grid; grid-template-columns: 16px 1fr;
  gap: 8px; align-items: baseline;
  color: var(--muted);
}
.ex-actions li.is-done { color: var(--ink); }
.ex-actions li .check { color: var(--green); font-family: var(--ff-mono); }
.ex-actions li .check.is-pending { color: var(--muted-3); }

.ex-resolve {
  padding: 12px 16px;
  background: var(--green-soft); border: 1px solid rgba(47,122,77,0.3); border-left: 3px solid var(--green);
  font-size: 14.5px; color: var(--ink);
}
.ex-resolve .lab {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 4px; font-weight: 600;
}
.ex-resolve .val .mono { font-family: var(--ff-mono); font-size: 13.5px; color: var(--muted); }

/* ============== HOW IT CONNECTS (5) ============== */
.s-connects-inner { max-width: var(--max-w); margin: 0 auto; }
.s-connects-head { margin-bottom: 56px; max-width: 760px; }
.connects-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.connect-diagram {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 24px;
  position: relative;
}
.connect-diagram svg { width: 100%; height: auto; }
.connect-table {
  border: 1px solid var(--line);
  font-size: 15px;
  background: var(--paper);
}
.connect-table-row { display: grid; grid-template-columns: 0.9fr 1.4fr 1.3fr; padding: 12px 16px; border-bottom: 1px solid var(--line-2); align-items: start; gap: 12px; }
.connect-table-row:last-child { border-bottom: 0; }
.connect-table-row.is-head { background: var(--paper-2); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.connect-section { font-weight: 500; color: var(--ink); }
.connect-section a { color: var(--accent); }
.connect-flow { color: var(--muted); }
.connect-see { color: var(--muted); }

/* Shipments page uses a <table> for the connects section */
.connects-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; background: var(--paper);
  border: 1px solid var(--line);
}
.connects-table th {
  padding: 10px 16px; text-align: left;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2);
}
.connects-table td {
  padding: 12px 16px; vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.connects-table tbody tr:last-child td { border-bottom: 0; }
.connects-table td:first-child { font-weight: 500; color: var(--ink); }
.connects-table td:first-child a { color: var(--accent); }
.connects-table .connect-see { color: var(--muted); }

/* ============== DEEPER (6) ============== */
.s-deeper-inner { max-width: var(--max-w); margin: 0 auto; }
.s-deeper-head { margin-bottom: 56px; max-width: 760px; }
.s-deeper-head h2 { margin-bottom: 16px; }
.s-deeper-head .lede { color: var(--muted); font-size: 18px; line-height: 1.6; }

.deeper-block {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.deeper-block:first-of-type { border-top: 0; padding-top: 0; }
.deeper-block.is-flip { grid-template-columns: 1.1fr 1fr; }
.deeper-block.is-flip .deeper-text { order: 2; }
.deeper-block.is-flip .deeper-mock { order: 1; }
.deeper-text h3 { margin-bottom: 18px; }
.deeper-text p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.deeper-mock {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 22px;
}
.deeper-mock-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 14px;
}

/* 6.1 — Duty drawback (real platform view) */
.dd-surface {
  background: #fff;
  border: 1px solid var(--line-2);
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
}

/* KPI strip — mirrors platform's pd-kpis */
.dd-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-2);
}
.dd-kpi {
  padding: 14px 16px;
  border-right: 1px solid var(--line-2);
}
.dd-kpi:last-child { border-right: 0; }
.dd-kpi-k {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.dd-kpi-v {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.dd-kpi-v-green { color: #059669; }
.dd-kpi-v-accent { color: var(--accent); }

/* Filter row */
.dd-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.dd-filter-pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
.dd-filter-arrow { color: var(--muted-2); margin-left: 4px; }
.dd-count { font-size: 12px; color: var(--muted-2); }
.dd-filler { flex: 1; }
.dd-add-btn {
  padding: 6px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Table */
.dd-tbl {
  width: 100%;
  border-collapse: collapse;
}
.dd-tbl th {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  background: #fafafa;
  white-space: nowrap;
}
.dd-tbl th.tr { text-align: right; }
.dd-tbl th.tc { text-align: center; }
.dd-tbl td {
  font-size: 12.5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
}
.dd-tbl td.tc { text-align: center; }
.dd-tbl tr:last-child td { border-bottom: 0; }
.dd-ship {
  font-family: var(--ff-mono);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.dd-ship-empty { color: var(--muted-2); font-weight: 400; }
.dd-hs {
  font-family: var(--ff-mono);
  color: var(--muted);
  white-space: nowrap;
}
.dd-amt {
  font-family: var(--ff-mono);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

/* Status badges — mirror platform badge palette */
.dd-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}
.dd-badge-neutral { background: #F4F5F7; color: #52525B; }
.dd-badge-amber { background: #FFFBEB; color: #92400E; }
.dd-badge-green { background: #ECFDF5; color: #065F46; }
.dd-badge-red { background: #FEF2F2; color: #B91C1C; }

/* ============== DAY IN LIFE (7) ============== */
.s-day-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.s-day h2 { margin-bottom: 0; }
.s-day .day-prose p { font-size: 18px; line-height: 1.75; color: var(--muted); }
.s-day .day-prose p + p { margin-top: 20px; }
.s-day .day-prose strong { color: var(--ink); font-weight: 600; }
.s-day .day-prose .mono { color: var(--ink); }

/* ============== COMPARISON (8) ============== */
.s-compare-inner { max-width: var(--max-w); margin: 0 auto; }
.s-compare-head { margin-bottom: 40px; max-width: 800px; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.cmp-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cmp-table thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); background: var(--paper-2); }
.cmp-table thead th.is-edma { color: var(--accent); border-left: 2px solid var(--accent); background: var(--accent-soft-2); }
.cmp-table tbody td.is-edma { border-left: 2px solid var(--accent); background: var(--accent-soft-2); }
.cmp-table tbody td.cmp-cap { font-weight: 500; color: var(--ink); }
.cmp-yes { color: var(--accent); font-weight: 600; }
.cmp-yes-plain { color: var(--green); font-weight: 500; }
.cmp-partial { color: var(--muted); font-style: italic; font-size: 14px; }
.cmp-no { color: var(--muted-3); }
.cmp-body { margin-top: 28px; max-width: 900px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.cmp-body strong { color: var(--ink); font-weight: 600; }

/* ============== FAQ (9) ============== */
.s-faq-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.s-faq h2 { margin-bottom: 16px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.faq-a { font-size: 17.5px; line-height: 1.7; color: var(--muted); }

/* ============== CTA STRIP (10) ============== */
.s-cta { background: var(--ink); color: #fff; border-bottom: 0; }
.s-cta-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.s-cta h2 { color: #fff; margin-bottom: 18px; }
.s-cta p { color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.6; margin-bottom: 32px; }
.s-cta .cta-row { justify-content: center; }
.s-cta .link-arrow { color: var(--accent); margin-top: 22px; display: inline-flex; }

/* ============== RELATED (11) ============== */
.s-related-inner { max-width: var(--max-w); margin: 0 auto; }
.s-related h3 { margin-bottom: 32px; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--paper); border: 1px solid var(--line);
  padding: 28px;
  transition: border-color var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth);
  display: flex; flex-direction: column; gap: 12px;
}
.related-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.related-card-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.related-card-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.related-card-desc { font-size: 16px; color: var(--muted); line-height: 1.55; }
.related-card-link { color: var(--accent); font-size: 15.5px; font-weight: 500; margin-top: auto; padding-top: 8px; }

/* ============== FOOTER ============== */
.site-footer { background: var(--ink); color: #fff; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 48px var(--inner-pad);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start;
}
.edma-logo--footer .phoenix { height: 40px; }
.edma-logo--footer .edma-wordmark { font-size: 26px; color: #fff; }
.edma-logo--footer { color: #fff; }
.footer-brand-tag {
  color: rgba(255,255,255,0.55);
  font-size: 16px; line-height: 1.55;
  margin-top: 14px; max-width: 480px;
}
.footer-newsletter-title {
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.footer-newsletter-sub {
  color: rgba(255,255,255,0.55); font-size: 15px; margin-bottom: 14px;
}
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; padding: 12px 14px;
  background: #F0F2F5;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-family: inherit; font-size: 15px;
  outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button {
  padding: 12px 18px; background: var(--accent); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: 0; cursor: pointer; transition: background var(--dur-fast);
}
.footer-newsletter button:hover { background: var(--accent-hover); }
.footer-links {
  max-width: var(--max-w); margin: 0 auto;
  padding: 56px var(--inner-pad);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
  border-bottom: 1px solid #D1D5DB;
}
.footer-col-title {
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { padding: 4px 0; }
.footer-link-list a {
  font-size: 15px; color: rgba(255,255,255,0.65);
  transition: color var(--dur-fast); text-decoration: none;
}
.footer-link-list a:hover { color: #fff; }
.footer-logos { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logos-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 32px var(--inner-pad);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer-logos-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  color: #6B7A8A; text-transform: uppercase;
}
.footer-logos-row { display: flex; gap: 36px; flex-wrap: wrap; flex: 1; list-style: none; padding: 0; margin: 0; }
.footer-logos-row li { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: #9CA3AF; }
.footer-region { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-region-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 22px var(--inner-pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-region-left, .footer-social {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14.5px; color: #374151;
}
.footer-region-left .label, .footer-social .label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: #9CA3AF; text-transform: uppercase;
}
.footer-region-left a { color: inherit; text-decoration: none; }
.footer-region-left a:hover { color: #fff; }
.footer-region-divider { color: rgba(255,255,255,0.2); }
.footer-region-left a.is-muted { color: #9CA3AF; }
.footer-social-icon {
  width: 30px; height: 30px;
  border: 1px solid #D1D5DB;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: all var(--dur-fast); text-decoration: none; color: inherit;
}
.footer-social-icon:hover { border-color: var(--accent); color: var(--accent); }
.footer-legal-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px var(--inner-pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: #9CA3AF;
}
.footer-legal-inner .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-inner .links a { color: inherit; text-decoration: none; }
.footer-legal-inner .links a:hover { color: #fff; }
.footer-legal-inner .status-ok { color: var(--green-on-dark); }

/* Modifier widths for centerpiece + capability mocks */
.leg-bar-l1 { width: 100%; }
.leg-bar-l2 { width: 92%; }
.leg-bar-l2-extra { left: 92%; right: 0; }
.leg-bar-l3 { width: 100%; }
.cp-fill-vol { width: 42%; }
.cp-fill-wt { width: 24%; }
.carrier-mini-bar.mini-5 { height: 50%; }
.carrier-mini-bar.mini-6 { height: 60%; }
.carrier-mini-bar.mini-7 { height: 70%; }
.carrier-mini-bar.mini-8 { height: 80%; }
.carrier-mini-bar.mini-9 { height: 90%; }
.carrier-mini-bar.mini-10 { height: 100%; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .problem-grid, .connects-grid, .cap, .cap.cap-flip,
  .deeper-block, .deeper-block.is-flip,
  .s-day-inner, .s-faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid { gap: 16px; }
  .s-problem-head { margin-bottom: 32px; }
  .problem-card { padding: 24px 22px; }
  .problem-card h3 { font-size: 19px; }
  .problem-card p { font-size: 15px; }
  .cap.cap-flip .cap-text, .cap.cap-flip .cap-mock,
  .deeper-block.is-flip .deeper-text, .deeper-block.is-flip .deeper-mock { order: initial; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr; }
  .sh-canvas { grid-template-columns: 1fr; }
  .sh-map { border-right: 0; border-bottom: 1px solid #E2E6EB; }
  .cp-grid { grid-template-columns: 1fr; }
  .ex-body { grid-template-columns: 1fr; }
  .carrier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --inner-pad: 20px; }
  main > section, main > div > section { padding: 56px 20px; }
  main > section.section-tight, main > div > section.section-tight { padding: 56px 20px; }
  .s-centerpiece { padding-bottom: 56px; }
  .nav-list, .nav-signin, .nav-link-pricing { display: none; }
  .nav-cta { display: inline-flex; font-size: 14px; padding: 8px 14px; }
  .nav-hamburger { display: flex; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top-inner { padding: 32px 20px; }
  .footer-region-inner { padding: 18px 20px; }
  .footer-legal-inner { padding: 16px 20px; }
  .h-display { font-size: 40px; }
  .h-section { font-size: 32px; }
  .h-section-sm { font-size: 28px; }
  .h-section-xs { font-size: 26px; }
  .sh-kpis { grid-template-columns: repeat(2, 1fr); }
  .sh-kpi { border-bottom: 1px solid #E2E6EB; }
  .sh-ms-list { grid-template-columns: 1fr; }
  .leg-row { grid-template-columns: 1fr; }
  .leg-status { align-items: flex-start; }
  .legs-mile-grid { grid-template-columns: repeat(7, 1fr); }
  .legs-mile-cell:nth-child(7) { border-right: 0; }
  .cg-row { grid-template-columns: 24px 1fr; row-gap: 6px; }
  .cg-row .cg-detail { grid-column: 1 / -1; }
  .cg-pill-ok { grid-column: 1 / -1; justify-self: start; }
  .ex-field { grid-template-columns: 1fr; gap: 2px; }
  .dd-pair { grid-template-columns: 1fr; }
  .dd-arrow { transform: rotate(90deg); }
  .dd-summary { grid-template-columns: 1fr; }
  .cmp-table { font-size: 14px; }

  /* Fix 3 — tracker fills width; sidebar shows IN TRANSIT + DELAYED only */
  .sh-grid { grid-template-columns: 1fr; }
  .sh-sidebar { display: flex; } /* re-show sidebar — 3 relevant cards */
  .sh-sidebar .sh-ship-item:last-child { display: none; } /* hide BOOKED */
  .sh-sidebar .sh-ship-item:nth-child(3) { border-bottom: 0; } /* new visual last */

  /* Fix 3b — show Overview tab only, styled as active */
  .sh-tabs .sh-tab:not(:first-child) { display: none; }
  .sh-tabs .sh-tab { color: #0F1923; border-bottom-color: var(--accent); }
  .sh-subtabs { display: none; } /* sub-tabs belong to Tracking, not Overview */

  /* Fix 3c — remove vertical whitespace above/below map SVG */
  .sh-map { padding-top: 0; padding-bottom: 0; min-height: 0; height: 250px; }
  .sh-map-canvas { min-height: 0; height: 250px; }
  .sh-kpis-strip .sh-kpi:nth-child(n+3) { display: none; }

  /* Fix 4 — what it does: hide cargo card + transport legs, tracking fills width */
  .sd-cargo-card { display: none; }
  .sd-grid { grid-template-columns: 1fr; }
  .sd-grid > .sd-card:last-child { display: none; }
  .sd-head-sub { white-space: normal; word-break: break-word; font-size: 12px; }
  .sd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

  /* Fix 5 — container planning: prevent overflow */
  .cp-head { flex-direction: column; gap: 6px; }
  .cp-totals { flex-wrap: wrap; gap: 12px; }
  .cp-types { flex-wrap: wrap; gap: 8px; }
  .cp-type { min-width: 0; flex: 1 1 80px; }
  .cp-footer { flex-direction: column; gap: 10px; }
  .cp-footer-summary { display: none; }

  /* Fix 6 — connects table: Section + What you see only */
  .connects-table th:nth-child(2),
  .connects-table td:nth-child(2) { display: none; }

  /* Fix 7 — deeper section: stack layout, compact dd table */
  .deeper-block,
  .deeper-block.is-flip { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .deeper-block.is-flip .deeper-text { order: 0; }
  .deeper-block.is-flip .deeper-mock { order: 0; }
  .dd-kpis { grid-template-columns: repeat(2, 1fr); }
  .dd-tbl th:nth-child(3), .dd-tbl td:nth-child(3),
  .dd-tbl th:nth-child(4), .dd-tbl td:nth-child(4),
  .dd-tbl th:nth-child(5), .dd-tbl td:nth-child(5),
  .dd-tbl th:nth-child(6), .dd-tbl td:nth-child(6) { display: none; }

  /* ─── COMPRESSION RULE: Shipments Tracking (centerpiece) is the hero
     mock. Every other section compresses to text + headings.
     Hide the heavyweight visualizations. ─── */
  /* Capabilities (4.1 cap-legs + 4.2 cap-container) — hide .cap-mock */
  [aria-labelledby="ship-what-h2"] .cap-mock { display: none; }
  /* Deeper (6.1 duty drawback) — hide .deeper-mock */
  [aria-labelledby="ship-deeper-h2"] .deeper-mock { display: none; }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .sh-kpis { grid-template-columns: 1fr; }
  .legs-mile-grid { grid-template-columns: repeat(4, 1fr); }
  .legs-mile-cell:nth-child(4n) { border-right: 0; }
  .legs-mile-cell:nth-child(7) { border-right: 1px dashed var(--line-2); }
}


/* ──── /product/shipments audit additions ──── */

/* Title padding-bottom on Data Model + Where it fits sections */
.s-connects-head h2,
.s-compare-head h2 {
  padding-bottom: 10px;
}

/* Stack-fit grid replaces competitive comparison table */
.stack-fit-grid {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stack-fit-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 24px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack-fit-card--accent {
  border-color: var(--accent);
  background: var(--accent-soft-2);
  grid-column: span 1;
}
.stack-fit-label {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}
.stack-fit-card--accent .stack-fit-label {
  color: var(--accent);
}
.stack-fit-role {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.stack-fit-detail {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
@media (max-width: 1100px) {
  .stack-fit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .stack-fit-grid { grid-template-columns: 1fr; }
}
