/* assets/css/observatory.css */
/* PPRI Pakistan Data Observatory - Performance & Accessibility Stylesheet */

:root {
  --obs-primary: #073c3a;
  --obs-primary-light: #0d5c59;
  --obs-primary-soft: #e6f3f2;
  --obs-accent: #0f766e;
  --obs-accent-subtle: #d1fae5;
  --obs-dark: #0f172a;
  --obs-text: #334155;
  --obs-text-muted: #64748b;
  --obs-bg: #f8fafc;
  --obs-card-bg: #ffffff;
  --obs-border: #e2e8f0;
  --obs-border-hover: #cbd5e1;
  --obs-radius-sm: 6px;
  --obs-radius-md: 10px;
  --obs-radius-lg: 14px;
  --obs-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --obs-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* Observatory Header & Breadcrumbs */
.obs-header {
  padding: 32px 0 24px 0;
  background: linear-gradient(180deg, #f0f7f6 0%, #ffffff 100%);
  border-bottom: 1px solid var(--obs-border);
  margin-bottom: 32px;
}

.obs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--obs-text-muted);
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

.obs-breadcrumbs a {
  color: var(--obs-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.obs-breadcrumbs a:hover {
  color: var(--obs-primary);
  text-decoration: underline;
}

.obs-breadcrumbs .separator {
  color: #94a3b8;
}

.obs-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--obs-dark);
  line-height: 1.25;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.obs-subtitle {
  font-size: 1.15rem;
  color: var(--obs-text);
  line-height: 1.6;
  max-width: 860px;
  margin: 0 0 20px 0;
}

.obs-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.obs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.obs-badge-official {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.obs-badge-census {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.obs-badge-survey {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.obs-badge-period {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Stat Highlight Cards */
.obs-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.obs-stat-card {
  background: var(--obs-card-bg);
  border: 1px solid var(--obs-border);
  border-radius: var(--obs-radius-md);
  padding: 24px;
  box-shadow: var(--obs-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.obs-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--obs-shadow-hover);
  border-color: var(--obs-border-hover);
}

.obs-stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--obs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.obs-stat-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--obs-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.obs-stat-unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--obs-text-muted);
}

.obs-stat-footer {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--obs-text-muted);
  border-top: 1px dashed var(--obs-border);
}

/* Chart Container & Interactive Controls */
.obs-section {
  background: var(--obs-card-bg);
  border: 1px solid var(--obs-border);
  border-radius: var(--obs-radius-md);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--obs-shadow);
}

.obs-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.obs-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--obs-dark);
  margin: 0;
}

.obs-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.obs-btn-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: var(--obs-radius-sm);
  padding: 3px;
  border: 1px solid #e2e8f0;
}

.obs-btn-tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--obs-text);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.obs-btn-tab.active {
  background: #ffffff;
  color: var(--obs-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.obs-btn-tab:hover:not(.active) {
  color: var(--obs-dark);
}

/* SVG Chart Box */
.obs-chart-wrapper {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow-x: auto;
  padding: 12px 0;
}

.obs-svg-chart {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.obs-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.15s;
  z-index: 50;
  white-space: nowrap;
}

/* Data Table Component */
.obs-table-container {
  overflow-x: auto;
  border-radius: var(--obs-radius-sm);
  border: 1px solid var(--obs-border);
  margin-top: 16px;
}

.obs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.obs-table th {
  background: #f8fafc;
  color: var(--obs-dark);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--obs-border);
  white-space: nowrap;
  user-select: none;
}

.obs-table th.sortable {
  cursor: pointer;
}

.obs-table th.sortable:hover {
  background: #f1f5f9;
}

.obs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--obs-border);
  color: var(--obs-text);
}

.obs-table tbody tr:hover {
  background: #f8fafc;
}

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

.obs-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Source Citation Card */
.obs-source-card {
  background: #f8fafc;
  border: 1px solid var(--obs-border);
  border-left: 4px solid var(--obs-primary);
  border-radius: var(--obs-radius-sm);
  padding: 20px;
  margin-top: 28px;
}

.obs-source-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--obs-dark);
  margin: 0 0 8px 0;
}

.obs-source-text {
  font-size: 0.9rem;
  color: var(--obs-text);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.obs-source-link {
  color: var(--obs-accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.obs-source-link:hover {
  text-decoration: underline;
}

/* Action Bar: Copy Citation & Downloads */
.obs-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--obs-radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.obs-actions-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #166534;
}

.obs-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.obs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--obs-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.obs-btn-primary {
  background: var(--obs-primary);
  color: #ffffff;
}

.obs-btn-primary:hover {
  background: var(--obs-primary-light);
}

.obs-btn-outline {
  background: #ffffff;
  color: var(--obs-primary);
  border-color: var(--obs-border);
}

.obs-btn-outline:hover {
  background: #f8fafc;
  border-color: var(--obs-primary);
}

/* Related Search Query Cloud */
.obs-queries-box {
  background: #f8fafc;
  border: 1px solid var(--obs-border);
  border-radius: var(--obs-radius-md);
  padding: 24px;
  margin-top: 32px;
}

.obs-queries-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--obs-dark);
  margin: 0 0 12px 0;
}

