/* Conflict atlas: uniform sea corridors, regional briefs and a public signal preview. */
.map-v4 {
  --mv4-ink: #163040;
  --mv4-muted: #4e6573;
  --mv4-line: #d6e2e8;
  --mv4-accent: #225d77;
  --mv4-night: #0d202d;
  --mv4-red: #ff8c7c;
  color: var(--mv4-ink);
  padding-block: clamp(38px, 6vw, 78px) clamp(58px, 8vw, 102px);
}

.map-v4 .eyebrow {
  margin-bottom: 9px;
  color: var(--mv4-accent);
  letter-spacing: .13em;
}

.map-v4 a:focus-visible,
.map-v4 button:focus-visible,
.map-v4 summary:focus-visible,
.map-v4 select:focus-visible {
  outline-offset: 3px;
}

.mv4-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
  align-items: end;
  gap: 25px 48px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.mv4-page-heading h1 {
  color: var(--mv4-ink);
  font-size: clamp(40px, 6vw, 83px);
  line-height: 1.01;
  letter-spacing: -.067em;
}

.mv4-page-heading h1 span { color: #436c80; }

.mv4-page-heading > p {
  max-width: 45ch;
  margin-bottom: 3px;
  color: var(--mv4-muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.7;
}

.mv4-explorer {
  overflow: hidden;
  border: 1px solid var(--mv4-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px #132b3a0a;
}

.mv4-map-panel { background: var(--mv4-night); color: #eff6f8; }

.mv4-map-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px 26px;
  padding: clamp(18px, 3vw, 31px);
  border-bottom: 1px solid #7795a449;
}

.mv4-kicker {
  color: #9bc8d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}

.mv4-map-toolbar h2 {
  margin-top: 5px;
  color: #eff6f8;
  font-size: clamp(22px, 3.1vw, 39px);
  line-height: 1.12;
  letter-spacing: -.043em;
}

.mv4-view-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border: 1px solid #7596a45c;
  border-radius: 10px;
  background: #081924;
}

.mv4-view-buttons button {
  min-height: 44px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  color: #cfdee4;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.mv4-view-buttons button:hover { background: #223f50; }
.mv4-view-buttons button[aria-pressed="true"] { background: #a5d7e7; color: #0d202d; }
.mv4-view-buttons button:disabled { cursor: default; opacity: .6; }

.mv4-map-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--mv4-world-aspect, 2.14);
  background: #101f2b;
}

.map-v4[data-map-view="region"] .mv4-map-stage { aspect-ratio: 2.14; }

.mv4-map-stage svg {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.mv4-map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #b8cbd5;
  text-align: center;
  font-size: 14px;
}

.mv4-ocean { fill: #152c3b; }
.mv4-land { fill: #294554; stroke: #55707b; stroke-width: .55px; }
.mv4-graticule { fill: none; stroke: #527182; stroke-width: .5px; opacity: .38; }
.mv4-border { fill: none; stroke: #71909a; stroke-width: .5px; opacity: .58; }
.mv4-land, .mv4-graticule, .mv4-border, .mv4-risk-zone, .mv4-trade-route, .mv4-marker-leader { vector-effect: non-scaling-stroke; }

.mv4-trade-route {
  fill: none;
  stroke: #9cc4d0;
  stroke-width: 1.3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mv4-risk-zone {
  fill: #f76d6245;
  stroke: #f78475;
  stroke-width: 1.15px;
}

.mv4-risk-zone.is-selected { fill: #fb7f7266; stroke: #ffa89b; }
.mv4-marker { cursor: pointer; outline: none; }
.mv4-marker-leader { stroke: #ffb9ab; stroke-width: .9px; }
.mv4-marker-hit { fill: transparent; pointer-events: all; }
.mv4-marker-dot { fill: #f38274; stroke: #332829; stroke-width: 1.4px; }
.mv4-marker:is(:hover, :focus-visible, .is-selected) .mv4-marker-dot { fill: #ffb1a3; stroke: #fff3ee; stroke-width: 2px; }

.mv4-marker-number {
  fill: #261d21;
  text-anchor: middle;
  font-size: 10px;
  font-weight: 750;
}

.mv4-marker-label {
  fill: #fff6f1;
  stroke: #122432;
  stroke-linejoin: round;
  paint-order: stroke;
  font-weight: 650;
}

.mv4-map-footer {
  padding: 15px clamp(18px, 3vw, 31px) 21px;
  border-top: 1px solid #7795a449;
}

.mv4-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 24px;
  color: #e5f2f7;
  font-size: 13px;
  font-weight: 600;
}

.mv4-map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mv4-route-key { display: inline-block; width: 19px; border-top: 2px solid #9cc4d0; }
.mv4-zone-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mv4-red); }

.mv4-map-footer > p {
  margin-top: 9px;
  color: #b5cad4;
  font-size: 12px;
  line-height: 1.55;
}

.mv4-map-sources { margin-top: 10px; color: #e2f0f5; }
.mv4-map-sources summary, .mv4-source-details summary { cursor: pointer; font-size: 13px; font-weight: 700; }

.mv4-map-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding-block: 12px 2px;
}

.mv4-map-source-grid h3 { font-size: 15px; letter-spacing: 0; }
.mv4-map-source-grid ul, .mv4-source-links { margin: 8px 0 0; padding-left: 19px; font-size: 13px; overflow-wrap: anywhere; }
.mv4-source-links a { text-decoration: underline; text-underline-offset: 3px; }
.mv4-source-links li + li { margin-top: 4px; }

.mv4-region-picker { padding: clamp(18px, 3vw, 31px); }

.mv4-picker-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.mv4-picker-heading h2 { font-size: clamp(21px, 2.6vw, 29px); letter-spacing: -.038em; }

.mv4-sector-lens {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
  color: var(--mv4-muted);
  font-size: 12px;
  font-weight: 700;
}

.mv4-sector-lens select {
  max-width: 100%;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid #bacbd3;
  border-radius: 8px;
  background: #f7fafb;
  color: var(--mv4-ink);
  font-size: 13px;
}

.mv4-region-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mv4-region-buttons button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 69px;
  padding: 10px;
  border: 1px solid #d6e2e8;
  border-radius: 10px;
  background: #f7fafb;
  color: var(--mv4-ink);
  text-align: left;
  overflow-wrap: anywhere;
}

.mv4-region-buttons button:hover { background: #eff7fa; border-color: #7fa5b9; }
.mv4-region-buttons button[aria-pressed="true"] { background: #e6f2f8; border-color: #3b7694; box-shadow: 0 0 0 1px #3b7694; }
.mv4-region-buttons strong { display: block; font-size: 14px; line-height: 1.25; }
.mv4-region-buttons small { display: block; margin-top: 3px; color: var(--mv4-muted); font-size: 11px; line-height: 1.4; }
.mv4-picker-arrow .icon { width: 15px; height: 15px; color: #48718a; }

.mv4-picker-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  margin-top: 11px;
  color: var(--mv4-muted);
  font-size: 12px;
}

.mv4-picker-current a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  color: var(--mv4-accent);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mv4-picker-current .icon { width: 14px; height: 14px; }

.mv4-zone-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffe3de;
  color: #743e3e;
  font-size: 13px;
  font-weight: 750;
}

.mv4-brief {
  margin-top: clamp(20px, 3vw, 36px);
  padding: clamp(17px, 3vw, 34px);
  border: 1px solid var(--mv4-line);
  border-radius: 16px;
  background: #fff;
}

.mv4-brief-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 15px;
  padding-bottom: clamp(14px, 2vw, 23px);
  border-bottom: 1px solid var(--mv4-line);
}

.mv4-brief-header .eyebrow { margin-bottom: 3px; }
.mv4-brief-header .mv4-zone-number { width: 36px; height: 36px; font-size: 16px; }
.mv4-brief-header h2 { font-size: clamp(27px, 4vw, 46px); letter-spacing: -.05em; }

.mv4-channel {
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #cedfe8;
  border-radius: 20px;
  background: #eef6f9;
  color: #27586f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.mv4-brief-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(22px, 4vw, 52px);
  padding-block: clamp(18px, 3vw, 31px);
}

.mv4-brief-body h3 { margin-bottom: 10px; font-size: clamp(21px, 2.65vw, 31px); letter-spacing: -.033em; }
.mv4-brief-body h3 + p { color: var(--mv4-muted); font-size: 15px; line-height: 1.75; }

.mv4-conflict-facts, .mv4-impact-chain {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mv4-conflict-facts div, .mv4-impact-chain li {
  padding: 9px 12px;
  border-left: 3px solid #9bbacb;
  background: #f3f7f9;
}

.mv4-conflict-facts dt, .mv4-impact-chain span {
  display: block;
  color: #2b5268;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.mv4-conflict-facts dd, .mv4-impact-chain p {
  margin: 2px 0 0;
  color: var(--mv4-muted);
  font-size: 14px;
  line-height: 1.58;
}

.mv4-sectors { padding-top: 17px; border-top: 1px solid var(--mv4-line); }
.mv4-sectors h3 { font-size: 21px; letter-spacing: -.025em; }

.mv4-sector-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr));
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.mv4-sector-list li { padding: 11px; border: 1px solid #dce7ed; border-radius: 9px; background: #f9fbfc; }
.mv4-sector-list h4 { display: inline-block; padding: 4px 7px; border-radius: 5px; background: #e1eff5; color: #27546b; font-size: 12px; line-height: 1.4; letter-spacing: 0; }
.mv4-sector-list p { margin-top: 7px; color: var(--mv4-muted); font-size: 13px; line-height: 1.58; }

.mv4-signal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #c6dce6;
  border-radius: 10px;
  background: #edf6f9;
}

.mv4-signal .eyebrow { margin-bottom: 4px; }
.mv4-signal-text { color: var(--mv4-ink); font-weight: 600; font-size: 15px; }
.mv4-signal-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--mv4-accent); font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.mv4-signal-link .icon { width: 16px; height: 16px; }
.mv4-source-details { margin-top: 16px; color: #385c70; }
.mv4-source-details summary { min-height: 44px; padding-block: 10px; }
.mv4-source-details .mv4-source-links { margin-top: 0; }
.mv4-reviewed { margin-top: 8px; color: var(--mv4-muted); font-size: 12px; }

.mv4-map-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(255px, .78fr);
  align-items: center;
  gap: clamp(19px, 4vw, 45px);
  margin-top: clamp(22px, 3vw, 38px);
  padding: clamp(19px, 4vw, 48px);
  border: 1px solid #254455;
  border-radius: 16px;
  background: linear-gradient(135deg, #102836, #173c4d);
}

.mv4-map-signup .eyebrow { color: #a7d6e6; }
.mv4-signup-copy h2 { color: #f4f8fa; font-size: clamp(29px, 4.8vw, 52px); line-height: 1.03; }
.mv4-signup-copy > p:last-child { max-width: 47ch; margin-top: 12px; color: #c6dbe3; line-height: 1.65; }
.mv4-signup-form { min-width: 0; padding: 15px; border-radius: 11px; background: #f8fbfc; }

@media (max-width: 1000px) {
  .mv4-region-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .mv4-page-heading, .mv4-brief-body, .mv4-map-signup { grid-template-columns: minmax(0, 1fr); }
  .mv4-page-heading { gap: 13px; }
  .map-v4[data-map-view="region"] .mv4-map-stage { aspect-ratio: 1.22; }
}

@media (max-width: 535px) {
  .mv4-map-toolbar, .mv4-picker-heading, .mv4-signal { flex-direction: column; align-items: flex-start; }
  .mv4-map-toolbar h2 { font-size: 22px; }
  .mv4-map-source-grid { grid-template-columns: minmax(0, 1fr); }
  .mv4-region-buttons button { grid-template-columns: auto minmax(0, 1fr); gap: 6px; padding-inline: 7px; }
  .mv4-region-buttons strong { font-size: 13px; }
  .mv4-picker-arrow { display: none; }
  .mv4-brief-header { grid-template-columns: auto minmax(0, 1fr); }
  .mv4-brief-header .mv4-channel { grid-column: 2; justify-self: start; }
}
