/* PROUT — one globe, two modes. Digital blue theme: deep space, cyan. */
body.prout-page {
  --pr-bg: #030812;
  --pr-line: #123a5c;
  --pr-cyan: #59d7ff;
  --pr-cyan-soft: #9beaff;
  --pr-ink: #e6f8ff;
  --pr-muted: #7da8c4;
  --pr-faint: #4f7894;
  --pr-crisis: #ff4d6d;
  min-height: 100vh;
  color: var(--pr-ink);
  background: var(--pr-bg);
  overflow: hidden;
}
body.prout-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(47, 143, 214, .16), transparent 60%),
    radial-gradient(700px 500px at 82% 72%, rgba(89, 215, 255, .10), transparent 65%),
    radial-gradient(2px 2px at 12% 18%, rgba(230, 248, 255, .55), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 64%, rgba(230, 248, 255, .35), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 26%, rgba(230, 248, 255, .40), transparent 60%),
    radial-gradient(2px 2px at 86% 78%, rgba(230, 248, 255, .30), transparent 60%);
}
body.prout-page .garden { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.prout { position: relative; z-index: 5; min-height: 100vh; }

.prout-title {
  position: absolute;
  top: 20px;
  left: 24px;
  margin: 0;
  color: var(--pr-ink);
  font: 500 18px/1 Inter, sans-serif;
  letter-spacing: .18em;
  text-shadow: 0 0 22px rgba(89, 215, 255, .28);
}

.prout-ui {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.prout-note {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 10;
  max-width: min(760px, calc(100vw - 32px));
  margin: 0;
  transform: translateX(-50%);
  color: var(--pr-muted);
  font: 400 11px/1.45 Inter, sans-serif;
  text-align: center;
  text-shadow: 0 1px 10px rgba(3, 8, 18, .95);
  pointer-events: none;
}
@media (max-width: 700px) {
  .prout-note {
    top: 112px;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(3, 8, 18, .62);
    font-size: 10px;
  }
}
.prout-modes {
  display: inline-flex;
  padding: 3px;
  background: rgba(6, 18, 34, .72);
  border: 1px solid var(--pr-line);
  border-radius: 10px;
}
.prout-mode {
  padding: 8px 16px;
  color: var(--pr-muted);
  background: none;
  border: 0;
  border-radius: 7px;
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  cursor: pointer;
}
.prout-mode:hover { color: var(--pr-ink); }
.prout-mode.on { color: var(--pr-bg); background: var(--pr-cyan); }
.prout-mode:focus-visible { outline: 2px solid var(--pr-cyan); outline-offset: 2px; }
.prout-find input {
  width: 180px;
  padding: 9px 12px;
  color: var(--pr-ink);
  background: rgba(6, 18, 34, .72);
  border: 1px solid var(--pr-line);
  border-radius: 8px;
  font: 400 12px/1 Inter, sans-serif;
}
.prout-find input::placeholder { color: var(--pr-faint); }
.prout-find input:focus-visible { outline: 2px solid var(--pr-cyan); outline-offset: 1px; }
.prout-zbtns { display: inline-flex; gap: 4px; }
.prout-zbtns button {
  width: 34px; height: 34px;
  color: var(--pr-ink); background: rgba(6,18,34,.72);
  border: 1px solid var(--pr-line); border-radius: 8px;
  font: 400 18px/1 Inter, sans-serif; cursor: pointer;
}
.prout-zbtns button:hover { border-color: var(--pr-cyan); background: rgba(89,215,255,.12); }

.prout-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 64px 10px 14px;
}
#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
#globe:active { cursor: grabbing; }
#globe canvas { display: block; width: 100%; height: 100%; }

.globe-tooltip {
  position: absolute; z-index: 12; min-width: 150px; max-width: 240px;
  padding: 8px 10px; color: var(--pr-ink); background: rgba(3, 8, 18, .94);
  border: 1px solid var(--pr-line); border-radius: 8px;
  font: 400 11.5px/1.45 Inter, sans-serif;
  pointer-events: none; box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.globe-tooltip b { display: block; color: var(--pr-cyan-soft); font-weight: 600; }
.globe-tooltip span { color: var(--pr-muted); }

.globe-sphere { fill: url(#sea); stroke: rgba(89,215,255,.36); stroke-width: 1.2; }
.globe-atmo { fill: none; stroke: rgba(89,215,255,.16); stroke-width: 10; filter: url(#glow); }
.globe-graticule { fill: none; stroke: rgba(89,215,255,.11); stroke-width: .7; }
@keyframes prPulse { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
.globe-ring { fill: none; stroke: rgba(89,215,255,.34); stroke-width: 1; stroke-dasharray: 3 8; }

/* ---------- info card ---------- */
.prout-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(370px, calc(100vw - 24px));
  max-height: min(62vh, 540px);
  overflow: auto;
  padding: 18px 42px 14px 18px;
  background: rgba(6, 18, 34, .95);
  border: 1px solid var(--pr-line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.55);
  scrollbar-width: thin;
}
.prout-card[hidden] { display: none; }
.prout-card-close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  color: var(--pr-muted); background: none; border: 0; border-radius: 6px;
  font: 400 20px/1 Inter, sans-serif; cursor: pointer;
}
.prout-card-close:hover { color: var(--pr-ink); background: rgba(89,215,255,.10); }
.prout-card h3 { margin: 0 0 10px; color: var(--pr-ink); font: 500 18px/1.25 Inter, sans-serif; }
.prout-card p { margin: 0 0 10px; color: var(--pr-muted); font: 400 13.5px/1.55 Inter, sans-serif; }
.prout-card b { color: var(--pr-cyan-soft); font-weight: 600; }
.prout-card .crisis { color: var(--pr-crisis); }
.prout-meta { color: var(--pr-faint) !important; font-size: 12px !important; }
.prout-credit {
  margin: 14px 0 0 !important;
  padding-top: 10px;
  border-top: 1px solid rgba(89,215,255,.10);
  color: var(--pr-faint) !important;
  font: 400 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace !important;
}
.prout-needs { margin: 12px 0 4px; }
.prout-need {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}
.prout-need span { color: var(--pr-muted); font: 400 12px/1 Inter, sans-serif; }
.prout-need i { display: block; height: 6px; background: rgba(89,215,255,.12); border-radius: 3px; overflow: hidden; }
.prout-need i b { display: block; height: 100%; background: var(--pr-cyan); }
.prout-need em { color: var(--pr-cyan-soft); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; text-align: right; }

.prout-unit { margin: 14px 0 6px !important; color: var(--pr-cyan) !important; font: 600 9.5px/1 var(--mono, ui-monospace) !important; letter-spacing: .14em; text-transform: uppercase; }
.prout-criteria { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; }
.prout-criteria span { padding: 4px 7px; color: var(--pr-muted); border: 1px solid var(--pr-line); border-radius: 4px; font: 400 10px/1.2 Inter, sans-serif; }
.prout-why { color: var(--pr-muted); font-size: 13px !important; line-height: 1.55 !important; }
.prout-why b { color: var(--pr-ink); }

@media (max-width: 700px) {
  .prout-title { top: 14px; left: 16px; font-size: 16px; }
  .prout-ui { top: 62px; width: calc(100% - 24px); justify-content: center; }
  .prout-find { flex: 1; }
  .prout-find input { width: 100%; }
  .prout-stage { padding-top: 118px; }
  .prout-stage svg { width: 100%; }
  .prout-card { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 48vh; }
}

/* ---------- 2026 demo: clean vector globe ---------- */
.prout-head {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 12;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.prout-head h1 {
  margin: 0;
  color: var(--pr-ink);
  font: 500 21px/1.25 Inter, sans-serif;
  letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .7);
}
.prout-head p {
  margin: 7px 0 0;
  color: var(--pr-muted);
  font: 400 12px/1.4 Inter, sans-serif;
}
.prout-stage { padding: 0; }
#globe { height: 100vh; }
.prout-card {
  width: min(440px, calc(100vw - 28px));
  max-height: min(74vh, 660px);
  padding: 22px 44px 16px 20px;
  background: rgba(5, 16, 30, .92);
  border: 1px solid rgba(89, 215, 255, .20);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.prout-card h2 {
  margin: 0 0 3px;
  color: var(--pr-ink);
  font: 600 20px/1.25 Inter, sans-serif;
}
.prout-country {
  margin: 0 0 14px !important;
  color: var(--pr-muted) !important;
  font: 400 12px/1.4 Inter, sans-serif !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prout-table { width: 100%; border-collapse: collapse; }
.prout-table th,
.prout-table td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(89, 215, 255, .09);
  font: 400 12.5px/1.4 Inter, sans-serif;
  text-align: left;
  vertical-align: top;
}
.prout-table th { width: 42%; color: var(--pr-faint); font-weight: 400; }
.prout-table td { color: var(--pr-ink); }
.prout-desc {
  margin: 15px 0 0 !important;
  color: #c3dceb !important;
  font: 400 13px/1.62 Inter, sans-serif !important;
}
.prout-source {
  margin: 12px 0 0 !important;
  color: var(--pr-faint) !important;
  font: 400 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace !important;
}
.prout-credit { border-top: 0 !important; padding-top: 4px !important; }
@media (max-width: 700px) {
  .prout-head { top: 14px; }
  .prout-head h1 { font-size: 16px; }
  .prout-head p { font-size: 11px; }
  .prout-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 62vh;
    padding: 18px 40px 14px 16px;
  }
}

/* MapLibre globe */
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-scale {
  color: var(--pr-muted) !important;
  background: rgba(3, 8, 18, .5) !important;
  border: 1px solid rgba(89, 215, 255, .16) !important;
  border-top: 0 !important;
  font: 400 10px/1.2 ui-monospace, monospace !important;
}
.maplibregl-ctrl-logo { opacity: .35; }


/* ---------- 2026 card: publication style ---------- */
.prout-card {
  width: min(472px, calc(100vw - 28px));
  max-height: min(80vh, 760px);
  padding: 24px 24px 18px;
  background: linear-gradient(165deg, rgba(10, 24, 42, .94), rgba(5, 14, 26, .96));
  border: 1px solid rgba(120, 200, 255, .20);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.pc-eyebrow {
  margin-bottom: 8px;
  color: var(--pr-cyan-soft);
  font: 500 9.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
}
.prout-card h2 {
  margin: 0 0 6px;
  color: #f2fbff;
  font: 600 24px/1.18 Inter, sans-serif;
  letter-spacing: -.015em;
}
.pc-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  color: var(--pr-muted);
  font: 400 12px/1.4 Inter, sans-serif;
}
.pc-sub i {
  padding: 3px 8px;
  color: #a9cfe2;
  background: rgba(89, 215, 255, .08);
  border: 1px solid rgba(89, 215, 255, .16);
  border-radius: 999px;
  font: 400 10.5px/1.2 Inter, sans-serif;
  font-style: normal;
}
.pc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
}
.pc-stat {
  padding: 10px 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(120, 200, 255, .10);
  border-radius: 12px;
}
.pc-stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--pr-faint);
  font: 500 9px/1.2 Inter, sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.pc-stat b {
  color: #ecf9ff;
  font: 600 14.5px/1.2 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}
.pc-section { margin-top: 16px; }
.pc-section h3 {
  margin: 0 0 7px;
  color: var(--pr-cyan-soft);
  font: 500 9.5px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pc-section > p {
  margin: 0;
  color: #cfe4f0;
  font: 400 13.5px/1.72 Inter, sans-serif;
}
.pc-crits { display: grid; gap: 9px; }
.pc-crit {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  align-items: baseline;
}
.pc-crit span {
  color: var(--pr-faint);
  font: 400 11px/1.4 Inter, sans-serif;
}
.pc-crit p {
  margin: 0;
  color: #dceef7;
  font: 400 12.5px/1.55 Inter, sans-serif;
}
.pc-source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 200, 255, .10);
  color: #5f8399;
  font: 400 9.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prout-card-close {
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  color: #8fb4c8;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(120, 200, 255, .12);
  border-radius: 9px;
}
.prout-card-close:hover { color: #fff; background: rgba(89, 215, 255, .12); }
.prout-credit { display: none; }
@media (max-width: 700px) {
  .prout-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 66vh;
    padding: 20px 18px 16px;
    border-radius: 20px;
  }
  .prout-card h2 { font-size: 21px; }
  .pc-crit { grid-template-columns: 104px 1fr; gap: 8px; }
}

.prout-retry {
  margin-inline-start: 6px;
  padding: 6px 12px;
  color: #FFE0C8;
  background: rgba(232, 196, 106, .14);
  border: 1px solid rgba(232, 196, 106, .45);
  border-radius: 8px;
  font: 600 12px/1.2 Inter, sans-serif;
  cursor: pointer;
}
a.prout-retry { text-decoration: none; }
.prout-retry:hover { background: rgba(232, 196, 106, .26); }
.prout-fallback { position: absolute; inset: 0; display: block; }