.obs-queries-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.obs-query-chip {
  background: #ffffff;
  border: 1px solid var(--obs-border);
  color: var(--obs-text);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.obs-query-chip:hover {
  background: var(--obs-primary-soft);
  color: var(--obs-primary);
  border-color: var(--obs-primary);
}

/* ==========================================================================
   PPRI DATA CENTRE REDESIGN: HERO, SECTION BANDS, & INTERACTIVE ATLAS
   ========================================================================== */

/* Hero & Command Onboarding */
.dc-hero {
  background-color: #072e27 !important;
  background: #072e27 radial-gradient(circle at 85% 15%, rgba(168, 224, 106, 0.12) 0%, transparent 45%),
              linear-gradient(135deg, #072e27 0%, #0e443c 55%, #051d19 100%) !important;
  color: #ffffff !important;
  padding: 56px 0 48px 0;
  border-bottom: 1px solid rgba(168, 224, 106, 0.22);
  position: relative;
  overflow: hidden;
}

.dc-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.dc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 224, 106, 0.12);
  border: 1px solid rgba(168, 224, 106, 0.32);
  color: #a8e06a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.dc-hero-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  background: #a8e06a;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(168, 224, 106, 0.7);
  animation: dc-pulse 2s infinite;
}

@keyframes dc-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.dc-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px 0;
  letter-spacing: -0.025em;
}

.dc-hero-title span {
  color: #a8e06a;
}

.dc-hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #e2f0e8;
  max-width: 820px;
  margin: 0 0 28px 0;
}

/* Hero KPI Stat Cards */
.dc-hero .phase6-dashboard .p6-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(168, 224, 106, 0.22);
  border-radius: 8px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  color: #ffffff;
}

.dc-hero .phase6-dashboard .p6-stat strong {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dc-hero .phase6-dashboard .p6-stat span {
  color: #d1fae5;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
}

/* Command Bar Search in Hero */
.dc-command-wrap {
  position: relative;
  max-width: 760px;
  margin-bottom: 28px;
  z-index: 10;
}

.dc-command-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  border: 2px solid rgba(168, 224, 106, 0.35);
  border-radius: 12px;
  background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230f766e" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 18px center;
  outline: none;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}

.dc-command-input:focus {
  border-color: #a8e06a;
  box-shadow: 0 0 0 4px rgba(168, 224, 106, 0.3), 0 12px 30px -5px rgba(0, 0, 0, 0.4);
}

.dc-command-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.dc-command-chips span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1fae5;
}

.dc-command-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.dc-command-chip:hover {
  background: rgba(168, 224, 106, 0.22);
  border-color: #a8e06a;
  color: #ffffff;
}

/* 4 Onboarding Pathway Cards */
.dc-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 992px) {
  .dc-onboarding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .dc-onboarding-grid {
    grid-template-columns: 1fr;
  }
}

.dc-onboard-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 20px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dc-onboard-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: rgba(168, 224, 106, 0.55);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35);
}

.dc-onboard-num {
  font-family: monospace;
  font-size: 0.74rem;
  font-weight: 800;
  color: #a8e06a;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dc-onboard-num .icon {
  font-size: 1.15rem;
}

.dc-onboard-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dc-onboard-desc {
  font-size: 0.84rem;
  color: #d1fae5;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   DISTINCT SECTION BANDS & NUMBERED HEADERS
   ========================================================================== */

.dc-band {
  padding: 60px 0;
  position: relative;
}

.dc-band-white {
  background: #ffffff;
  border-bottom: 1px solid var(--obs-border);
}

.dc-band-slate {
  background: #f8fafc;
  border-bottom: 1px solid var(--obs-border);
}

.dc-band-soft {
  background: #f0f7f6;
  border-bottom: 1px solid var(--obs-border);
}

.dc-band-dark {
  background: #092e2b;
  color: #ffffff;
  border-bottom: 1px solid #062220;
}

.dc-sec-header {
  margin-bottom: 36px;
}

.dc-sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.dc-eyebrow-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.dc-eyebrow-teal {
  background: #e6f4ea;
  color: #0d5c59;
  border: 1px solid #b7e1cd;
}

.dc-eyebrow-amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.dc-eyebrow-dark {
  background: rgba(168, 224, 106, 0.14);
  color: #a8e06a;
  border: 1px solid rgba(168, 224, 106, 0.32);
}

.dc-sec-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--obs-dark);
  line-height: 1.25;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.dc-band-dark .dc-sec-title {
  color: #ffffff;
}

