/* Africa Environmental Projects Intelligence Hub front-end layer. */
:root {
  --obs-blue-950: #052447;
  --obs-blue-900: #07315f;
  --obs-blue-800: #0a4b86;
  --obs-blue-100: #eaf4ff;
  --obs-green-600: #138246;
  --obs-green-500: #28a15f;
  --obs-cyan-500: #21a6b8;
  --obs-amber-500: #d99a22;
  --obs-purple-600: #5d3bb4;
  --obs-ink: #10233f;
  --obs-muted: #5d6c7d;
  --obs-line: #dce7f1;
  --obs-surface: #ffffff;
  --obs-bg: #f4f8fb;
  --obs-shadow: 0 16px 38px rgba(9, 35, 65, .11);
}

body.observatory-page,
body.observatory-lite {
  background: var(--obs-bg);
  color: var(--obs-ink);
}

.akp-navbar.observatory-nav {
  background: linear-gradient(90deg, var(--obs-blue-950), var(--obs-blue-900)) !important;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 28px rgba(4, 26, 51, .22);
}

.observatory-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.05;
  padding: 8px 24px 8px 18px;
  text-decoration: none !important;
}

.observatory-logo-image {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  display: block;
}

.observatory-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7fbff;
  position: relative;
  flex: 0 0 auto;
  background: radial-gradient(circle at 35% 35%, #1e6fa7, #063963 64%);
  border: 3px solid #6bbf59;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}

.observatory-logo i {
  display: none;
}

.observatory-logo::before {
  content: "";
  width: 47px;
  height: 47px;
  display: block;
  background: url("/assets/img/africa-logo-silhouette.svg") center center / contain no-repeat;
  transform: translate(-1px, 1px);
}

.observatory-brand-text {
  max-width: 220px;
  font-size: 1.18rem;
  font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  color: #ffffff;
}

.observatory-nav .navbar-nav {
  align-items: center;
}

.observatory-nav .nav-link {
  font-size: .94rem !important;
  font-weight: 800;
  padding: 1.55rem 1.3rem !important;
  color: #f0f6ff !important;
}

.observatory-search-link {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  margin-right: 14px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
}

.observatory-nav .nav-link.active,
.observatory-nav .nav-item.show .nav-link {
  background: transparent !important;
  box-shadow: inset 0 -4px 0 #78cf62;
}

.observatory-nav .dropdown-menu {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--obs-shadow);
  text-transform: none;
  font-weight: 700;
  min-width: 230px;
  margin-top: 0;
}

.observatory-nav .dropdown-item {
  color: var(--obs-blue-950);
  font-size: .88rem;
  padding: .62rem .95rem;
}

.observatory-nav .dropdown-item:hover,
.observatory-nav .dropdown-item:focus {
  background: #eef7ff;
  color: var(--obs-blue-800);
}

.observatory-shell {
  position: relative;
  height: calc(100vh - 74px);
  min-height: calc(100vh - 74px);
  overflow: hidden;
  background: #061d35;
}

.observatory-hero {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 700px;
  padding: 142px 64px 245px;
  background: #08254a;
  isolation: isolate;
}

.observatory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  background: url("../assets/img/homepage-hero-background-dawn-20260715.png") center bottom / cover no-repeat;
  filter: none;
  transform: none;
}

.observatory-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  filter: none;
  pointer-events: none;
}

.observatory-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  text-shadow: 0 3px 22px rgba(0, 12, 27, .62);
}

.observatory-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.35rem, 4.1vw, 4.2rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.observatory-subtitle {
  margin: 16px 0 12px;
  color: #9ff36d;
  font-size: clamp(1.35rem, 1.75vw, 1.8rem);
  line-height: 1.2;
  font-weight: 800;
}

.observatory-intro {
  max-width: 520px;
  color: #edf7ff;
  font-size: 1.02rem;
  line-height: 1.5;
}

.identity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 18px;
}

