/* =========================================================
   SOUTH SUDAN OBSERVATORY (SS-O)
   style.css – v2.0 “Premium Gold Observatory”
   ========================================================= */

/* ---------- Root tokens ---------- */

:root {
  /* Colours */
  --bg-root: #04060a;
  --bg-main: #070a11;
  --bg-alt: #0c1020;
  --bg-card: #101425;
  --bg-card-soft: #13182a;

  --gold: #e4be6d;
  --gold-soft: rgba(228, 190, 109, 0.18);
  --gold-border: rgba(228, 190, 109, 0.55);

  --text-main: #f7f4eb;
  --text-muted: #a3aac5;
  --text-soft: #6f7692;

  --border-subtle: #252a3a;

  --signal-danger: #ff6b6b;
  --signal-warning: #f8c86a;
  --signal-success: #4ad29a;
  --signal-neutral: #6aa6ff;

  /* Radii */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Other */
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.55);
  --transition-fast: 0.18s ease-out;
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #191f35 0, transparent 52%),
    radial-gradient(circle at bottom, #060812 0, #020309 60%);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 12, 0.98),
    rgba(4, 6, 12, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand block */

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: 0.35rem;
  text-decoration: none;
  color: inherit;
}

/* If brand-mark is an image, or a wrapper containing img */
.brand-mark,
.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(228, 190, 109, 0.5);
  background: radial-gradient(circle at 30% 0%, #f9e0a8 0, #2b2214 70%);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #120d06;
}

.brand-mark img {
  border-radius: inherit;
  border: none;
  box-shadow: none;
  object-fit: contain;
}

/* Brand text */

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  margin-top: 1px;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-tagline {
  font-size: 0.78rem;
  margin-top: 2px;
  color: var(--text-muted);
}

/* Navigation links */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-block: 0.1rem;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: var(--gold);
}

.main-nav a:hover::after {
  width: 80%;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--gold-border);
  color: var(--gold);
}

/* Burger */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  margin: 4px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.nav-open .nav-toggle-line:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.4rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  line-height: 1.16;
  margin: 0.85rem 0 0.75rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #f4d392, #e4be6d);
  color: #201207;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.75);
}