.dc-sec-lead {
  font-size: 1.05rem;
  color: var(--obs-text);
  line-height: 1.6;
  max-width: 820px;
  margin: 0;
}

.dc-band-dark .dc-sec-lead {
  color: #e2f0e8;
}

.dc-band-dark .card,
.dc-band-dark .card-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dc-band-dark .card:hover,
.dc-band-dark .card-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(168, 224, 106, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.dc-band-dark .card-meta {
  color: #e2c275;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.dc-band-dark .card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.dc-band-dark .card p {
  color: #d1fae5;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   SPLIT INTERACTIVE DOMAIN ATLAS
   ========================================================================== */

.atlas-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .atlas-split {
    grid-template-columns: 1fr;
  }
}

.atlas-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: #ffffff;
  border: 1.5px solid var(--obs-border);
  border-radius: var(--obs-radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  color: var(--obs-text);
}

.atlas-item:hover {
  border-color: var(--obs-accent);
  transform: translateX(3px);
  background: #f0f7f6;
}

.atlas-item.active {
  background: #073c3a;
  color: #ffffff;
  border-color: #073c3a;
  box-shadow: 0 8px 16px -2px rgba(7, 60, 58, 0.25);
  transform: translateX(4px);
}

.atlas-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.atlas-item-icon {
  font-size: 1.35rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.atlas-item.active .atlas-item-icon {
  background: rgba(255, 255, 255, 0.18);
}

.atlas-item-info {
  min-width: 0;
}

.atlas-item-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-item.active .atlas-item-title {
  color: #ffffff;
}

.atlas-item-sub {
  font-size: 0.75rem;
  color: var(--obs-text-muted);
  margin-top: 2px;
}

.atlas-item.active .atlas-item-sub {
  color: #e2f0e8;
}

.atlas-item-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
}

.atlas-item.active .atlas-item-badge {
  background: rgba(168, 224, 106, 0.22);
  color: #c8ff54;
  border: 1px solid rgba(168, 224, 106, 0.35);
}

.atlas-item.highlight {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  color: #92400e !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

/* Atlas Showcase Stage */
.atlas-stage {
  background: #ffffff;
  border: 1.5px solid var(--obs-border);
  border-radius: var(--obs-radius-lg);
  padding: 32px;
  box-shadow: var(--obs-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.atlas-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--obs-border);
  margin-bottom: 24px;
}

.atlas-stage-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.atlas-stage-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7f6;
  border: 1px solid var(--obs-border);
  border-radius: 12px;
}

.atlas-stage-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--obs-dark);
  margin: 0;
  line-height: 1.2;
}

.atlas-headline-box {
  background: #f8fafc;
  border: 1px solid var(--obs-border);
  border-left: 4px solid var(--obs-primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.atlas-headline-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--obs-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.atlas-headline-sub {
  font-size: 0.92rem;
  color: var(--obs-text-muted);
  font-weight: 500;
}

.atlas-chart-card {
  background: #f8fafc;
  border: 1px solid var(--obs-border);
  border-radius: var(--obs-radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.atlas-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.atlas-chart-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--obs-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.atlas-topics-wrap {
  margin-bottom: 24px;
}

.atlas-topics-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--obs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.atlas-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.atlas-topic-pill {
  background: #ffffff;
  border: 1px solid var(--obs-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--obs-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.atlas-topic-pill::before {
  content: "•";
  color: var(--obs-accent);
  font-weight: bold;
}

.atlas-policy-card {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--obs-radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.atlas-policy-left strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #166534;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.atlas-policy-left a {
  font-size: 0.98rem;
  font-weight: 700;
  color: #15803d;
  text-decoration: underline;
}

.atlas-actions-bar {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--obs-border);
}

/* ==========================================================================
   SIMULATORS & DISTRICT EXPLORER TABS POLISH
   ========================================================================== */

.dc-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--obs-border);
  padding-bottom: 12px;
}

.dc-tab-btn {
  background: #ffffff;
  border: 1px solid var(--obs-border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--obs-text);
  cursor: pointer;
  transition: all 0.15s;
}

.dc-tab-btn:hover:not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.dc-tab-btn.active {
  background: var(--obs-primary);
  color: #ffffff;
  border-color: var(--obs-primary);
  box-shadow: 0 4px 10px rgba(7, 60, 58, 0.2);
}

@media (max-width: 768px) {
  .dc-hero-title {
    font-size: 2.1rem;
  }
  .dc-sec-title {
    font-size: 1.7rem;
  }
  .atlas-stage {
    padding: 20px;
  }
}

