:root {
  --ink: #152d2c;
  --muted: #526763;
  --green: #135e50;
  --deep: #123d39;
  --paper: #fff;
  --wash: #f5f8f7;
  --line: #d9e5e1;
  --round: 14px;
  --font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .18em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #c58642; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
.wrap { max-width: 1320px; padding-inline: 28px; margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; top: 10px; left: 10px; background: white; padding: 10px; z-index: 4; }
.masthead { color: #f7fdfa; background: linear-gradient(145deg,#0f3734 0%,#123d39 64%,#15584a 100%); }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #d5f6eb35; }
.wordmark { display: flex; gap: 10px; align-items: center; font-weight: 750; color: inherit; text-decoration: none; }
.brand-mark { font-size: .8rem; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--deep); background: #cef4dc; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { color: #eefaf4; text-decoration: none; font-size: .9rem; }
nav a:hover, .wordmark:hover { text-decoration: underline; }
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(315px, 1fr); gap: 32px; align-items: end; padding-block: 48px 42px; }
.intro h1 { font-family: "Georgia", serif; font-size: clamp(2.65rem, 5.6vw, 5.8rem); font-weight: 600; line-height: .98; letter-spacing: -.05em; }
.intro p { margin-top: 18px; color: #dbefe6; font-size: 1.05rem; max-width: 38ch; }
.dashboard { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; border: 1px solid #b9e7d163; border-radius: var(--round); background: #d5f6eb12; }
.dashboard > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 16px 12px; }
.dashboard > div + div { border-left: 1px solid #b9e7d14d; }
.dashboard dt { color: #dcefe8; font-size: .88rem; line-height: 1.35; }
.dashboard dd { margin: 0 0 5px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.65rem); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.2; }
.opportunities { padding-block: 34px 30px; }
.section-lead { margin-bottom: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 18px; }
.section-lead h2 { font-size: 1.5rem; }
.section-lead p { color: var(--muted); }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 12px; }
.signal { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--round); background: var(--paper); min-width: 0; }
.signal h3 { font-size: 1.08rem; margin-bottom: 5px; }
.signal a { font-weight: 700; }
.signal p { color: var(--muted); margin-top: 7px; font-size: .91rem; }
.growth { margin-top: 12px; padding: 11px 15px; border: 1px solid var(--line); border-radius: var(--round); background: var(--paper); }
.growth > p { margin-block: 8px; color: var(--muted); font-size: .92rem; }
summary { color: var(--green); cursor: pointer; font-weight: 690; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); }
.table-scroll :is(th, td):first-child { min-width: 105px; }
.workspace { display: grid; grid-template-columns: minmax(290px, 365px) minmax(0, 1fr); gap: 16px; align-items: start; }
.directory, .profile { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--round); }
.directory { position: sticky; top: 12px; }
.directory-head { padding: 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; padding: 3px; background: var(--wash); border-radius: 9px; margin-bottom: 10px; }
.tab { flex: 1; border-radius: 7px; border: 1px solid transparent; color: var(--muted); background: transparent; padding: 6px 9px; font-weight: 700; }
.tab.selected { background: white; border-color: var(--line); color: var(--ink); }
input[type="search"], select { width: 100%; padding: 8px 10px; min-height: 40px; background: var(--paper); border: 1px solid #c7d8d3; border-radius: 8px; color: var(--ink); }
select { padding-right: 24px; appearance: none; background-image: linear-gradient(45deg,transparent 50%,#526763 50%),linear-gradient(135deg,#526763 50%,transparent 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: right 14px center,right 9px center; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.filters select { font-size: .9rem; }
.results-count { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.results { max-height: min(60vh, 670px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 5px; }
.result { color: var(--ink); display: flex; text-decoration: none; justify-content: space-between; gap: 6px; align-items: center; padding: 9px 13px; border-left: 3px solid transparent; min-height: 47px; }
.result:hover { background: var(--wash); }
.result[aria-current="true"] { background: #e7f4ed; border-color: var(--green); }
.result-name { font-weight: 690; overflow-wrap: anywhere; }
.result-secondary { font-size: .83rem; color: var(--muted); display: block; }
.badge { display: inline-flex; gap: 5px; align-items: center; padding: 3px 8px; color: #4d5f5b; background: #edf1ef; border-radius: 8px; font-size: .8rem; font-weight: 680; white-space: normal; text-wrap: pretty; }
.badge[data-status="local-direct"] { background: #d9f1e5; color: #174c3e; }
.badge[data-status="local-adjacent"] { background: #ffeed0; color: #66420a; }
.badge[data-status="not-found"] { background: #fff0e3; color: #834112; }
.badge[data-status="screened"] { background: #e7ecfc; color: #334581; }
.profile { min-height: 420px; padding: clamp(15px, 3vw, 30px); }
.profile-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.profile h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
.profile h3 { margin-block: 12px 6px; font-size: 1.08rem; }
.country-meta { color: var(--muted); font-size: .9rem; margin-bottom: 9px; }
.profile p { overflow-wrap: anywhere; }
.profile-block { margin-top: 19px; padding-top: 11px; border-top: 1px solid var(--line); }
.profile-block > p + p { margin-top: 7px; }
.quotes { color: var(--muted); font-size: .9rem; }
.links { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; margin: 8px 0 0; list-style: none; }
.links a { overflow-wrap: anywhere; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 9px; }
.vendor-tile { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-width: 0; }
.vendor-tile a { font-weight: 720; overflow-wrap: anywhere; }
.vendor-tile p { margin-top: 5px; color: var(--muted); font-size: .87rem; }
.empty { padding: 14px; color: var(--muted); }
.methodology { margin-block: 33px; padding: 24px clamp(14px, 2.4vw, 26px); border: 1px solid var(--line); background: white; border-radius: var(--round); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 19px; }
.method-grid p { margin-top: 7px; }
.method-grid h3 { font-size: 1.03rem; }
footer { color: #e9f5ee; background: var(--deep); }
.footer-inner { display: flex; justify-content: space-between; gap: 8px; padding-block: 13px; flex-wrap: wrap; font-size: .86rem; }
dialog { width: min(760px, calc(100% - 24px)); max-height: min(88dvh, 880px); padding: 0; border: 1px solid var(--line); border-radius: var(--round); color: var(--ink); background: white; }
dialog::backdrop { background: #082f2a80; }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 19px; background: #e9f3ef; color: var(--deep); font-weight: 700; position: sticky; top: 0; z-index: 1; }
.dialog-bar button { border-radius: 7px; background: white; color: var(--ink); padding: 5px 8px; border: 1px solid var(--line); }
#vendor-content { padding: clamp(13px,3vw,24px); }
#vendor-content h2 { font-size: clamp(1.35rem,3vw,2rem); overflow-wrap: anywhere; }
#vendor-content p, #vendor-content h3 { margin-top: 10px; }
#vendor-content h3 { font-size: 1.06rem; }
.fx-inline { font-size: .94em; color: var(--green); }
.fx-note { padding: 7px 10px; background: var(--wash); border-radius: 7px; color: var(--muted); font-size: .9rem; }
.fx-note + .links { font-size: .87rem; }
.world-map { padding-top: 30px; }
.atlas-map-toolbar { display: flex; align-items: center; gap: 12px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.atlas-map-search { position: relative; width: min(100%, 335px); z-index: 3; }
.atlas-map-results { position: absolute; width: 100%; max-height: 290px; overflow: auto; z-index: 5; margin: 4px 0 0; padding: 4px; list-style: none; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 9px 23px #142d2b20; }
.atlas-map-results button { display: flex; justify-content: space-between; gap: 6px; width: 100%; text-align: left; padding: 6px 8px; color: var(--ink); background: white; border: 0; border-radius: 5px; }
.atlas-map-results button:hover, .atlas-map-results button:focus-visible { background: var(--wash); }
.atlas-map-results span, .atlas-map-caption { color: var(--muted); font-size: .88rem; }
.atlas-map-empty { padding: 7px; }
.atlas-map-trade-toggle { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.atlas-map-trade-toggle input { accent-color: var(--green); inline-size: 1.1rem; block-size: 1.1rem; }
.atlas-map-trade-options { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.atlas-map-trade-options label { font-size: .86rem; max-width: 210px; }
.atlas-map-trade-options p { font-size: .9rem; padding-block: 5px; }
.atlas-map-layout { --map-height: clamp(390px, 48vw, 580px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); gap: 12px; }
.atlas-map-viewport { height: var(--map-height); min-width: 0; overflow: hidden; border-radius: var(--round); border: 1px solid var(--line); }
.atlas-map-canvas { width: 100%; height: 100%; position: relative; }
.atlas-map-zoom { position: absolute; display: flex; flex-direction: column; overflow: hidden; }
.atlas-map-zoom-button { display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s ease; }
.atlas-map-zoom-button:hover { background: #edf4fa !important; }
.atlas-map-zoom-button:focus-visible { outline-offset: -3px; }
.atlas-map-zoom-value { font-size: .7rem; font-weight: 650; user-select: none; }
.atlas-map-message { position: absolute; bottom: 12px; left: 12px; padding: 5px 9px; border-radius: 6px; background: #ffffffea; color: var(--muted); font-size: .88rem; }
.atlas-map-float { position: absolute; pointer-events: none; z-index: 2; }
.atlas-map-hover { width: 244px; padding: 10px 13px; background: #fffffffa; border-radius: 12px; box-shadow: 0 8px 28px #163b482e; border: 1px solid var(--line); font-size: .85rem; }
.atlas-map-hover strong { display: block; font-size: .97rem; }
.atlas-map-hover p { color: var(--muted); }
.atlas-map-hover ul { margin: 5px 0 0; padding-left: 17px; }
.atlas-map-hover li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atlas-map-trade-preview { padding: 8px 12px; }
.atlas-map-trade-route { display: flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 700; }
.atlas-map-trade-value { margin-block: 4px; font-weight: 700; }
.atlas-map-trade-detail { font-size: .83rem; }
.atlas-map-panel { padding: 16px; max-height: var(--map-height); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--round); }
.atlas-map-panel h3 { font-size: 1.4rem; }
.atlas-map-panel p { margin-top: 6px; }
.atlas-map-status { width: fit-content; padding: 4px 8px; font-size: .82rem; border-radius: 6px; }
.atlas-map-vendors { margin-top: 15px; }
.atlas-map-vendors h4 { margin: 0; font-size: .86rem; color: var(--muted); font-weight: 650; }
.atlas-map-vendors ul { list-style: none; padding: 0; margin: 4px 0 0; }
.atlas-map-vendors li { display: flex; justify-content: space-between; gap: 5px; align-items: baseline; padding-block: 5px; border-bottom: 1px solid var(--line); }
.atlas-map-vendors a { overflow-wrap: anywhere; font-weight: 670; }
.atlas-map-vendors li span { color: var(--muted); font-size: .77rem; }
.atlas-map-profile { display: inline-block; margin-top: 14px; font-size: .9rem; }
.atlas-map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 11px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.atlas-map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.atlas-map-legend svg { width: 17px; height: 17px; border: 1px solid #53676355; border-radius: 3px; }
#atlas-map-root > .atlas-map-caption { margin-top: 8px; }
@media (max-width: 767px) {
  .atlas-map-layout { --map-height: clamp(295px, 61svh, 420px); grid-template-columns: 1fr; }
  .atlas-map-panel { max-height: min(54svh, 340px); }
}
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .dashboard { max-width: 640px; }
  .workspace { grid-template-columns: minmax(245px, 310px) minmax(0, 1fr); gap: 10px; }
  .wrap { padding-inline: 16px; }
}
@media (max-width: 650px) {
  nav { gap: 10px; }
  nav a { font-size: .82rem; }
  .topbar { min-height: 58px; }
  .intro { padding-block: 30px 24px; }
  .workspace { grid-template-columns: 1fr; }
  .directory { position: static; }
  .results { max-height: 360px; }
  .profile { min-height: 0; }
  .dashboard > div { padding: 10px 7px; }
  .dashboard dt { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