.identity-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 0 16px;
  color: #f7fbff;
  background: transparent;
  border-right: 1px solid rgba(255,255,255,.46);
  font-size: .78rem;
  font-weight: 700;
  opacity: .92;
}

.identity-pills span:first-child {
  padding-left: 0;
}

.identity-pills span:last-child {
  border-right: 0;
  padding-right: 0;
}

.identity-pills i {
  font-size: 1.05rem;
  color: #9ee36d;
}

.identity-pills span:nth-child(2) i {
  color: #dcecff;
}

.identity-pills span:nth-child(3) i {
  color: #b7f0ef;
}

.observatory-main {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 4;
  padding: 0 24px;
}

.observatory-grid {
  display: grid;
  gap: 14px;
}

.workspace-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.analysis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-landing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

.knowledge-document-page {
  background: #f4f8fb;
}

.knowledge-document {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  color: #16324f;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.knowledge-document-title {
  margin: 0 0 1.25rem;
  color: #082b5d;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.knowledge-document-purpose,
.knowledge-document-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 49, 95, 0.12);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(9, 32, 60, 0.08);
  margin: 0 0 1rem;
  padding: 1.35rem 1.5rem;
}

.knowledge-document-purpose {
  border-left: 5px solid #1f8f5b;
}

.knowledge-document-purpose h2 {
  margin: 0 0 0.75rem;
  color: #0b4f75;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.knowledge-document-section h1,
.knowledge-document-section h2,
.knowledge-document-section h3,
.knowledge-document-section h4 {
  color: #082b5d;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.knowledge-document-section h1 {
  margin: 0 0 0.85rem;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
}

.knowledge-document-section h2 {
  margin: 0 0 0.85rem;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.22;
}

.knowledge-document-section h3 {
  margin: 1.05rem 0 0.55rem;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.knowledge-document-section h4 {
  margin: 0.95rem 0 0.45rem;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.knowledge-document p,
.knowledge-document li {
  color: #2f4f6c;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.62;
}

.knowledge-document p {
  margin: 0 0 0.85rem;
}

.knowledge-document ul,
.knowledge-document ol {
  margin: 0.35rem 0 0.95rem 1.25rem;
  padding: 0;
}

.knowledge-document pre {
  background: #eef5fa;
  border: 1px solid rgba(9, 49, 95, 0.12);
  border-radius: 8px;
  color: #24435f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.45;
  margin: 0.85rem 0;
  overflow-x: auto;
  padding: 1rem;
}

.knowledge-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  color: #2f4f6c;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.knowledge-document th,
.knowledge-document td {
  border: 1px solid rgba(9, 49, 95, 0.14);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.knowledge-document-note {
  border-left: 4px solid #0f8fa8;
  background: #eef8fb;
  border-radius: 8px;
  color: #24435f;
  font-size: 16px;
  margin: 0.9rem 0;
  padding: 0.8rem 1rem;
}

.kc-page {
  background:
    radial-gradient(circle at 6% 4%, rgba(31, 143, 91, 0.08), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(31, 91, 168, 0.09), transparent 30%),
    #f7fafc;
}

.kc-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 4.5rem;
}

.kc-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.85fr);
  gap: 2.2rem;
  align-items: start;
}

.kc-main {
  min-width: 0;
}

.kc-page-title {
  margin: 0 0 0.45rem;
  color: #082b5d;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.kc-page-meta {
  margin: 0 0 1.45rem;
  color: #5a7187;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.kc-purpose-card,
.kc-section,
.kc-sidebar-card,
.kc-callout {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(9, 49, 95, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(9, 32, 60, 0.07);
}

.kc-purpose-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(235, 247, 255, 0.96), rgba(250, 253, 255, 0.96));
  border-color: rgba(31, 132, 213, 0.22);
}

.kc-purpose-icon,
.kc-section-icon,
.kc-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.kc-purpose-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #1457c8;
  color: #ffffff;
  font-size: 1.15rem;
}

