/* Worldwide EAC Atlas — scoped styles; no third-party map runtime or tiles. */
.wca {
  --wca-water: #eaf3f3;
  --wca-grid: #ccdfdf;
  --wca-land: #c9d8d5;
  --wca-line: #f8faf7;
  --wca-irec: #167e71;
  --wca-go: #416fb1;
  --wca-rec: #bf8a3a;
  --wca-other: #9169a6;
  --wca-active: #103f38;
  --wca-pale: #f3f8f6;
  padding: clamp(32px, 4.4vw, 64px) 0 65px;
  min-width: 0;
}
:root[data-theme='dark'] .wca {
  --wca-water: #142927;
  --wca-grid: #2c4744;
  --wca-land: #38514d;
  --wca-line: #182c28;
  --wca-irec: #50bba3;
  --wca-go: #8caeef;
  --wca-rec: #e6b96f;
  --wca-other: #c8a7e7;
  --wca-active: #d9f98c;
  --wca-pale: #20332d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .wca {
    --wca-water: #142927;
    --wca-grid: #2c4744;
    --wca-land: #38514d;
    --wca-line: #182c28;
    --wca-irec: #50bba3;
    --wca-go: #8caeef;
    --wca-rec: #e6b96f;
    --wca-other: #c8a7e7;
    --wca-active: #d9f98c;
    --wca-pale: #20332d;
  }
}
.wca .wca-container {
  width: min(calc(100% - 48px), 1580px);
  max-width: none;
}
.wca-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 29px;
}
.wca-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 13px;
}
.wca-intro h2 {
  font-size: clamp(30px, 3.2vw, 50px);
  letter-spacing: -.05em;
  max-width: 730px;
}
.wca-intro > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 15px;
  max-width: 780px;
  line-height: 1.65;
  margin-top: 12px;
}
.wca-metrics {
  display: flex;
  gap: 0;
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.wca-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 125px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.wca-metrics > div:last-child { border-right: 0; }
.wca-metrics strong {
  color: var(--ink);
  font: 800 30px/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.wca-metrics span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.wca-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
  min-width: 0;
}
.wca-filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.wca-filters button,
.wca-reset,
.wca-link-copy {
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 39px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.wca-filters button:hover,
.wca-reset:hover,
.wca-link-copy:hover { border-color: var(--accent); color: var(--accent); }
.wca-filters button[aria-pressed='true'] {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}
.wca-reset { flex: none; }
.wca-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 25vw, 375px);
  align-items: start;
  gap: 17px;
  min-width: 0;
}
.wca-map-column,
.wca-side { min-width: 0; }
.wca-map-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  height: clamp(390px, 48vw, 650px);
  background: var(--wca-water);
  border: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.wca-map-stage.is-panning { cursor: grabbing; }
