/* CSS Custom Properties for consistent styling */
:root {
  /* Colors */
  --dropdown-active-bg: #c4c4c4;
  --dropdown-text: #fff;
  --sidebar-bg: #fff;
  --sidebar-shadow: -2px 0 16px rgba(0,0,0,0.12);
  --overlay-bg: rgba(0,0,0,0.18);
  --border-light: #eee;
  --focus-outline: #0d6efd33;
  --focus-ring-color: #1f4a7a;
  --focus-ring-shadow: rgba(31, 74, 122, 0.22);
  --my-dark-gray: #32372f;
  --my-medium-dark-gray: #969393;
  --my-medium-gray: #d5d7d5;
  --topic-strong-color: #32372f;
  --topic-soft-color: rgba(50, 55, 47, 0.12);
  --topic-soft-color-2: rgba(50, 55, 47, 0.06);

  
  /* Sizes */
  --sidebar-width: 430px;
  --sidebar-max-width: 94vw;
  --border-radius: 8px;
  --border-radius-sm: 6px;
  --gap-sm: 0.3rem;
  --gap-md: 0.5rem;
  --gap-lg: 1rem;
  --padding-sm: 0.3em 0.7em;
  --padding-md: 0.75rem 1rem;
  --padding-lg: 1.2rem 1.5rem 1rem 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.35s cubic-bezier(.4,0,.2,1);
  
  /* Z-indexes */
  --z-sidebar: 1200;
  --z-overlay: 1199;
}

body { 
  margin: 0; 
  padding: 0;
}

@font-face {
  font-family: "bootstrap-icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url("/css/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2"),
    url("/css/vendor/bootstrap-icons/fonts/bootstrap-icons.woff") format("woff");
}

/* Topics dropdown (Browse by Topic) */
#topics-dropdown {
  min-width: 16.5rem;
  padding: 0.45rem;
  border: 1px solid #d4dbe3;
  border-radius: 12px;
  background: #eff0f1;
  box-shadow: 0 10px 24px rgba(35, 47, 63, 0.16);
}

#topics-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.08rem 0;
  padding: 0.48rem 0.68rem;
  border-radius: 8px;
  color: #1f2a39;
  font-weight: 400;
  line-height: 1.25;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#topics-dropdown .dropdown-item > span {
  border-radius: 2px;
  margin-right: 0 !important;
  flex: 0 0 auto;
}

#topics-dropdown .dropdown-item:hover,
#topics-dropdown .dropdown-item:focus-visible {
  background: #d8dbe0;
  color: #111b29;
  outline: none;
}

#topics-dropdown .dropdown-item.active {
  background: var(--my-dark-gray);
  color: #fff;
  font-weight: 700;
}

#topics-dropdown .dropdown-item.active:hover,
#topics-dropdown .dropdown-item.active:focus-visible {
  background: var(--my-dark-gray);
  color: #fff;
}

/* Pressed state should keep the active visual language */
#topics-dropdown .dropdown-item:active {
  background: var(--my-dark-gray) !important;
  color: #fff !important;
}

/* Sidebar Styles */
#filter-sidebar,
#ranking-filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  max-width: var(--sidebar-max-width);
  height: 100vh;
  background: var(--sidebar-bg);
  box-shadow: var(--sidebar-shadow);
  z-index: var(--z-sidebar);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

#filter-sidebar.open,
#ranking-filter-sidebar.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

#filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--padding-lg);
  border-bottom: 1px solid var(--border-light);
}

#ranking-filter-sidebar #filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--padding-lg);
  border-bottom: 1px solid var(--border-light);
}

#filter-sidebar-title {
  font-size: 1.3rem;
  font-weight: 700;
}

#close-filter-sidebar,
#ranking-close-filter-sidebar {
  background: none;
  border: none;
  cursor: pointer;
}

#filter-sidebar-body,
#ranking-filter-sidebar #filter-sidebar-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.5rem;
}

#filter-sidebar-controls {
  position: sticky;
  top: -1.5rem;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 88%, rgba(255,255,255,0.94) 100%);
  margin: -1.5rem -1.5rem 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 0;
}

.country-selector-section + .country-selector-section {
  margin-top: 1.35rem;
}

.country-selector-section--countries {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #e7ebf0;
}

.country-selector-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.country-selector-section__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.country-selector-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a9097;
}

.country-selector-section__label--with-help {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.country-selector-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca4ad;
  cursor: help;
  line-height: 1;
}

.country-selector-help:hover,
.country-selector-help:focus-visible {
  color: #6f7780;
  outline: none;
}

.country-selector-section__body {
  gap: 0.5rem;
}

#country-preset-actions,
#country-group-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.5rem;
  row-gap: 0.75rem;
  margin-top: 0.75rem;
}

#country-group-buttons {
  margin-top: 0.75rem;
}

#country-preset-actions {
  align-items: start;
  grid-auto-rows: 38px;
}

.country-selection-summary,
.country-search-summary {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  color: #5f6770;
}

.country-selection-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.country-selection-summary__context {
  font-weight: 600;
  color: #485463;
}

.country-selection-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.country-selection-mode-badge--preset {
  background: #eef2f6;
  color: #586270;
  border-color: #d7dee6;
}

.country-selection-mode-badge--manual {
  background: #f8f1e6;
  color: #8d6b2f;
  border-color: #ead8b5;
}

.country-selection-mode-badge--empty {
  background: #f6f7f9;
  color: #7c848d;
  border-color: #e1e5ea;
}

.country-selection-summary__counts {
  color: #5f6770;
}

.country-selection-fixed-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: -0.45rem 0 0.9rem;
  font-size: 0.84rem;
  color: #69727c;
}

.country-selection-fixed-note__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.44rem;
  border: 1px solid #d7dee6;
  border-radius: 999px;
  background: #f6f8fa;
  color: #56606d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-selection-notice {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 8;
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(32, 38, 46, 0.94);
  color: #f3f5f7;
  font-size: 0.84rem;
  line-height: 1.35;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  width: min(320px, calc(100vw - 56px));
}

.country-selection-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.country-search-summary {
  font-size: 0.82rem;
  color: #8a9097;
}

.country-selected-only-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.65rem;
  padding: 0 0.62rem;
  border: 1px solid #d6dce4;
  border-radius: 999px;
  background: #ffffff;
  color: #6d7680;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.country-selected-only-toggle:hover,
.country-selected-only-toggle:focus-visible {
  border-color: #aeb8c2;
  color: #4f5964;
  background: #f7f9fb;
  outline: none;
}

.country-selected-only-toggle.is-active {
  background: #eef3f9;
  border-color: #b8c6d6;
  color: #385574;
  box-shadow: inset 0 0 0 1px rgba(56, 85, 116, 0.05);
}

#filter-sidebar-form,
#ranking-filter-sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#filter-sidebar-form {
  padding-top: 0.15rem;
}

/* Responsive Sidebar */
@media (max-width: 600px) {
  #filter-sidebar,
  #ranking-filter-sidebar {
    width: min(24.5rem, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
  }
  
  #filter-sidebar-form,
  #ranking-filter-sidebar-form {
    gap: 0.75rem;
  }
  
  #filter-sidebar-body,
  #ranking-filter-sidebar #filter-sidebar-body {
    padding: var(--gap-lg);
  }
}

html.sidebar-open,
body.sidebar-open {
  overflow: hidden;
}

@media (max-width: 991.98px) and (max-height: 560px) {
  #filter-sidebar-controls {
    position: static;
    top: auto;
    margin: 0 0 0.75rem;
    padding: 0 0 0.75rem;
    background: #ffffff;
  }
}
/* Form Elements */
#filter-sidebar-form label,
#ranking-filter-sidebar-form label {
  min-width: 120px;
  min-height: 48px;
  padding: var(--padding-md);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  user-select: none;
  font-size: 1rem;
  background: var(--sidebar-bg);
}


.country-select-label {
  min-width: 0;
  min-height: 28px;
  padding: 0.3rem 0.72rem;
  border-radius: var(--border-radius-sm);
  box-shadow: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  display: block;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.2;
  margin: 0;
  outline: none;
}

.country-select-label__text {
  min-width: 0;
}

.country-select-label--locked {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.country-focal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #2f3945;
  border: 1px solid #d2d9e1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.country-select-label[aria-pressed="true"] .country-focal-badge {
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  border-color: rgba(255, 255, 255, 0.9);
}

.country-select-label:focus {
  box-shadow: 0 0 0 2px var(--focus-outline);
}

/* Overlay */
#filter-sidebar-overlay,
#ranking-filter-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-bg);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

#filter-sidebar.open + #filter-sidebar-overlay,
#ranking-filter-sidebar.open + #ranking-filter-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Country Controls */
.sidebar-country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  gap: var(--gap-md);
  padding: 0.04rem 0;
}

.sidebar-country-row--reordering {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.sidebar-country-btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.26rem 0.62rem;
  margin: 0;
}

.sidebar-country-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.45rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
  outline: none;
  color: #bbc3cb;
  opacity: 0.78;
}

.sidebar-country-row:hover .sidebar-country-star,
.sidebar-country-star:focus-visible {
  color: #727b85;
  background: #f2f5f8;
  opacity: 1;
}

.sidebar-country-star.is-highlighted {
  color: #ce4f5a;
  background: rgba(206, 79, 90, 0.1);
  opacity: 1;
}

.sidebar-country-star.is-highlighted:hover,
.sidebar-country-star.is-highlighted:focus-visible {
  color: #bf4450;
  background: rgba(206, 79, 90, 0.15);
}

.country-search-match {
  background: rgba(255, 221, 87, 0.65);
  color: inherit;
  padding: 0 0.08rem;
  border-radius: 0.2rem;
}

.country-select-label[aria-pressed="true"] .country-search-match {
  background: rgba(255, 221, 87, 0.9);
}

/* HTML Structure Utility Classes */
.navbar-bg {
  background: #ffffff !important;
  border-bottom: 1px solid #e4e7ea;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  min-height: 88px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.navbar-bg .container {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.5rem;
}
.navbar-logo-wrap {
  display: block;
  line-height: 0;
}

.navbar-logo {
  height: clamp(42px, 6vw, 68px);
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav-mobile {
  display: none;
  position: relative;
}

.site-nav-mobile__toggle {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  padding: 0.72rem;
  border-radius: 999px;
  border: 1px solid #d7dde5;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.site-nav-mobile__toggle::-webkit-details-marker {
  display: none;
}

.site-nav-mobile__toggle:hover,
.site-nav-mobile__toggle:focus-visible {
  background: #eef2f5;
  outline: none;
}

.site-nav-mobile__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #243040;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-nav-mobile[open] .site-nav-mobile__toggle-bar:nth-child(2) {
  transform: translateY(0.38rem) rotate(45deg);
}

.site-nav-mobile[open] .site-nav-mobile__toggle-bar:nth-child(3) {
  opacity: 0;
}

.site-nav-mobile[open] .site-nav-mobile__toggle-bar:nth-child(4) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.site-nav-mobile__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 1100;
  display: none;
  min-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.5rem;
  border: 1px solid #d7dde5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
}

.site-nav-mobile[open] .site-nav-mobile__panel {
  display: grid;
  gap: 0.3rem;
}

.site-nav-mobile__link {
  display: block;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  color: var(--my-dark-gray);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav-mobile__link:hover,
.site-nav-mobile__link:focus-visible {
  color: #1f4a7a;
  background: #eef2f5;
  outline: none;
}

.site-nav-mobile__link.active,
.site-nav-mobile__link[aria-current="page"] {
  background: var(--my-dark-gray);
  color: #fff;
}

.site-nav-mobile__summary {
  list-style: none;
  cursor: pointer;
}

.site-nav-mobile__summary::-webkit-details-marker {
  display: none;
}

.site-nav-mobile__summary::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform 0.15s ease;
}

.site-nav-mobile__topics-menu[open] .site-nav-mobile__summary::after {
  transform: rotate(-135deg) translate(-0.08rem, -0.04rem);
}

.site-nav-mobile__menu {
  position: static;
  display: none;
  min-width: 0;
  margin-top: 0.4rem;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid #e4e9f0;
  background: #f8fafc;
  box-shadow: none;
}

.site-nav-mobile__topics-menu[open] .site-nav-mobile__menu {
  display: grid;
  gap: 0.2rem;
}

#topics-dropdown-mobile .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  color: #243040;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#topics-dropdown-mobile .dropdown-item > span {
  width: 8px !important;
  height: 26px !important;
  margin-right: 0 !important;
  border-radius: 999px;
  flex: 0 0 auto;
}

#topics-dropdown-mobile .dropdown-item:hover,
#topics-dropdown-mobile .dropdown-item:focus-visible {
  background: #eef2f5;
  color: #111b29;
  outline: none;
  transform: translateX(1px);
}

#topics-dropdown-mobile .dropdown-item.active,
#topics-dropdown-mobile .dropdown-item[aria-current="page"] {
  background: #e8eef4;
  color: #16273b;
  font-weight: 700;
}

.site-nav__link {
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  color: var(--my-dark-gray);
  border-radius: 999px;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: #1f4a7a;
  background: #eef2f5;
  outline: none;
}

.site-nav__link.active,
.site-nav__link[aria-current="page"] {
  background: var(--my-dark-gray);
  color: #fff;
  box-shadow: 0 8px 18px rgba(50, 55, 47, 0.16);
}

.site-nav__link.active:hover,
.site-nav__link.active:focus-visible,
.site-nav__link[aria-current="page"]:hover,
.site-nav__link[aria-current="page"]:focus-visible {
  color: #fff;
  background: var(--my-dark-gray);
}

.site-nav__topics-menu {
  position: relative;
}

.site-nav__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.site-nav__summary::-webkit-details-marker {
  display: none;
}

.site-nav__summary::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform 0.15s ease;
}

.site-nav__topics-menu[open] .site-nav__summary::after {
  transform: rotate(-135deg) translate(-0.08rem, -0.04rem);
}

.site-nav__topics-menu[open] .site-nav__summary {
  background: #eef2f5;
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 1000;
  display: none;
}

.site-nav__topics-menu[open] .site-nav__menu {
  display: block;
}

.explorer-intro__title {
  max-width: none;
  margin: 0;
  padding: 1.15rem 0 0.35rem;
  color: #243040;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 1.45rem + 2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 700;
  text-align: center;
}

.explorer-intro__text {
  max-width: none;
  margin: 0;
  padding: 0 0 1.45rem;
  color: #5f6977;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}

.explorer-summary {
  max-width: 62rem;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.explorer-summary__lede {
  margin: 0 auto;
  max-width: 58rem;
  color: #5f6977;
  font-size: 1rem;
  line-height: 1.8;
}

.explorer-nav-stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.explorer-nav-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  align-items: stretch;
}

.explorer-nav-row + .explorer-nav-row {
  padding-top: 0;
  border-top: 0;
}

.explorer-nav-row--indicator {
  padding-left: 0;
}

.explorer-nav-row__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7b8696;
  justify-self: center;
  text-align: center;
}

.explorer-nav-row--indicator .explorer-nav-row__label {
  padding-left: 0;
}

.explorer-nav-row__control {
  min-width: 0;
  width: 100%;
  max-width: 20rem;
  justify-self: center;
}