.kc-purpose-card h2 {
  margin: 0 0 0.45rem;
  color: #1457c8;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
}

.kc-purpose-card p {
  margin: 0 0 0.6rem;
}

.kc-section {
  margin: 0 0 1.65rem;
  padding: 1.45rem 1.55rem 1.55rem;
}

.kc-section + .kc-section {
  border-top: 1px solid rgba(9, 49, 95, 0.08);
}

.kc-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.kc-section-icon {
  width: 34px;
  height: 34px;
  margin-top: 0.12rem;
  color: #1f8f5b;
  font-size: 1.35rem;
}

.kc-section h2,
.kc-section-title {
  margin: 0;
  color: #082b5d;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.kc-section h3 {
  margin: 1rem 0 0.55rem;
  color: #107443;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.kc-knowledge-framework-page .kc-section h3 {
  color: #071e3b;
}

.kc-relationship-flow {
  display: grid;
  gap: 0.45rem;
  max-width: 680px;
  margin: 1rem 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(9, 49, 95, 0.12);
  border-radius: 12px;
  background: #f8fbfd;
}

.kc-relationship-step {
  display: grid;
  gap: 0.25rem;
}

.kc-relationship-label {
  color: #5a7187;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kc-relationship-value {
  display: block;
  color: #071e3b;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.kc-relationship-arrow {
  color: #6f879d;
  font-size: 18px;
  line-height: 1;
}

.kc-section h4 {
  margin: 0.9rem 0 0.45rem;
  color: #24435f;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.kc-page p,
.kc-page li {
  color: #2f4f6c;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
}

.kc-page p {
  margin: 0 0 0.95rem;
}

.kc-page ul,
.kc-page ol {
  margin: 0.45rem 0 1rem 1.3rem;
  padding: 0;
}

.kc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  color: #2f4f6c;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.kc-page th,
.kc-page td {
  border: 1px solid rgba(9, 49, 95, 0.14);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.kc-page pre {
  background: #eef5fa;
  border: 1px solid rgba(9, 49, 95, 0.12);
  border-radius: 10px;
  color: #24435f;
  font-size: 16px;
  line-height: 1.48;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 1rem;
}

.kc-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1.25rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.kc-sidebar-card {
  padding: 1.35rem 1.45rem;
}

.kc-sidebar-card h2,
.kc-sidebar-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: #082b5d;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.kc-sidebar-icon {
  color: #1f8f5b;
  font-size: 1.15rem;
}

.kc-toc {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kc-toc a {
  display: block;
  border-bottom: 1px dashed rgba(9, 49, 95, 0.16);
  color: #24435f;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 0.62rem 0;
  text-decoration: none;
}

.kc-toc a:hover,
.kc-toc a:focus {
  color: #0b7a43;
  padding-left: 0.35rem;
}

.kc-toc a.is-active {
  border-left: 4px solid #1f8f5b;
  padding-left: 0.65rem;
  color: #0b7a43;
}

.kc-toc .kc-toc-sub a {
  padding-left: 1rem;
  font-size: 15px;
  color: #4a647c;
}

.kc-toc .kc-toc-sub a:hover,
.kc-toc .kc-toc-sub a:focus {
  padding-left: 1.25rem;
  color: #0b7a43;
}

.kc-callout {
  padding: 1.25rem 1.35rem;
}

.kc-callout h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.kc-callout p {
  margin: 0;
}

.kc-callout--takeaway {
  background: linear-gradient(135deg, rgba(239, 251, 244, 0.96), rgba(250, 255, 252, 0.96));
  border-color: rgba(31, 143, 91, 0.22);
}

.kc-callout--takeaway h3,
.kc-callout--takeaway i {
  color: #137c49;
}

.kc-callout--note {
  background: linear-gradient(135deg, rgba(239, 247, 255, 0.96), rgba(250, 253, 255, 0.96));
  border-color: rgba(20, 87, 200, 0.2);
}

.kc-callout--note h3,
.kc-callout--note i {
  color: #1457c8;
}

.kc-visual-vocabulary {
  border-color: rgba(31, 143, 91, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 248, 0.98));
}

.kc-visual-vocabulary .kc-section-icon {
  color: #1457c8;
}

.kc-palette-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.kc-palette-table {
  min-width: 680px;
  background: #ffffff;
}

.kc-palette-table th {
  background: #eef5fa;
  color: #082b5d;
  font-weight: 700;
}

.kc-palette-table td:first-child {
  white-space: nowrap;
}

.kc-color-swatch {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(9, 49, 95, 0.18);
  border-radius: 999px;
  vertical-align: -0.18rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.kc-palette-table code {
  color: #24435f;
  font-size: 0.9rem;
}

.kc-palette-empty {
  border: 1px dashed rgba(9, 49, 95, 0.2);
  border-radius: 10px;
  background: #f8fbfd;
  padding: 0.9rem 1rem;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 1180px) {
  .kc-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.4rem;
  }

  .kc-container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 980px) {
  .kc-layout {
    grid-template-columns: 1fr;
  }

  .kc-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .kc-sidebar {
    order: 2;
  }
}

@media (max-width: 640px) {
  .kc-container {
    padding: 1.6rem 0.85rem 3rem;
  }

  .kc-page-title {
    font-size: 36px;
  }

  .kc-purpose-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.1rem;
  }

  .kc-section {
    padding: 1.15rem;
  }

  .kc-section-heading {
    gap: 0.55rem;
  }

  .kc-section h2,
  .kc-section-title {
    font-size: 26px;
  }

  .kc-page p,
  .kc-page li {
    font-size: 17px;
    line-height: 1.65;
  }
}

