:root {
  --navy: #152a45;
  --ink: #0f2035;
  --teal: #0b7a76;
  --gold: #d58e24;
  --rose: #b54b4a;
  --bg: #f3f1ea;
  --panel: #ffffff;
  --line: #d4dddf;
  --text: #132338;
  --muted: #56687d;
  --soft-navy: #e8eef6;
  --soft-teal: #e5f5f2;
  --soft-gold: #f7ecd8;
  --danger: #b44040;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 0% 0%, rgba(213, 142, 36, 0.12) 0, transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(11, 122, 118, 0.12) 0, transparent 30%),
    var(--bg);
}
body.modal-open { overflow: hidden; }

.hidden { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 2600;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.eyebrow,
.hero-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 700;
}

h1 {
  font-family: "Manrope", sans-serif;
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  font-weight: 700;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tab-buttons {
  display: inline-flex;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem;
}

.tab-btn,
.ghost,
.upload-btn,
.icon-btn {
  font: inherit;
}

.tab-btn {
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 0.38rem 0.62rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.tab-btn.active {
  color: var(--navy);
  background: var(--soft-navy);
  border-color: #cbd8ff;
  font-weight: 600;
}

.ghost,
.upload-btn {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-size: 0.83rem;
  cursor: pointer;
}
.ghost { background: #fff; color: var(--text); }
.upload-btn {
  border: none;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-weight: 600;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn.active {
  background: var(--soft-teal);
  border-color: #b9e2e3;
  color: var(--teal);
}

.partner-strip {
  margin: 0.85rem 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.partner-chip {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 8px 18px rgba(21, 42, 69, 0.05);
}
.partner-chip img {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: contain;
  object-position: center;
}
.partner-chip.fao img {
  height: 52px;
}
.partner-chip.unep img {
  height: 72px;
}
.partner-chip.who img,
.partner-chip.woah img {
  height: 44px;
}

.brand-hero {
  margin: 0.75rem 1rem 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #b8c5c9;
  background:
    linear-gradient(120deg, rgba(21, 42, 69, 0.98), rgba(22, 70, 90, 0.95)),
    linear-gradient(0deg, #163f59, #163f59);
}
.brand-copy {
  padding: 1.25rem 1.1rem 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
}
.brand-copy p { margin: 0; max-width: none; opacity: 0.95; font-size: 1.02rem; }
.hero-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.hero-link {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.hero-aside {
  display: grid;
  grid-template-rows: 1fr;
  border-top: 1px solid rgba(255,255,255,0.08);
  min-height: 100%;
}

.hero-pattern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: stretch;
  background: #f6efd9;
}
.tile {
  min-height: 88px;
  background: #f6efd9;
  border: 1px solid rgba(21, 42, 69, 0.06);
}
.t1  { background: linear-gradient(to top, transparent 0 18%, #235b98 18% 100%), radial-gradient(circle at 0 0, rgba(255,255,255,0.45) 0 42%, transparent 43%), #f6efd9; }
.t2  { background: radial-gradient(circle at 50% 0, #27254a 0 48%, transparent 49%), #c7c3b3; }
.t3  { background: radial-gradient(circle at 0 100%, #27254a 0 34%, transparent 35%), repeating-linear-gradient(180deg, transparent 0 16px, #f8332a 16px 21px), #f6efd9; }
.t4  { background: radial-gradient(circle at 50% 0, #f72f27 0 46%, transparent 47%), radial-gradient(circle at 20% 66%, #235b98 0 12%, transparent 13%), #f6efd9; }
.t5  { background: linear-gradient(60deg, transparent 0 33%, #c9c5b6 33% 67%, transparent 67%), linear-gradient(-60deg, transparent 0 33%, #c9c5b6 33% 67%, transparent 67%), linear-gradient(60deg, transparent 0 50%, #f72f27 50% 100%), linear-gradient(-60deg, transparent 0 50%, #235b98 50% 100%), #f6efd9; }
.t6  { background: radial-gradient(circle at 100% 100%, #f72f27 0 52%, transparent 53%), #f6efd9; }
.t7  { background: radial-gradient(circle at 0 100%, #f72f27 0 52%, transparent 53%), radial-gradient(circle at 100% 100%, transparent 0 44%, #f6efd9 45% 100%), #f6efd9; }
.t8  { background: repeating-linear-gradient(90deg, transparent 0 12px, #f8332a 12px 17px), #f6efd9; }
.t9  { background: radial-gradient(circle at 0 0, #27254a 0 52%, transparent 53%), #c7c3b3; }
.t10 { background: linear-gradient(60deg, transparent 0 33%, #c9c5b6 33% 67%, transparent 67%), linear-gradient(-60deg, transparent 0 33%, #c9c5b6 33% 67%, transparent 67%), linear-gradient(60deg, transparent 0 50%, #f72f27 50% 100%), linear-gradient(-60deg, transparent 0 50%, #235b98 50% 100%), radial-gradient(circle at 50% 50%, #f6efd9 0 11%, transparent 12%), #f6efd9; }
.t11 { background: linear-gradient(135deg, #235b98 0 50%, #c7c3b3 50% 100%), radial-gradient(circle at 0 100%, transparent 0 44%, #f72f27 45% 100%), #f6efd9; }
.t12 { background: radial-gradient(circle at 50% 0, #c7c3b3 0 46%, transparent 47%), radial-gradient(circle at 50% 0, #235b98 0 15%, transparent 16%), #f72f27; }

.layout {
  padding: 0.95rem 1rem 1.25rem;
  display: grid;
  gap: 0.95rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(21, 42, 69, 0.05);
}
.panel h2 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.panel-kicker {
  margin: 0 0 0.2rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 700;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.panel-head h2 {
  margin: 0;
}

.decision-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.decision-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(241,245,246,0.92));
}
.decision-card.primary {
  background: linear-gradient(160deg, var(--navy), #1e4f5d);
  color: #fff;
  border-color: rgba(21,42,69,0.2);
}
.decision-card.accent {
  background: linear-gradient(160deg, #f3e6cc, #fff6e7);
}
.decision-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.8;
}
.decision-card h3 {
  margin: 0.15rem 0 0;
  font-family: "Manrope", sans-serif;
  color: inherit;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}
.decision-copy {
  margin: 0.35rem 0 0;
  font-size: 0.94rem;
  color: inherit;
  opacity: 0.85;
}

.briefing-grid {
  display: grid;
  gap: 0.75rem;
}
.signal-panel,
.briefing-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  padding: 1rem;
}
.signal-panel h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}
.signal-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
}
.signal-brief-card {
  margin-top: 0.9rem;
  border: 1px solid #d4e0e3;
  border-radius: 18px;
  background: linear-gradient(160deg, #20475d, #18394e);
  color: #fff;
  overflow: hidden;
}
.signal-brief-label {
  margin: 0;
  padding: 1rem 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f0cf95;
  font-size: 0.72rem;
  font-weight: 700;
}
.signal-brief-card h3 {
  margin: 0;
  padding: 0.55rem 1rem 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}
.signal-brief-text {
  margin: 0;
  padding: 0.7rem 1rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}
.signal-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1rem;
  background: rgba(0,0,0,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.signal-metric-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(255,255,255,0.04);
}
.signal-metric-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}
.signal-metric-card strong {
  display: block;
  margin-top: 0.24rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
}
.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #ebeff0;
}
.signal-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.signal-key {
  color: var(--muted);
}
.signal-row strong {
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  text-align: right;
}
.briefing-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}
.gap-list,
.opportunity-list,
.recent-list {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}
.brief-card,
.opportunity-card,
.recent-card {
  border: 1px solid #dde5e6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8faf8);
  padding: 0.85rem;
}
.brief-card h3,
.opportunity-card h3,
.recent-card strong {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: 1rem;
}
.brief-card p,
.opportunity-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.brief-label,
.recent-date {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}
.brief-action {
  margin-top: 0.6rem;
}
.recent-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  font: inherit;
}
.recent-card:hover {
  border-color: #9bb8c2;
  background: #f4f9fb;
}
.recent-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.map-hub {
  display: grid;
  gap: 0.75rem;
}

.map-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#worldMap {
  position: relative;
  height: 52vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.map-panel.map-fullscreen {
  position: fixed;
  inset: 0.8rem;
  z-index: 2400;
  border-radius: 14px;
  box-shadow: 0 28px 56px rgba(19, 35, 56, 0.35);
}
.map-panel.map-fullscreen #worldMap {
  height: calc(100vh - 5.2rem);
}
.country-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(15, 111, 115, 0.35);
  background: rgba(15, 111, 115, 0.2);
  backdrop-filter: blur(1px);
}
.country-marker em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.68rem;
  color: #0b5659;
}

.filter-panel {
  position: fixed;
  right: 0.8rem;
  top: 4.8rem;
  width: min(92vw, 390px);
  max-height: calc(100vh - 5.8rem);
  overflow: auto;
  z-index: 25;
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 160ms ease;
  box-shadow: 0 24px 44px rgba(19, 35, 56, 0.18);
}
.filter-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.filter-panel.collapsed { display: block; }

.filters {
  display: grid;
  gap: 0.5rem;
}
.search-only { grid-template-columns: 1fr; }

.advanced-filters {
  margin-top: 0.6rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease;
}
.advanced-filters.visible {
  opacity: 1;
  max-height: 860px;
  pointer-events: auto;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.meta {
  margin-top: 0.62rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.coverage-panel {
  display: grid;
  gap: 0.75rem;
}
.continent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.45rem;
}
.continent-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  background: #f4faf8;
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
}
.continent-card.clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.continent-card.clickable:hover {
  border-color: #9cc8ca;
  background: #edf8f8;
}
.continent-name { color: var(--muted); font-size: 0.8rem; }
.continent-count { color: var(--teal); font-weight: 800; font-size: 0.98rem; }

.country-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  max-height: 280px;
}
.country-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.country-table th,
.country-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
  text-align: left;
}
.country-table .clickable-row {
  cursor: pointer;
}
.country-table .clickable-row:hover {
  background: #f5f9ff;
}
.country-table th {
  background: #f1f6ff;
  color: #334d76;
}

.member-discovery {
  min-height: 320px;
}
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
#resultCount {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.member-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  max-height: 560px;
  overflow: auto;
  padding-right: 0.15rem;
}
.member-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.member-card:hover {
  border-color: #adc7dd;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 52, 94, 0.08);
}
.member-card.active {
  border-color: #88abcf;
  background: #f5f9ff;
}
.member-card:focus-visible {
  outline: 2px solid #8bcfd1;
  outline-offset: 2px;
}
.member-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.member-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.member-flag {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 1rem;
}
.member-card .name {
  margin: 0;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.member-card .cluster {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.member-card .location {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.pill-row {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pill {
  border: 1px solid #b6d9da;
  background: var(--soft-teal);
  color: #0e5f63;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.12rem 0.48rem;
  font-weight: 600;
}
.link-icons {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.icon-only-link {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #315a7e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.icon-only-link:hover {
  color: var(--teal);
  border-color: #9bcfd1;
  background: #eef9f9;
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.3rem;
  border: 1px dashed #bfd2e6;
  border-radius: 14px;
  padding: 1.2rem 0.8rem;
  background: linear-gradient(135deg, #f8fbff, #eff8f8);
}
.empty-state h3 {
  margin: 0.15rem 0 0;
  color: var(--navy);
  font-size: 1rem;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.empty-illustration {
  width: 98px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid #c9d6e8;
  background:
    radial-gradient(circle at 22% 65%, #89cfd1 0 12%, transparent 13%),
    radial-gradient(circle at 58% 35%, #9fb4d6 0 11%, transparent 12%),
    linear-gradient(140deg, #eff7ff, #eaf8f8);
}

.insights-panel .overall-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faff;
  padding: 0.45rem 0.6rem;
}
.overall-value {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
}
.insight-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.insight-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}
.insight-block h3 {
  margin: 0 0 0.42rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  color: var(--teal);
  font-weight: 700;
}
.facet-list { display: grid; gap: 0.35rem; }
.facet-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.28rem 0.55rem;
  text-align: left;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.facet-chip:hover {
  border-color: #95c9cb;
  background: var(--soft-teal);
}
.tab-hidden { display: none !important; }
.empty { color: var(--muted); font-size: 0.82rem; }

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(10, 20, 36, 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
  isolation: isolate;
}
.profile-toast {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid #c5d5e8;
  border-radius: 16px;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  z-index: 2147483001;
}
.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.95rem 0.7rem;
}
.profile-eyebrow {
  margin: 0;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.profile-head h3 {
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.profile-meta { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.82rem; }
.profile-body {
  padding: 0.8rem 0.95rem 0.95rem;
  overflow: auto;
  overflow-x: hidden;
}
.profile-shell {
  display: grid;
  gap: 0.8rem;
}
.profile-hero-card,
.profile-card,
.profile-detail-accordion {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}
.profile-hero-card {
  padding: 1rem;
  background: linear-gradient(135deg, #f8fbff, #f5fbf9);
}
.profile-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.profile-logo-wrap {
  width: 96px;
  height: 96px;
}
.profile-logo-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.35rem;
}
.profile-logo-fallback {
  display: grid;
  place-items: center;
  color: #6682a1;
}
.profile-kicker,
.profile-section-kicker {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}
.profile-name {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.03;
}
.profile-descriptor {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.profile-chip-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.profile-chip,
.country-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #c6d7d9;
  background: #eef7f5;
  color: #155e5c;
  font-size: 0.8rem;
  font-weight: 600;
}
.profile-hero-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-cta-link {
  display: inline-flex;
  align-items: center;
}
.profile-stat-strip {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.profile-stat {
  border: 1px solid #d9e4e6;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  padding: 0.7rem 0.75rem;
}
.profile-stat-label,
.profile-subhead,
.profile-fact-label,
.profile-detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.profile-stat strong {
  display: block;
  margin-top: 0.15rem;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: 1.05rem;
}
.profile-main-grid {
  display: grid;
  gap: 0.8rem;
}
.profile-primary-column,
.profile-side-column {
  display: grid;
  gap: 0.8rem;
}
.profile-card {
  padding: 0.95rem;
}
.profile-card-head {
  margin-bottom: 0.75rem;
}
.profile-card-head h3,
.profile-detail-card h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: 1.08rem;
}
.profile-two-up,
.profile-footprint-grid,
.profile-detail-grid {
  display: grid;
  gap: 0.7rem;
}
.profile-story-column {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
.profile-narrative-block {
  border: 1px solid #e1e8ea;
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
}
.profile-narrative-block p {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
.profile-footprint-summary,
.profile-country-panel,
.profile-detail-card {
  border: 1px solid #e1e8ea;
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
}
.profile-footprint-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}
.profile-mini-facts,
.profile-participation-stack,
.profile-detail-rows {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}
.profile-fact-item {
  border-bottom: 1px solid #eef2f3;
  padding-bottom: 0.5rem;
}
.profile-fact-item:last-child,
.profile-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.profile-fact-item strong,
.profile-detail-value {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-country-chips {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.profile-empty-inline {
  color: var(--muted);
  font-size: 0.9rem;
}
.profile-detail-accordion {
  overflow: hidden;
}
.profile-detail-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 0.95rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  color: var(--navy);
}
.profile-detail-accordion summary::-webkit-details-marker {
  display: none;
}
.profile-detail-accordion[open] summary {
  border-bottom: 1px solid #e6edef;
}
.profile-detail-grid {
  padding: 0.95rem;
  grid-template-columns: 1fr;
}
.profile-detail-row {
  border-bottom: 1px solid #eef2f3;
  padding-bottom: 0.45rem;
}
.profile-detail-value .icon-link,
.profile-detail-value .social-icon-list {
  margin-top: 0.2rem;
}
.profile-section {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background: #fff;
  overflow: hidden;
}
.profile-section h3 {
  margin: 0 0 0.4rem;
  color: var(--teal);
  font-size: 0.85rem;
}
.profile-section-compact { background: #f8fbff; }
.profile-section-empty { border-style: dashed; background: #f8fbfc; }
.profile-empty-note { margin: 0; color: var(--muted); font-size: 0.8rem; }

.row { margin-bottom: 0.5rem; }
.row:last-child { margin-bottom: 0; }
.k {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  margin-bottom: 0.1rem;
}
.v {
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.social-icon-list {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}
.icon-link {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0.35rem;
  text-decoration: none;
  color: #1e5c86;
  font-size: 0.82rem;
}
.icon-link span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.icon-link:hover {
  color: var(--teal);
  text-decoration: underline;
}
.icon-link svg {
  flex: 0 0 auto;
  margin-top: 1px;
}
.org-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.org-link:hover { text-decoration: underline; }
.org-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #97bbd2;
  border-radius: 10px;
  background: #f5fbff;
}
.profile-actions-inline .k {
  margin-bottom: 0.28rem;
}
.logo-wrap { display: flex; align-items: center; }
.detail-logo {
  max-width: 220px;
  max-height: 98px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem;
  background: #fff;
}
.detail-logo-fallback {
  width: 104px;
  height: 76px;
  border: 1px dashed #b7c8dc;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6682a1;
  background: #f7fbff;
}
.organization-section .logo-row .k {
  display: none;
}
.organization-section .org-logo-float {
  float: left;
  margin: 0.1rem 0.8rem 0.55rem 0;
  max-width: min(42%, 180px);
}
.organization-section .org-logo-float .detail-logo {
  max-width: 100%;
}
.organization-section .org-logo-float .detail-logo-fallback {
  width: 88px;
  height: 66px;
}
.organization-section .logo-row {
  margin-bottom: 0.1rem;
}
.organization-section .logo-row .v {
  margin: 0;
}
.org-clear {
  clear: both;
}
.suggested-partners-list {
  display: grid;
  gap: 0.4rem;
}
.suggested-partner {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #f8fbff;
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 0.15rem;
}
.suggested-partner strong {
  color: var(--navy);
  font-size: 0.82rem;
}
.suggested-partner span {
  color: var(--muted);
  font-size: 0.74rem;
}
.suggested-partner:hover {
  border-color: #9bc1dd;
  background: #f3f8ff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  background: rgba(10, 20, 36, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  isolation: isolate;
}
.modal-card {
  width: min(520px, 96vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.95rem;
}
.modal-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}
.modal-help {
  margin: 0.45rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.modal-label { margin-bottom: 0.24rem; color: var(--muted); font-size: 0.8rem; }
.modal-error {
  margin: 0.5rem 0 0;
  color: var(--danger);
  font-size: 0.8rem;
}
.modal-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}
.modal-backdrop.hidden,
.profile-overlay.hidden { display: none !important; }

.feedback-bell {
  position: relative;
}
.feedback-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d94a4a;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  border: 1px solid #fff;
}
.feedback-toast {
  width: min(900px, 96vw);
}
.feedback-list {
  display: grid;
  gap: 0.6rem;
}
.feedback-list-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.8rem;
  text-align: left;
  color: var(--text);
  font: inherit;
  width: 100%;
}
button.feedback-list-item {
  cursor: pointer;
}
button.feedback-list-item:hover {
  border-color: #94b4cf;
  background: #f5f9ff;
}
.feedback-list-item strong {
  display: block;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.25;
}
.feedback-list-item span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.feedback-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.7rem;
}
.feedback-questions {
  display: grid;
  gap: 0.65rem;
}
.feedback-question {
  margin: 0;
  border: 1px solid #dce5e7;
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
}
.feedback-q-label {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
}
.feedback-required {
  color: #bf3434;
}
.feedback-options {
  display: grid;
  gap: 0.38rem;
}
.feedback-option {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.92rem;
}
.feedback-option input {
  width: auto;
  margin: 0;
}
.feedback-upload-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.member-card.skeleton {
  pointer-events: none;
}
.skeleton-line,
.skeleton-block,
.skeleton-pill {
  display: block;
  background: linear-gradient(90deg, #e9eef6 25%, #f5f8fc 37%, #e9eef6 63%);
  background-size: 320% 100%;
  animation: skeletonPulse 1.25s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-line { height: 11px; margin: 0.33rem 0; }
.skeleton-line.short { width: 60%; }
.skeleton-block { width: 34px; height: 34px; border-radius: 50%; }
.skeleton-pill { width: 62px; height: 19px; border-radius: 999px; }
@keyframes skeletonPulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (min-width: 720px) {
  .partner-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .decision-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-hero {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    min-height: 0;
  }
  .hero-aside {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.08);
  }
  .coverage-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .briefing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-body {
    padding: 1rem;
  }
  .profile-main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  }
  .profile-footprint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-inline: 1.25rem;
  }
  .decision-strip {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
  .map-hub {
    grid-template-columns: minmax(0, 75%) minmax(280px, 25%);
    align-items: start;
  }
  .filter-panel {
    position: sticky;
    top: 5.35rem;
    width: 100%;
    max-height: calc(100vh - 6.1rem);
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
  }
  #worldMap { height: 62vh; }
  .member-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 520px;
  }
}

@media (min-width: 1200px) {
  .brand-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.9fr);
    min-height: 0;
  }
  .brand-copy {
    padding: 1.35rem 1.4rem 1.2rem;
  }
}

@media (max-width: 820px) {
  .map-panel.map-fullscreen {
    inset: 0;
    border-radius: 0;
  }
  .map-panel.map-fullscreen #worldMap {
    height: calc(100vh - 4.8rem);
  }
  .profile-toast {
    width: 100vw;
    border-radius: 0;
    max-height: 100vh;
  }
  .profile-body {
    padding: 0.85rem;
  }
  .profile-identity {
    grid-template-columns: 1fr;
  }
  .profile-logo-wrap {
    width: 84px;
    height: 84px;
  }
  .profile-stat-strip {
    grid-template-columns: 1fr;
  }
  .signal-metric-grid {
    grid-template-columns: 1fr;
  }
}