.explorer-chart-title {
  margin: 0 0 0.35rem;
  padding-top: 0.8rem;
  padding-bottom: 0.15rem;
  text-align: center;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.7rem, 1.45rem + 0.55vw, 2.15rem);
  font-weight: 700;
  line-height: 1.06;
  color: #172231;
}

.explorer-topic-selector-inline,
.explorer-indicator-selector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 20rem;
}

.explorer-topic-dropdown,
.explorer-indicator-dropdown {
  width: 100%;
  display: flex;
  justify-content: stretch;
  min-width: 0;
}

.explorer-page .explorer-topic-dropdown,
.explorer-page .explorer-indicator-dropdown {
  display: block !important;
  width: 100%;
  min-width: 0;
}

.explorer-control-btn {
  position: relative;
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.explorer-control-btn--topic {
  border-color: color-mix(in srgb, var(--topic-strong-color, #5a6674) 28%, #d3dae2);
  background: var(--topic-soft-color, rgba(90, 102, 116, 0.12));
  color: var(--topic-strong-color, #243040);
  border-radius: 999px;
}

.explorer-control-btn--indicator {
  background: #fff;
  color: var(--my-dark-gray);
}

.explorer-control-btn:hover,
.explorer-control-btn:focus-visible {
  border-color: #9eabb8;
  background: #fbfcfd;
  box-shadow: 0 6px 18px rgba(50, 55, 47, 0.08);
}

.explorer-control-btn:active {
  border-color: #8d99a5;
  background: #f4f7fa;
  box-shadow: 0 2px 8px rgba(50, 55, 47, 0.08);
  transform: translateY(1px);
}

.explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-btn,
.explorer-page .explorer-indicator-dropdown #dropdown-btn {
  display: block !important;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
}

.explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-label,
.explorer-page .explorer-indicator-dropdown #dropdown-btn-label {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 0.95rem 3rem !important;
  font-size: 1.12rem;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.14;
}

.explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.explorer-page .explorer-indicator-dropdown #dropdown-btn-label {
  font-size: 0.98rem;
}

.explorer-page .explorer-nav-row .indicator-topic-navigator__arrow {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  background: #fff;
  color: #748092;
}

.explorer-page .explorer-nav-row .indicator-topic-navigator__arrow:hover,
.explorer-page .explorer-nav-row .indicator-topic-navigator__arrow:focus-visible {
  color: #243040;
  background: #f8fafc;
  border-color: #c4ced8;
}

.explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-btn > span.d-flex,
.explorer-page .explorer-indicator-dropdown #dropdown-btn > span.d-flex {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
}

#explorer-topic-dropdown-btn > span.d-flex i {
  color: currentColor !important;
}

#explorer-topic-dropdown-menu {
  min-width: min(30rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(62vh, 440px);
  overflow-y: auto;
  padding: 0.45rem;
  margin-top: 0.35rem;
  border: 1px solid #d4dbe3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 47, 63, 0.16);
}

.explorer-topic-dropdown-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 8px;
  margin: 0.08rem 0;
  padding: 0.48rem 0.68rem 0.48rem 0.68rem;
  background: transparent;
  text-align: left;
  color: #2f3d4d;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.explorer-topic-dropdown-item__bar {
  display: block;
  width: 8px;
  height: 24px;
  border-radius: 3px;
}

.explorer-topic-dropdown-item__label {
  min-width: 0;
  line-height: 1.25;
}

.explorer-topic-dropdown-item:hover,
.explorer-topic-dropdown-item:focus-visible {
  background: #d8dbe0;
  color: #111b29;
  outline: none;
}

.explorer-topic-dropdown-item.active {
  background: #e2e4e7;
  color: #172231;
  font-weight: 700;
}

.explorer-page #topic-zone {
  padding-bottom: 0.3rem;
}

.explorer-page #chart-zone-shell {
  padding-top: 1.55rem !important;
}

.explorer-page .chart-zone-bg .info-cards-bg {
  border-color: #dde6ee;
  box-shadow: none;
}

.explorer-page .chart-container {
  height: clamp(320px, 56vh, 500px);
}

.explorer-page .indicator-meta-panel {
  opacity: 0.96;
}

.explorer-page .indicator-meta-section {
  border-color: #edf1f5;
}

@media (max-width: 991.98px) {
  .navbar-bg .container {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .site-header__inner {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0;
  }

  .site-nav > :first-child .site-nav__link {
    padding-left: 0;
  }

  .site-nav__menu {
    left: 0;
    right: auto;
  }

  .explorer-nav-stack {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .explorer-nav-row {
    gap: 0.32rem;
  }

  .explorer-nav-stack {
    padding: 0.2rem 0 0;
    border-radius: 18px;
  }

  .explorer-nav-row + .explorer-nav-row {
    padding-top: 0.3rem;
  }

    .explorer-summary {
      margin-bottom: 1.05rem;
    }

    .explorer-summary__lede {
      font-size: 0.96rem;
      line-height: 1.72;
    }

    .explorer-nav-row--indicator {
      padding-left: 0;
    }

    .explorer-nav-row--indicator .explorer-nav-row__label {
      padding-left: 0;
    }

    .explorer-nav-row--indicator .explorer-nav-row__label::before,
    .explorer-nav-row--indicator .explorer-nav-row__label::after {
      display: none;
    }

  .explorer-topic-selector-inline,
  .explorer-indicator-selector {
      width: 100%;
      max-width: none;
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: 0.42rem;
  }

    .explorer-topic-dropdown,
    .explorer-indicator-dropdown {
      width: 100%;
      justify-content: stretch;
      min-width: 0;
    }

  .explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-btn,
  .explorer-page .explorer-indicator-dropdown #dropdown-btn {
    width: 100%;
    min-width: 0;
  }

  .explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-label,
  .explorer-page .explorer-indicator-dropdown #dropdown-btn-label {
    min-height: 3.05rem;
    padding: 0.52rem 2.65rem !important;
    line-height: 1.1;
  }

    .explorer-page .chart-container {
      height: clamp(300px, 48vh, 400px);
    }
  }

@media (max-width: 576px) {
  .navbar-bg {
    min-height: 78px;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .site-nav {
    display: none;
  }

  .site-nav-mobile {
    display: block;
  }

  .site-nav-mobile__topics-menu {
    display: block;
    width: 100%;
  }

  .site-nav-mobile__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .site-nav-mobile__topics-menu .site-nav__menu {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    display: none;
  }

  .site-nav-mobile__topics-menu[open] .site-nav__menu {
    display: grid;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.topic-zone-bg {
  background: transparent;
}

/* Indicator page header */
#topic-zone {
  border-top: none;
  border-bottom: none;
  padding: 1rem 0 1.4rem;
}

.indicator-breadcrumb-wrap {
  padding: 0 2.25rem 1rem;
}

.indicator-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 18rem;
  padding: 2.1rem 2.25rem 0.3rem;
  background: #fff;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.indicator-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--topic-soft-color, rgba(50, 55, 47, 0.12)) 42%, #ffffff 58%) 0%,
      rgba(255, 255, 255, 0) 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.08));
  opacity: 1;
  pointer-events: none;
}

.indicator-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: var(--topic-strong-color);
}

.indicator-hero__headline,
.indicator-hero__meta {
  position: relative;
  z-index: 1;
}

.indicator-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.indicator-hero__navigator {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.25rem;
}

.indicator-hero__headline--full {
  max-width: 960px;
}

.indicator-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #68707a;
}

.indicator-breadcrumb__item--hidden {
  display: none !important;
}

.indicator-breadcrumb a {
  color: #68707a;
  text-decoration: none;
}

.indicator-breadcrumb a:hover,
.indicator-breadcrumb a:focus {
  text-decoration: underline;
}

.indicator-breadcrumb__sep {
  color: #9aa1aa;
}

.indicator-hero__topic-wrap {
  margin: 0;
}

.indicator-hero__topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--topic-soft-color);
  color: var(--topic-strong-color);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.indicator-hero__topic-link {
  color: inherit;
  text-decoration: none;
}

.indicator-hero__topic-link:hover,
.indicator-hero__topic-link:focus {
  text-decoration: underline;
}

.indicator-hero__eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--my-medium-dark-gray);
  font-weight: 700;
}

.indicator-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 13rem;
  padding: 0.2rem 0 0 1rem;
  border-left: 1px solid rgba(50, 55, 47, 0.12);
}

.indicator-hero__aside-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--my-medium-dark-gray);
  font-weight: 700;
}

.indicator-hero__title {
  margin: 0;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.8rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--my-dark-gray);
  text-wrap: balance;
}

.indicator-hero__subtitle {
  max-width: 760px;
  margin: 0.9rem 0 0;
  color: #4d5561;
  font-size: 1.02rem;
  line-height: 1.65;
}

.app-shell .indicator-hero__subtitle {
  display: none;
}

.app-shell.explorer-page .indicator-hero__subtitle {
  display: block;
}

.indicator-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.indicator-hero__topic {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--topic-strong-color);
  letter-spacing: 0.02em;
}

.indicator-hero__topic-name {
  font-size: 1.5rem;
  line-height: 1.2;
}

.indicator-hero__desc {
  margin: 0;
  color: #5b616b;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

/* Switch Topic button: use topic color */
#switch-topic-btn {
  background-color: var(--topic-strong-color) !important;
  border-color: var(--topic-strong-color) !important;
  color: #fff !important;
  align-self: flex-start;
  font-weight: 600;
}

#switch-topic-btn:hover,
#switch-topic-btn:focus {
  filter: brightness(0.92);
}

#filter-btn {
  background-color: var(--topic-soft-color, rgba(50, 55, 47, 0.12)) !important;
  border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 28%, #edf0f3 72%) !important;
  color: var(--topic-strong-color, #32372f) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

#filter-btn:hover,
#filter-btn:focus {
  background-color: color-mix(in srgb, var(--topic-soft-color, rgba(50, 55, 47, 0.12)) 82%, #ffffff 18%) !important;
  border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 36%, #e6ebf1 64%) !important;
  color: var(--topic-strong-color, #32372f) !important;
  filter: none;
}

.chart-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}

.chart-export-menu {
  position: relative;
}

.chart-export-menu--floating {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 14;
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

.country-indicator-module-card .chart-export-menu--floating {
    right: 0;
    top: -2.2rem;
  }

.chart-map-zoom-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
    padding-left: 0.35rem;
  }

.chart-map-zoom-controls__label {
    font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: #63707d;
    letter-spacing: 0.02em;
  }

.chart-map-zoom-controls--below-meta {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    gap: 0.28rem;
    align-self: flex-start;
    padding-left: 0.35rem;
  }

.chart-map-zoom-controls--below-meta .chart-map-zoom-controls__label {
    font-size: 0.8rem;
  }

.chart-export-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 10.5rem;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.12);
  z-index: 40;
}

#chart-export-toggle {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.35rem;
  --bs-btn-color: var(--my-dark-gray);
  --bs-btn-border-color: #edf0f3;
  --bs-btn-hover-color: var(--my-dark-gray);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #edf0f3;
  --bs-btn-active-color: var(--my-dark-gray);
  --bs-btn-active-bg: #ffffff;
  --bs-btn-active-border-color: #edf0f3;
}

#chart-export-toggle i {
  margin-right: 0 !important;
  font-size: 0.88rem;
}

#chart-map-zoom-out-toggle,
#chart-map-zoom-in-toggle {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.35rem;
  --bs-btn-color: var(--my-dark-gray);
  --bs-btn-border-color: #edf0f3;
  --bs-btn-hover-color: var(--my-dark-gray);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #edf0f3;
  --bs-btn-active-color: var(--my-dark-gray);
  --bs-btn-active-bg: #ffffff;
  --bs-btn-active-border-color: #edf0f3;
}

#chart-map-zoom-out-toggle i,
#chart-map-zoom-in-toggle i {
  margin-right: 0 !important;
  font-size: 0.9rem;
}

#chart-maximize-toggle {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.35rem;
  --bs-btn-color: var(--my-dark-gray);
  --bs-btn-border-color: #edf0f3;
  --bs-btn-hover-color: var(--my-dark-gray);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #edf0f3;
  --bs-btn-active-color: var(--my-dark-gray);
  --bs-btn-active-bg: #ffffff;
  --bs-btn-active-border-color: #edf0f3;
}

#chart-maximize-toggle i {
  margin-right: 0 !important;
  font-size: 0.9rem;
}

#chart-maximize-toggle .chart-maximize-toggle__label {
  display: none;
}

#chart-export-toggle:hover,
#chart-export-toggle:focus-visible,
#chart-export-toggle:active,
#chart-map-zoom-out-toggle:hover,
#chart-map-zoom-out-toggle:focus-visible,
#chart-map-zoom-out-toggle:active,
#chart-map-zoom-in-toggle:hover,
#chart-map-zoom-in-toggle:focus-visible,
#chart-map-zoom-in-toggle:active,
#chart-maximize-toggle:hover,
#chart-maximize-toggle:focus-visible,
#chart-maximize-toggle:active {
  background: #ffffff;
  color: var(--my-dark-gray);
  border-color: #edf0f3;
  box-shadow: 0 3px 10px rgba(31, 35, 40, 0.08);
}

.chart-export-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--my-dark-gray);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: left;
}

.chart-export-action:hover,
.chart-export-action:focus-visible {
  background: #f3f5f7;
  outline: none;
}

.chart-export-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 992px) {
  .indicator-hero__layout {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  .indicator-hero__aside {
      display: none;
    }
    .indicator-breadcrumb-wrap {
      padding: 0 1.5rem 0.9rem;
    }
  .indicator-hero {
      min-height: 16.25rem;
      padding: 1.7rem 1.5rem 1rem;
    }
  .indicator-hero__title {
      font-size: clamp(2.3rem, 6vw, 3.1rem);
    }
    .indicator-hero__navigator {
      margin-top: auto;
      padding-top: 0.8rem;
    }
  }

  @media (max-width: 576px) {
    .indicator-breadcrumb-wrap {
      padding: 0 1.25rem 0.8rem;
  }

  .indicator-breadcrumb {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.79rem;
    line-height: 1.2;
    overflow: hidden;
  }

  .indicator-breadcrumb > * {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .indicator-breadcrumb a,
  .indicator-breadcrumb span[aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .indicator-breadcrumb span[aria-current="page"] {
    flex: 1 1 auto;
  }

  .indicator-breadcrumb__sep {
    font-size: 0.72rem;
  }

  .indicator-hero {
      min-height: 13.75rem;
      padding: 1.45rem 1.25rem 0.95rem;
    }
  .indicator-hero__title {
      font-size: 1.8rem;
    }
    .indicator-hero__navigator {
      padding-top: 0.7rem;
    }
  }


/* Enhanced visibility for sidebar close button */
#close-filter-sidebar {
  font-size: 1.75rem; /* was 1.5rem */
  color: #343a40; /* darker for contrast */
  font-weight: 600; /* bolder glyph */
  line-height: 1; /* keep box tight */
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
#close-filter-sidebar:hover,
#close-filter-sidebar:focus {
  color: #000;
  text-shadow: 0 0 3px rgba(0,0,0,0.35);
  outline: none;
}

/* Country group & action buttons uniform sizing */
#country-group-buttons .group-set-btn,
.group-action-btn {
  min-width: 0;
  width: 100%;
  text-align: center;
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Top count controls: keep compact and self-explanatory */
.top-count-group {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 0;
  min-width: 0;
  width: 100%;
  height: 38px;
  align-self: start;
}
.top-count-group .group-action-btn {
  min-width: 0;
  width: 100%;
  height: 38px;
  min-height: 38px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-width: 0;
}
.top-count-group .top-count-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  margin-left: 0;
  width: 30px;
  height: 38px;
}
.top-count-group .top-count-adjust {
  min-width: 30px;
  padding: 0;
  font-weight: 700;
  line-height: 1;
  border-radius: 0;
  border-color: #edf0f3;
}
.top-count-group .top-count-adjust-plus {
  margin-bottom: 0;
  border-top-right-radius: 0.2rem;
}
.top-count-group .top-count-adjust-minus {
  margin-top: -1px; /* collapse border between + and - */
  border-bottom-right-radius: 0.2rem;
}
.top-count-group .top-count-adjust:disabled {
  opacity: 0.6;
}

/* Hide country selector button entirely when in table mode */
body.table-mode #filter-btn,
body.map-mode #filter-btn { display: none !important; }

/* Chart subtitle meta text */
#chart-subtitle-meta {
  line-height: 1.2;
}

#chart-bestyear-badge,
#chart-country-badge {
  display: inline-block;
}