.observatory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 22px 25px 24px;
  border: 1px solid rgba(255,255,255,.88);
  border-bottom: 4px solid transparent;
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  color: var(--obs-ink);
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 22px 46px rgba(4, 27, 52, .24), 0 3px 10px rgba(5, 29, 55, .12);
  backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.observatory-card:hover {
  color: var(--obs-ink);
  transform: translateY(-7px);
  border-color: rgba(10, 75, 134, .25);
  box-shadow: 0 28px 56px rgba(4, 27, 52, .3), 0 5px 14px rgba(5, 29, 55, .13);
}

.observatory-card:hover .observatory-icon,
.observatory-card:focus .observatory-icon {
  transform: scale(1.06);
}

.observatory-card.accent-green { border-bottom-color: #2ca35f; }
.observatory-card.accent-blue { border-bottom-color: #2e77c7; }
.observatory-card.accent-orange { border-bottom-color: #d99a22; }
.observatory-card.accent-purple { border-bottom-color: #6a45c4; }
.observatory-card.accent-teal { border-bottom-color: #1597a6; }

.observatory-card.accent-green h2 { color: #168047; }
.observatory-card.accent-blue h2 { color: #1267bd; }
.observatory-card.accent-orange h2 { color: #e07b16; }
.observatory-card.accent-purple h2 { color: #6a45b8; }
.observatory-card.accent-teal h2 { color: #168c8f; }

.observatory-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--obs-blue-800);
  background: #eaf3ff;
  transition: transform .18s ease, background-color .18s ease;
}

.observatory-icon.green { color: #087a39; background: #dff3e8; }
.observatory-icon.amber { color: #c07a00; background: #fff0cf; }
.observatory-icon.cyan { color: #078391; background: #dff5f6; }
.observatory-icon.purple { color: var(--obs-purple-600); background: #ede8ff; }

.observatory-card h2,
.observatory-card h3 {
  margin: 0 0 10px;
  color: #071e3b;
  font-size: 1.08rem;
  font-weight: 900;
  text-align: center;
}

.observatory-card p {
  margin: 0;
  color: #2c3a49;
  font-size: .86rem;
  line-height: 1.55;
}

.observatory-card .card-action {
  margin-top: auto;
  padding-top: 16px;
  color: #08377d;
  font-weight: 800;
  border-top: 1px solid #e4edf4;
}

.wide-card {
  min-height: 130px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
}

.wide-card .observatory-icon {
  margin: 0;
}

.wide-card h3,
.wide-card p {
  text-align: left;
}

.wide-card .card-action {
  border-top: 0;
  padding-top: 10px;
}

.kpi-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  position: absolute;
  left: auto;
  right: 54px;
  top: 36px;
  bottom: auto;
  z-index: 3;
  width: min(850px, 58vw);
  padding: 24px 20px 18px;
  border-radius: 24px;
  color: #f5f9ff;
  background: linear-gradient(135deg, rgba(9, 51, 87, .82), rgba(4, 27, 64, .88) 58%, rgba(17, 30, 72, .86));
  border: 1px solid rgba(160, 206, 239, .46);
  box-shadow: 0 24px 56px rgba(0, 13, 35, .34), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.25);
}

.kpi-item {
  display: grid;
  grid-template-rows: 28px 34px auto;
  row-gap: 7px;
  align-items: start;
  justify-items: center;
  align-content: start;
  text-align: center;
  min-height: 118px;
  padding: 0 10px;
  border-right: 1px solid rgba(201, 225, 244, .33);
}

.kpi-item > span {
  display: contents;
}

.kpi-item:last-child {
  border-right: 0;
}

.kpi-item > i,
.kpi-item > .svg-inline--fa {
  align-self: start;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--kpi-color, #54d5ee) !important;
  filter: drop-shadow(0 0 8px currentColor);
}

.kpi-item > .svg-inline--fa path {
  fill: currentColor !important;
}

.kpi-item:nth-child(1) {
  --kpi-color: #7cff58;
}

.kpi-item:nth-child(2) {
  --kpi-color: #6ee96a;
}

.kpi-item:nth-child(3) {
  --kpi-color: #38b6ff;
}

.kpi-item:nth-child(4) {
  --kpi-color: #b56bff;
}

.kpi-item:nth-child(5) {
  --kpi-color: #ff8a00;
}

.kpi-item:nth-child(5) .kpi-value {
  font-size: 1.12rem;
}

.kpi-item:nth-child(6) {
  --kpi-color: #27d7c9;
}

.kpi-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  font-size: 1.26rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--kpi-color, #08243f) !important;
  white-space: nowrap;
}

.kpi-label {
  display: block;
  font-size: .76rem;
  line-height: 1.25;
  color: #f4f8ff;
  text-shadow: 0 1px 5px rgba(0, 8, 24, .5);
}

.observatory-page-header {
  padding: 34px 22px 22px;
  background:
    radial-gradient(circle at 82% 12%, rgba(33, 166, 184, .18), transparent 24%),
    linear-gradient(135deg, #f8fbff, #edf7fb);
  border-bottom: 1px solid var(--obs-line);
}

.observatory-page-header .inner,
.observatory-section {
  max-width: 1180px;
  margin: 0 auto;
}

.observatory-page-header h1 {
  margin: 0 0 8px;
  color: #072a5d;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.observatory-page-header p {
  max-width: 830px;
  color: var(--obs-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.observatory-section {
  padding: 26px 22px 42px;
}

.observatory-section h2 {
  color: #082b5d;
  font-size: 1.4rem;
  font-weight: 900;
  margin: 20px 0 12px;
}

.observatory-copy-card {
  background: #fff;
  border: 1px solid var(--obs-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 42, 72, .06);
  padding: 22px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.pill-list li {
  border-radius: 999px;
  background: #edf7f0;
  color: #0d6c3b;
  font-size: .82rem;
  font-weight: 800;
  padding: 7px 12px;
}

.projects-intelligence-header {
  margin: 16px 18px 10px;
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(40, 161, 95, .14), transparent 25%),
    linear-gradient(135deg, #f7fbff, #eff8f2);
  border: 1px solid var(--obs-line);
}

.projects-intelligence-header h1 {
  margin: 0 0 8px;
  color: #082b5d;
  font-size: 2rem;
  font-weight: 900;
}

.placeholder-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.placeholder-strip span {
  display: block;
  min-height: 44px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  border: 1px solid #dfeaf1;
  color: #24435f;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .observatory-shell {
    height: auto;
    overflow: visible;
    background: #f8fbfd;
  }

  .observatory-hero {
    height: auto;
    min-height: 760px;
    padding-bottom: 60px;
  }

  .observatory-hero::before {
    transform: none;
  }

  .observatory-main {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .kpi-band {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin-top: 32px;
  }

  .workspace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .kpi-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analysis-grid,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-item {
    border-right: 0;
    border-bottom: 1px solid rgba(9, 49, 95, .12);
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .observatory-brand-text {
    max-width: 160px;
    font-size: .96rem;
  }

  .observatory-logo {
    width: 52px;
    height: 52px;
  }

  .observatory-logo-image {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .observatory-logo i {
    display: none;
  }

  .observatory-logo::before {
    width: 39px;
    height: 39px;
  }

  .observatory-hero {
    min-height: auto;
    padding: 34px 20px 28px;
  }

  .observatory-hero::before {
    transform: scale(1.01);
  }

  .observatory-hero-content {
    max-width: none;
  }

  .identity-pills span {
    font-size: .78rem;
  }

  .kpi-band {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
    padding: 10px 14px;
  }

  .kpi-item {
    padding: 12px 4px;
  }

  .observatory-main {
    padding-top: 22px;
  }

  .workspace-grid {
    margin-top: 0;
  }

  .workspace-grid,
  .reference-grid,
  .analysis-grid,
  .kpi-band,
  .placeholder-strip {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

  .wide-card .observatory-icon {
    margin-bottom: 12px;
  }

  .observatory-nav .nav-link {
    padding: .8rem 1rem !important;
  }
}
.donor-autocomplete {
  position: relative;
}

.donor-autocomplete-input-row {
  display: flex;
  gap: 6px;
}

.donor-autocomplete-input-row .form-control {
  min-width: 0;
}

.donor-autocomplete-clear {
  flex: 0 0 auto;
}

.donor-autocomplete-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.donor-autocomplete-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(17, 169, 196, .32);
  border-radius: 999px;
  background: rgba(17, 169, 196, .12);
  color: inherit;
  padding: 3px 8px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.donor-autocomplete-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-autocomplete-suggestions {
  display: none;
  position: absolute;
  z-index: 1060;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(17, 169, 196, .34);
  border-radius: 6px;
  background: #fff;
  color: #17212b;
  box-shadow: 0 12px 30px rgba(0, 17, 32, .18);
}

.donor-autocomplete-option,
.donor-autocomplete-empty {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #17212b;
  padding: 8px 10px;
  text-align: left;
  font-size: .82rem;
}

.donor-autocomplete-option:hover,
.donor-autocomplete-option:focus {
  background: #e7f4f8;
  outline: none;
}

/* Shared loading state used by page navigation and asynchronous requests. */
.global-loading {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 25, 38, .56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.global-loading.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.global-loading__panel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  max-width: min(360px, 100%);
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  color: #102a3a;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.global-loading__spinner {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(17, 169, 196, .22);
  border-top-color: #11a9c4;
  border-right-color: #197a91;
  border-radius: 50%;
  animation: global-loading-spin .75s linear infinite;
}

.global-loading__label {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
}

body.global-loading-active {
  overflow: hidden;
}

@keyframes global-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .global-loading {
    transition: none;
  }

  .global-loading__spinner {
    animation-duration: 1.5s;
  }
}
