/* Atlas Verified — Organic Import Intel Microsite
   Brand tokens aligned to atlasverified.ai (Inter + gold accent) */

:root {
  --black: #0a0a0a;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e4e4e4;
  --line-strong: #d0d0d0;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #f0efeb;
  --gold: #c19000;
  --gold-soft: #fdf8ec;
  --gold-deep: #ab8000;
  --high: #8b1e3f;
  --high-bg: #f8e0e6;
  --med: #964219;
  --med-bg: #fff3e6;
  --low: #2f5d16;
  --low-bg: #eaf5e4;
  --ok: #1b5e3b;
  --logistics: #3d5a6c;
  --logistics-bg: #e8f0f5;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --header-h: 56px;
  --nav-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --max: 1120px;
  --pad: clamp(16px, 4vw, 28px);
  color-scheme: light;
}

/* Specialty-oils network report */
.shell { --max: 1320px; }
.map-intro, .page-head {
  display: grid;
  gap: 18px;
  align-items: end;
  margin-top: 22px;
}
.map-intro h1, .page-head h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.map-intro p, .page-head p {
  max-width: 68ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.status-callout {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: var(--black);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.status-callout b { font-size: .95rem; }
.status-callout span { color: rgba(255,255,255,.7); font-size: .85rem; }
.map-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.map-workspace {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.map-toolbar label { display: grid; gap: 5px; }
.map-toolbar label > span { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.map-toolbar input, .map-toolbar select {
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink);
}
.map-toolbar input:focus, .map-toolbar select:focus { outline: 3px solid rgba(193,144,0,.18); border-color: var(--gold); }
.search-field { grid-column: 1 / -1; }
.result-count { grid-column: 1 / -1; align-self: end; color: var(--muted); font-size: .82rem; font-weight: 600; }
.map-grid { display: grid; }
.map-canvas { height: 440px; min-height: 0; background: #e9ecec; z-index: 1; }
.facility-panel { min-width: 0; border-top: 1px solid var(--line); }
.facility-panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 14px; border-bottom: 1px solid var(--line); }
.facility-panel-head h2 { margin: 0; font-size: 1rem; }
.facility-panel-head span { font-size: .75rem; color: var(--muted); }
.facility-list { max-height: 520px; overflow: auto; }
.facility-row {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); background: #fff;
}
.facility-row:hover, .facility-row:focus-visible { background: var(--gold-soft); }
.facility-row:focus-visible { outline: 3px solid rgba(193,144,0,.25); outline-offset: -3px; }
.facility-id { display: inline-grid; place-items: center; min-height: 28px; padding: 0 6px; background: var(--black); color: #fff; border-radius: 6px; font-size: .72rem; font-weight: 800; }
.facility-main { display: grid; gap: 2px; min-width: 0; }
.facility-main b { font-size: .86rem; overflow-wrap: anywhere; }
.facility-main small { font-size: .76rem; color: var(--muted); }
.row-arrow { color: var(--gold-deep); font-weight: 800; }
.empty-state, .map-unavailable { padding: 28px; color: var(--muted); }
.map-unavailable { height: 100%; display: grid; place-content: center; text-align: center; gap: 6px; }
.map-note { padding: 10px 14px; background: var(--surface-2); color: var(--muted); font-size: .74rem; border-top: 1px solid var(--line); }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 10px; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot.hub { background: var(--black); box-shadow: 0 0 0 3px var(--gold); }
.legend-dot.lead { background: var(--gold); }
.legend-dot.known { background: #1b474d; }
.marker-shell { background: transparent; border: 0; }
.map-marker {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 2px solid #fff; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  background: var(--gold); color: var(--black); font: 800 11px/1 Inter, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.map-marker::first-letter { transform: rotate(45deg); }
.map-marker.hub { background: var(--black); color: #fff; outline: 3px solid var(--gold); }
.map-marker.known { background: #1b474d; color: #fff; }
.map-marker { text-indent: 0; }
.map-marker { display: flex; }
.map-marker { justify-content: center; align-items: center; }
.marker-shell .map-marker { line-height: 30px; }
.marker-shell .map-marker { writing-mode: horizontal-tb; }
.marker-shell .map-marker { transform: rotate(-45deg); }
.marker-shell .map-marker { font-variant-numeric: tabular-nums; }
.marker-shell .map-marker { padding-top: 0; }
.marker-shell .map-marker { color: #111; }
.marker-shell .map-marker.hub, .marker-shell .map-marker.known { color: #fff; }
.marker-shell .map-marker { --counter-rotate: 45deg; }
.marker-shell .map-marker { font-size: 0; }
.marker-shell .map-marker::after { content: attr(class); display: none; }
.marker-shell > span { font-size: 11px; }
.map-popup { display: grid; gap: 5px; min-width: 210px; font-family: Inter, sans-serif; }
.map-popup h3, .map-popup p { margin: 0; }
.map-popup h3 { font-size: 1rem; }
.map-popup p, .map-popup span { color: var(--muted); font-size: .78rem; }
.map-popup b { font-size: .78rem; }
.popup-id { color: var(--gold-deep); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.page-head { margin-bottom: 20px; }
.page-head h1 { max-width: 20ch; }
.priority-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--black); color: #fff; border-radius: var(--radius); }
.priority-strip b { color: var(--gold); margin-right: 4px; }
.priority-strip span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .78rem; }
.refiner-stack { display: grid; gap: 12px; margin-top: 12px; }
.refiner-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); overflow: hidden; }
.priority-badge { position: absolute; top: 0; left: 0; min-width: 54px; padding: 8px 10px; text-align: center; background: var(--gold); font-size: .78rem; font-weight: 800; }
.refiner-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-left: 50px; }
.refiner-title h2 { margin: 0; font-size: 1.15rem; }
.refiner-title p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.classification { align-self: start; padding: 5px 9px; background: var(--gold-soft); color: #765b00; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.refiner-grid { display: grid; gap: 14px; margin-top: 18px; }
.refiner-grid label { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.refiner-grid p { margin: 5px 0 0; font-size: .88rem; }
.card-action { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; }
.card-action a, .mini-card a, .source-list a { color: var(--gold-deep); font-weight: 700; }
.mini-card { display: grid; gap: 7px; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); background: #fff; }
.mini-card h3, .mini-card p { margin: 0; }
.mini-card p, .mini-card span, .mini-card a { font-size: .79rem; }
.mini-card span { color: var(--muted); }

.pathway-grid { display: grid; gap: 12px; }
.path-card { --accent: var(--gold); padding: 18px; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.path-card.green { --accent: #4e7040; }.path-card.blue { --accent: #2f78a8; }.path-card.gold { --accent: var(--gold); }.path-card.purple { --accent: #74548c; }
.path-card header { display: flex; gap: 12px; align-items: center; }
.path-card header > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.path-card h2, .path-card p { margin: 0; }
.path-card h2 { font-size: 1rem; }.path-card p { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.path-tag { display: inline-block; margin-top: 18px; padding: 5px 9px; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.path-card ul { margin: 15px 0 0; padding-left: 20px; color: #39434b; font-size: .86rem; }
.path-card li + li { margin-top: 9px; }
.boundary-banner, .decision-note { margin-top: 14px; padding: 14px 16px; border: 1px solid #e5b7b3; background: #f8e5e3; color: #8b2f2c; border-radius: var(--radius); font-weight: 700; font-size: .86rem; }

.rfi-grid { display: grid; gap: 10px; }
.rfi-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rfi-card > span { color: var(--gold-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.rfi-card h2, .rfi-card p { margin: 0; }.rfi-card h2 { font-size: .95rem; }.rfi-card p { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.decision-note { display: grid; gap: 4px; border-color: #d9c47c; background: var(--gold-soft); color: var(--ink); }

.download-grid { display: grid; gap: 10px; margin-bottom: 18px; }
.download-card { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; border-radius: var(--radius); background: var(--black); color: #fff; text-decoration: none; }
.download-card:hover { outline: 3px solid rgba(193,144,0,.25); }
.download-card div { display: grid; gap: 3px; }.download-card small { color: rgba(255,255,255,.62); }
.download-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--black); font-weight: 900; }
.source-list { display: grid; gap: 8px; }
.source-list article { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.source-list article > span { color: var(--gold-deep); font-weight: 800; }.source-list h2, .source-list p { margin: 0; }.source-list h2 { font-size: .95rem; }.source-list p, .source-list a { margin-top: 4px; font-size: .78rem; overflow-wrap: anywhere; }
.source-list p { color: var(--muted); }
.method-note { margin-top: 18px; padding: 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); }.method-note p { margin: 7px 0 0; color: var(--muted); }
.anchor-card {
  display: grid; gap: 18px; margin-top: 18px; padding: 22px;
  border-radius: 16px; background: var(--black); color: #fff;
  border-top: 4px solid var(--gold); box-shadow: var(--shadow);
}
.anchor-card h2 { margin: 8px 0 2px; font-size: clamp(1.45rem, 3vw, 2rem); }
.anchor-card p { margin: 0; color: rgba(255,255,255,.65); }
.portfolio-rank { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--gold); color: var(--black); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.anchor-metrics { display: grid; gap: 12px; }
.anchor-metrics div { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.anchor-metrics label, .portfolio-card dt { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.anchor-metrics b { font-size: .88rem; }
.planning-boundary { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.08); }
.planning-boundary span { color: rgba(255,255,255,.7); font-size: .8rem; }
.portfolio-grid, .supply-grid, .provenance-grid { display: grid; gap: 12px; }
.portfolio-card, .supply-card, .provenance-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.portfolio-card { display: flex; flex-direction: column; overflow: hidden; }
.portfolio-card-head { padding: 16px; border-bottom: 1px solid var(--line); }
.portfolio-card h3 { margin: 10px 0 2px; font-size: 1rem; }
.portfolio-card-head p { margin: 0; color: var(--muted); font-size: .8rem; }
.portfolio-card dl { display: grid; gap: 12px; margin: 0; padding: 16px; }
.portfolio-card dl div { display: grid; gap: 3px; }
.portfolio-card dd { margin: 0; color: #3d464c; font-size: .8rem; }
.card-boundary { margin-top: auto; padding: 12px 16px; background: var(--surface-2); color: var(--muted); font-size: .76rem; }
.supply-alert { display: grid; gap: 16px; margin-top: 18px; padding: 18px; border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--black); color: #fff; }
.supply-alert p { margin: 5px 0 0; max-width: 72ch; color: rgba(255,255,255,.68); font-size: .85rem; }
.supply-alert > span { color: var(--gold); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ramp-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .8rem; }
.ramp-table th, .ramp-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.ramp-table thead th { background: var(--black); color: #fff; border-bottom: 2px solid var(--gold); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.ramp-table tbody tr:nth-child(even) { background: var(--surface-2); }
.ramp-table tbody th { font-weight: 800; }
.supply-card { padding: 16px; }
.supply-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--gold-deep); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.supply-card h3 { margin: 13px 0 2px; font-size: 1rem; }
.supply-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.supply-card strong, .supply-card small { display: block; margin-top: 13px; font-size: .8rem; }
.supply-card small { margin-top: 5px; color: var(--muted); }
.provenance-grid { margin-top: 18px; }
.provenance-grid article { padding: 17px; border-top: 3px solid var(--gold); }
.provenance-grid span { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.provenance-grid p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.report-footer { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.report-footer a { color: var(--gold-deep); font-weight: 700; }

@media (min-width: 720px) {
  .map-intro { grid-template-columns: minmax(0, 1fr) 330px; }
  .map-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-toolbar { grid-template-columns: minmax(260px, 1fr) 150px 160px auto; align-items: end; }
  .search-field, .result-count { grid-column: auto; }
  .refiner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pathway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfi-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anchor-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-grid, .supply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provenance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .supply-alert { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (min-width: 1040px) {
  .map-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    height: clamp(460px, 62vh, 560px);
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }
  .map-canvas { height: 100%; min-height: 0; }
  .facility-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .facility-panel-head { flex: 0 0 auto; }
  .facility-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
  .pathway-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .supply-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .map-canvas { height: 420px; min-height: 0; }
  .facility-list { max-height: 380px; }
  .map-intro h1, .page-head h1 { font-size: 2.25rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-2);
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.tabular { font-variant-numeric: tabular-nums; }

/* Skip */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--black);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 2px solid var(--gold);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.brand-logo {
  height: 28px;
  width: auto;
  max-width: min(168px, 52vw);
  object-fit: contain;
}
.header-meta {
  display: none; flex-direction: column; align-items: flex-end;
  font-size: 11px; color: rgba(255,255,255,.72); gap: 2px;
}
.header-meta b { color: #fff; font-weight: 600; }
@media (min-width: 720px) {
  .header-meta { display: flex; }
}

/* Mobile bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--black);
  border-top: 1px solid rgba(199,154,0,.45);
  display: grid;
  grid-template-columns: repeat(7, minmax(48px, 1fr));
  overflow-x: auto;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: rgba(255,255,255,.55);
  font-size: 9px; font-weight: 600; letter-spacing: 0;
  min-height: 44px;
}
.bottom-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a:active { opacity: 0.8; }

/* Desktop side rail */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) calc(var(--nav-h) + var(--safe-b) + 28px);
}
@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    padding-bottom: 48px;
    align-items: start;
  }
  .bottom-nav { display: none; }
  .side-nav {
    display: block !important;
    position: sticky; top: calc(var(--header-h) + 16px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 10px;
    box-shadow: var(--shadow);
  }
}
.side-nav { display: none; }
.side-nav .nav-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding: 6px 10px 10px;
}
.side-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--muted);
  font-size: 13.5px; font-weight: 600;
}
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active {
  background: var(--black); color: #fff;
}
.side-nav a.active span.dot { background: var(--gold); }
.side-nav .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
}

/* Views */
.view { display: none; animation: fade .28s ease; }
.view.active { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  html { scroll-behavior: auto; }
}

/* Hero */
.hero {
  margin-top: 18px;
  background: var(--black);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(20px, 5vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,0,.28), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow i {
  width: 18px; height: 1px; background: var(--gold); display: inline-block;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero p {
  margin: 0; color: rgba(255,255,255,.72);
  font-size: 14.5px; max-width: 52ch; line-height: 1.55;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-dark { background: var(--black); color: #fff; }
.btn-outline {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* Sections */
.section { margin-top: 22px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
}
.section-head p {
  margin: 4px 0 0; color: var(--muted); font-size: 13px;
}

/* Cards / grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(6, 1fr); }
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--gold);
}
.kpi .label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em;
}
.kpi .value {
  margin-top: 6px;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi .sub {
  margin-top: 2px; font-size: 11px; color: var(--faint);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.card-hd h3 {
  margin: 0; font-size: 14px; font-weight: 700;
}
.card-bd { padding: 14px 16px 16px; }
.card-bd.tight { padding: 0; }

.grid-2 {
  display: grid; gap: 12px;
}
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1.1fr 0.9fr; }
}
.grid-3 {
  display: grid; gap: 12px;
}
@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Alerts */
.alert {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.alert + .alert { margin-top: 8px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 24px; padding: 0 8px;
  border-radius: 999px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em;
}
.badge.high { background: var(--high-bg); color: var(--high); }
.badge.medium { background: var(--med-bg); color: var(--med); }
.badge.low { background: var(--low-bg); color: var(--low); }
.badge.none { background: var(--surface-3); color: var(--muted); }
.badge.logistics { background: var(--logistics-bg); color: var(--logistics); }
.badge.commercial { background: #eef6ee; color: var(--ok); }
.alert h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; }
.alert p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Talk list */
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.talk-list li:last-child { border-bottom: 0; }
.talk-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* Charts */
.chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
@media (min-width: 800px) {
  .chart-wrap { height: 280px; }
}
.chart-wrap.sm { height: 200px; }

/* Toolbar / filters */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.search {
  flex: 1 1 180px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface);
  outline: none;
}
.search:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,0,.18); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.chip.active {
  background: var(--black); color: #fff; border-color: var(--black);
}
.chip:active { transform: scale(0.98); }

/* Tables */
.table-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(70vh, 640px);
}
table.data {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
}
table.data th {
  position: sticky; top: 0; z-index: 1;
  background: var(--black); color: #fff;
  text-align: left; font-weight: 700; font-size: 11px;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 11px 12px; white-space: nowrap;
  border-bottom: 2px solid var(--gold);
}
table.data td {
  padding: 11px 12px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data tbody tr:nth-child(even) { background: var(--surface-2); }
table.data tbody tr:active { background: var(--gold-soft); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.data .name { font-weight: 700; max-width: 220px; }
.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface-3); font-size: 11px; font-weight: 800;
  color: var(--muted);
}
.rank.top { background: var(--black); color: var(--gold); }

/* Port bars */
.port-row {
  display: grid; grid-template-columns: 88px 1fr 42px; gap: 10px;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.port-row:last-child { border-bottom: 0; }
.port-name { font-weight: 700; }
.port-bar {
  height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden;
}
.port-bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
.port-row.muted .port-bar > i { background: var(--line-strong); opacity: 0.7; }
.port-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Commodity tabs */
.seg {
  display: inline-flex; padding: 3px; background: var(--surface-3);
  border-radius: 999px; gap: 2px;
}
.seg button {
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.seg button.active { background: var(--black); color: #fff; }

/* Compliance cards mobile */
.risk-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  margin-bottom: 10px;
}
.risk-card .top {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  margin-bottom: 8px;
}
.risk-card h4 { margin: 0; font-size: 14px; font-weight: 700; }
.risk-card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.risk-card .flag {
  font-size: 13px; color: var(--ink); line-height: 1.45;
  margin: 0 0 6px;
}
.risk-card a {
  color: var(--gold-deep); font-size: 12px; font-weight: 600;
  word-break: break-all;
}

/* Empty / footer */
.note {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  padding: 12px 14px; background: var(--surface-3);
  border-radius: var(--radius-sm); border-left: 3px solid var(--gold);
}
.site-foot {
  margin-top: 28px; padding: 18px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.site-foot strong { color: var(--ink); }

/* Loading */
.loading {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600;
}

/* Stat pill row */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600;
}
.pill b { color: var(--gold); font-weight: 800; }

/* Call strip */
.call-strip {
  margin-top: 16px;
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .call-strip { grid-template-columns: repeat(3, 1fr); }
}
.call-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.call-card .k {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px;
}
.call-card h3 { margin: 0 0 6px; font-size: 15px; }
.call-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Final specialty report specificity overrides */
.marker-shell .map-marker i {
  display: block;
  transform: rotate(45deg);
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}
@media (min-width: 720px) {
  .kpi-grid.map-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