.chart-subtitle-meta-separator {
  margin: 0 0.45rem;
  font-weight: 700;
}

/* Make the country meta text look interactive */
#chart-country-badge {
  cursor: pointer;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor;
}
#chart-country-badge:hover {
  color: #343a40;
  text-decoration: underline;
}
#chart-country-badge:focus-visible {
  outline: 2px solid #0d6efd55;
  outline-offset: 2px;
  text-decoration: underline;
}

/* Enhanced country search bar */
.country-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f8fb;
  border: 1px solid #d9e1e8;
  border-radius: 40px;
  padding: 0.15rem 0.65rem 0.15rem 2rem;
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

/* Make chart area full-width on xl (<=1400px) and below */
@media (max-width: 1400px) {
  .chart-zone-bg .container.info-cards-bg {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* Allow chart itself to stretch */
  #chart.chart-container {
    width: 100% !important;
  }
}

.country-search-wrapper:focus-within {
  border-color: #94a3b4;
  box-shadow: 0 0 0 3px rgba(148,163,180,0.18);
  background: #ffffff;
}
.country-search-wrapper .bi-search {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6d7782;
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}
.country-search-wrapper:focus-within .bi-search { color: #4f5964; }
.country-search-wrapper input#country-search {
  border: none;
  background: transparent;
  padding-left: 0.2rem;
  padding-right: 2rem;
  box-shadow: none;
  font-weight: 500;
}
.country-search-wrapper input#country-search:focus { outline: none; box-shadow: none; }
.country-search-wrapper input#country-search::placeholder {
  color: #8a9097;
  opacity: 1;
}
.country-search-wrapper input#country-search:-ms-input-placeholder { color:#8a9097; }
.country-search-wrapper input#country-search::-ms-input-placeholder { color:#8a9097; }
.country-search-wrapper #country-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  padding: 2px 6px;
  display: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-weight: 600;
  background: #e0e8f3;
  border: 1px solid #b5c7df;
  color: #1d4d8a;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.country-search-wrapper #country-search-clear:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.country-search-empty {
  display: block;
  padding: 0.8rem 0.1rem 0.3rem;
  font-size: 0.92rem;
  color: #7c848d;
}

.country-selection-empty {
  display: block;
  margin: 0.1rem 0 0.35rem;
  padding: 0.72rem 0.9rem;
  border: 1px dashed #d7dde4;
  border-radius: 12px;
  background: #fafbfd;
  font-size: 0.92rem;
  color: #66707a;
}

#filter-sidebar .country-group-btn.btn-primary,
#filter-sidebar .country-group-reset.btn-primary,
#filter-sidebar .top-count-group .group-action-btn.btn-primary {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(31, 41, 55, 0.14);
}

#filter-sidebar .country-group-btn.btn-primary:hover,
#filter-sidebar .country-group-reset.btn-primary:hover,
#filter-sidebar .top-count-group .group-action-btn.btn-primary:hover,
#filter-sidebar .country-group-btn.btn-primary:focus-visible,
#filter-sidebar .country-group-reset.btn-primary:focus-visible,
#filter-sidebar .top-count-group .group-action-btn.btn-primary:focus-visible {
  background: #1a2330;
  border-color: #1a2330;
  color: #ffffff;
}

#filter-sidebar .top-count-group.is-active .top-count-adjust {
  border-color: #1f2937;
  background: #f7f8fa;
  color: #1f2937;
}

@media (max-width: 480px) {
  #country-preset-actions,
  #country-group-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #country-preset-actions,
  #country-group-buttons {
    row-gap: 0.38rem;
  }

  #country-group-buttons {
    margin-top: 0.38rem;
  }
}



.info-cards-bg {
  background: #ffffff;
}

#main-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Chart zone: light liseret rectangle and gray background (below the top buttons) */
.chart-zone-bg .info-cards-bg {
  background: #ffffff;                 /* keep background white */
  border: 1px solid #edf0f3;           /* match indicator meta sections */
  border-radius: 14px;                /* match indicator meta sections */
  position: relative;                 /* anchor chart spinner overlay to this card */
}
/* Remove horizontal padding on the chart container to keep border tight and symmetric */
.chart-zone-bg .container.info-cards-bg { padding-left: 0 !important; padding-right: 0 !important; }

/* Keep the chart section positioned without turning it into a scroll container */
.chart-zone-bg.full-width-section { position: relative; overflow: visible; }

#chart-zone-shell:fullscreen,
#chart-zone-shell:-webkit-full-screen {
  background: #ffffff;
  padding: 1rem 0 1.2rem;
  overflow: auto;
}

#chart-zone-shell:fullscreen .container,
#chart-zone-shell:-webkit-full-screen .container {
  max-width: min(1600px, 100vw);
  width: 100%;
}

#chart-zone-shell:fullscreen .container.px-4,
#chart-zone-shell:-webkit-full-screen .container.px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#chart-zone-shell:fullscreen .chart-container,
#chart-zone-shell:-webkit-full-screen .chart-container {
    height: min(72vh, 880px) !important;
  }

#chart-zone-shell:fullscreen .country-indicator-module-title,
#chart-zone-shell:-webkit-full-screen .country-indicator-module-title {
  display: none !important;
}

.ranking-page #chart-zone-shell:fullscreen .ranking-chart-card-title,
.ranking-page #chart-zone-shell:-webkit-full-screen .ranking-chart-card-title {
  display: block !important;
  text-align: center;
}

#chart-zone-shell:fullscreen .country-indicator-compare-heading,
#chart-zone-shell:-webkit-full-screen .country-indicator-compare-heading {
  display: none !important;
}

body.table-mode #chart-zone-shell:fullscreen .chart-container,
body.table-mode #chart-zone-shell:-webkit-full-screen .chart-container {
    height: auto !important;
  }

#chart-zone-shell:fullscreen #chart-maximize-toggle.is-mobile-close,
#chart-zone-shell:-webkit-full-screen #chart-maximize-toggle.is-mobile-close {
  min-width: auto;
  gap: 0.38rem;
  padding-inline: 0.65rem;
  font-size: 0.82rem;
}

#chart-zone-shell:fullscreen #chart-maximize-toggle.is-mobile-close .chart-maximize-toggle__label,
#chart-zone-shell:-webkit-full-screen #chart-maximize-toggle.is-mobile-close .chart-maximize-toggle__label {
  display: inline;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 575.98px) {
  #chart-zone-shell:fullscreen #chart-maximize-toggle.is-mobile-close,
  #chart-zone-shell:-webkit-full-screen #chart-maximize-toggle.is-mobile-close {
    font-size: 0.8rem;
  }

  #chart-zone-shell:fullscreen #chart-maximize-toggle.is-mobile-close .chart-maximize-toggle__label,
  #chart-zone-shell:-webkit-full-screen #chart-maximize-toggle.is-mobile-close .chart-maximize-toggle__label {
    font-size: 0.78rem;
  }
}

/* Compress the indicator navigator on phones */
@media (max-width: 575.98px) {
  .indicator-topic-navigator {
    display: grid !important;
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "label label label"
      "prev track next";
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    column-gap: 0.1rem;
    row-gap: 0.18rem;
    padding: 0;
    justify-content: center !important;
  }

  .indicator-topic-navigator__label {
    grid-area: label;
    display: block;
    width: auto;
    justify-self: center;
    margin-right: 0;
    margin-bottom: 0.1rem;
    overflow: visible;
    white-space: normal;
    text-align: center;
  }

  .indicator-topic-navigator__track {
    grid-area: track;
    min-width: 0;
    width: auto;
    justify-self: center;
  }

  #prev-btn {
    grid-area: prev;
    justify-self: center;
  }

  #next-btn {
    grid-area: next;
    justify-self: center;
  }

  .indicator-topic-navigator__arrow {
    width: 1.6rem;
    height: 1.6rem;
  }

  .indicator-topic-navigator__arrow i {
    font-size: 0.88rem;
  }

  .indicator-topic-navigator__dots {
    gap: 0.38rem;
    justify-content: center;
  }

  .indicator-topic-navigator__dot {
    width: 0.48rem;
    height: 0.48rem;
  }
}

.related-indicators-bg {
  background-color: #ffffff;
  background-image: none;
  border-top: 0;
}

/* Smooth transition between white metadata area and gray related-indicators zone */
.related-indicators-transition {
  background-color: #ffffff;
  background-image: none;
}

.country-indicator-end-links-section {
  background-color: #ffffff;
}

.country-indicator-end-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.country-indicator-end-links__label {
  color: #7c8aa0;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.country-indicator-end-links__primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.country-indicator-end-links__secondary {
  display: flex;
  justify-content: center;
  align-items: center;
}

.country-indicator-end-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.52rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.country-indicator-end-link:hover,
.country-indicator-end-link:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.country-indicator-end-link--country {
  color: #32372f;
  background: rgba(50, 55, 47, 0.08);
  border-color: rgba(50, 55, 47, 0.18);
}

.country-indicator-end-link--country:hover,
.country-indicator-end-link--country:focus {
  color: #32372f;
  background: rgba(50, 55, 47, 0.12);
  border-color: rgba(50, 55, 47, 0.24);
}

.country-indicator-end-link--topic {
  color: var(--topic-strong-color);
  background: var(--topic-soft-color);
  border-color: color-mix(in srgb, var(--topic-strong-color) 26%, white 74%);
}