.wca-map-stage::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 75% at 50% 45%, transparent 65%, #729e9d0d);
}
.wca-map-stage > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex: 1;
}
.wca-graticule path {
  fill: none;
  stroke: var(--wca-grid);
  stroke-width: .65;
  stroke-dasharray: 2 6;
}
.wca-land {
  fill: var(--wca-land);
  stroke: var(--wca-line);
  stroke-width: .85;
  vector-effect: non-scaling-stroke;
  fill-rule: evenodd;
  transition: fill .16s, opacity .16s;
}
.wca-available {
  cursor: pointer;
  fill: var(--wca-other);
}
.wca-available[data-atlas-category='irec'],
.wca-point[data-atlas-category='irec'] .wca-point-core { fill: var(--wca-irec); }
.wca-available[data-atlas-category='go'],
.wca-point[data-atlas-category='go'] .wca-point-core { fill: var(--wca-go); }
.wca-available[data-atlas-category='rec'],
.wca-point[data-atlas-category='rec'] .wca-point-core { fill: var(--wca-rec); }
.wca-available[data-atlas-category='other'],
.wca-point[data-atlas-category='other'] .wca-point-core { fill: var(--wca-other); }
.wca-available:not(.is-dim):hover,
.wca-available.is-selected {
  fill: var(--wca-active);
  stroke: var(--wca-line);
  stroke-width: 2;
  paint-order: stroke fill;
}
.wca-available:focus-visible,
.wca-point:focus-visible {
  outline: none;
  stroke: var(--wca-active);
  stroke-width: 3;
}
.wca-land.is-dim,
.wca-point.is-dim { opacity: .15; pointer-events: none; }
.wca-point { cursor: pointer; }
.wca-point-halo {
  fill: var(--wca-water);
  stroke: var(--wca-irec);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.wca-point-core { stroke: white; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.wca-point.is-selected .wca-point-halo { fill: var(--wca-active); }
.wca-zoom {
  position: absolute;
  right: 14px;
  top: 15px;
  z-index: 2;
  display: grid;
  gap: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 5px 20px #062d2520;
}
.wca-zoom button {
  width: 36px;
  height: 35px;
  color: var(--ink);
  background: transparent;
  border-radius: 7px;
  font-size: 23px;
  font-weight: 400;
}
.wca-zoom button:hover { background: var(--soft); color: var(--accent); }
.wca-zoom button:disabled { opacity: .4; cursor: not-allowed; }
.wca-map-hint {
  position: absolute;
  bottom: 14px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 7px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  pointer-events: none;
}
.wca-map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: min(245px, calc(100% - 25px));
  padding: 8px 12px;
  color: white;
  background: #143d36;
  border-radius: 7px;
  box-shadow: 0 7px 20px #10282230;
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}
.wca-map-foot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 13px 15px;
}
.wca-legend { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.wca-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.wca-legend i,
.wca-entry-symbol {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--wca-land);
}
.wca-legend i[data-category='irec'],
.wca-entry-symbol[data-category='irec'] { background: var(--wca-irec); }
.wca-legend i[data-category='go'],
.wca-entry-symbol[data-category='go'] { background: var(--wca-go); }
.wca-legend i[data-category='rec'],
.wca-entry-symbol[data-category='rec'] { background: var(--wca-rec); }
.wca-legend i[data-category='other'],
.wca-entry-symbol[data-category='other'] { background: var(--wca-other); }
.wca-side {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.wca-search { display: flex; gap: 7px; align-items: center; padding: 0 11px; min-width: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.wca-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #218d6d20; }
.wca-search svg { stroke: var(--muted); fill: none; stroke-width: 1.7; flex: none; }
.wca-search input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.wca-search input::placeholder { color: var(--muted); opacity: .8; }
.wca-search button { flex: none; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.wca-selection { margin: 12px 0 14px; }
.wca-selection-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--wca-pale);
}
.wca-selection-empty > span { font-size: 26px; color: var(--accent); }
.wca-selection-empty p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.wca-detail { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--wca-pale); }
.wca-detail-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.wca-detail-top span { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.wca-detail-top button { background: transparent; color: var(--accent); font-size: 11px; text-align: right; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.wca-detail h3 { font-size: 23px; margin: 6px 0 2px; overflow-wrap: anywhere; }
.wca-detail-meta { font-size: 12px; color: var(--muted); }
.wca-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 11px; }
.wca-tags span { font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: 5px; background: var(--paper); border: 1px solid var(--line); color: var(--accent); }
.wca-issuers { max-height: 245px; overflow-y: auto; scrollbar-width: thin; }
.wca-issuer { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.wca-issuer strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.wca-issuer small { font-size: 11px; color: var(--muted); }
.wca-issuer-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; margin-top: 4px; }
.wca-issuer-links a { color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.wca-issuer-links span { color: var(--muted); }
.wca-link-copy { margin-top: 13px; width: 100%; color: var(--accent); }
.wca-directory-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wca-directory-head h3 { font-size: 15px; }
.wca-directory-head p { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wca-directory { list-style: none; padding: 0; margin: 0; max-height: clamp(250px, 31vw, 540px); overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.wca-directory-item { border-bottom: 1px solid var(--line); }
.wca-directory-item:last-child { border-bottom: 0; }
.wca-directory-item button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 7px 8px; text-align: left; background: transparent; border-radius: 7px; }
.wca-directory-item button:hover,
.wca-directory-item button[aria-pressed='true'] { background: var(--wca-pale); }
.wca-directory-item button[aria-pressed='true'] .wca-entry-copy strong { color: var(--accent); }
.wca-entry-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.wca-entry-copy strong { font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.wca-entry-copy small { font-size: 10px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.wca-entry-arrow { color: var(--muted); font-size: 21px; }
.wca-no-results { padding: 18px 6px; font-size: 13px; color: var(--muted); }
.wca-provenance { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.wca-provenance summary { width: fit-content; color: var(--accent); font-weight: 750; }
.wca-provenance p { margin: 9px 0 0; max-width: 1100px; line-height: 1.65; }
.wca-related { margin-top: 38px; }
.wca-related > h2 { margin-bottom: 17px; font-size: 26px; }
.wca :where(button, input, a, summary, [role='button']):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1150px) {
  .wca-intro { grid-template-columns: 1fr; }
  .wca-metrics { width: fit-content; }
  .wca-metrics > div { width: 140px; }
  .wca-workbench { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 850px) {
  .wca-workbench { grid-template-columns: minmax(0, 1fr); }
  .wca-map-stage { height: clamp(325px, 62vw, 500px); }
  .wca-directory { max-height: 310px; }
  .wca-intro { gap: 20px; }
  .wca-issuers { max-height: 340px; }
}
@media (max-width: 600px) {
  .wca .wca-container { width: min(calc(100% - 28px), 1580px); }
  .wca { padding-top: 27px; }
  .wca-intro h2 { font-size: clamp(26px, 7.5vw, 36px); }
  .wca-intro > div:first-child > p:last-child { font-size: 13px; }
  .wca-metrics { width: 100%; }
  .wca-metrics > div { width: 33.333%; padding: 0 10px; }
  .wca-metrics > div:first-child { padding-left: 0; }
  .wca-metrics strong { font-size: 25px; }
  .wca-metrics span { font-size: 10px; }
  .wca-toolbar { align-items: start; flex-direction: column; }
  .wca-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
  .wca-filters button { min-height: 39px; flex: none; }
  .wca-reset { align-self: flex-end; }
  .wca-map-stage { height: 370px; border-radius: 11px 11px 0 0; }
  .wca-map-hint { font-size: 10px; bottom: 10px; left: 9px; }
  .wca-zoom { right: 8px; top: 8px; }
  .wca-legend { gap: 8px 11px; }
  .wca-map-foot { padding: 11px; }
  .wca-side { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .wca-land, .wca-filters button, .wca-reset { transition: none; }
}