.btn.ghost {
  background: rgba(6, 8, 14, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(6, 8, 14, 1);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.82rem;
}

.meta-label {
  display: block;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.7rem;
}

.meta-value {
  color: #e5e7ff;
}

/* Hero side panel */

.hero-panel {
  background: radial-gradient(circle at top left, #232944 0, #101423 52%);
  border-radius: 24px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.panel-title {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.signal-card {
  background: rgba(4, 6, 13, 0.93);
  border-radius: 18px;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--border-subtle);
}

.signal-label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.signal-value {
  display: inline-flex;
  margin-top: 0.27rem;
  padding: 0.17rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
}

.signal-note {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.signal-value.alert {
  background: rgba(255, 107, 107, 0.12);
  color: var(--signal-danger);
}

.signal-value.caution {
  background: rgba(248, 200, 106, 0.16);
  color: var(--signal-warning);
}

.signal-value.positive {
  background: rgba(74, 210, 154, 0.12);
  color: var(--signal-success);
}

.signal-value.neutral {
  background: rgba(106, 166, 255, 0.12);
  color: var(--signal-neutral);
}

.panel-footnote {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* ---------- Generic sections ---------- */

.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.section-header.left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Sectors cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.info-card ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: #d5d8f3;
  font-size: 0.86rem;
}

/* ---------- Indicator placeholders ---------- */

.indicator-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.indicator-placeholder {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.placeholder-label {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.placeholder-chart {
  margin-top: 0.8rem;
  height: 140px;
  border-radius: 12px;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: 100% 24px, 24px 100%;
}

/* ---------- Publications ---------- */

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.pub-card {
  background: var(--bg-card-soft);
  border-radius: var(--r-md);
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.pub-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.pub-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.pub-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pub-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.84rem;
  color: var(--gold);
  text-decoration: none;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
}

.about-aside {
  background: var(--bg-card);
  padding: 1.3rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.about-aside h3 {
  margin-top: 0;
}

.about-aside ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Subscribe ---------- */

.subscribe-box {
  background: radial-gradient(circle at top left, var(--gold-soft) 0, #070914 60%);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--gold-border);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.subscribe-text h2 {
  margin: 0 0 0.4rem;
}

.subscribe-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.subscribe-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.62rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 5, 10, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
}

.subscribe-form input::placeholder {
  color: rgba(163, 170, 197, 0.8);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0.3rem;
  padding: 1.6rem 0 2rem;
  background: #03040a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-brand p {
  margin: 0.3rem 0 0;
}

.footer-monogram {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ---------- Utility ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

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

  .indicator-layout,
  .pub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .subscribe-box {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 70px 0 auto;
    background: rgba(4, 6, 12, 0.98);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.nav-open {
    display: flex;
  }

  .brand {
    gap: 0.7rem;
    padding-left: 0.2rem;
  }

  .brand-mark,
  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid,
  .indicator-layout,
  .pub-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ==========================================
   SS-O Header Refinements – PATCH v2.1
   ========================================== */

@media (max-width: 720px) {

  /* Reduce monogram size */
  .brand-mark,
  .brand-mark img {
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 0 14px rgba(228, 190, 109, 0.45) !important;
  }

  /* Reduce header height */
  .nav-container {
    height: 62px !important;
  }

  /* Improve alignment & spacing */
  .brand {
    gap: 0.55rem !important;
    padding-left: 0.25rem !important;
  }

  .brand-title {
    font-size: 0.92rem !important;
    margin-bottom: 1px !important;
  }

  .brand-tagline {
    margin-top: 1px !important;
    font-size: 0.68rem !important;
  }

  /* Reduce extra top padding in hero */
  .hero {
    padding-top: 1.7rem !important;
  }
}
/* ================================
   Governance Observatory – layout
   ================================ */

.page-hero {
  padding: 2.2rem 0 1.6rem;
  background: radial-gradient(circle at top left, rgba(228, 190, 109, 0.1) 0, #05060b 55%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-hero-top {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.page-hero h1 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.page-hero-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 0.96rem;
}

.pill-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.pill-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold);
}

.pill-stable {
  background: rgba(74, 210, 154, 0.1);
  border-color: rgba(74, 210, 154, 0.6);
  color: var(--signal-success);
}

/* Overview dashboard cards */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.gov-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.gov-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.gov-metric {
  margin: 0;
  font-size: 0.9rem;
  color: #e6e7ff;
}

.gov-note {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Leadership table */

.gov-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.gov-table th,
.gov-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gov-table th {
  text-align: left;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.gov-table tbody tr:last-child td {
  border-bottom: none;
}

/* Timeline */

.gov-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

.timeline-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1rem 1.05rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.timeline-date {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.timeline-item p {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #d4d7f1;
}

/* Scorecards */

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.scorecard {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.86rem;
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.scorecard h3 {
  margin: 0;
  font-size: 0.98rem;
}

.scorecard p {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
}

.scorecard ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #d4d7f1;
}

.score-pill {
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
}

.score-mixed {
  background: rgba(106, 166, 255, 0.12);
  color: var(--signal-neutral);
}

.score-limited,
.score-fragile {
  background: rgba(255, 107, 107, 0.12);
  color: var(--signal-danger);
}

.score-varied {
  background: rgba(248, 200, 106, 0.16);
  color: var(--signal-warning);
}

/* Risk panel */

.risk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.risk-panel-inner {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.risk-panel-text p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Active nav state */

.nav-active {
  color: var(--gold) !important;
}

.nav-active::after {
  width: 80% !important;
}

/* Responsive tweaks for governance page */

@media (max-width: 980px) {
  .overview-grid,
  .scorecard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding-top: 2rem;
  }

  .page-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .overview-grid,
  .scorecard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ================================
   Security Observatory Styles
   ================================ */

.pill-alert {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.5);
  color: var(--signal-danger);
}

.security-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.sec-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.sec-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.sec-metric {
  margin: 0;
  font-size: 0.9rem;
  color: #e6e7ff;
}

.sec-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Incident categories */
.incident-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.incident-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Timeline */
.sec-timeline {
  display: grid;
  gap: 1.1rem;
}

.sec-timeline .timeline-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1rem 1.05rem;
  border: 1px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 980px) {
  .security-overview-grid,
  .incident-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .security-overview-grid,
  .incident-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ================================
   Economy Observatory Styles
   ================================ */

.pill-caution {
  background: rgba(248, 200, 106, 0.16);
  border-color: rgba(248, 200, 106, 0.55);
  color: var(--signal-warning);
}

/* Overview */
.econ-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.econ-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.econ-card h3 {
  margin: 0 0 0.4rem;
}

.econ-metric {
  color: #e6e7ff;
}

.econ-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

/* Market indicators */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.market-card {
  background: var(--bg-card);
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.market-metric {
  margin-top: 0.3rem;
  color: var(--text-muted);
}

/* Price table */
.econ-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.econ-table {
  width: 100%;
  border-collapse: collapse;
}

.econ-table th, .econ-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Responsive */
@media (max-width: 980px) {
  .econ-overview-grid,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .econ-overview-grid,
  .market-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
/* ================================
   Humanitarian Observatory Styles
   ================================ */

.hum-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.hum-card {
  background: var(--bg-card);
  padding: 1.15rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.hum-metric {
  color: #e6e7ff;
}

.hum-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

/* Displacement */
.displace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.displace-card {
  background: var(--bg-card);
  padding: 1.1rem 1.05rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

/* Access */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.3rem;
}

.access-card {
  background: var(--bg-card);
  padding: 1.1rem 1.05rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

/* Sector snapshots */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1.3rem;
}

.sector-card {
  background: var(--bg-card);
  padding: 1.05rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 980px) {
  .hum-overview-grid,
  .displace-grid,
  .access-grid,
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .hum-overview-grid,
  .displace-grid,
  .access-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .sector-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
/* ABOUT PAGE */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
}

.about-card {
  background: var(--bg-card);
  padding: 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.4rem;
}

.monitor-card {
  background: var(--bg-card);
  padding: 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.4rem;
}

.method-card {
  background: var(--bg-card);
  padding: 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.founder-panel {
  display: flex;
  gap: 1.4rem;
  background: var(--bg-card);
  padding: 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

.founder-photo {
  width: 120px;
  height: 120px;
  background: #111;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-card {
  background: var(--bg-card);
  padding: 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 980px) {
  .about-grid,
  .monitor-grid,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .founder-panel {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .about-grid,
  .monitor-grid,
  .method-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
/* ================================
   PUBLICATIONS PAGE STYLES
   ================================ */

.pub-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.3rem 0 0.6rem;
}

.pub-filter {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.pub-filter.active {
  border-color: var(--accent);
  color: var(--accent);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pub-card {
  background: var(--bg-card);
  padding: 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.pub-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.pub-category {
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.pub-category.governance { background: rgba(118,150,255,0.16); color: #8ea8ff; }
.pub-category.security { background: rgba(255,107,107,0.16); color: #ff9fa0; }
.pub-category.economy { background: rgba(248,200,106,0.16); color: #ffd78b; }
.pub-category.humanitarian { background: rgba(255,180,230,0.16); color: #ffbfe6; }

.pub-title {
  margin: 0.2rem 0 0.4rem;
}

.pub-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.pub-link {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.pub-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .pub-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .pub-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
/* ================================
   REPORT VIEWER STYLES
   ================================ */

.report-container {
  max-width: 900px;
}

.report-title {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.3rem;
}

.report-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.report-category {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.report-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.report-download {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.report-download:hover {
  background: rgba(255,255,255,0.06);
}

.report-back {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.report-back:hover {
  text-decoration: underline;
}

.pdf-viewer {
  width: 100%;
  height: 680px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* ================================
   SEARCH OVERLAY
   ================================ */

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  margin-left: 0.6rem;
  color: var(--text-muted);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: 90%;
  max-width: 600px;
  background: #111;
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}

.search-box input {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #0c0c0c;
  color: white;
}