.country-indicator-end-link--topic:hover,
.country-indicator-end-link--topic:focus {
  color: var(--topic-strong-color);
  background: color-mix(in srgb, var(--topic-soft-color) 78%, #ffffff 22%);
  border-color: color-mix(in srgb, var(--topic-strong-color) 35%, white 65%);
}

.country-indicator-end-link--topics {
  color: #5f6977;
  background: #f3f5f7;
  border-color: #dfe4ea;
  font-size: 0.9rem;
  font-weight: 500;
}

.country-indicator-end-link--topics:hover,
.country-indicator-end-link--topics:focus {
  color: #4d5867;
  background: #edf1f4;
  border-color: #d5dce4;
}

.explorer-end-links-section {
  background-color: #ffffff;
}

.explorer-prerendered-index {
  max-width: 980px;
  margin: 1.5rem auto 2rem;
  padding: 1.25rem;
  border: 1px solid #dfe4ea;
  border-radius: 18px;
  background: #ffffff;
}

.explorer-prerendered-index__title {
  margin: 0;
  color: var(--my-dark-gray);
  font-family: "Roboto Condensed", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.explorer-prerendered-index__intro {
  margin: 0.35rem 0 1rem;
  color: #5f6977;
}

.explorer-prerendered-index__topic {
  margin-top: 1rem;
}

.explorer-prerendered-index__topic-title {
  margin: 0 0 0.45rem;
  color: var(--topic-strong-color, #32372f);
  font-family: "Roboto Condensed", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.explorer-prerendered-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explorer-prerendered-index__link {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--topic-strong-color, #32372f) 22%, white 78%);
  border-radius: 999px;
  color: var(--topic-strong-color, #32372f);
  background: color-mix(in srgb, var(--topic-strong-color, #32372f) 10%, white 90%);
  font-weight: 600;
  text-decoration: none;
}

.explorer-prerendered-index__link:hover,
.explorer-prerendered-index__link:focus {
  color: var(--topic-strong-color, #32372f);
  background: color-mix(in srgb, var(--topic-strong-color, #32372f) 14%, white 86%);
  text-decoration: none;
}

.explorer-end-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.explorer-end-links__label {
  color: #7c8aa0;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.explorer-end-links__primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.explorer-end-links__secondary {
  display: flex;
  justify-content: center;
  align-items: center;
}

.explorer-end-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.explorer-end-link:hover,
.explorer-end-link:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.explorer-end-link--primary {
  min-width: 12.4rem;
  color: #32372f;
  background: rgba(50, 55, 47, 0.08);
  border-color: rgba(50, 55, 47, 0.18);
}

.explorer-end-link--primary:hover,
.explorer-end-link--primary:focus {
  color: #32372f;
  background: rgba(50, 55, 47, 0.12);
  border-color: rgba(50, 55, 47, 0.24);
}

.explorer-end-link--topic {
  color: var(--topic-strong-color);
  background: var(--topic-soft-color);
  border-color: color-mix(in srgb, var(--topic-strong-color) 26%, white 74%);
}

.explorer-end-link--topic:hover,
.explorer-end-link--topic:focus {
  color: var(--topic-strong-color);
  background: color-mix(in srgb, var(--topic-soft-color) 78%, #ffffff 22%);
  border-color: color-mix(in srgb, var(--topic-strong-color) 35%, white 65%);
}

.explorer-end-link--secondary {
  color: #5f6977;
  background: #f3f5f7;
  border-color: #dfe4ea;
  font-size: 0.9rem;
  font-weight: 500;
}

.explorer-end-link--secondary:hover,
.explorer-end-link--secondary:focus {
  color: #4d5867;
  background: #edf1f4;
  border-color: #d5dce4;
}

/* Bottom fade before footer: keep spacing while transitioning from section gray to white */
.related-indicators-footer-fade {
  background-color: #ffffff;
  background-image: none;
}

.related-indicators-panel {
  background: #ffffff;
  padding: 1.6rem 2rem;
  box-shadow: none;
}

.related-indicators-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.related-indicators-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #7a7f85;
}

.related-indicators-kicker i {
  font-size: 0.72rem;
  line-height: 1;
}

.related-indicators-kicker--strong {
  font-weight: 700;
}

.related-indicators-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--topic-strong-color, #1f2328);
  margin-bottom: 0.6rem;
}

.related-indicators-topic {
  color: var(--topic-strong-color);
}

.related-indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

/* Indicator page: keep related-indicator and topic discovery cards on the same grid */
.indicator-page #related-indicators .related-indicators-grid,
.indicator-page #topic-cards.topic-switch-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.indicator-page #topic-cards.topic-switch-grid {
  margin-top: 0.85rem;
}

.indicator-page-topic-discovery {
  padding-top: 3.5rem;
}

.indicator-page #topic-cards .topic-switch-card {
  min-height: 156px;
  padding: 1.1rem 1.2rem 1.15rem;
  gap: 0.42rem;
  border-left-color: color-mix(in srgb, var(--topic-card-color, #32372f) 88%, white 12%);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 18%, #ffffff 82%) 0%,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 52%, #ffffff 48%) 55%,
      color-mix(in srgb, var(--topic-card-color, #32372f) 18%, #ffffff 82%) 100%);
}

.indicator-page #topic-cards .topic-switch-card:hover,
.indicator-page #topic-cards .topic-switch-card:focus {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 30%, #ffffff 70%) 0%,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 68%, #ffffff 32%) 55%,
      color-mix(in srgb, var(--topic-card-color, #32372f) 26%, #ffffff 74%) 100%);
  border-left-color: color-mix(in srgb, var(--topic-card-color, #32372f) 95%, white 5%);
}

.indicator-page #topic-cards .topic-switch-card__title {
  font-size: 1.34rem;
}

.indicator-page #topic-cards .topic-switch-card__cta {
  font-size: 0.82rem;
}

.related-indicator-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 102px;
  padding: 0.95rem 1.1rem 1rem;
  border: 1px solid #e3e8ee;
  border-left: 5px solid color-mix(in srgb, var(--topic-strong-color) 75%, white 25%);
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      #ffffff 0%,
      color-mix(in srgb, var(--topic-soft-color, rgba(50, 55, 47, 0.12)) 32%, #ffffff 68%) 100%);
  color: #1f2328;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.related-indicator-card:hover,
.related-indicator-card:focus {
  border-color: color-mix(in srgb, var(--topic-strong-color) 40%, #d8e0e8 60%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.related-indicator-card.active-indicator-card {
  border-color: color-mix(in srgb, var(--topic-strong-color) 55%, #d7dee7 45%);
  border-left-width: 6px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-soft-color, rgba(50, 55, 47, 0.12)) 62%, #ffffff 38%) 0%,
      #ffffff 100%);
  cursor: default;
}

.related-indicator-card.active-indicator-card:hover,
.related-indicator-card.active-indicator-card:focus {
  transform: none;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.related-indicator-name {
  align-self: center;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.35;
}

.related-indicator-status {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--topic-strong-color);
}

.related-indicator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--topic-strong-color);
  align-self: center;
  font-size: 1rem;
  opacity: 0.82;
}

.related-indicators-empty {
  margin-top: 1rem;
  color: #6b7280;
}

@media (max-width: 576px) {
  .related-indicators-panel {
    padding: 1.2rem 1.3rem;
  }
  .related-indicators-title {
    font-size: 1.3rem;
  }
  .related-indicators-grid {
    gap: 0.65rem;
    margin-top: 0.9rem;
  }
  .indicator-page #related-indicators .related-indicators-grid,
  .indicator-page #topic-cards.topic-switch-grid {
    gap: 0.65rem;
  }
  .indicator-page-topic-discovery {
    padding-top: 2.5rem;
  }
  .indicator-page #topic-cards .topic-switch-card {
    min-height: 118px;
    padding: 0.9rem 1rem 0.95rem;
  }
  .indicator-page #topic-cards .topic-switch-card__title {
    font-size: 1.18rem;
  }
  .related-indicator-card {
    min-height: 82px;
    padding: 0.72rem 0.8rem 0.78rem;
    gap: 0.7rem;
    border-radius: 12px;
  }
  .related-indicator-name {
    font-size: 0.94rem;
    line-height: 1.28;
  }
  .related-indicator-status,
  .related-indicator-icon {
    font-size: 0.82rem;
  }

  .country-indicator-end-links {
    gap: 0.6rem;
  }

  .country-indicator-end-links__label {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .country-indicator-end-links__primary {
    width: 100%;
    gap: 0.65rem;
  }

  .country-indicator-end-links__secondary {
    width: 100%;
  }

  .country-indicator-end-link {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.52rem 0.9rem;
    font-size: 0.92rem;
  }

  .country-indicator-end-link--topics {
    font-size: 0.88rem;
  }

  .explorer-end-links {
    gap: 0.6rem;
  }

  .explorer-end-links__label {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .explorer-end-links__primary,
  .explorer-end-links__secondary {
    width: 100%;
  }

  .explorer-end-links__primary {
    gap: 0.65rem;
  }

  .explorer-end-link {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.52rem 0.9rem;
    font-size: 0.92rem;
  }

  .explorer-end-link--primary {
    min-width: 0;
  }

  .explorer-end-link--secondary {
    font-size: 0.88rem;
  }
}

/* Indicator meta panel (About / Sources / Last update) */
.indicator-meta-panel {
  --indicator-meta-about-fr: 1.9fr;
  --indicator-meta-sources-fr: 1fr;
  display: grid;
  grid-template-columns: minmax(0, var(--indicator-meta-about-fr)) minmax(0, var(--indicator-meta-sources-fr));
  grid-template-areas:
    "about sources";
  gap: 1.2rem 1.4rem;
  align-items: stretch;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.indicator-meta-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.indicator-meta-section {
  background: #ffffff;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  padding: 1rem 1.2rem 1.1rem;
  height: 100%;
}

.indicator-meta-section--about { grid-area: about; }
.indicator-meta-section--sources-updates { grid-area: sources; }
.indicator-meta-section--top-countries {
  padding-bottom: 1.3rem;
}

.indicator-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--topic-strong-color);
}

.indicator-meta-label i {
  font-size: 0.95rem;
  color: var(--topic-strong-color);
}

.indicator-meta-label .note-info {
  margin-left: -0.15rem;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9aa3ad;
  font-size: 0.9rem;
}

.indicator-meta-label .note-info i {
  font-size: 0.9rem;
  line-height: 1;
}

.indicator-meta-body {
  margin-top: 0.6rem;
  color: #2a2f3a;
  line-height: 1.7;
  font-size: 0.98rem;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.indicator-meta-section--about .indicator-meta-body {
  font-size: 1rem;
}

.indicator-meta-body--clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 6;
  position: relative;
}

.indicator-meta-body--clamped.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.indicator-meta-body--clamped.has-read-more:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.8rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 78%, rgba(255, 255, 255, 1) 100%);
}

.indicator-meta-read-more {
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--topic-strong-color);
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.indicator-meta-subsection + .indicator-meta-subsection {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #edf0f3;
}

.indicator-meta-subheading {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2328;
}

.indicator-meta-body--compact {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.indicator-meta-note {
  margin: 0.65rem 0 0;
  color: #66707c;
  font-size: 0.93rem;
  line-height: 1.6;
}

.top-countries-table-wrap {
  margin-top: 0.85rem;
  overflow: visible;
}

.top-countries-table {
  width: min(100%, 48rem);
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.96rem;
  color: #2a2f3a;
}

.top-countries-table th,
.top-countries-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
  vertical-align: middle;
}

.top-countries-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7680;
  font-weight: 700;
}

.country-indicator-data-table thead th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.country-indicator-data-table .country-indicator-data-empty {
  color: #9ca3af;
}

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

.top-countries-table td:first-child {
  width: 4.5rem;
  font-weight: 700;
  color: var(--topic-strong-color);
}

.top-countries-table th:nth-child(2),
.top-countries-table td:nth-child(2) {
  width: 11rem;
}

.top-countries-table td:nth-child(3),
.top-countries-table td:nth-child(4) {
  white-space: nowrap;
}

.top-countries-table th:nth-child(3),
.top-countries-table td:nth-child(3) {
  width: 11rem;
}

.top-countries-table th:nth-child(4),
.top-countries-table td:nth-child(4) {
  width: 11rem;
}

.top-countries-country-link {
  color: #2a2f3a;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(42, 47, 58, 0.45);
}

.top-countries-country-link:hover,
.top-countries-country-link:focus {
  color: var(--topic-strong-color);
  text-decoration-color: currentColor;
}

.top-countries-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--topic-strong-color);
  font-weight: 700;
  text-decoration: none;
}

.top-countries-link:hover,
.top-countries-link:focus {
  text-decoration: underline;
}

.ranking-main {
  padding-bottom: 2rem;
}

.ranking-page .indicator-hero__title {
  color: var(--my-dark-gray);
}

.ranking-page__title-accent {
  color: var(--topic-strong-color, #32372f);
}

.country-indicator-page .indicator-hero__title {
  color: var(--my-dark-gray);
}

.country-indicator-page__title-accent {
  color: var(--topic-strong-color, #32372f);
}

.ranking-page .indicator-meta-label {
  color: var(--topic-strong-color, #32372f);
}

.ranking-page .indicator-meta-label i {
  color: var(--topic-strong-color, #32372f);
}

.ranking-hero__links {
  margin: 1rem 0 0;
}

.ranking-page .indicator-hero__navigator .top-countries-link {
  margin-top: 0;
}

.ranking-table-wrap {
  max-height: min(72vh, 980px);
  overflow: auto;
}

.ranking-table-header {
  margin-top: 0.55rem;
  margin-bottom: 0.9rem;
}

.ranking-table-title {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--my-dark-gray);
}

.ranking-table-subtitle {
  margin-top: 0.35rem;
  color: #4d5561;
  font-size: 0.98rem;
  line-height: 1.5;
}

.ranking-chart-card-title {
    padding-top: 1rem;
  }

.ranking-chart-card {
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff;
  }

.ranking-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  background: color-mix(in srgb, var(--topic-strong-color, #32372f) 12%, white 88%);
  background-clip: padding-box;
  color: var(--topic-strong-color, #32372f);
  border-bottom: 2px solid var(--topic-strong-color, #32372f);
}

.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ranking-table tbody td {
  position: relative;
  z-index: 0;
  background: #ffffff;
}

.ranking-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.ranking-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.ranking-sort-btn i {
  font-size: 0.92rem;
  color: var(--topic-strong-color, #32372f);
}

.ranking-sort-btn:hover,
.ranking-sort-btn:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ranking-source-section {
  margin-top: 0.25rem;
}

.ranking-chart-actions .btn {
  background: #ffffff;
  border-color: var(--topic-strong-color, #32372f);
  color: var(--topic-strong-color, #32372f);
}

.ranking-chart-actions {
      display: flex;
      flex-wrap: nowrap !important;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      overflow-x: auto;
      margin-bottom: 0.45rem !important;
}

.ranking-chart-link-row {
      display: flex;
      justify-content: flex-end;
      min-height: 2.2rem;
      margin-top: -2.25rem;
      margin-bottom: 0.3rem;
    }

.ranking-chart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--topic-strong-color, #32372f);
    text-decoration: none;
  }

.ranking-chart-link:hover,
.ranking-chart-link:focus {
    color: var(--topic-strong-color, #32372f);
    text-decoration: underline;
    text-underline-offset: 0.12rem;
  }

@media (max-width: 991.98px) {
  .ranking-chart-link-row {
    margin-top: 0.6rem;
    margin-bottom: 0;
  }
}

.ranking-chart-actions > .top-count-group,
.ranking-chart-actions > .group-action-btn {
  flex: 0 0 auto;
}

.ranking-chart-actions > .top-count-group {
  width: auto;
}

.ranking-chart-actions > .group-action-btn {
  width: auto;
}

.ranking-chart-actions .btn:hover,
.ranking-chart-actions .btn:focus {
  background: var(--topic-soft-color, rgba(50, 55, 47, 0.12));
  border-color: var(--topic-strong-color, #32372f);
  color: var(--topic-strong-color, #32372f);
}

.ranking-chart-actions .btn.btn-primary {
  background: var(--topic-strong-color, #32372f);
  border-color: var(--topic-strong-color, #32372f);
  color: #ffffff;
  box-shadow: none;
}

.ranking-chart-actions .top-count-group .top-count-adjust {
  background: var(--topic-soft-color, rgba(50, 55, 47, 0.12));
}

.ranking-page #chart-country-badge {
  cursor: default;
  text-decoration: none;
}

.ranking-page #chart-country-badge:hover,
.ranking-page #chart-country-badge:focus-visible {
  color: #495057;
  text-decoration: none;
  outline: none;
}

.country-indicator-main {
  padding-bottom: 2rem;
}

.country-indicator-hero-aside {
  gap: 0.45rem;
}

.country-indicator-hero-country-pill {
  color: #1f2328;
  background: #f3f4f6;
  text-decoration: none;
}

.country-indicator-hero-country-pill:hover,
.country-indicator-hero-country-pill:focus {
  color: #111827;
  background: #e8ebef;
  text-decoration: none;
}

.country-indicator-hero-stat {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5f6c7b;
}

.country-page-main {
  padding-bottom: 2rem;
}

.country-page-main .indicator-hero {
    min-height: 17rem;
    padding-bottom: 0.55rem;
}

.about-page .indicator-hero {
    background: linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 100%);
}

.about-page .indicator-hero::before {
    background:
      linear-gradient(90deg, rgba(255, 242, 221, 0.48) 0%, rgba(255, 242, 221, 0) 15rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18));
    opacity: 1;
}

.about-page .indicator-hero::after {
    background: linear-gradient(180deg, #596252 0%, #32372f 100%);
}

.countries-page .indicator-hero,
.topics-page .indicator-hero,
.country-page-main .indicator-hero,
.explorer-page .indicator-hero {
    min-height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.countries-page .indicator-hero::before,
.topics-page .indicator-hero::before,
.country-page-main .indicator-hero::before,
.explorer-page .indicator-hero::before {
    display: none;
}

.countries-page .indicator-hero::after,
.topics-page .indicator-hero::after,
.country-page-main .indicator-hero::after,
.explorer-page .indicator-hero::after {
    display: none;
}

.countries-page #topic-zone,
.topics-page #topic-zone,
.country-page-main #topic-zone,
.explorer-page #topic-zone {
    position: relative;
    max-width: none;
    width: 100%;
    padding: 5.4rem 0 4.3rem;
    background:
      radial-gradient(circle at top left, rgba(255, 242, 221, 0.92) 0%, rgba(255, 242, 221, 0) 42%),
      linear-gradient(135deg, #f8fafc 0%, #eef2f7 54%, #edf1f5 100%);
    overflow: hidden;
}

.countries-page #topic-zone::after,
.topics-page #topic-zone::after,
.country-page-main #topic-zone::after,
.explorer-page #topic-zone::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.countries-page #topic-zone > .indicator-breadcrumb-wrap,
.topics-page #topic-zone > .indicator-breadcrumb-wrap,
.country-page-main #topic-zone > .indicator-breadcrumb-wrap,
.explorer-page #topic-zone > .indicator-breadcrumb-wrap {
    position: absolute;
    top: 0.28rem;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (max-width: 1399.98px) {
  .countries-page #topic-zone > .indicator-breadcrumb-wrap,
  .topics-page #topic-zone > .indicator-breadcrumb-wrap,
  .country-page-main #topic-zone > .indicator-breadcrumb-wrap,
  .explorer-page #topic-zone > .indicator-breadcrumb-wrap {
    max-width: 1140px;
  }
}

@media (max-width: 1199.98px) {
  .countries-page #topic-zone > .indicator-breadcrumb-wrap,
  .topics-page #topic-zone > .indicator-breadcrumb-wrap,
  .country-page-main #topic-zone > .indicator-breadcrumb-wrap,
  .explorer-page #topic-zone > .indicator-breadcrumb-wrap {
    max-width: 960px;
  }
}

@media (max-width: 991.98px) {
  .countries-page #topic-zone > .indicator-breadcrumb-wrap,
  .topics-page #topic-zone > .indicator-breadcrumb-wrap,
  .country-page-main #topic-zone > .indicator-breadcrumb-wrap,
  .explorer-page #topic-zone > .indicator-breadcrumb-wrap {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .countries-page #topic-zone > .indicator-breadcrumb-wrap,
  .topics-page #topic-zone > .indicator-breadcrumb-wrap,
  .country-page-main #topic-zone > .indicator-breadcrumb-wrap,
  .explorer-page #topic-zone > .indicator-breadcrumb-wrap {
    max-width: 540px;
  }
}

.countries-page #topic-zone > .indicator-hero,
.topics-page #topic-zone > .indicator-hero,
.country-page-main #topic-zone > .indicator-hero,
.explorer-page #topic-zone > .indicator-hero {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
}

.explorer-page #topic-zone > .explorer-nav-stack {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin-inline: auto;
    padding-inline: 1rem;
}

.explorer-page .explorer-nav-stack--outside {
  width: min(46rem, 100%);
  margin: 1.9rem auto 1.6rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-soft-color, rgba(50, 55, 47, 0.12)) 72%, #ffffff 28%) 0%,
      var(--topic-soft-color, rgba(50, 55, 47, 0.12)) 100%);
  border: 1px solid color-mix(in srgb, var(--topic-strong-color, #32372f) 24%, #dde4ec 76%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--topic-strong-color, #32372f) 10%, rgba(15, 23, 42, 0.05) 90%);
  gap: 0.85rem;
}

@media (max-width: 1399.98px) {
  .explorer-page .explorer-nav-stack--outside {
    max-width: 46rem;
  }
}

@media (max-width: 1199.98px) {
  .explorer-page .explorer-nav-stack--outside {
    max-width: 46rem;
  }
}

@media (max-width: 991.98px) {
  .explorer-page .explorer-nav-stack--outside {
    max-width: 42rem;
  }
}

@media (max-width: 767.98px) {
  .explorer-page .explorer-nav-stack--outside {
    max-width: 540px;
    padding: 0.9rem 0.95rem;
    gap: 0.75rem;
  }
}

.countries-page .indicator-hero__headline--full,
.topics-page .indicator-hero__headline--full,
.country-page-main .indicator-hero__headline--full,
.explorer-page .indicator-hero__headline--full {
    max-width: none;
}

.country-page-sections {
  padding-top: 0;
  padding-bottom: 0;
}

.country-page-main .indicator-hero__subtitle {
    display: block;
    max-width: 68ch;
    margin-top: 1rem;
    color: #475467;
    font-size: 0.98rem;
    line-height: 1.78;
}

.country-page-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.country-page-hero-title__lead {
  display: block;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 600;
  line-height: 1.1;
}

.country-page-hero-title__country {
  display: block;
  font-size: clamp(3rem, 5.8vw, 5.05rem);
  line-height: 0.95;
}

.topic-page-main {
  padding-bottom: 2rem;
}

.topic-page .indicator-hero__subtitle {
  display: block;
  max-width: 68ch;
  margin-top: 1rem;
  color: #5f6977;
  font-size: 0.98rem;
  line-height: 1.78;
}

.countries-page .indicator-hero__subtitle,
.topics-page .indicator-hero__subtitle {
    max-width: 68ch;
    margin-top: 1rem;
    color: #475467;
    font-size: 0.98rem;
    line-height: 1.78;
}

.topic-page .indicator-hero__aside {
  min-width: 12rem;
}

.country-indicator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.country-indicator-links .top-countries-link {
  margin-top: 0;
}

.country-indicator-section {
  margin-bottom: 0;
}

.country-indicator-intro-card {
  padding: 1.1rem 1.35rem;
}

.country-indicator-intro-card .indicator-meta-body {
  margin-top: 0;
}

.country-indicator-chart-card {
  background: #f8f9fa;
  border: 1px solid #e2e6eb;
  border-radius: 1rem;
  padding: 1rem 1rem 0.75rem;
}

.country-indicator-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 1.6rem;
  align-items: start;
}

.country-indicator-overview-grid > * {
  min-height: 0;
}

.country-indicator-overview-card {
  position: relative;
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid #edf0f3;
}

.country-trend-export-menu {
  right: 1px;
  top: 1px;
  z-index: 12;
}

#country-trend-export-toggle {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.35rem;
  border-color: transparent;
  color: var(--my-dark-gray);
  background: #ffffff;
}

#country-trend-export-toggle:hover,
#country-trend-export-toggle:focus-visible,
#country-trend-export-toggle:active {
  border-color: transparent;
  color: var(--my-dark-gray);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(31, 35, 40, 0.08);
}

#country-trend-export-toggle i {
  margin-right: 0 !important;
  font-size: 0.88rem;
}

.country-indicator-trend-card {
  align-self: start;
  padding-top: 0.8rem;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.country-indicator-trend-subtitle {
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 860px;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
  color: #5f6c7b;
}

.country-trend-source,
.country-trend-note {
  color: #6f7780;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.country-trend-source {
  margin-top: 0.35rem;
}

.country-trend-note {
  margin-top: 0;
}

.country-indicator-trend-submeta {
  margin-top: 0.2rem;
  text-align: center;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.98rem;
  color: var(--topic-strong-color, #32372f) !important;
}

.country-indicator-trend-country {
  color: var(--topic-strong-color, #32372f) !important;
  font-weight: 600;
}

.country-line-chart {
  width: 100%;
  height: 400px;
}

.country-indicator-table-wrap {
  margin-top: 1.15rem;
  max-height: none;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 0.2rem;
}

.country-indicator-data-card {
    align-self: start;
    height: 100%;
    min-height: 0;
    display: flex;
  flex-direction: column;
    background: transparent;
    border: 0;
    border-left: 1px solid #edf0f3;
    box-shadow: none;
    padding: 1.55rem 0 0 1.25rem;
    overflow: hidden;
    border-radius: 0;
}

.country-indicator-module {
  padding-bottom: 0.6rem;
}

.country-indicator-module + .info-cards-bg.full-width-section {
  padding-top: 0.35rem !important;
}

.country-indicator-single-observation:not(.country-indicator-no-compare) #chart-zone-shell.country-indicator-module {
  padding-top: 1.25rem !important;
}

.country-indicator-single-observation:not(.country-indicator-no-compare) .country-indicator-overview-section {
  padding-top: 1.5rem !important;
}

.country-indicator-no-compare.country-indicator-single-observation .country-indicator-overview-section {
  padding-top: 1.5rem !important;
}

.country-indicator-no-compare .country-indicator-intro-section + .info-cards-bg.full-width-section {
  padding-top: 1rem !important;
}

.country-indicator-module-card {
  margin-top: 0;
  padding-top: 1.25rem;
}

.country-indicator-module #chart-types {
  gap: 0.55rem;
  justify-content: flex-start !important;
  flex-wrap: wrap;
}

.country-indicator-module .chart-tools {
  margin-left: 0;
}

.country-indicator-module #filter-btn {
  gap: 0;
}

.country-indicator-module .ranking-chart-link-row {
  min-height: auto;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0 !important;
  align-items: center;
  justify-content: flex-start;
}

.country-indicator-module .ranking-chart-link {
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}

.country-indicator-compare-heading {
  margin-bottom: 0.95rem;
}

.country-indicator-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--topic-strong-color, #32372f);
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
}

.country-indicator-compare-label i {
  font-size: 1.05rem;
  transform: translateY(0.02em);
}

.country-indicator-compare-subtitle {
  margin-top: 0.35rem;
  color: #5f6875;
  font-size: 0.98rem;
  line-height: 1.45;
}

.country-indicator-compare-link-row {
  margin-top: 0.65rem;
  justify-content: flex-end;
}

.country-indicator-module-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #243040;
}

.country-indicator-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f6f7f8;
  color: #555;
  font-size: 1rem;
  text-align: center;
}

.country-indicator-empty a {
  color: inherit;
  text-decoration: underline;
}

.country-indicator-note-sep {
  margin: 0 0.35rem;
  color: #89919c;
}

.country-page-placeholder {
  max-width: 70ch;
}

.country-page-grid,
.country-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.topic-indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

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

@media (max-width: 575.98px) {
  .topic-indicator-grid {
    grid-template-columns: 1fr;
  }
}

.topic-indicator-card {
  display: grid;
  gap: 0.18rem;
  min-height: 162px;
  padding: 0.88rem 1rem 0.92rem;
  border: 1px solid #e3e8ee;
  border-left: 5px solid color-mix(in srgb, var(--topic-card-color, #32372f) 75%, white 25%);
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      #ffffff 0%,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 34%, #ffffff 66%) 100%);
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-indicator-card:hover,
.topic-indicator-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--topic-card-color, #32372f) 34%, #d8e0e8 66%);
  color: #111827;
}

.topic-indicator-card__title {
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.3;
  margin: 0;
  color: #0f243f;
}

.topic-indicator-card__subtitle {
  font-size: 0.93rem;
  line-height: 1.48;
  margin: 0;
  color: #55606c;
}

.topic-indicator-card__meta {
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0;
  color: #56606d;
}

.topic-indicator-card__sep {
  margin: 0 0.35rem;
  color: #98a1ab;
}

.topic-indicator-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.08rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--topic-card-color, #32372f);
}

.country-page-card {
  display: block;
  min-height: 0;
  width: 100%;
  padding: 1rem 0.15rem 1rem 0.9rem;
  border-radius: 0;
  border: 0;
  border-left: 6px solid var(--country-card-color, #32372f);
  background: transparent;
  color: #1f2937;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.country-page-card:hover,
.country-page-card:focus {
  background: color-mix(in srgb, var(--country-card-soft, rgba(50, 55, 47, 0.12)) 38%, #ffffff 62%);
  color: #111827;
}

.country-page-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 2.45fr) minmax(88px, auto);
  gap: 1.6rem;
  align-items: center;
}

.country-page-card__text {
  min-width: 0;
}

.country-page-card__title {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #0f243f;
}

.country-page-card__subtitle {
  margin-top: 0.38rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #55606c;
}

.country-page-card__chart {
  min-width: 0;
}

.country-page-card__sparkline {
  width: 100%;
}

.country-page-card__sparkline svg {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}

.country-page-card__sparkline-axis {
  stroke: #d8dee7;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.country-page-card__sparkline-line {
  stroke: color-mix(in srgb, var(--country-card-color, #32372f) 72%, #ffffff 28%);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.country-page-card__sparkline-point {
  fill: var(--country-card-color, #32372f);
  stroke: #ffffff;
  stroke-width: 1.6;
}

.country-page-card__sparkline-year {
  fill: #9aa3ad;
  font-size: 10px;
  font-weight: 600;
}

.country-page-card__sparkline-latest {
  fill: #334155;
  font-size: 10px;
  font-weight: 700;
}

.country-page-card__meta {
  min-width: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  align-self: stretch;
  justify-content: center;
  text-align: right;
}

.country-page-card__meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.03rem;
}

.country-page-card__meta-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b95a3;
}

.country-page-card__meta-value {
  font-size: 0.89rem;
  font-weight: 700;
  color: #334155;
}

@media (max-width: 1199.98px) {
  .country-page-card__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 1.8fr) minmax(78px, auto);
    gap: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .country-page-card {
    padding: 0.95rem 0 0.95rem 0.8rem;
  }

  .country-page-card__body {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: start;
  }

  .country-page-card__meta {
    min-width: 0;
    text-align: left;
    gap: 0.45rem;
  }

  .country-page-card__sparkline svg {
    height: 50px;
  }

  .country-page-card__sparkline-latest {
    font-size: 11px;
  }
}

.country-topic-sections {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  margin-top: 2rem;
}

.country-topic-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.country-topic-section__header {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.country-topic-section__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.country-topic-section__title {
  margin: 0;
  line-height: 1;
}

.country-page-main .country-topic-section__title .home-topic-showcase__title-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--topic-soft, rgba(50, 55, 47, 0.12));
  color: var(--topic-color, #32372f);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.country-topic-grid {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.countries-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem 1.25rem;
}

.countries-list-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.35rem;
}

.countries-letter-section {
  scroll-margin-top: 6.5rem;
}

.countries-letter-section__header {
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d8794;
}

.countries-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 0.75rem;
  z-index: 12;
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.countries-alpha-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid #d8dee7;
  border-radius: 999px;
  color: #55606c;
  background: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.countries-alpha-nav__link:hover,
.countries-alpha-nav__link:focus {
  color: var(--topic-strong-color, #32372f);
  border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 28%, #d8dee7 72%);
  background: color-mix(in srgb, var(--topic-strong-color, #32372f) 8%, #ffffff 92%);
  text-decoration: none;
}

.countries-alpha-nav__link.is-empty {
  opacity: 0.35;
  pointer-events: none;
}

.countries-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.95rem 0.7rem;
  border-bottom: 1px solid #e3e7ee;
  border-radius: 10px;
  color: #12263f;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.countries-list-item:hover,
.countries-list-item:focus {
  color: var(--topic-strong-color, #32372f);
  background: rgba(50, 55, 47, 0.06);
  text-decoration: none;
  transform: translateX(2px);
}

.countries-list-item__name {
  min-width: 0;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.35;
}

.countries-list-item__arrow {
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: #9aa3ad;
  transition: transform 0.18s ease, color 0.18s ease;
}

.countries-list-item:hover .countries-list-item__arrow,
.countries-list-item:focus .countries-list-item__arrow {
  color: var(--topic-strong-color, #32372f);
  transform: translateX(4px);
}

.countries-page-search {
  position: relative;
  max-width: 36rem;
  width: min(100%, 36rem);
  display: flex;
  align-items: center;
  margin: 0;
}

.countries-search-shell {
  background: transparent;
}

.countries-search-section {
  display: flex;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.countries-index-header {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: nowrap;
}

.countries-page .indicator-hero__headline--full,
.topics-page .indicator-hero__headline--full {
    max-width: none;
}

.countries-page-search input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 3rem 0.78rem 1rem;
  border: 1px solid #d8dee7;
  border-radius: 999px;
  background: #fff;
  color: #12263f;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.countries-page-search input::placeholder {
  color: #98a2b0;
}

.countries-page-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 34%, #d8dee7 66%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--topic-strong-color, #32372f) 10%, transparent 90%);
}

.countries-page-search button {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #55606c;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.countries-page-search button:hover,
.countries-page-search button:focus {
  color: var(--topic-strong-color, #32372f);
  border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 24%, transparent 76%);
  background: color-mix(in srgb, var(--topic-strong-color, #32372f) 8%, #ffffff 92%);
  outline: none;
}

.countries-search-results {
  max-width: 36rem;
  width: min(100%, 36rem);
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0.95rem;
}

.countries-search-results__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  background: #ffffff;
  color: #243040;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.countries-search-results__item:hover,
.countries-search-results__item:focus-visible,
.countries-search-results__item.is-active {
  color: #111b29;
  border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 28%, #d8dee7 72%);
  background: color-mix(in srgb, var(--topic-strong-color, #32372f) 7%, #ffffff 93%);
  transform: translateY(-1px);
  outline: none;
}

.countries-search-results__name {
  min-width: 0;
  font-weight: 600;
}

.countries-search-results__arrow {
  flex: 0 0 auto;
  color: #7a8694;
}

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

@media (max-width: 575.98px) {
  .countries-list-grid {
    grid-template-columns: 1fr;
  }

  .countries-letter-section {
    scroll-margin-top: 9.5rem;
  }

  .countries-index-header {
    align-items: stretch;
  }
}

.countries-search-note {
  margin-top: 0.85rem;
}

.topic-page-description {
  max-width: none;
}

.topic-page-grid {
  margin-top: 0.95rem;
}

.topic-page-links {
  margin-top: 1.25rem;
}

.topic-page-links a {
  display: block;
  color: #7a838d;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.14rem;
}

.topic-page-links a::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.95em;
  line-height: 1;
  text-decoration: none;
}

.topic-page-links a + a,
.topic-page-links .country-page-card__sep + a {
  margin-top: 0.35rem;
}

.topic-page-links a:hover,
.topic-page-links a:focus {
  color: #606974;
}

.topic-page-links .country-page-card__sep {
  display: none;
}

@media (max-width: 992px) {
  .indicator-meta-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "about"
      "sources";
    padding: 1.25rem;
  }

  .country-line-chart {
    height: 320px;
  }

  .country-indicator-overview-grid {
    grid-template-columns: 1fr;
  }

  .country-indicator-table-wrap {
    max-height: min(44vh, 26rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .country-indicator-trend-subtitle {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .country-topic-grid {
    padding: 1rem;
  }

  .indicator-hero__navigator {
    margin-top: auto;
    padding-top: 0.2rem;
  }

  }
/* Topic cards: left colored bar for topic accent */
.topic-card-label {
  display: inline-flex;
  align-items: stretch; /* let the bar stretch with multi-line text */
  gap: 0.8rem;
}

.topic-switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.topic-switch-grid > .topic-switch-grid__item {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

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

  .indicator-page #topic-cards.topic-switch-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .topic-switch-grid {
    grid-template-columns: 1fr;
  }

  .indicator-page #topic-cards.topic-switch-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

#topic-cards .topic-switch-card,
#modal-topic-cards .topic-switch-card,
.topic-page .topic-switch-card,
.topics-page .topic-switch-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid #e3e8ee;
  border-left: 5px solid color-mix(in srgb, var(--topic-card-color, #32372f) 75%, white 25%);
  background:
    linear-gradient(135deg,
      #ffffff 0%,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 34%, #ffffff 66%) 100%);
  color: #1f2937;
  cursor: pointer;
  min-height: 162px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.88rem 1rem 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#topic-cards .topic-switch-card,
#modal-topic-cards .topic-switch-card {
  min-height: 102px;
  padding: 0.95rem 1.1rem 1rem;
}

#topic-cards .topic-switch-card:hover,
#topic-cards .topic-switch-card:focus,
#modal-topic-cards .topic-switch-card:hover,
#modal-topic-cards .topic-switch-card:focus,
.topic-page .topic-switch-card:hover,
.topic-page .topic-switch-card:focus,
.topics-page .topic-switch-card:hover,
.topics-page .topic-switch-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
  border-color: color-mix(in srgb, var(--topic-card-color, #32372f) 34%, #d8e0e8 66%);
}

.topic-page .topic-switch-card[data-topic] {
  border-left-color: color-mix(in srgb, var(--topic-card-color, #32372f) 88%, white 12%);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 18%, #ffffff 82%) 0%,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 52%, #ffffff 48%) 55%,
      color-mix(in srgb, var(--topic-card-color, #32372f) 18%, #ffffff 82%) 100%);
}

.topic-page .topic-switch-card[data-topic]:hover,
.topic-page .topic-switch-card[data-topic]:focus {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 30%, #ffffff 70%) 0%,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 68%, #ffffff 32%) 55%,
      color-mix(in srgb, var(--topic-card-color, #32372f) 26%, #ffffff 74%) 100%);
  border-left-color: color-mix(in srgb, var(--topic-card-color, #32372f) 95%, white 5%);
}

#topic-cards .topic-switch-card.active-topic-card,
#modal-topic-cards .topic-switch-card.active-topic-card,
.topic-page .topic-switch-card.active-topic-card,
.topics-page .topic-switch-card.active-topic-card {
  border-color: color-mix(in srgb, var(--topic-card-color, #32372f) 55%, #d7dee7 45%);
  border-left-width: 6px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--topic-card-soft, rgba(50, 55, 47, 0.12)) 62%, #ffffff 38%) 0%,
      #ffffff 100%);
}

#topic-cards .topic-switch-card__title,
#modal-topic-cards .topic-switch-card__title,
.topic-page .topic-switch-card__title,
.topics-page .topic-switch-card__title {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.22;
  color: #0f243f;
}

#topic-cards .topic-switch-card__cta,
#modal-topic-cards .topic-switch-card__cta,
.topic-page .topic-switch-card__cta,
.topics-page .topic-switch-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--topic-card-color, #32372f);
}

@media (max-width: 767.98px) {
  #topic-cards .topic-switch-card,
  #modal-topic-cards .topic-switch-card {
    min-height: 82px;
    padding: 0.72rem 0.8rem 0.78rem;
    border-radius: 12px;
  }

  .indicator-page #topic-cards .topic-switch-card {
    min-height: 112px;
    padding: 0.88rem 0.95rem 0.92rem;
  }
}

#topic-cards-modal .modal-content {
  background: #f6f7f8;
  border: none;
  border-radius: 0;
}

#topic-cards-modal .modal-body {
  padding: 0;
}

.switch-topic-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.switch-topic-modal__close {
  margin-top: 0.2rem;
}

.indicator-topic-navigator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.indicator-topic-navigator__label {
  flex: 0 0 auto;
  margin-right: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3ad;
}

.indicator-topic-navigator__track {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.indicator-topic-navigator__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-width: max-content;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.indicator-topic-navigator__dots::-webkit-scrollbar {
  display: none;
}

.indicator-topic-navigator__arrow {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a3acb6;
  transition: color var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.indicator-topic-navigator__arrow i {
  pointer-events: none;
  font-size: 0.98rem;
}

.indicator-topic-navigator__arrow:hover,
.indicator-topic-navigator__arrow:focus-visible {
  background: transparent;
  color: var(--topic-strong-color, #32372f);
  transform: translateY(-1px);
  outline: none;
}

.indicator-topic-navigator__arrow:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}

.indicator-topic-navigator__dot {
  flex: 0 0 auto;
  width: 0.46rem;
  height: 0.46rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(153, 164, 178, 0.38);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.indicator-topic-navigator__dot:hover,
.indicator-topic-navigator__dot:focus-visible {
  background: rgba(120, 132, 146, 0.62);
  transform: scale(1.12);
  outline: none;
}

.indicator-topic-navigator__dot.is-active {
  background: var(--topic-strong-color, #32372f);
  transform: scale(1.15);
  box-shadow: none;
}

.indicator-topic-navigator__dot[aria-current="true"] {
  cursor: default;
}


/* Chart title (indicator dropdown) uses the chart font */
#dropdown-btn,
#dropdown-btn:focus,
#dropdown-btn:active,
#dropdown-btn:focus-visible,
#explorer-topic-dropdown-btn,
#explorer-topic-dropdown-btn:focus,
#explorer-topic-dropdown-btn:active,
#explorer-topic-dropdown-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

#dropdown-btn,
#explorer-topic-dropdown-btn {
  display: inline-grid;
  align-items: center;
  grid-template-columns: 2rem auto 2rem;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

#dropdown-btn::before,
#explorer-topic-dropdown-btn::before {
  content: "";
  grid-column: 1;
  width: 2rem;
}

#dropdown-btn > span.d-flex,
#explorer-topic-dropdown-btn > span.d-flex {
  grid-column: 3;
  justify-self: end;
  width: 2rem;
  height: calc(100% - 4px);
  margin: 0;
  padding: 0 0.32rem;
  border-left: none;
  border-radius: 6px;
  background: #fff;
  color: var(--topic-strong-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#dropdown-btn > span.d-flex i,
#explorer-topic-dropdown-btn > span.d-flex i {
  color: currentColor !important;
}

.indicator-chart-card:has(#dropdown-btn:hover) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#dropdown-btn:focus-visible) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#chart-subtitle:hover) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#chart:hover) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#chart-source:hover) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#chart-maximize-toggle:hover) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#chart-export-toggle:hover) #dropdown-btn > span.d-flex,
.indicator-chart-card:has(#chart-spinner:hover) #dropdown-btn > span.d-flex,
#dropdown-btn[aria-expanded="true"] > span.d-flex {
    opacity: 1;
  }

@media (max-width: 575.98px) {
  #dropdown-btn > span.d-flex {
    opacity: 1;
  }
}

@media (max-width: 575.98px) {
  .explorer-page .explorer-topic-selector-inline,
  .explorer-page .explorer-indicator-selector {
    display: flex !important;
    align-items: center;
    width: 100%;
    max-width: none;
    gap: 0.35rem;
  }

  .explorer-page .explorer-topic-selector-inline > .explorer-topic-dropdown,
  .explorer-page .explorer-indicator-selector > .explorer-indicator-dropdown {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .explorer-page .explorer-topic-selector-inline > .indicator-topic-navigator__arrow,
  .explorer-page .explorer-indicator-selector > .indicator-topic-navigator__arrow {
    flex: 0 0 1.9rem;
    width: 1.9rem;
    height: 1.9rem;
    min-width: 1.9rem;
  }

  .explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-btn,
  .explorer-page .explorer-indicator-dropdown #dropdown-btn {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-label,
  .explorer-page .explorer-indicator-dropdown #dropdown-btn-label {
    min-width: 0;
    min-height: 2.8rem;
    padding: 0.44rem 2.45rem !important;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.08;
  }

  .explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-label,
  .explorer-page .explorer-indicator-dropdown #dropdown-btn-label {
    font-size: 0.92rem;
  }

  .explorer-page .explorer-topic-dropdown #explorer-topic-dropdown-btn > span.d-flex,
  .explorer-page .explorer-indicator-dropdown #dropdown-btn > span.d-flex {
    right: 0.72rem;
  }
}

#dropdown-btn-label,
#explorer-topic-dropdown-label {
  display: block;
  padding: 0.55rem 0.9rem !important;
  text-align: center;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700; /* bold title */
  font-size: 1.5rem; /* larger title */
  line-height: 1.08;
}

#dropdown-btn-label {
  padding-top: 0.55rem !important;
}
@media (max-width: 576px) {
  #dropdown-btn-label,
  #explorer-topic-dropdown-label { font-size: 1.1rem; }
}

.explorer-page #explorer-topic-dropdown-label,
.explorer-page #dropdown-btn-label {
  font-size: 0.98rem;
  line-height: 1.08;
}

@media (max-width: 576px) {
  .explorer-page #explorer-topic-dropdown-label,
  .explorer-page #dropdown-btn-label {
    font-size: 0.92rem;
  }
}

/* Indicator dropdown panel */
#dropdown-btn + .dropdown-menu,
#dropdown-btn ~ .dropdown-menu {
  min-width: min(34rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(62vh, 440px);
  overflow-y: auto;
  padding: 0.45rem;
  margin-top: 0.35rem;
  border: 1px solid #d4dbe3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 47, 63, 0.16);
}

/* Dropdown items for indicators */
#dropdown-btn + .dropdown-menu .dropdown-item,
#dropdown-btn ~ .dropdown-menu .dropdown-item {
  position: relative;
  border-radius: 8px;
  margin: 0.08rem 0;
  padding: 0.48rem 0.68rem 0.48rem 0.95rem;
  line-height: 1.25;
  white-space: normal;
  color: #2f3d4d;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Indicator dropdown: active (current) item */
#dropdown-btn + .dropdown-menu .dropdown-item.active,
#dropdown-btn ~ .dropdown-menu .dropdown-item.active {
  color: #172231;
  background: #e2e4e7;
  font-weight: 700;
}

#dropdown-btn + .dropdown-menu .dropdown-item.active::before,
#dropdown-btn ~ .dropdown-menu .dropdown-item.active::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.36rem;
  bottom: 0.36rem;
  width: 3px;
  border-radius: 3px;
  background: var(--topic-strong-color, #32372f);
}

/* Indicator dropdown: hover/focus */
#dropdown-btn + .dropdown-menu .dropdown-item:hover,
#dropdown-btn + .dropdown-menu .dropdown-item:focus-visible,
#dropdown-btn ~ .dropdown-menu .dropdown-item:hover,
#dropdown-btn ~ .dropdown-menu .dropdown-item:focus-visible {
  background: #d8dbe0;
  color: #111b29;
  outline: none;
}

/* Preserve active appearance when hovered */
#dropdown-btn + .dropdown-menu .dropdown-item.active:hover,
#dropdown-btn + .dropdown-menu .dropdown-item.active:focus-visible,
#dropdown-btn ~ .dropdown-menu .dropdown-item.active:hover,
#dropdown-btn ~ .dropdown-menu .dropdown-item.active:focus-visible {
  color: #172231;
  background: #e2e4e7;
}

/* While IndicatorChartTypeRadioSync flips the SSR-default `bar-radio` to the live currentChartType
   on a soft-nav arrival, drop transitions on the chart-type buttons so the bar `<label>` does not
   visibly fade from the active topic-soft color back to transparent (the source of the brief
   "Bar momentarily highlighted" flash). The marker is removed on the next animation frame so
   user-driven chart type changes still animate normally. */
#chart-types[data-econo-radio-syncing] .btn,
#chart-types[data-econo-radio-syncing] .btn-check + .btn {
  transition: none !important;
}

/* Chart type buttons (Bars, Lines, Map, Data): use brand dark gray instead of blue */
#chart-types .btn.btn-outline-primary {
  --bs-btn-color: var(--my-dark-gray);
  --bs-btn-border-color: #edf0f3;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--my-dark-gray);
  --bs-btn-hover-border-color: #edf0f3;
  --bs-btn-active-color: var(--topic-strong-color, #32372f);
  --bs-btn-active-bg: var(--topic-soft-color, rgba(50, 55, 47, 0.12));
  --bs-btn-active-border-color: color-mix(in srgb, var(--topic-strong-color, #32372f) 28%, #edf0f3 72%);
  /* Match static: no Bootstrap blue focus halo on chart type toggles */
  --bs-btn-focus-box-shadow: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

#chart-types .btn-check:not(:checked) + .btn.btn-outline-primary:hover,
#chart-types .btn-check:not(:checked) + .btn.btn-outline-primary:focus-visible {
  background: #f2f4f6;
  color: var(--my-dark-gray);
  border-color: #edf0f3;
  box-shadow: 0 3px 10px rgba(31, 35, 40, 0.08);
  transform: translateY(-1px);
}

/* Allow chart-type group to wrap on small screens */
#chart-types .btn-group { flex-wrap: wrap; }

/* Hide button text on small screens, keep icons */
@media (max-width: 576px) {
  #chart-types .btn.btn-outline-primary { padding-inline: 0.35rem; }
  #chart-types .btn.btn-outline-primary i { margin-right: 0 !important; }
  #chart-types .btn.btn-outline-primary { gap: 0; }
  #chart-types .btn.btn-outline-primary { white-space: nowrap; }
  #chart-types .btn.btn-outline-primary { display: inline-flex; align-items: center; justify-content: center; }
  #chart-types .btn.btn-outline-primary { min-width: 2.1rem; }
  /* Hide text nodes after the icon by making them transparent and zero width */
  #chart-types .btn.btn-outline-primary { font-size: 0; }
  #chart-types .btn.btn-outline-primary i { font-size: 1rem; }
  .chart-tools { gap: 0.35rem; }
  #chart-map-zoom-out-toggle { font-size: 0; min-width: 2.1rem; justify-content: center; }
  #chart-map-zoom-in-toggle { font-size: 0; min-width: 2.1rem; justify-content: center; }
  #chart-export-toggle { font-size: 0; min-width: 2.1rem; justify-content: center; }
  #chart-maximize-toggle { font-size: 0; min-width: 2.1rem; justify-content: center; }
  .chart-export-menu--floating {
    right: 0.8rem;
    top: 0.8rem;
  }

  body.map-mode .chart-map-zoom-controls {
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
  }

  body.map-mode .chart-map-zoom-controls--below-meta {
    margin-top: 0.08rem;
    margin-bottom: 0;
    margin-left: 0;
  }

  #filter-sidebar .country-group-btn.btn-outline-primary,
  #filter-sidebar .country-group-reset.btn-outline-primary,
  #filter-sidebar .top-count-group .group-action-btn.btn-outline-primary,
  #ranking-filter-sidebar .country-group-btn.btn-outline-primary,
  #ranking-filter-sidebar .country-group-reset.btn-outline-primary,
  #ranking-filter-sidebar .top-count-group .group-action-btn.btn-outline-primary {
    font-size: 0.88rem !important;
    color: var(--my-dark-gray) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ranking-page #chart-types .group-action-btn.btn.btn-outline-primary {
    font-size: 0.88rem !important;
    min-width: 0;
    color: var(--topic-strong-color, #32372f) !important;
  }
}

.chart-container {
  width: 100%;
  height: clamp(320px, 50vh, 460px);
}

.indicator-chart-card {
  position: relative;
}

body.table-mode .chart-container {
  height: auto !important;
  min-height: 0 !important;
}

body.table-mode .dt-container {
  margin-bottom: 0;
}

body.table-mode .dt-scroll-body {
  border-bottom: 0 !important;
}

/* Make chart height responsive on smaller screens */
@media (max-width: 992px) { /* md/lg */
  .chart-container { height: clamp(300px, 48vh, 390px); }
}
@media (max-width: 576px) { /* xs */
  .chart-container { height: clamp(260px, 44vh, 340px); }
  body:not(.map-mode):not(.table-mode) .indicator-chart-card .chart-container,
  body:not(.map-mode):not(.table-mode) .country-indicator-chart-card .chart-container {
    height: clamp(240px, 40vh, 300px);
  }

  body.table-mode #data-table,
  body.table-mode #data-table th,
  body.table-mode #data-table td {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  body.table-mode #data-table th,
  body.table-mode #data-table td {
    padding: 0.35rem 0.45rem;
  }

  body.table-mode .dt-scroll-headInner table.dataTable th,
  body.table-mode .dt-scroll-headInner table.dataTable td,
  body.table-mode .dt-scroll-body table.dataTable th,
  body.table-mode .dt-scroll-body table.dataTable td {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  body.table-mode table.dataTable.compact thead th,
  body.table-mode table.dataTable.compact thead td,
  body.table-mode table.dataTable.compact tfoot th,
  body.table-mode table.dataTable.compact tfoot td,
  body.table-mode table.dataTable.compact tbody th,
  body.table-mode table.dataTable.compact tbody td {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
  }
}

.chart-spinner {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.chart-spinner .spinner-border {
  color: #000 !important;
}

.chart-source {
    font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem; /* a bit smaller */
    text-align: justify;
    color: #838383;
    text-align-last: left;     /* keep last line left-aligned */
    text-justify: inter-word;  /* fallback for some browsers */
    hyphens: auto;             /* nicer wrapping (needs proper lang on <html>) */
    padding-top: 0 !important;
  }

#chart-note {
    padding-top: 0.24rem;
  }

@media (max-width: 991.98px) {
  .ranking-chart-actions {
      flex-wrap: wrap !important;
      justify-content: flex-start;
      overflow-x: visible;
  }

  .ranking-chart-actions > .top-count-group,
  .ranking-chart-actions > .group-action-btn {
    flex: 0 1 auto;
  }

  .ranking-chart-link-row {
    width: 100%;
    justify-content: flex-start;
  }

  .country-indicator-module #chart-types {
    gap: 0.45rem;
    justify-content: flex-start !important;
    margin-right: 0;
  }

  .country-indicator-module .chart-tools {
    margin-left: 0;
    width: auto;
    flex: 0 0 auto;
  }

  .country-indicator-module #filter-btn {
    width: auto;
    justify-content: center;
  }

  .country-indicator-module .ranking-chart-link-row {
      width: auto;
      flex: 0 1 auto;
      justify-content: flex-start;
    }

  .chart-export-menu--floating {
      right: 0;
      top: -2.2rem;
      gap: 0.35rem;
    }

  .country-indicator-module-card .chart-export-menu--floating {
      right: 0;
      top: -2.2rem;
    }

  .country-trend-export-menu.chart-export-menu--floating {
      right: 1px;
      top: 1px;
    }

  .country-indicator-data-card {
      border-left: 0;
      border-top: 1px solid #edf0f3;
      padding: 1rem 0 0;
  }

  .country-indicator-table-wrap {
    margin-top: 0.85rem;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .country-indicator-compare-label {
    font-size: 1.15rem;
  }

  .country-indicator-compare-subtitle {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .country-line-chart {
    height: clamp(240px, 38vh, 320px);
  }

  .chart-source {
    font-size: 0.8rem;
    text-align: left;
    text-align-last: auto;
    text-justify: auto;
    hyphens: none;
  }

  #chart-subtitle > span {
    font-size: 1rem !important;
    text-align: center;
    padding-inline: 0.75rem;
  }

  #chart-subtitle-meta {
    font-size: 0.9rem;
    row-gap: 0.1rem;
  }
}

@media (max-width: 575.98px) {
  .ranking-page .ranking-summary-section,
  .ranking-page .ranking-source-section {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .country-indicator-intro-section {
    padding-top: 0.6rem !important;
    padding-bottom: 0.45rem !important;
  }

  .country-indicator-overview-section {
    padding-top: 0.45rem !important;
    padding-bottom: 0.8rem !important;
  }

  .country-indicator-intro-card .indicator-meta-body {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .country-indicator-module-card {
      padding-top: 1rem;
    }

  .country-indicator-data-card {
      padding-top: 0;
    }

  .country-indicator-overview-grid {
      gap: 0.45rem;
    }

  .country-indicator-table-wrap {
      margin-top: 0.2rem;
    }

  .country-indicator-module #chart-types {
    gap: 0.4rem;
    justify-content: flex-start !important;
    margin-right: 0;
  }

  .country-indicator-module .chart-tools,
  .country-indicator-module .ranking-chart-link-row {
    width: auto;
  }

  .country-indicator-module .chart-tools {
    flex: 0 0 auto;
  }

  .country-indicator-module .ranking-chart-link-row {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .ranking-chart-card-title,
  .country-indicator-module-title {
      font-size: 1.15rem;
      padding-top: 0.65rem;
  }
}

.note-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0;
  border-radius: 999px;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  vertical-align: middle;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

#chart-subtitle-text .note-info,
.ranking-table-subtitle .note-info,
.country-indicator-trend-subtitle .note-info {
  margin-left: 0.35rem;
}

.top-countries-table thead th .note-info,
.ranking-table thead th .note-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-left: 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
  transform: translateY(-0.06em);
}

.top-countries-table thead th .note-info {
  color: #6f7680;
}

.ranking-table thead th .note-info {
  color: var(--topic-strong-color, #32372f);
}

.top-countries-table thead th .note-info i,
.ranking-table thead th .note-info i {
  font-size: 0.85rem;
  line-height: 1;
}

.top-countries-table thead th .note-info.is-open,
.ranking-table thead th .note-info.is-open {
  background: transparent;
  border-color: transparent;
}

.ranking-table thead th .note-info.is-open {
  color: var(--topic-strong-color, #32372f);
}

.note-info i {
    font-size: 0.78rem;
    line-height: 1;
  }

.note-info.is-open {
    background: #fff4f2;
    border-color: #ffc9c4;
    color: #ff5a57;
  }

.note-info:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
  }

.note-info-popover {
    position: fixed;
    z-index: 2000;
    max-width: min(19rem, calc(100vw - 1.5rem));
    padding: 0.6rem 0.75rem;
    border: 1px solid #d7dde3;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
  }

@media (max-width: 575.98px) {
  .app-shell .info-cards-bg.full-width-section:has(> .indicator-meta-container) {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .ranking-page .ranking-chart-section > .indicator-meta-label {
    padding-left: 1rem;
  }

  .indicator-meta-panel {
    gap: 0;
    padding: 0 1rem;
  }

  .indicator-meta-section {
    padding: 0.88rem 0 0.95rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .country-indicator-data-card {
    padding-top: 0 !important;
  }

  .indicator-meta-section--top-countries {
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid #edf0f3;
  }

  .indicator-meta-section--about {
    padding-bottom: 1.2rem;
  }

  .indicator-meta-section--sources-updates {
    padding-top: 0.9rem;
    border-top: 1px solid #edf0f3;
  }

  .indicator-meta-subsection + .indicator-meta-subsection {
    margin-top: 0.85rem;
    padding-top: 0.8rem;
  }

  .indicator-meta-read-more {
    font-size: 0.88rem;
    margin-top: 0.25rem;
    margin-bottom: 0.55rem;
  }

  .indicator-meta-body--clamped.has-read-more:not(.is-expanded)::after {
    height: 3.2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.88) 72%, rgba(255, 255, 255, 1) 100%);
  }

  .top-countries-link {
    margin-top: 0.45rem;
  }

  .note-info-popover {
    max-width: min(18rem, calc(100vw - 1rem));
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
  }
}

.hero-container {
  height: 250px;
  min-height: 200px;
  max-width: 100vw;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 700px;
}

.modal-overlay {
  display: none;
  background: rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
}

/* Home page layout */
.home-shell {
  background:
    radial-gradient(circle at top left, rgba(255, 241, 222, 0.75), rgba(255, 241, 222, 0) 34rem),
    linear-gradient(180deg, #f7f8fa 0%, #ffffff 24rem);
}

.home-hero {
  position: relative;
  padding: 5.4rem 0 4.3rem;
  background:
    radial-gradient(circle at top left, rgba(255, 242, 221, 0.92) 0%, rgba(255, 242, 221, 0) 42%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 54%, #edf1f5 100%);
  color: #101828;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.home-hero__copy {
  max-width: none;
  margin: 0;
  text-align: left;
}

.home-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.home-hero h1 {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.9rem, 2.35rem + 1.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: none;
  margin: 0;
}

.home-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #364152;
  max-width: none;
  margin: 0;
}

.home-intro {
  padding: 1.5rem 0 1.8rem;
}

.home-intro .home-lede {
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
}

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.home-stat__value {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.home-stat__label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: #6b7280;
}

.home-stat {
  min-width: 8rem;
  padding: 1rem 1.1rem 0.95rem;
  border: 1px solid #dfe5ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

.home-launchpad-card {
  display: flex;
  flex-direction: column;
  min-height: 13rem;
  gap: 0.55rem;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 20px;
  border: 1px solid #e0e5eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.98));
  text-decoration: none;
  color: #17212d;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-launchpad-card:hover,
.home-launchpad-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.10);
  border-color: #cdd6e0;
  color: #17212d;
}

.home-launchpad-card__eyebrow,
.home-section__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #667180;
}

.home-launchpad-card__title {
  display: block;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #122235;
}

.home-launchpad-card__body {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4f5d6d;
  max-width: 22rem;
}

.home-section {
  padding: 3.35rem 0;
}

.home-launchpad-card__arrow {
  margin-top: auto;
  font-size: 1.25rem;
  color: #1d2d42;
}

.home-section__header {
  max-width: 43rem;
  margin-bottom: 1.8rem;
}

.home-section__header h2 {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.02;
  margin-bottom: 0.55rem;
}

.home-section__header p {
  color: #516073;
  line-height: 1.65;
  margin-bottom: 0;
}

#home-browse .home-section__header {
  margin-bottom: 0;
}

.home-search-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.4rem;
  border-radius: 24px;
  border: 1px solid #e1e6ec;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.home-search-copy {
  padding: 0.45rem 0.15rem;
}

.home-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.home-secondary-cta {
  border-color: #2b3648;
  color: #2b3648;
}

.home-inline-link {
  color: #22314a;
  font-weight: 700;
  text-decoration: none;
}

.home-inline-link:hover,
.home-inline-link:focus {
  text-decoration: underline;
}

.home-search-panel {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid #e4e9ef;
  background: #ffffff;
}

.home-search-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

#home-indicator-search {
  flex: 1 1 280px;
  min-height: 3.15rem;
  border: 1px solid #ced4da;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
}

#home-search-clear {
  border: 1px solid #c6ced8;
  border-radius: 999px;
  background: #f2f4f7;
  padding: 0.55rem 1.05rem;
  font-weight: 600;
}

.home-search-results {
  margin-top: 1rem;
}

.home-search-list {
  display: grid;
  gap: 0.65rem;
}

.home-search-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: #1f2937;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-search-item:hover,
.home-search-item:focus {
  background: #eef2f7;
  border-color: #cfd6df;
  transform: translateY(-1px);
}

.home-search-item__title {
  font-weight: 600;
}

.home-search-item__topic {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
}

.home-search-empty {
  color: #6b7280;
  font-size: 0.92rem;
  padding: 0.3rem 0.15rem;
}

.home-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.home-showcase {
  padding-top: 2.2rem;
}

.home-topic-showcases {
  display: grid;
  gap: 0;
}

.home-topic-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "intro visual"
    "links visual";
  column-gap: 2.2rem;
  row-gap: 1.15rem;
  align-items: start;
  padding: 2.3rem 0;
}

.home-topic-showcase + .home-topic-showcase {
  border-top: 1px solid #e2e8f0;
}

.home-topic-showcase__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  grid-area: intro;
}

.home-topic-showcase__links-wrap {
  min-width: 0;
  grid-area: links;
}

.home-topic-showcase h3 {
  margin: 0 0 0.95rem;
  line-height: 1;
}

.home-topic-showcase__title-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--topic-soft, rgba(50, 55, 47, 0.12));
  color: var(--topic-color, #32372f);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-topic-showcase__title-link:hover,
.home-topic-showcase__title-link:focus {
  background: color-mix(in srgb, var(--topic-soft, rgba(50, 55, 47, 0.12)) 82%, #ffffff 18%);
  color: var(--topic-color, #32372f);
  text-decoration: none;
  transform: translateY(-1px);
}

.home-topic-showcase__title-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--topic-color, #32372f) 64%, #ffffff 36%);
  outline-offset: 3px;
}

.home-topic-showcase__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: #4a5766;
  max-width: 39rem;
}

.home-topic-showcase__featured-label {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8694;
}

.home-topic-showcase__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.home-topic-showcase__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--topic-color, #32372f) 24%, #d7dde5 76%);
  background: #ffffff;
  color: #344050;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-topic-showcase__link:hover,
.home-topic-showcase__link:focus {
  border-color: color-mix(in srgb, var(--topic-color, #32372f) 40%, #cfd7e0 60%);
  background: color-mix(in srgb, var(--topic-soft, rgba(50, 55, 47, 0.12)) 75%, #ffffff 25%);
  color: #18283b;
  transform: translateY(-1px);
}

.home-topic-showcase__link--more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--topic-color, #32372f);
  border-color: color-mix(in srgb, var(--topic-color, #32372f) 30%, #d7dde5 70%);
}

.home-topic-showcase__link--more:hover,
.home-topic-showcase__link--more:focus {
  color: var(--topic-color, #32372f);
}

.home-topic-showcase__visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
  grid-area: visual;
}

.home-topic-showcase__chart-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-topic-showcase__chart-link:hover,
.home-topic-showcase__chart-link:focus {
  color: inherit;
  text-decoration: none;
}

.home-topic-showcase__chart-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.95rem;
  border: 1px solid #e3e9ef;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--topic-soft, rgba(50, 55, 47, 0.12)) 50%, #ffffff 50%), rgba(255, 255, 255, 0) 55%),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-topic-showcase__chart-link:hover .home-topic-showcase__chart-shell,
.home-topic-showcase__chart-link:focus .home-topic-showcase__chart-shell {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
  border-color: color-mix(in srgb, var(--topic-color, #32372f) 36%, #d5dde6 64%);
}

.home-topic-showcase__chart-meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.7rem;
}

.home-topic-showcase__chart-title {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  color: #15263a;
}

.home-topic-showcase__chart-subtitle {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #556272;
  min-height: 1.3rem;
}

.home-topic-showcase__chart-context {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--topic-color, #32372f);
}

.home-topic-showcase__chart {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 280px;
    pointer-events: none;
  }

.home-topic-showcase__chart-shell--fallback {
    display: flex;
    align-items: stretch;
  }

.home-topic-showcase__chart--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px dashed color-mix(in srgb, var(--topic-color, #32372f) 16%, #d8dee7 84%);
    border-radius: 18px;
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--topic-soft, rgba(50, 55, 47, 0.12)) 45%, #ffffff 55%) 0%,
        #ffffff 100%);
  }

.home-topic-showcase__chart-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--topic-color, #32372f) 26%, transparent 74%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.home-topic-showcase__chart-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(4px);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-topic-showcase__chart-link:hover .home-topic-showcase__chart-overlay,
.home-topic-showcase__chart-link:focus .home-topic-showcase__chart-overlay {
  opacity: 1;
}

.home-topic-showcase__chart-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #7a8694;
    font-size: 0.92rem;
    text-align: center;
  }

.home-topic-card {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.05rem;
  text-decoration: none;
  color: #1f2937;
  border-left: 6px solid var(--topic-color, #32372f);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-topic-card:hover,
.home-topic-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.home-topic-card__title {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.05;
  color: #14263c;
}

.home-topic-card__meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f7c8a;
}

.home-topic-card__body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

.home-topic-card__cta {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--topic-color, #32372f);
}

.home-country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.home-country-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d6dde6;
  background: #ffffff;
  color: #243040;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-country-link:hover,
.home-country-link:focus {
  border-color: #b9c5d1;
  background: #f8fafc;
  color: #111b29;
  transform: translateY(-1px);
}

.home-country-link--all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-color: #c7d7f4;
  background: #eff5ff;
  color: #1f4f95;
  font-weight: 700;
}

.home-country-link--all:hover,
.home-country-link--all:focus {
  border-color: #aac2ec;
  background: #e6f0ff;
  color: #163f7a;
}

.home-explorer__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 2.2rem;
  align-items: start;
}

.home-explorer__copy {
  margin-bottom: 0;
}

.home-explorer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid #d6dde6;
  background: #ffffff;
  color: #243040;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-explorer__cta:hover,
.home-explorer__cta:focus {
  border-color: #b9c5d1;
  background: #f8fafc;
  color: #18283b;
  transform: translateY(-1px);
}

.home-explorer__visual {
  min-width: 0;
}

.home-explorer__viz {
  position: relative;
  display: block;
  padding: 1rem;
  border: 1px solid #e3e9ef;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(238, 244, 250, 0.88) 0%, rgba(238, 244, 250, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-explorer__viz:hover,
.home-explorer__viz:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  border-color: #cfd8e3;
}

.home-explorer__navigator {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: #f2f5f8;
  border: 1px solid #dde4ec;
}

.home-explorer__navigator-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 0.8rem;
  align-items: center;
}

.home-explorer__navigator-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #7a8694;
}

.home-explorer__navigator-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cfd8e3;
  background: #ffffff;
  color: #243040;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.home-explorer__navigator-pill--topic {
  border-color: #b6dbef;
  background: #eef9ff;
  color: #1f5f87;
}

.home-explorer__chart-shell {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  border-radius: 20px;
  border: 1px solid #e1e7ee;
  background: #ffffff;
}

.home-explorer__chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.home-explorer__chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-explorer__chart-tab,
.home-explorer__chart-country-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d4dce5;
  background: #ffffff;
  color: #5a6775;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.home-explorer__chart-tab--active {
  border-color: #b7dcef;
  background: #edf9ff;
  color: #1f5f87;
}

.home-explorer__chart-country-btn {
  border-color: #e3cad0;
  background: #fdf2f4;
  color: #8a4a59;
}

.home-explorer__chart-head {
  display: grid;
  gap: 0.24rem;
  margin-bottom: 0.7rem;
}

.home-explorer__chart-title {
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.05;
  color: #16273b;
}

.home-explorer__chart-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4aa9e8;
}

.home-explorer__bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: 0.5rem;
  height: 220px;
  padding-top: 0.4rem;
  border-top: 1px solid #edf1f5;
}

.home-explorer__bars span {
  display: block;
  width: 100%;
  border-radius: 10px 10px 0 0;
  background: #6c757f;
  opacity: 0.94;
}

.home-explorer__bars span:first-child {
  background: #4aa9e8;
}

.home-explorer__viz-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31, 79, 149, 0.16);
  opacity: 1;
  pointer-events: none;
}

.home-explorer__viz-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(17, 24, 39, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-accordion .accordion-item {
  border-radius: 12px;
  border: 1px solid #e3e7ee;
  overflow: hidden;
}

.home-accordion .accordion-button {
  font-weight: 600;
}

.footer-sep {
  color: #9aa4b2;
  margin: 0 0.35rem;
}

footer.bg-light {
  background: #f4f5f7 !important;
}

.footer-shell {
  max-width: 58rem;
}

.footer-site-line {
  margin: 0 auto 0.65rem;
  max-width: 46rem;
  color: #5a6472;
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #1f4a7a;
  text-decoration: underline;
}

/* Shared keyboard focus treatment for launch-critical interactions */
:where(a[href], button, summary, [role="button"], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.btn-check:focus + .btn,
.btn-check:focus-visible + .btn {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-ring-shadow);
}

/* Indicator + explorer chart type radios: static site had no extra focus ring on these toggles */
#chart-types .btn-check:focus,
#chart-types .btn-check:focus-visible {
  outline: none;
  box-shadow: none;
}

#chart-types .btn-check:focus + .btn.btn-outline-primary,
#chart-types .btn-check:focus-visible + .btn.btn-outline-primary,
#chart-types .btn-check:checked + .btn.btn-outline-primary:focus,
#chart-types .btn-check:checked + .btn.btn-outline-primary:focus-visible {
  outline: none;
  box-shadow: none;
}

#chart-types .btn.btn-outline-primary:focus-visible {
  outline: none;
  box-shadow: none;
}

:where(
  .site-nav__link,
  .site-nav__summary,
  .site-nav-mobile__toggle,
  .site-nav-mobile__link,
  #topics-dropdown .dropdown-item,
  #topics-dropdown-mobile .dropdown-item,
  .indicator-topic-navigator__arrow,
  .indicator-topic-navigator__dot,
  #dropdown-btn,
  #explorer-topic-dropdown-btn,
  .chart-export-action,
  #chart-export-toggle,
  #chart-maximize-toggle,
  #chart-map-zoom-out-toggle,
  #chart-map-zoom-in-toggle,
  #filter-btn,
  #close-filter-sidebar,
  .country-selected-only-toggle,
  .country-selector-help,
  .explorer-topic-dropdown-item,
  .note-info,
  .topic-switch-card
):focus-visible {
  box-shadow: 0 0 0 4px var(--focus-ring-shadow);
}

/* Keep focus visible where older component rules remove outlines. */
.site-nav__link:focus-visible,
.site-nav__summary:focus-visible,
.site-nav-mobile__toggle:focus-visible,
.site-nav-mobile__link:focus-visible,
#topics-dropdown .dropdown-item:focus-visible,
#topics-dropdown-mobile .dropdown-item:focus-visible,
.indicator-topic-navigator__arrow:focus-visible,
.indicator-topic-navigator__dot:focus-visible,
#dropdown-btn:focus-visible,
#explorer-topic-dropdown-btn:focus-visible,
.chart-export-action:focus-visible,
#chart-export-toggle:focus-visible,
#chart-maximize-toggle:focus-visible,
#chart-map-zoom-out-toggle:focus-visible,
#chart-map-zoom-in-toggle:focus-visible,
#filter-btn:focus-visible,
#close-filter-sidebar:focus-visible,
.country-selected-only-toggle:focus-visible,
.country-selector-help:focus-visible,
.explorer-topic-dropdown-item:focus-visible,
.note-info:focus-visible,
.topic-switch-card:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-ring-shadow);
}

.about-page-panel {
  max-width: 72rem;
  margin-inline: 0;
  padding: clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
}

.legal-page-main .about-hero__subtitle {
  max-width: 52rem;
}

.legal-page-panel {
  max-width: 74rem;
}

.legal-page-section {
  scroll-margin-top: 6.5rem;
}

.legal-page-field-list {
  display: grid;
  gap: 0.35rem;
}

.legal-page-subtitle {
  margin: 1.15rem 0 0.45rem;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #2f3b4a;
}

.legal-page-list {
  margin: 0.15rem 0 0.75rem;
  padding-left: 1.2rem;
  color: #4f5a68;
}

.legal-page-list li {
  margin: 0.22rem 0;
  line-height: 1.68;
}

.legal-page-note {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid #d3dae1;
  background: #f8fafc;
  border-radius: 8px;
}

.legal-page-last-updated {
  margin-top: 0.5rem;
  font-size: 0.96rem;
  color: #66717f;
}

.about-hero {
  padding: 5.4rem 0 4.3rem;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.about-hero .indicator-breadcrumb-wrap {
  padding: 0 0 1rem;
}

.about-hero .indicator-breadcrumb {
  color: #748092;
}

.about-hero .indicator-breadcrumb a {
  color: #748092;
}

.about-hero__copy {
  max-width: 72rem;
}

.about-hero__title {
  margin: 0;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.9rem, 2.35rem + 1.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  color: #243040;
}

.about-hero__subtitle {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #475467;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-page-section + .about-page-section {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dfe4e8;
}

.about-page-section__title {
  margin: 0 0 0.7rem;
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #243040;
}

.about-page-section__text {
  margin: 0;
  color: #4f5a68;
  font-size: 1.03rem;
  line-height: 1.75;
}

.about-page-contact-email {
  color: #32372f;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, #32372f 32%, #9aa5b2 68%);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.about-page-contact-email:hover {
  color: #1a2118;
  border-bottom-color: color-mix(in srgb, #32372f 55%, #7d8794 45%);
}

.about-page-contact-email:focus-visible {
  color: #1a2118;
  border-bottom-color: #32372f;
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 992px) {
  .home-hero__inner {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .home-topic-showcase,
  .home-explorer__layout,
  .home-launchpad {
    grid-template-columns: 1fr;
  }

  .home-topic-showcase {
    grid-template-areas:
      "intro"
      "visual"
      "links";
    gap: 1.35rem;
  }

  .home-search-shell {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    max-width: none;
  }

  .home-hero__copy {
      max-width: none;
    }

}

@media (max-width: 576px) {
  .home-hero {
    padding: 4.2rem 0 2.5rem;
  }

  .countries-page .indicator-hero,
  .country-page-main .indicator-hero,
  .explorer-page .indicator-hero {
    padding: 0;
  }

  .countries-page #topic-zone,
  .country-page-main #topic-zone,
  .explorer-page #topic-zone {
    padding: 4.2rem 0 2.5rem;
  }

  .countries-page #topic-zone > .indicator-breadcrumb-wrap,
  .topics-page #topic-zone > .indicator-breadcrumb-wrap,
  .country-page-main #topic-zone > .indicator-breadcrumb-wrap,
  .explorer-page #topic-zone > .indicator-breadcrumb-wrap {
      top: 0.18rem;
    }

  .about-hero {
    padding: 4.2rem 0 2.5rem;
  }

  .about-hero .indicator-breadcrumb-wrap {
    padding-bottom: 0.8rem;
  }

  .about-hero__title {
    font-size: 2.15rem;
  }

  .about-hero__subtitle {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .home-intro {
    display: none;
  }

  .home-launchpad {
    grid-template-columns: 1fr;
  }

  .home-shell .home-topic-showcases,
  #topics-browse .home-topic-showcases {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.1rem 0.05rem 0.55rem;
    margin: 0 -0.05rem;
    scrollbar-width: thin;
  }

  .home-shell .home-topic-showcase,
  #topics-browse .home-topic-showcase {
    flex: 0 0 87%;
    min-width: 87%;
    grid-template-areas:
      "intro"
      "visual"
      "links";
    gap: 0.95rem;
    padding: 1.2rem 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-shell .home-topic-showcase + .home-topic-showcase,
  #topics-browse .home-topic-showcase + .home-topic-showcase {
    border-top: 0;
  }

  .home-topic-showcase__chart-shell {
    padding: 0.75rem;
    border-radius: 18px;
  }

  .home-topic-showcase__chart {
    height: 220px;
  }

  .home-topic-showcase__chart-overlay {
    display: none;
  }

  .home-explorer__viz {
    padding: 0.8rem;
    border-radius: 20px;
  }

  .home-explorer__visual {
    display: none;
  }

  .home-explorer__navigator {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .home-explorer__navigator-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .home-explorer__chart-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .home-explorer__bars {
    height: 180px;
    gap: 0.35rem;
  }

  .home-search-shell {
    padding: 1rem;
    border-radius: 18px;
  }

  .home-search-panel {
    padding: 0.9rem;
  }

  .home-stat {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .home-section {
    padding: 2.7rem 0;
  }
}















