:root {
  --portal-shell: #ffffff;
  --portal-border: #dfe5ec;
  --portal-bg: #f5f7fa;
  --portal-text: #243447;
  --portal-muted: #6c7a89;
  --portal-primary: #0b5cab;
  --portal-sidebar-navy: #001f3f;
}

html,
body {
  font-size: 13px;
  color: var(--portal-text);
}

body {
  background: var(--portal-bg);
}

.main-header,
.main-footer,
.main-sidebar {
  background: var(--portal-shell) !important;
}

.main-header {
  border-bottom: 1px solid var(--portal-border);
}

.main-footer {
  border-top: 1px solid var(--portal-border);
  color: var(--portal-muted);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.main-sidebar {
  border-right: 1px solid var(--portal-border);
}

.brand-link {
  border-bottom: 1px solid var(--portal-border) !important;
  min-height: 3.5rem;
  padding: 0.72rem 0.8rem;
}

.brand-link .brand-image {
  background: transparent;
  border-radius: 0;
  display: inline-block;
  height: 26px;
  margin-left: 0.15rem;
  margin-right: 0.55rem;
  margin-top: 0.18rem;
  object-fit: contain;
  width: 26px;
}

.brand-text {
  color: var(--portal-sidebar-navy);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.content-wrapper {
  background: var(--portal-bg);
}

.content-header {
  padding: 0.75rem 0.5rem 0.35rem;
}

.content-header h1 {
  color: #172b4d;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.breadcrumb {
  font-size: 0.78rem;
}

.navbar-nav .nav-link {
  font-size: 0.82rem;
}

.main-header .navbar-nav .nav-link.active {
  background: #e7f1fb;
  border-radius: 0.25rem;
  color: #124f86;
}

.sidebar {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.user-panel {
  border-bottom: 1px solid var(--portal-border) !important;
}

.portal-user-icon {
  align-items: center;
  background: #eef5fc;
  border-radius: 50%;
  color: var(--portal-sidebar-navy);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-sidebar .nav-link {
  border-radius: 0.25rem;
  color: var(--portal-sidebar-navy) !important;
  margin-bottom: 0.08rem;
  padding: 0.43rem 0.58rem;
}

.main-sidebar .brand-link,
.main-sidebar .brand-link:hover,
.main-sidebar .user-panel a,
.main-sidebar .user-panel a:hover,
.main-sidebar .user-panel .text-muted,
.main-sidebar .nav-sidebar .nav-link,
.main-sidebar .nav-sidebar .nav-link:hover,
.main-sidebar .nav-sidebar .nav-link.active,
.main-sidebar .nav-sidebar .nav-link p,
.main-sidebar .nav-sidebar .nav-link i,
.main-sidebar .nav-sidebar .nav-link small {
  color: var(--portal-sidebar-navy) !important;
}

.nav-sidebar .nav-link p {
  font-size: 0.82rem;
}

.nav-sidebar .nav-icon {
  font-size: 0.9rem;
  margin-right: 0.32rem;
  width: 1.25rem;
}

.nav-treeview > .nav-item > .nav-link {
  padding-left: 0.8rem;
}

.nav-treeview .nav-treeview > .nav-item > .nav-link {
  padding-left: 1rem;
}

.nav-sidebar .nav-link.active {
  background: #e7f1fb !important;
  color: var(--portal-sidebar-navy) !important;
}

.nav-sidebar .nav-link:hover {
  background: #f0f4f8;
  color: var(--portal-sidebar-navy) !important;
}

.nav-header hr {
  border-top-color: var(--portal-border);
}

.form-control-sidebar,
.btn-sidebar {
  background: #f7f9fb !important;
  border-color: var(--portal-border) !important;
  color: var(--portal-sidebar-navy) !important;
  font-size: 0.8rem;
}

.form-control-sidebar::placeholder {
  color: var(--portal-sidebar-navy);
  opacity: 0.65;
}

.portal-page-card {
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
  min-height: calc(100vh - 12.6rem);
}

.portal-page-icon {
  align-items: center;
  background: #eef5fc;
  border: 1px solid #d7e8f8;
  border-radius: 50%;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 1.25rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 46px;
}

.portal-page-title {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.portal-page-note {
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.corruption-section {
  padding-bottom: 0.75rem;
}

.corruption-hero,
.corruption-panel,
.corruption-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.corruption-hero {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.corruption-hero-compact {
  border-left: 4px solid #0b5cab;
}

.corruption-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.corruption-hero h2,
.corruption-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.corruption-hero p,
.corruption-panel p {
  color: var(--portal-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.corruption-hero-icon,
.corruption-card span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.corruption-hero-icon {
  background: #eef5fc;
  color: var(--portal-primary);
  font-size: 1.45rem;
  height: 52px;
  width: 52px;
}

.corruption-hero-icon-blue {
  background: #e7f1fb;
  color: #124f86;
}

.corruption-hero-icon-red {
  background: #fdecec;
  color: #b42318;
}

.corruption-card {
  color: inherit;
  display: block;
  height: 100%;
  min-height: 190px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.corruption-card:hover {
  border-color: #b8c7d8;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.corruption-card span {
  height: 38px;
  margin-bottom: 0.9rem;
  width: 38px;
}

.corruption-card-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.corruption-card-red span {
  background: #fdecec;
  color: #b42318;
}

.corruption-card strong,
.corruption-card small,
.corruption-card em {
  display: block;
}

.corruption-card strong {
  color: #172b4d;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.corruption-card small {
  color: var(--portal-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.corruption-card em {
  color: #124f86;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 0.9rem;
}

.corruption-panel {
  padding: 1rem;
}

.corruption-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.corruption-focus-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.corruption-focus-list li {
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #52616f;
  display: flex;
  font-size: 0.82rem;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.corruption-focus-list i {
  color: #2f855a;
}

.local-lens {
  padding-bottom: 0.75rem;
}

.local-lens-hero,
.local-lens-panel,
.local-lens-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.local-lens-hero {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.local-lens-hero-compact {
  border-left: 4px solid var(--portal-primary);
}

.local-lens-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.local-lens-hero h2,
.local-lens-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.local-lens-hero p,
.local-lens-panel p {
  color: var(--portal-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.local-lens-hero-icon,
.local-lens-card span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.local-lens-hero-icon {
  background: #eef5fc;
  color: var(--portal-primary);
  font-size: 1.45rem;
  height: 52px;
  width: 52px;
}

.local-lens-hero-icon-green {
  background: #e6f4ea;
  color: #2f855a;
}

.local-lens-hero-icon-blue {
  background: #e7f1fb;
  color: #124f86;
}

.local-lens-hero-icon-warning {
  background: #fff7df;
  color: #b7791f;
}

.local-lens-card {
  color: inherit;
  display: block;
  height: 100%;
  min-height: 210px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.local-lens-card:hover {
  border-color: #b8c7d8;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.local-lens-card span {
  height: 38px;
  margin-bottom: 0.9rem;
  width: 38px;
}

.local-lens-card-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.local-lens-card-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.local-lens-card-warning span {
  background: #fff7df;
  color: #b7791f;
}

.local-lens-card strong,
.local-lens-card small,
.local-lens-card em {
  display: block;
}

.local-lens-card strong {
  color: #172b4d;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.local-lens-card small {
  color: var(--portal-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.local-lens-card em {
  color: #124f86;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 0.9rem;
}

.local-lens-panel {
  padding: 1rem;
}

.local-lens-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.local-lens-focus-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.local-lens-focus-list li {
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #52616f;
  display: flex;
  font-size: 0.82rem;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.local-lens-focus-list i {
  color: #2f855a;
}

.decent-watch {
  padding-bottom: 0.75rem;
}

.decent-hero,
.decent-panel,
.decent-stat,
.decent-source-panel,
.decent-district-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.decent-hero {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.decent-hero-copy {
  min-width: 0;
}

.decent-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.decent-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.decent-hero h2,
.decent-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.decent-hero p,
.decent-panel p {
  color: #52616f;
  line-height: 1.65;
  margin-bottom: 0;
}

.decent-source-note {
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #465a69;
  display: flex;
  font-size: 0.8rem;
  gap: 0.55rem;
  line-height: 1.55;
  margin-top: 0.9rem;
  padding: 0.7rem;
}

.decent-source-note i {
  color: #2f855a;
  margin-top: 0.2rem;
}

.decent-hero-strip {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.decent-hero-strip span {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  min-height: 76px;
  padding: 0.7rem;
}

.decent-hero-strip strong,
.decent-hero-strip small {
  display: block;
}

.decent-hero-strip strong {
  color: #172b4d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.decent-hero-strip small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.decent-source-panel {
  background: #f7fafc;
  border-left: 4px solid #124f86;
  padding: 0.95rem;
}

.decent-source-panel > span,
.decent-stat span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
}

.decent-source-panel > span {
  background: #e7f1fb;
  color: #124f86;
  height: 38px;
  margin-bottom: 0.75rem;
  width: 38px;
}

.decent-source-panel > strong,
.decent-source-panel > small {
  display: block;
}

.decent-source-panel > strong {
  color: #172b4d;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.decent-source-panel > small {
  color: var(--portal-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.decent-source-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.decent-source-grid div {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  padding: 0.65rem 0.75rem;
}

.decent-source-grid strong,
.decent-source-grid small {
  display: block;
}

.decent-source-grid strong {
  color: #172b4d;
  font-size: 0.84rem;
  line-height: 1.35;
}

.decent-source-grid small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 0.18rem;
}

.decent-stat {
  min-height: 118px;
  padding: 1rem;
}

.decent-stat span {
  height: 34px;
  margin-bottom: 0.8rem;
  width: 34px;
}

.decent-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.decent-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.decent-stat-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.decent-stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.decent-stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.decent-stat-red span {
  background: #fff0f0;
  color: #9b2c2c;
}

.decent-panel {
  padding: 1rem;
}

.decent-section-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.decent-section-head h3 {
  margin-bottom: 0;
}

.decent-pill {
  background: #f0f4f8;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: #52616f;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.36rem 0.55rem;
}

.decent-map {
  background: #eef3f7;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  height: 440px;
  overflow: hidden;
  position: relative;
}

.decent-map-small {
  height: 360px;
}

.decent-map-empty {
  align-items: center;
  color: var(--portal-muted);
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.decent-chart {
  height: 320px;
  min-height: 320px;
  position: relative;
}

.decent-chart-compact {
  height: 300px;
  min-height: 300px;
}

.decent-chart canvas {
  height: 100% !important;
  width: 100% !important;
}

.decent-rank-list,
.decent-focus-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.decent-rank-item,
.decent-focus-item {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  padding: 0.75rem;
}

.decent-rank-item {
  display: grid;
  gap: 0.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.decent-rank-item strong,
.decent-rank-item span,
.decent-rank-item small,
.decent-focus-item strong,
.decent-focus-item span,
.decent-focus-item small {
  display: block;
}

.decent-rank-item strong,
.decent-focus-item strong {
  color: #172b4d;
  font-size: 0.84rem;
  line-height: 1.35;
}

.decent-rank-item span,
.decent-focus-item span {
  color: #124f86;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.decent-rank-item small,
.decent-focus-item small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  grid-column: 1 / -1;
  line-height: 1.45;
}

.decent-district-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.decent-district-card {
  min-height: 150px;
  padding: 0.85rem;
}

.decent-card-top {
  align-items: flex-start;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.decent-card-top strong {
  color: #172b4d;
  font-size: 0.92rem;
  line-height: 1.35;
}

.decent-card-score {
  color: #124f86;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.85rem 0 0.65rem;
}

.decent-card-meta {
  display: grid;
  gap: 0.28rem;
}

.decent-card-meta span {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.decent-status-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.48rem;
  white-space: nowrap;
}

.decent-status-on-track {
  background: #e6f4ea;
  color: #2f855a;
}

.decent-status-moving {
  background: #e7f1fb;
  color: #124f86;
}

.decent-status-watch {
  background: #fff7df;
  color: #8a5a17;
}

.decent-status-behind {
  background: #fff0f0;
  color: #9b2c2c;
}

.decent-status-no-target {
  background: #f0f4f8;
  color: #52616f;
}

.decent-focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.decent-focus-item {
  position: relative;
}

.decent-focus-item span {
  margin: 0.45rem 0 0.2rem;
}

.decent-focus-item em {
  margin-top: 0.55rem;
}

.decent-observation-cell {
  display: grid;
  gap: 0.18rem;
  min-width: 260px;
}

.decent-observation-cell strong {
  color: #172b4d;
  font-size: 0.8rem;
  line-height: 1.35;
}

.decent-observation-cell small {
  color: #52616f;
  font-size: 0.76rem;
  line-height: 1.45;
}

.decent-map-popup strong,
.decent-map-popup span {
  display: block;
}

.decent-map-popup strong {
  color: #172b4d;
  margin-bottom: 0.25rem;
}

.decent-map-popup span {
  color: #52616f;
  font-size: 0.78rem;
}

.decent-map-legend {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: 0 8px 24px rgba(23, 43, 77, 0.14);
  color: #52616f;
  font-size: 0.74rem;
  line-height: 1.35;
  padding: 0.65rem;
}

.decent-map-legend strong,
.decent-map-legend span {
  display: block;
}

.decent-map-legend strong {
  color: #172b4d;
  margin-bottom: 0.4rem;
}

.decent-map-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 0.35rem;
  width: 10px;
}

.decent-watch table.dataTable {
  border-color: var(--portal-border);
}

@media (max-width: 991.98px) {
  .decent-hero {
    grid-template-columns: 1fr;
  }

  .decent-map {
    height: 380px;
  }

  .decent-map-small {
    height: 340px;
  }

  .decent-chart,
  .decent-chart-compact {
    height: 300px;
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .decent-hero,
  .decent-panel,
  .decent-stat,
  .decent-source-panel,
  .decent-district-card {
    padding: 0.85rem;
  }

  .decent-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .decent-hero-strip {
    grid-template-columns: 1fr;
  }

  .decent-map,
  .decent-map-small {
    height: 320px;
  }

  .decent-chart,
  .decent-chart-compact {
    height: 270px;
    min-height: 270px;
  }
}

.election-results {
  margin-top: 0.25rem;
}

.election-results-panel {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
  padding: 1rem;
}

.election-results-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.election-results-panel-head h3 {
  color: #172b4d;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.election-results-panel-head p {
  color: var(--portal-muted);
  line-height: 1.55;
  margin: 0;
}

.election-results-toolbar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.election-results-toolbar label {
  color: #52616f;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0;
}

.election-results-toolbar select {
  min-width: 92px;
}

.election-results-stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.election-results-stat {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  min-height: 138px;
  padding: 0.85rem;
}

.election-results-stat span {
  align-items: center;
  background: #e7f1fb;
  border-radius: 50%;
  color: #124f86;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 34px;
}

.election-results-stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.election-results-stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.election-results-stat-red span {
  background: #fdecec;
  color: #c53030;
}

.election-results-stat strong,
.election-results-stat small,
.election-results-stat em {
  display: block;
}

.election-results-stat strong {
  color: #172b4d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}

.election-results-stat small {
  color: #243447;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.election-results-stat em {
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.4;
}

.election-results-chart {
  height: 340px;
  position: relative;
}

.election-results-chart-small {
  height: 300px;
}

.election-results-chart canvas {
  height: 100% !important;
  width: 100% !important;
}

.election-results-map {
  background: #eef3f7;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  height: 430px;
  overflow: hidden;
  position: relative;
}

.election-results-map-message {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.election-results-map-message > div {
  max-width: 340px;
}

.election-results-map-message i {
  color: #124f86;
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.election-results-map-message strong,
.election-results-map-message span {
  display: block;
}

.election-results-map-message strong {
  color: #172b4d;
  margin-bottom: 0.35rem;
}

.election-results-map-message span {
  color: var(--portal-muted);
}

.election-results-popup strong,
.election-results-popup span {
  display: block;
}

.election-results-popup strong {
  color: #172b4d;
  margin-bottom: 0.25rem;
}

.election-results-popup span {
  color: #52616f;
  font-size: 0.78rem;
}

.election-results-table-wrap {
  max-height: 430px;
  overflow: auto;
}

.election-results-table {
  margin-bottom: 0;
}

.election-results-table th {
  background: #f7fafc;
  color: #172b4d;
  font-size: 0.76rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.election-results-table td {
  color: #52616f;
  font-size: 0.78rem;
  vertical-align: middle;
}

.election-results-source-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.election-results-source-grid a {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  color: inherit;
  display: block;
  min-height: 112px;
  padding: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.election-results-source-grid a:hover {
  border-color: #b8c7d8;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.election-results-source-grid strong,
.election-results-source-grid small {
  display: block;
}

.election-results-source-grid strong {
  color: #172b4d;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.election-results-source-grid small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.cdf-watch {
  padding-bottom: 0.75rem;
}

.cdf-hero,
.cdf-panel,
.cdf-stat,
.cdf-source-panel {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.cdf-hero {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.cdf-hero-copy {
  min-width: 0;
}

.cdf-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cdf-kicker {
  color: #0b7285;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.cdf-hero h2,
.cdf-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.cdf-hero p,
.cdf-panel p {
  color: #52616f;
  line-height: 1.65;
  margin-bottom: 0;
}

.cdf-source-note {
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #465a69;
  display: flex;
  font-size: 0.8rem;
  gap: 0.55rem;
  line-height: 1.55;
  margin-top: 0.9rem;
  padding: 0.7rem;
}

.cdf-source-note i {
  color: #2f855a;
  margin-top: 0.2rem;
}

.cdf-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.cdf-source-panel {
  background: #f7fafc;
  border-left: 4px solid #2f855a;
  padding: 0.95rem;
}

.cdf-source-panel > span,
.cdf-stat span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
}

.cdf-source-panel > span {
  background: #e6f4ea;
  color: #2f855a;
  height: 38px;
  margin-bottom: 0.75rem;
  width: 38px;
}

.cdf-source-panel > strong,
.cdf-source-panel > small {
  display: block;
}

.cdf-source-panel > strong {
  color: #172b4d;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.cdf-source-panel > small {
  color: var(--portal-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cdf-source-links,
.cdf-report-grid {
  display: grid;
  gap: 0.55rem;
}

.cdf-source-links {
  margin-top: 0.8rem;
}

.cdf-source-links a,
.cdf-report-grid a {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: inherit;
  display: block;
  padding: 0.65rem 0.75rem;
}

.cdf-source-links a:hover,
.cdf-report-grid a:hover {
  border-color: #b8c7d8;
  color: #124f86;
  text-decoration: none;
}

.cdf-source-links strong,
.cdf-source-links small,
.cdf-report-grid strong,
.cdf-report-grid span,
.cdf-report-grid small {
  display: block;
}

.cdf-source-links strong,
.cdf-report-grid strong {
  color: #172b4d;
  font-size: 0.84rem;
  line-height: 1.35;
}

.cdf-source-links small,
.cdf-report-grid small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 0.18rem;
}

.cdf-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 0.85rem;
}

.cdf-report-grid span {
  color: #0b7285;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.cdf-stat {
  min-height: 118px;
  padding: 1rem;
}

.cdf-stat span {
  height: 34px;
  margin-bottom: 0.8rem;
  width: 34px;
}

.cdf-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.cdf-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.cdf-stat-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.cdf-stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.cdf-stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.cdf-stat-red span {
  background: #fff0f0;
  color: #9b2c2c;
}

.cdf-panel {
  padding: 1rem;
}

.cdf-section-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.cdf-section-head h3 {
  margin-bottom: 0;
}

.cdf-pill {
  background: #f0f4f8;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: #52616f;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.36rem 0.55rem;
}

.cdf-chart {
  height: 290px;
  min-height: 290px;
  position: relative;
}

.cdf-chart-wide {
  height: 330px;
  min-height: 330px;
}

.cdf-chart-compact {
  height: 330px;
  min-height: 330px;
}

.cdf-panel-note {
  background: #f7fafc;
  border-left: 3px solid #0b7285;
  color: #52616f;
  font-size: 0.82rem;
  margin: 0.8rem 0 1rem;
  padding: 0.7rem 0.85rem;
}

.cdf-map-head {
  align-items: center;
}

.cdf-map-toolbar {
  min-width: 118px;
}

.cdf-map {
  background: #eef2f7;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  height: 460px;
  overflow: hidden;
  width: 100%;
}

.cdf-map-empty {
  align-items: center;
  color: var(--portal-muted);
  display: flex;
  font-size: 0.9rem;
  height: 100%;
  justify-content: center;
  text-align: center;
}

.cdf-map-legend {
  align-items: center;
  color: #52616f;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 0.5rem 0.85rem;
  margin-top: 0.7rem;
}

.cdf-map-legend span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.cdf-swatch {
  border: 1px solid rgba(23, 43, 77, 0.18);
  border-radius: 3px;
  display: inline-block;
  height: 0.75rem;
  width: 0.75rem;
}

.cdf-swatch-green {
  background: #2f855a;
}

.cdf-swatch-blue {
  background: #124f86;
}

.cdf-swatch-gold {
  background: #b7791f;
}

.cdf-swatch-red {
  background: #9b2c2c;
}

.cdf-swatch-muted {
  background: #cbd5e0;
}

.cdf-utilisation-popup {
  color: #172b4d;
  display: grid;
  gap: 0.35rem;
  min-width: 210px;
}

.cdf-utilisation-popup strong {
  font-size: 0.95rem;
}

.cdf-utilisation-popup span,
.cdf-utilisation-popup small {
  color: #52616f;
}

.cdf-utilisation-popup dl {
  display: grid;
  gap: 0.2rem 0.75rem;
  grid-template-columns: auto 1fr;
  margin: 0.25rem 0;
}

.cdf-utilisation-popup dt {
  color: #52616f;
  font-weight: 600;
}

.cdf-utilisation-popup dd {
  font-weight: 700;
  margin: 0;
}

.cdf-utilisation-popup a {
  color: #124f86;
  font-weight: 700;
}

.cdf-detail-map {
  height: 360px;
}

.cdf-detail-balance {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 6px;
  margin: 0.85rem 0;
  padding: 1rem;
}

.cdf-detail-balance strong {
  color: #172b4d;
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.cdf-detail-balance span {
  color: #52616f;
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cdf-overall-list {
  display: grid;
}

.cdf-overall-list article {
  border-top: 1px solid var(--portal-border);
  display: grid;
  gap: 0.18rem;
  grid-template-columns: auto 1fr;
  padding: 0.85rem 0;
}

.cdf-overall-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.cdf-overall-list span {
  color: #0b7285;
  font-size: 0.78rem;
  font-weight: 800;
  grid-row: span 3;
  min-width: 3.2rem;
  text-transform: uppercase;
}

.cdf-overall-list strong {
  color: #172b4d;
  font-size: 1.45rem;
  line-height: 1;
}

.cdf-overall-list small,
.cdf-overall-list em {
  color: #52616f;
  font-size: 0.78rem;
  font-style: normal;
}

.cdf-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.48rem;
}

.cdf-badge-blue {
  background: #e7f1fb;
  color: #124f86;
}

.cdf-badge-green {
  background: #e6f4ea;
  color: #2f855a;
}

.cdf-badge-gold {
  background: #fff7df;
  color: #8a5a17;
}

.cdf-badge-red {
  background: #fff0f0;
  color: #9b2c2c;
}

.cdf-badge-purple {
  background: #f0ebfa;
  color: #553c9a;
}

.cdf-badge-teal {
  background: #e6fffb;
  color: #0b7285;
}

.cdf-badge-sky {
  background: #e6f7ff;
  color: #1c5d99;
}

.cdf-badge-muted {
  background: #f0f4f8;
  color: #52616f;
}

.cdf-observation-cell {
  display: grid;
  gap: 0.18rem;
  min-width: 260px;
}

.cdf-observation-cell strong {
  color: #172b4d;
  font-size: 0.8rem;
  line-height: 1.35;
}

.cdf-observation-cell strong a {
  color: #124f86;
}

.cdf-observation-cell span,
.cdf-observation-cell small {
  color: #52616f;
  font-size: 0.76rem;
  line-height: 1.45;
}

.cdf-watch .card-header,
.cdf-watch table.dataTable {
  border-color: var(--portal-border);
}

@media (max-width: 991.98px) {
  .election-results-stat-grid,
  .election-results-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .election-results-chart,
  .election-results-chart-small {
    height: 300px;
  }

  .election-results-map {
    height: 380px;
  }

  .cdf-hero {
    grid-template-columns: 1fr;
  }

  .cdf-chart,
  .cdf-chart-wide,
  .cdf-chart-compact {
    height: 300px;
    min-height: 300px;
  }

  .cdf-map {
    height: 380px;
  }
}

@media (max-width: 575.98px) {
  .election-results-panel,
  .election-results-stat {
    padding: 0.85rem;
  }

  .election-results-panel-head {
    flex-direction: column;
  }

  .election-results-toolbar {
    width: 100%;
  }

  .election-results-toolbar select {
    flex: 1 1 auto;
  }

  .election-results-stat-grid,
  .election-results-source-grid {
    grid-template-columns: 1fr;
  }

  .election-results-chart,
  .election-results-chart-small {
    height: 270px;
  }

  .election-results-map {
    height: 320px;
  }

  .cdf-hero,
  .cdf-panel,
  .cdf-stat,
  .cdf-source-panel {
    padding: 0.85rem;
  }

  .cdf-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cdf-downloads .btn {
    width: 100%;
  }

  .cdf-chart,
  .cdf-chart-wide,
  .cdf-chart-compact {
    height: 260px;
    min-height: 260px;
  }

  .cdf-map-toolbar,
  .cdf-map-toolbar select {
    width: 100%;
  }

  .cdf-map {
    height: 320px;
  }

  .cdf-map-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .cdf-overall-list article {
    grid-template-columns: 1fr;
  }

  .cdf-overall-list span {
    grid-row: auto;
  }
}

.datasets-section {
  padding-bottom: 0.75rem;
}

.datasets-hero,
.datasets-panel,
.datasets-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.datasets-hero {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.datasets-hero-compact {
  border-left: 4px solid var(--portal-primary);
}

.datasets-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.datasets-hero h2,
.datasets-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.datasets-hero p,
.datasets-panel p {
  color: var(--portal-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.datasets-hero-icon,
.datasets-card span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.datasets-hero-icon {
  background: #eef5fc;
  color: var(--portal-primary);
  font-size: 1.45rem;
  height: 52px;
  width: 52px;
}

.datasets-hero-icon-blue {
  background: #e7f1fb;
  color: #124f86;
}

.datasets-hero-icon-green {
  background: #e6f4ea;
  color: #2f855a;
}

.datasets-hero-icon-warning {
  background: #fff7df;
  color: #b7791f;
}

.datasets-card {
  color: inherit;
  display: block;
  height: 100%;
  min-height: 210px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.datasets-card:hover {
  border-color: #b8c7d8;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.datasets-card span {
  height: 38px;
  margin-bottom: 0.9rem;
  width: 38px;
}

.datasets-card-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.datasets-card-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.datasets-card-warning span {
  background: #fff7df;
  color: #b7791f;
}

.datasets-card strong,
.datasets-card small,
.datasets-card em {
  display: block;
}

.datasets-card strong {
  color: #172b4d;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.datasets-card small {
  color: var(--portal-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.datasets-card em {
  color: #124f86;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 0.9rem;
}

.datasets-panel {
  padding: 1rem;
}

.datasets-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.datasets-focus-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.datasets-focus-list li {
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #52616f;
  display: flex;
  font-size: 0.82rem;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.datasets-focus-list i {
  color: #2f855a;
}

.civic-space-report {
  padding-bottom: 0.75rem;
}

.civic-space-hero,
.civic-space-panel,
.civic-space-overview-card,
.civic-space-stat,
.civic-space-lens {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.civic-space-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.civic-space-hero-copy {
  min-width: 0;
}

.civic-space-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.civic-space-kicker {
  color: #9b2c2c;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.civic-space-hero h2,
.civic-space-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.civic-space-hero p,
.civic-space-panel p {
  color: #52616f;
  line-height: 1.65;
  margin-bottom: 0;
}

.civic-space-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.civic-space-hero-overview {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
}

.civic-space-overview-card {
  align-items: flex-start;
  color: inherit;
  display: flex;
  gap: 0.85rem;
  height: 100%;
  min-height: 170px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.civic-space-overview-card:hover {
  border-color: #b8c7d8;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.civic-space-overview-card > span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.civic-space-overview-card-report > span {
  background: #fff0f0;
  color: #9b2c2c;
}

.civic-space-overview-card-surveys > span {
  background: #e6f4ea;
  color: #2f855a;
}

.civic-space-overview-card strong,
.civic-space-overview-card small,
.civic-space-overview-card em {
  display: block;
}

.civic-space-overview-card strong {
  color: #172b4d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.civic-space-overview-card small {
  color: #52616f;
  font-size: 0.8rem;
  line-height: 1.55;
}

.civic-space-overview-card em {
  color: #124f86;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 0.8rem;
}

.civic-space-report-cover {
  align-self: center;
  background: #080468;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  display: block;
  justify-self: end;
  max-width: 280px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.civic-space-report-cover:hover {
  border-color: #b8c7d8;
  transform: translateY(-1px);
}

.civic-space-report-cover img {
  display: block;
  height: auto;
  width: 100%;
}

.civic-space-hero-panel {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-left: 4px solid #9b2c2c;
  border-radius: 0.35rem;
  padding: 0.9rem;
}

.civic-space-hero-panel span,
.civic-space-stat span,
.civic-space-lens > span,
.civic-space-evidence-list span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
}

.civic-space-hero-panel span {
  background: #fff0f0;
  color: #9b2c2c;
  height: 38px;
  margin-bottom: 0.75rem;
  width: 38px;
}

.civic-space-hero-panel strong {
  color: #172b4d;
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.civic-space-hero-panel p {
  color: #52616f;
  font-size: 0.8rem;
  line-height: 1.58;
}

.civic-space-stat {
  min-height: 116px;
  padding: 1rem;
}

.civic-space-stat span {
  height: 34px;
  margin-bottom: 0.8rem;
  width: 34px;
}

.civic-space-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.civic-space-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.civic-space-stat-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.civic-space-stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.civic-space-stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.civic-space-stat-red span {
  background: #fff0f0;
  color: #9b2c2c;
}

.civic-space-panel {
  padding: 1rem;
}

.civic-space-panel-lead {
  border-left: 4px solid #124f86;
}

.civic-space-question-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.civic-space-question-grid > div {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  padding: 0.75rem;
}

.civic-space-question-grid i {
  color: #2f855a;
  margin-bottom: 0.55rem;
}

.civic-space-question-grid strong,
.civic-space-question-grid small {
  display: block;
}

.civic-space-question-grid strong {
  color: #172b4d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.civic-space-question-grid small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.civic-space-link-list {
  display: grid;
  gap: 0.5rem;
}

.civic-space-link-list a {
  align-items: center;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #334e68;
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.55rem;
  line-height: 1.35;
  padding: 0.62rem 0.7rem;
}

.civic-space-link-list a:hover {
  border-color: #b8c7d8;
  color: #124f86;
  text-decoration: none;
}

.civic-space-link-list i {
  color: #9b2c2c;
  width: 1rem;
}

.civic-space-survey-links {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.civic-space-lens-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 0.95rem;
}

.civic-space-lens {
  min-height: 100%;
  padding: 0.9rem;
}

.civic-space-lens > span {
  background: #e7f1fb;
  color: #124f86;
  height: 36px;
  margin-bottom: 0.75rem;
  width: 36px;
}

.civic-space-lens h4 {
  color: #172b4d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.civic-space-lens p {
  color: #52616f;
  font-size: 0.8rem;
  line-height: 1.58;
  margin-bottom: 0.7rem;
}

.civic-space-lens ul,
.civic-space-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.civic-space-lens li {
  align-items: flex-start;
  color: #465a69;
  display: flex;
  font-size: 0.76rem;
  gap: 0.4rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}

.civic-space-lens li i {
  color: #2f855a;
  margin-top: 0.18rem;
}

.civic-space-evidence-list {
  display: grid;
  gap: 0.65rem;
}

.civic-space-evidence-list > div {
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  display: flex;
  gap: 0.65rem;
  padding: 0.7rem;
}

.civic-space-evidence-list span {
  background: #e6f4ea;
  color: #2f855a;
  flex: 0 0 auto;
  height: 32px;
  width: 32px;
}

.civic-space-evidence-list strong,
.civic-space-evidence-list small {
  display: block;
}

.civic-space-evidence-list strong {
  color: #172b4d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.civic-space-evidence-list small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin-top: 0.2rem;
}

.civic-space-action-list {
  display: grid;
  gap: 0.55rem;
}

.civic-space-action-list li {
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #465a69;
  display: flex;
  font-size: 0.8rem;
  gap: 0.55rem;
  line-height: 1.5;
  padding: 0.65rem;
}

.civic-space-action-list span {
  align-items: center;
  background: #fff0f0;
  border-radius: 50%;
  color: #9b2c2c;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

@media (max-width: 991.98px) {
  .civic-space-hero,
  .civic-space-question-grid {
    grid-template-columns: 1fr;
  }

  .civic-space-report-cover {
    justify-self: start;
    max-width: 240px;
  }
}

@media (max-width: 575.98px) {
  .content-header h1,
  .portal-page-title {
    font-size: 1rem;
  }

  .corruption-hero,
  .local-lens-hero,
  .datasets-hero,
  .civic-space-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .civic-space-hero,
  .civic-space-panel,
  .civic-space-stat,
  .civic-space-lens {
    padding: 0.85rem;
  }

  .civic-space-report-cover {
    max-width: 220px;
  }

  .main-footer .float-right {
    display: none !important;
  }
}

.cost-politics {
  padding-bottom: 0.75rem;
}

.cost-politics-hero,
.cost-politics-panel,
.cost-politics-stat,
.cost-politics-priority,
.cost-politics-chart-card {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.cost-politics-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  margin-bottom: 1rem;
}

.cost-politics-hero-copy {
  padding: 1.25rem;
}

.cost-politics-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cost-politics-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.cost-politics-hero h2,
.cost-politics-panel h3 {
  color: #172b4d;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.cost-politics-hero p,
.cost-politics-panel p {
  color: #52616f;
  line-height: 1.65;
}

.cost-politics-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.cost-politics-cover {
  align-self: stretch;
  background: #050d3f;
  color: inherit;
  display: flex;
  justify-content: center;
  min-height: 100%;
  padding: 0.6rem;
}

.cost-politics-cover:hover {
  color: inherit;
  text-decoration: none;
}

.cost-politics-cover img {
  align-self: center;
  border-radius: 0.25rem;
  display: block;
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.cost-politics-stat {
  min-height: 124px;
  padding: 1rem;
}

.cost-politics-stat span,
.cost-politics-priority > span,
.cost-politics-timeline span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.cost-politics-stat span {
  height: 34px;
  margin-bottom: 0.8rem;
  width: 34px;
}

.cost-politics-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.cost-politics-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.cost-politics-stat-blue span,
.cost-politics-priority > span {
  background: #e7f1fb;
  color: #124f86;
}

.cost-politics-stat-green span,
.cost-politics-timeline span {
  background: #e6f4ea;
  color: #2f855a;
}

.cost-politics-stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.cost-politics-stat-red span {
  background: #fff0f0;
  color: #9b2c2c;
}

.cost-politics-panel {
  padding: 1rem;
}

.cost-politics-panel-lead {
  border-left: 4px solid #124f86;
}

.cost-politics-finding-grid,
.cost-politics-priority-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.cost-politics-finding-grid > div,
.cost-politics-timeline > div {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
}

.cost-politics-finding-grid > div {
  padding: 0.75rem;
}

.cost-politics-finding-grid i {
  color: #2f855a;
  margin-bottom: 0.55rem;
}

.cost-politics-finding-grid strong,
.cost-politics-finding-grid small,
.cost-politics-timeline strong,
.cost-politics-timeline small {
  display: block;
}

.cost-politics-finding-grid strong,
.cost-politics-timeline strong {
  color: #172b4d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.cost-politics-finding-grid small,
.cost-politics-timeline small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.cost-politics-timeline {
  display: grid;
  gap: 0.65rem;
}

.cost-politics-timeline > div {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem;
}

.cost-politics-timeline span {
  height: 32px;
  width: 32px;
}

.cost-politics-priority-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cost-politics-priority {
  padding: 0.9rem;
}

.cost-politics-priority > span {
  height: 36px;
  margin-bottom: 0.75rem;
  width: 36px;
}

.cost-politics-priority h4 {
  color: #172b4d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.cost-politics-priority p {
  color: #52616f;
  font-size: 0.8rem;
  line-height: 1.58;
  margin-bottom: 0;
}

.cost-politics-section-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.cost-politics-section-head h3 {
  margin-bottom: 0;
}

.cost-politics-graph-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.cost-politics-chart-card {
  align-self: start;
  overflow: hidden;
}

.cost-politics-chart-card-wide {
  grid-column: 1 / -1;
}

.cost-politics-chart-head {
  padding: 0.85rem 0.85rem 0;
}

.cost-politics-chart-head h4 {
  color: #172b4d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.cost-politics-chart-head p {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.cost-politics-chart {
  background: #f7fafc;
  border-top: 1px solid var(--portal-border);
  height: 300px;
  padding: 0.75rem;
  position: relative;
}

.cost-politics-chart-tall {
  height: 430px;
}

.cost-politics-chart-card-wide .cost-politics-chart {
  height: 340px;
}

.cost-politics-chart canvas {
  display: block;
}

.cost-politics-chart-note {
  border-top: 1px solid var(--portal-border);
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0;
  padding: 0.65rem 0.85rem;
}

@media (max-width: 991.98px) {
  .cost-politics-hero,
  .cost-politics-finding-grid {
    grid-template-columns: 1fr;
  }

  .cost-politics-cover {
    align-self: start;
    justify-self: start;
    max-width: 260px;
  }
}

@media (max-width: 575.98px) {
  .cost-politics-hero-copy,
  .cost-politics-panel,
  .cost-politics-stat,
  .cost-politics-priority,
  .cost-politics-chart-head {
    padding: 0.85rem;
  }

  .cost-politics-chart {
    height: 280px;
    padding: 0.65rem;
  }

  .cost-politics-chart-tall {
    height: 420px;
  }

  .cost-politics-chart-card-wide .cost-politics-chart {
    height: 300px;
  }

  .cost-politics-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cost-politics-cover {
    max-width: 220px;
  }

  .cost-politics-graph-grid {
    grid-template-columns: 1fr;
  }
}

.deforestation-watch {
  padding-bottom: 0.75rem;
}

.deforestation-panel,
.deforestation-card,
.deforestation-stat,
.deforestation-facts > div {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.deforestation-panel {
  min-height: 100%;
  padding: 1.15rem;
}

.deforestation-panel-lead {
  border-left: 4px solid #2f855a;
}

.mining-watch .deforestation-panel-lead {
  border-left-color: #0b7285;
}

.mining-watch .deforestation-kicker {
  color: #0b7285;
}

.deforestation-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.deforestation-panel h2,
.deforestation-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.deforestation-panel p,
.deforestation-facts p {
  color: var(--portal-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.deforestation-source {
  align-items: center;
  color: #52616f;
  display: flex;
  font-size: 0.8rem;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.deforestation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.deforestation-stat {
  min-height: 116px;
  padding: 1rem;
  position: relative;
}

.deforestation-stat span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 34px;
}

.deforestation-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.deforestation-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.stat-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.stat-red span {
  background: #fff0f0;
  color: #c53030;
}

.deforestation-card.card {
  box-shadow: none;
  margin-bottom: 0;
}

.deforestation-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid var(--portal-border);
  padding: 0.65rem 0.85rem;
}

.deforestation-card .card-title {
  color: #172b4d;
  font-size: 0.9rem;
  font-weight: 700;
}

#forestReserveMap,
#miningProtectedMap {
  background: #eef4f0;
  height: 540px;
  min-height: 540px;
  width: 100%;
}

#miningProtectedMap {
  background: #eef6f8;
}

.deforestation-map-empty {
  align-items: center;
  color: var(--portal-muted);
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.reserve-popup,
.mine-popup {
  display: grid;
  gap: 0.15rem;
  min-width: 150px;
}

.reserve-popup strong,
.mine-popup strong {
  color: #172b4d;
  font-size: 0.9rem;
}

.reserve-popup span,
.mine-popup span {
  color: #52616f;
  font-size: 0.76rem;
}

.deforestation-chart {
  height: 420px;
  position: relative;
}

.deforestation-chart-compact {
  height: 260px;
}

.deforestation-gfw-chart {
  height: 310px;
}

.deforestation-chart-meta {
  align-items: center;
  border-top: 1px solid var(--portal-border);
  color: var(--portal-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 0.45rem 0.7rem;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
}

.deforestation-chart-meta span {
  color: #172b4d;
  font-weight: 700;
}

.deforestation-chart-meta a {
  color: #124f86;
  font-weight: 600;
}

.deforestation-chart-note {
  color: #52616f;
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0.7rem 0 0;
}

.deforestation-highlight {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  padding: 0.75rem;
}

.deforestation-highlight strong,
.deforestation-highlight span {
  display: block;
}

.deforestation-highlight strong {
  color: #172b4d;
  font-size: 0.9rem;
}

.deforestation-highlight span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.deforestation-facts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
}

.deforestation-facts > div {
  min-height: 100%;
  padding: 1rem;
}

.deforestation-facts i {
  color: #2f855a;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.deforestation-facts h4 {
  color: #172b4d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.deforestation-watch .table {
  font-size: 0.8rem;
}

.deforestation-watch .table thead th {
  background: #f7fafc;
  color: #334e68;
  font-weight: 700;
  vertical-align: middle;
}

.deforestation-watch .dt-buttons .btn {
  margin-bottom: 0.35rem;
  margin-right: 0.25rem;
}

.deforestation-watch .dataTables_filter input,
.deforestation-watch .dataTables_length select {
  font-size: 0.8rem;
}

@media (max-width: 991.98px) {
  .deforestation-facts {
    grid-template-columns: 1fr;
  }

  #forestReserveMap,
  #miningProtectedMap {
    height: 440px;
    min-height: 440px;
  }
}

@media (max-width: 575.98px) {
  .deforestation-panel,
  .deforestation-stat,
  .deforestation-facts > div {
    padding: 0.85rem;
  }

  .deforestation-chart {
    height: 340px;
  }

  .deforestation-chart-compact {
    height: 240px;
  }

  .deforestation-gfw-chart {
    height: 300px;
  }

  .deforestation-chart-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  #forestReserveMap,
  #miningProtectedMap {
    height: 360px;
    min-height: 360px;
  }
}

.environmental-corruption {
  padding-bottom: 0.75rem;
}

.environmental-hero,
.environmental-panel,
.environmental-story-card,
.environmental-stat,
.environmental-story-hero,
.environmental-article-panel,
.environmental-side-panel,
.environmental-video-panel,
.environmental-gallery {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.environmental-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin-bottom: 1rem;
  overflow: hidden;
}

.environmental-hero-copy {
  padding: 1.25rem;
}

.environmental-kicker {
  color: #9b2c2c;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.environmental-hero h2,
.environmental-story-hero h2 {
  color: #172b4d;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.environmental-hero p,
.environmental-panel p,
.environmental-story-hero p,
.environmental-article-panel p {
  color: #52616f;
  line-height: 1.65;
}

.environmental-source-note {
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #465a69;
  display: flex;
  font-size: 0.8rem;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.7rem;
}

.environmental-source-note i {
  color: #0b7285;
  margin-top: 0.15rem;
}

.environmental-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.environmental-hero-media {
  color: inherit;
  display: block;
  min-height: 100%;
  position: relative;
}

.environmental-hero-media img,
.environmental-story-media img,
.environmental-story-hero-media img,
.environmental-gallery img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.environmental-hero-media img {
  aspect-ratio: 16 / 10;
  filter: grayscale(1);
}

.environmental-hero-caption {
  background: rgba(23, 43, 77, 0.9);
  bottom: 0;
  color: #ffffff;
  display: block;
  left: 0;
  padding: 0.7rem 0.85rem;
  position: absolute;
  right: 0;
}

.environmental-hero-caption strong,
.environmental-hero-caption small {
  display: block;
}

.environmental-hero-caption small {
  color: #dce5ef;
  font-size: 0.76rem;
  margin-top: 0.15rem;
}

.environmental-stat {
  min-height: 112px;
  padding: 1rem;
}

.environmental-stat span {
  align-items: center;
  background: #e7f1fb;
  border-radius: 50%;
  color: #124f86;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 34px;
}

.environmental-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.environmental-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.environmental-stat-red span {
  background: #fff0f0;
  color: #c53030;
}

.environmental-stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.environmental-stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.environmental-panel {
  padding: 1rem;
}

.environmental-panel.environmental-map-panel {
  overflow: hidden;
  padding: 0;
}

.environmental-map-panel .environmental-panel-header {
  padding: 1rem 1rem 0.75rem;
}

.environmental-panel-header h3,
.environmental-video-panel h3,
.environmental-gallery h3 {
  color: #172b4d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.environmental-tag-cloud,
.environmental-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.environmental-tag-cloud span,
.environmental-tags span {
  background: #f4f7fa;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: #334e68;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.environmental-tag-cloud strong {
  color: #9b2c2c;
}

.environmental-map {
  background: #eef4f0;
  width: 100%;
}

.environmental-map-overview {
  border-top: 1px solid var(--portal-border);
  height: 430px;
  min-height: 430px;
}

.environmental-map-story {
  flex: 1;
  min-height: 300px;
}

.environmental-map-empty {
  align-items: center;
  color: var(--portal-muted);
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.environmental-map-popup {
  display: grid;
  gap: 0.16rem;
  min-width: 170px;
}

.environmental-map-popup strong {
  color: #172b4d;
  font-size: 0.88rem;
  line-height: 1.25;
}

.environmental-map-popup span {
  color: #52616f;
  font-size: 0.74rem;
}

.environmental-map-popup a {
  color: #9b2c2c;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.18rem;
}

.environmental-story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.environmental-story-media {
  background: #f0f4f8;
  color: inherit;
  display: block;
  height: 190px;
  overflow: hidden;
}

.environmental-story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem;
}

.environmental-card-meta,
.environmental-card-footer,
.environmental-story-meta {
  align-items: center;
  color: var(--portal-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.4rem 0.65rem;
}

.environmental-card-meta span,
.environmental-story-meta span {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: #465a69;
  padding: 0.15rem 0.48rem;
}

.environmental-story-card h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0.55rem 0 0.4rem;
}

.environmental-story-card h3 a {
  color: #172b4d;
}

.environmental-story-card p {
  color: #52616f;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.58;
  margin-bottom: 0.7rem;
}

.environmental-card-footer {
  border-top: 1px solid var(--portal-border);
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
}

.environmental-card-footer a {
  color: #9b2c2c;
  font-weight: 700;
}

.environmental-sketch {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 41, 55, 0.08) 0 1px, transparent 1px 12px),
    linear-gradient(25deg, rgba(31, 41, 55, 0.08) 0 1px, transparent 1px 16px),
    #f7fafc;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.environmental-sketch::before,
.environmental-sketch::after {
  border: 2px solid rgba(31, 41, 55, 0.38);
  content: "";
  position: absolute;
}

.environmental-sketch::before {
  border-left: 0;
  border-right: 0;
  bottom: 26%;
  height: 28%;
  left: 10%;
  transform: rotate(-8deg);
  width: 80%;
}

.environmental-sketch::after {
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  height: 42%;
  right: 12%;
  top: 17%;
  transform: rotate(9deg);
  width: 32%;
}

.environmental-sketch i {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 41, 55, 0.25);
  border-radius: 50%;
  color: #172b4d;
  display: inline-flex;
  font-size: 1.65rem;
  height: 58px;
  justify-content: center;
  position: relative;
  width: 58px;
  z-index: 1;
}

.environmental-sketch-toxic {
  background-color: #f8f2ef;
}

.environmental-sketch-forest {
  background-color: #eff7f0;
}

.environmental-sketch-water {
  background-color: #edf6f8;
}

.environmental-sketch-protected {
  background-color: #f6f3ed;
}

.environmental-sketch-land {
  background-color: #f5f3f0;
}

.environmental-sketch-large {
  min-height: 360px;
}

.environmental-story-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  margin-bottom: 1rem;
  overflow: hidden;
}

.environmental-story-hero-with-map {
  grid-template-columns: minmax(0, 0.95fr) minmax(250px, 0.72fr) minmax(250px, 0.72fr);
}

.environmental-story-hero-copy {
  padding: 1.25rem;
}

.environmental-back-link {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.environmental-story-hero-media {
  background: #f0f4f8;
  min-height: 360px;
  position: relative;
}

.environmental-story-hero-media img {
  aspect-ratio: 16 / 10;
  filter: grayscale(1);
}

.environmental-story-hero-media small {
  background: rgba(23, 43, 77, 0.9);
  bottom: 0;
  color: #ffffff;
  display: block;
  font-size: 0.75rem;
  left: 0;
  padding: 0.6rem 0.75rem;
  position: absolute;
  right: 0;
}

.environmental-story-location {
  background: #f7fafc;
  border-left: 1px solid var(--portal-border);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.environmental-story-location-header {
  border-bottom: 1px solid var(--portal-border);
  padding: 0.85rem;
}

.environmental-story-location-header strong,
.environmental-story-location-header small {
  display: block;
}

.environmental-story-location-header strong {
  color: #172b4d;
  font-size: 0.92rem;
  line-height: 1.3;
}

.environmental-story-location-header small {
  color: var(--portal-muted);
  font-size: 0.75rem;
  margin-top: 0.18rem;
}

.environmental-article-panel {
  padding: 1.1rem;
}

.environmental-article-panel h3 {
  color: #172b4d;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.environmental-article-panel p {
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.environmental-article-panel p:last-child {
  margin-bottom: 0;
}

.environmental-side-stack {
  display: grid;
  gap: 1rem;
}

.environmental-side-panel {
  padding: 1rem;
}

.environmental-concern-list {
  color: #465a69;
  list-style: none;
  margin: 0;
  padding: 0;
}

.environmental-concern-list li {
  border-bottom: 1px solid var(--portal-border);
  line-height: 1.55;
  padding: 0.52rem 0;
}

.environmental-concern-list li:first-child {
  padding-top: 0;
}

.environmental-concern-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.environmental-source-list {
  display: grid;
  gap: 0.55rem;
}

.environmental-source-list a {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  display: block;
  padding: 0.65rem;
}

.environmental-source-list strong,
.environmental-source-list span {
  display: block;
}

.environmental-source-list strong {
  color: #172b4d;
  font-size: 0.82rem;
  line-height: 1.35;
}

.environmental-source-list span {
  color: #9b2c2c;
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.environmental-gallery {
  padding: 1rem;
}

.environmental-video-panel {
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 1rem;
}

.environmental-video-frame {
  background: #0f172a;
  border-radius: 0.3rem;
  overflow: hidden;
  position: relative;
}

.environmental-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.environmental-video-frame iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.environmental-video-link {
  color: #9b2c2c;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.7rem;
}

.environmental-gallery figure {
  background: #f0f4f8;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  height: 220px;
  margin: 0;
  overflow: hidden;
}

.environmental-tags-large span {
  margin-bottom: 0.2rem;
}

@media (max-width: 991.98px) {
  .environmental-hero,
  .environmental-story-hero {
    grid-template-columns: 1fr;
  }

  .environmental-hero-media img,
  .environmental-story-hero-media img,
  .environmental-story-hero-media,
  .environmental-story-location {
    min-height: 300px;
  }

  .environmental-story-location {
    border-left: 0;
    border-top: 1px solid var(--portal-border);
  }

  .environmental-map-overview {
    height: 380px;
    min-height: 380px;
  }
}

@media (max-width: 575.98px) {
  .environmental-hero-copy,
  .environmental-story-hero-copy,
  .environmental-panel,
  .environmental-article-panel,
  .environmental-side-panel,
  .environmental-video-panel,
  .environmental-gallery,
  .environmental-story-location-header,
  .environmental-story-body {
    padding: 0.85rem;
  }

  .environmental-hero h2,
  .environmental-story-hero h2 {
    font-size: 1.12rem;
  }

  .environmental-story-media {
    height: 170px;
  }

  .environmental-map-overview {
    height: 320px;
    min-height: 320px;
  }

  .environmental-map-story {
    min-height: 260px;
  }

  .environmental-gallery figure {
    height: 190px;
  }

  .environmental-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.parliament-watch {
  padding-bottom: 0.75rem;
}

.parliament-watch-hero,
.parliament-watch-panel,
.parliament-watch-card,
.parliament-watch-stat {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.35rem;
  box-shadow: none;
}

.parliament-watch-hero {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.3fr);
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.parliament-watch-back {
  color: #52616f;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.parliament-watch-kicker {
  color: #124f86;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.parliament-watch-hero h2,
.parliament-watch-panel h3 {
  color: #172b4d;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.parliament-watch-hero p,
.parliament-watch-panel p {
  color: #52616f;
  line-height: 1.65;
  margin-bottom: 0;
}

.parliament-watch-source {
  align-items: flex-start;
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #52616f;
  display: flex;
  font-size: 0.8rem;
  gap: 0.55rem;
  line-height: 1.55;
  margin-top: 0.9rem;
  padding: 0.7rem;
}

.parliament-watch-source i {
  color: #2f855a;
  margin-top: 0.2rem;
}

.parliament-watch-hero-panel {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-left: 4px solid #2f855a;
  border-radius: 0.35rem;
  padding: 0.95rem;
}

.parliament-watch-hero-panel span,
.parliament-watch-stat span {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
}

.parliament-watch-hero-panel span {
  background: #e6f4ea;
  color: #2f855a;
  height: 38px;
  margin-bottom: 0.75rem;
  width: 38px;
}

.parliament-watch-hero-panel strong,
.parliament-watch-hero-panel small {
  display: block;
}

.parliament-watch-hero-panel strong {
  color: #172b4d;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.parliament-watch-hero-panel small {
  color: var(--portal-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.parliament-watch-anchor {
  scroll-margin-top: 4.5rem;
}

.parliament-watch-stat {
  min-height: 118px;
  padding: 1rem;
}

.parliament-watch-stat span {
  height: 34px;
  margin-bottom: 0.8rem;
  width: 34px;
}

.parliament-watch-stat strong {
  color: #172b4d;
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.parliament-watch-stat small {
  color: var(--portal-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.parliament-watch-stat.stat-blue span {
  background: #e7f1fb;
  color: #124f86;
}

.parliament-watch-stat.stat-green span {
  background: #e6f4ea;
  color: #2f855a;
}

.parliament-watch-stat.stat-gold span {
  background: #fff7df;
  color: #b7791f;
}

.parliament-watch-stat.stat-red span {
  background: #fff0f0;
  color: #9b2c2c;
}

.parliament-watch-card .card-header {
  background: #ffffff;
  border-bottom-color: var(--portal-border);
}

#parliamentWatchMap {
  height: 540px;
  min-height: 540px;
  width: 100%;
}

.parliament-watch-chart {
  height: 260px;
  min-height: 260px;
  position: relative;
}

.parliament-watch-chart-wide {
  height: 320px;
  min-height: 320px;
}

.parliament-watch-detail-page .parliament-watch-hero-panel a {
  color: #124f86;
  font-weight: 800;
}

.parliament-watch-table-link {
  color: #124f86;
  font-weight: 800;
}

.parliament-watch-table-link:hover {
  color: #0b4f6c;
}

.parliament-watch-highlight {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  padding: 0.7rem;
}

.parliament-watch-highlight strong,
.parliament-watch-highlight span {
  display: block;
}

.parliament-watch-highlight strong {
  color: #172b4d;
  font-size: 0.88rem;
}

.parliament-watch-highlight span {
  color: #52616f;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.parliament-watch-panel {
  padding: 1rem;
}

.parliament-watch-detail {
  border-left: 4px solid #124f86;
  min-height: 360px;
}

.parliament-watch-detail-list,
.parliament-watch-rank-list,
.parliament-watch-source-grid {
  display: grid;
  gap: 0.55rem;
}

.parliament-watch-detail-item,
.parliament-watch-rank-list button,
.parliament-watch-source-grid a {
  background: #f7fafc;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  color: #334e68;
  display: block;
  line-height: 1.45;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.parliament-watch-rank-list button {
  cursor: pointer;
}

.parliament-watch-rank-list button:hover,
.parliament-watch-detail-item:hover,
.parliament-watch-source-grid a:hover {
  border-color: #b8c7d8;
  color: #124f86;
  text-decoration: none;
}

.parliament-watch-detail-item strong,
.parliament-watch-detail-item small,
.parliament-watch-rank-list strong,
.parliament-watch-rank-list small,
.parliament-watch-source-grid strong,
.parliament-watch-source-grid small {
  display: block;
}

.parliament-watch-detail-item strong,
.parliament-watch-rank-list strong,
.parliament-watch-source-grid strong {
  color: #172b4d;
  font-size: 0.84rem;
}

.parliament-watch-detail-item small,
.parliament-watch-rank-list small,
.parliament-watch-source-grid small {
  color: var(--portal-muted);
  font-size: 0.76rem;
  margin-top: 0.2rem;
}

.parliament-watch-badge {
  border-radius: 999px;
  color: #ffffff;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.45rem;
}

.parliament-watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.parliament-watch-meta span {
  background: #f0f4f8;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: #52616f;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.32rem 0.45rem;
}

.parliament-watch-source-panel {
  margin-bottom: 1rem;
}

.parliament-watch-source-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 0.75rem;
}

.parliament-watch-map-popup strong,
.parliament-watch-map-popup span {
  display: block;
}

.parliament-watch-map-popup strong {
  color: #172b4d;
  margin-bottom: 0.25rem;
}

.parliament-watch-map-popup span {
  color: #52616f;
  font-size: 0.78rem;
}

.parliament-watch-map-legend {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 0.3rem;
  box-shadow: 0 1px 4px rgba(23, 43, 77, 0.12);
  color: #52616f;
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 0.55rem 0.65rem;
}

.parliament-watch-map-legend strong {
  color: #172b4d;
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.parliament-watch-map-legend span {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.parliament-watch-map-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

@media (max-width: 991.98px) {
  .parliament-watch-hero {
    grid-template-columns: 1fr;
  }

  #parliamentWatchMap {
    height: 420px;
    min-height: 420px;
  }
}

@media (max-width: 575.98px) {
  .parliament-watch-hero,
  .parliament-watch-panel,
  .parliament-watch-stat {
    padding: 0.85rem;
  }

  #parliamentWatchMap {
    height: 340px;
    min-height: 340px;
  }

  .parliament-watch-chart {
    height: 230px;
    min-height: 230px;
  }
}
