
.intelligence-demo .intelligence-hero {
  grid-template-columns: 1.35fr 0.85fr;
}

.explorer-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.controls-panel {
  position: sticky;
  top: 5.8rem;
}

.controls-panel label {
  display: block;
  margin: 1rem 0 0.35rem;
  color: var(--text);
  font-weight: 800;
}

.controls-panel input,
.controls-panel select {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(159, 195, 255, 0.16);
  color: var(--text);
  background: rgba(7, 11, 20, 0.62);
  outline: none;
}

.controls-panel input:focus,
.controls-panel select:focus {
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08);
}

.control-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.control-buttons button {
  cursor: pointer;
}

.plot-stack {
  display: grid;
  gap: 1.25rem;
}

.plot-panel {
  min-height: 660px;
  padding: 0;
  overflow: hidden;
}

#plot {
  width: 100%;
  height: 660px;
}

.metric-grid,
.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.metric-card,
.score-card {
  padding: 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(110,168,255,0.08), rgba(94,234,212,0.04));
  border: 1px solid rgba(110,168,255,0.12);
}

.metric-card span,
.score-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong,
.score-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.selected-panel {
  padding: 1.4rem;
}

.selected-country h3 {
  margin-top: 0;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.profile-meta span {
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  color: #b4fff1;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.12);
  font-weight: 800;
  font-size: 0.82rem;
}

.indicator-table-wrap {
  overflow-x: auto;
}

.indicator-table,
.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.indicator-table th,
.indicator-table td,
.detail-table th,
.detail-table td {
  padding: 0.72rem 0.65rem;
  border-bottom: 1px solid rgba(153, 177, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

.indicator-table th,
.detail-table th {
  color: var(--text);
  font-size: 0.88rem;
}

.indicator-table td,
.detail-table td {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(110,168,255,0.20);
  background: rgba(110,168,255,0.08);
  color: var(--text);
  font-weight: 800;
}

.warning-box {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

@media (max-width: 980px) {
  .explorer-shell,
  .intelligence-demo .intelligence-hero {
    grid-template-columns: 1fr;
  }

  .controls-panel {
    position: static;
  }

  .plot-panel,
  #plot {
    min-height: 520px;
    height: 520px;
  }
}

.toggle-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  user-select: none;
}

.toggle-row input {
  width: auto;
  min-width: 1rem;
  accent-color: var(--accent-2);
}

.toggle-row span {
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
}

.theory-layer.is-hidden,
.theory-detail-block.is-hidden {
  display: none;
}

.theory-panel {
  position: relative;
  overflow: hidden;
}

.theory-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(94, 234, 212, 0.10), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(110, 168, 255, 0.10), transparent 28%);
}

.theory-panel > * {
  position: relative;
}

.transition-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.2rem 0 1.4rem;
}

.transition-step {
  padding: 0.8rem 0.7rem;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
  text-align: center;
  font-weight: 800;
  font-size: 0.86rem;
}

.transition-step.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(44, 99, 255, 0.62), rgba(94, 234, 212, 0.22));
  border-color: rgba(94, 234, 212, 0.36);
}

.theory-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.theory-card,
.theory-detail-block {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.theory-card h3,
.theory-detail-block h4 {
  margin-top: 0;
}

.diagnostic-list li + li {
  margin-top: 0.55rem;
}

.maturity-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(110,168,255,0.14);
  border: 1px solid rgba(110,168,255,0.26);
  font-weight: 900;
}

.maturity-badge.mature-technosphere-candidate {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.34);
}

.maturity-badge.transitioning-technosphere {
  background: rgba(110, 168, 255, 0.14);
  border-color: rgba(110, 168, 255, 0.34);
}

.maturity-badge.immature-technosphere {
  background: rgba(251, 191, 36, 0.13);
  border-color: rgba(251, 191, 36, 0.32);
}

.maturity-badge.emerging-technosphere,
.maturity-badge.low-system-capacity-state {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.30);
}

.diagnostic-bars {
  display: grid;
  gap: 0.72rem;
  margin: 0.95rem 0;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 170px 1fr 44px;
  align-items: center;
  gap: 0.7rem;
}

.diagnostic-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.diagnostic-track {
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(153, 177, 255, 0.12);
  overflow: hidden;
}

.diagnostic-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(110,168,255,0.88), rgba(94,234,212,0.92));
}

.diagnostic-value {
  color: var(--text);
  text-align: right;
  font-weight: 900;
  font-size: 0.85rem;
}

.gap-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.gap-card {
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(110,168,255,0.08);
  border: 1px solid rgba(110,168,255,0.14);
}

.gap-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.gap-card strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.25rem;
}

@media (max-width: 980px) {
  .transition-steps,
  .theory-grid,
  .gap-strip {
    grid-template-columns: 1fr;
  }

  .diagnostic-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .diagnostic-value {
    text-align: left;
  }
}

.method-panel {
  position: relative;
  overflow: hidden;
}

.method-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(110, 168, 255, 0.10), transparent 26%),
    radial-gradient(circle at 92% 6%, rgba(139, 92, 246, 0.10), transparent 28%);
}

.method-panel > * {
  position: relative;
}

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

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

.method-card,
.formula-panel {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.method-card h3,
.formula-panel h3 {
  margin-top: 0;
}

.formula-panel {
  margin: 1rem 0;
  background:
    linear-gradient(135deg, rgba(110, 168, 255, 0.10), rgba(94, 234, 212, 0.05)),
    rgba(7, 11, 20, 0.42);
}

.formula-panel code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(159, 195, 255, 0.14);
  white-space: normal;
}

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

.readiness-pathway {
  margin: 1rem 0 0.85rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.48);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.readiness-pathway h5 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 0.95rem;
}

.readiness-track {
  position: relative;
  height: 0.85rem;
  margin: 1.65rem 0 1.1rem;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(139, 92, 246, 0.72) 0%,
      rgba(251, 191, 36, 0.72) 38%,
      rgba(110, 168, 255, 0.76) 68%,
      rgba(94, 234, 212, 0.82) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.readiness-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid rgba(94, 234, 212, 0.95);
  box-shadow:
    0 0 0 4px rgba(94, 234, 212, 0.16),
    0 0 22px rgba(94, 234, 212, 0.58);
}

.readiness-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.05rem;
  transform: translateX(-50%);
  width: 2px;
  height: 1.35rem;
  background: rgba(94, 234, 212, 0.85);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.75);
}

.readiness-marker::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: 2.45rem;
  transform: translateX(-50%);
  min-width: max-content;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: #eafffb;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.34);
  font-size: 0.72rem;
  font-weight: 900;
}

.readiness-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.readiness-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.locator-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(110, 168, 255, 0.10);
  border: 1px solid rgba(110, 168, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .readiness-labels {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.transition-lean {
  margin: 0.4rem 0 1.3rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.34);
  border: 1px solid rgba(153, 177, 255, 0.10);
}

.transition-lean-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.transition-lean-track {
  position: relative;
  height: 4.9rem;
  margin-top: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0;
}

.transition-lean-scale {
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 3.25rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(110, 168, 255, 0.28) 0%,
    rgba(110, 168, 255, 0.42) 62%,
    rgba(94, 234, 212, 0.66) 100%
  );
}

.transition-lean-marker {
  position: absolute;
  top: 0.35rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  z-index: 2;
}

.transition-lean-label {
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  color: #ebfffb;
  background: rgba(7, 11, 20, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.30);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.16);
}

.transition-lean-stem {
  width: 2px;
  height: 1.2rem;
  background: rgba(94, 234, 212, 0.9);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.55);
}

.transition-lean-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(94, 234, 212, 0.95);
  box-shadow:
    0 0 0 4px rgba(94, 234, 212, 0.14),
    0 0 18px rgba(94, 234, 212, 0.48);
}

.transition-lean-caption {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.transition-lean-caption strong {
  color: var(--text);
}

@media (max-width: 720px) {
  .transition-lean-label {
    font-size: 0.68rem;
    max-width: 160px;
    text-align: center;
    white-space: normal;
  }
}


/* Fix selected-country lean pointer spacing */
.transition-lean-track {
  position: relative;
  height: 5.4rem;
  margin-top: 0.75rem;
  margin-bottom: 0.95rem;
  padding: 0;
}

.transition-lean-scale {
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 3.45rem;
  height: 2px;
}

.transition-lean-marker {
  position: absolute;
  top: 0.35rem;
  transform: translateX(-50%);
  z-index: 2;
}

.transition-lean-caption {
  margin: 0.4rem 0 0;
  line-height: 1.6;
}

/* Clearer country-readiness subscale inside the current global state */
.transition-lean-current {
  display: grid;
  gap: 0.85rem;
}

.transition-lean-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.stage-lock,
.country-readiness-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.stage-lock {
  color: #dbeafe;
  background: rgba(110, 168, 255, 0.10);
  border: 1px solid rgba(110, 168, 255, 0.24);
}

.country-readiness-chip {
  color: #ebfffb;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.34);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.16);
}

.current-stage-readiness {
  padding: 0.95rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(44, 99, 255, 0.10), rgba(94, 234, 212, 0.05)),
    rgba(7, 11, 20, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.16);
}

.current-stage-title {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.current-stage-track {
  position: relative;
  height: 0.82rem;
  margin: 1.25rem 0 1rem;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(139, 92, 246, 0.78) 0%,
      rgba(251, 191, 36, 0.78) 38%,
      rgba(110, 168, 255, 0.82) 68%,
      rgba(94, 234, 212, 0.92) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.current-stage-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid rgba(94, 234, 212, 0.98);
  box-shadow:
    0 0 0 4px rgba(94, 234, 212, 0.16),
    0 0 22px rgba(94, 234, 212, 0.56);
}

.current-stage-marker::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: 1.55rem;
  transform: translateX(-50%);
  min-width: max-content;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: #ebfffb;
  background: rgba(7, 11, 20, 0.96);
  border: 1px solid rgba(94, 234, 212, 0.34);
  font-size: 0.72rem;
  font-weight: 900;
}

.current-stage-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.transition-lean-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.transition-lean-warning strong {
  color: var(--text);
}

@media (max-width: 720px) {
  .current-stage-labels {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .transition-lean-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Selected-country indicator inside active Earth-context bubble */
.transition-step {
  position: relative;
  overflow: hidden;
}

.transition-step.active.has-country-indicator {
  padding-bottom: 1.55rem;
}

.bubble-country-indicator {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.34rem;
  display: grid;
  gap: 0.14rem;
}

.bubble-country-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  color: #ebfffb;
  background: rgba(7, 11, 20, 0.90);
  border: 1px solid rgba(94, 234, 212, 0.22);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble-country-bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.bubble-country-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(110,168,255,0.92), rgba(94,234,212,0.96));
}

/* Cleaner lower readiness track: dot only, no floating label */
.current-stage-marker::before {
  display: none;
}

.current-stage-track {
  margin-top: 0.95rem;
}

.current-stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.current-stage-score {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  color: #ebfffb;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.30);
  font-size: 0.76rem;
  font-weight: 900;
}

@media (max-width: 720px) {
  .bubble-country-label {
    max-width: 120px;
  }
}


/* Removed duplicate transition header row */
.transition-lean-head {
  display: none !important;
}

/* Readiness tone mapping: badge + score chip + marker all match the same band */

.maturity-badge.emerging-readiness,
.current-stage-score.emerging-readiness {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.34);
}

.maturity-badge.immature-readiness,
.current-stage-score.immature-readiness {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.34);
}

.maturity-badge.transitioning-readiness,
.current-stage-score.transitioning-readiness {
  background: rgba(110, 168, 255, 0.14);
  border-color: rgba(110, 168, 255, 0.34);
}

.maturity-badge.mature-candidate-readiness,
.current-stage-score.mature-candidate-readiness {
  background: rgba(94, 234, 212, 0.14);
  border-color: rgba(94, 234, 212, 0.34);
}

.current-stage-marker.emerging-readiness {
  border-color: rgba(139, 92, 246, 0.98);
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.16),
    0 0 22px rgba(139, 92, 246, 0.56);
}

.current-stage-marker.immature-readiness {
  border-color: rgba(251, 191, 36, 0.98);
  box-shadow:
    0 0 0 4px rgba(251, 191, 36, 0.16),
    0 0 22px rgba(251, 191, 36, 0.56);
}

.current-stage-marker.transitioning-readiness {
  border-color: rgba(110, 168, 255, 0.98);
  box-shadow:
    0 0 0 4px rgba(110, 168, 255, 0.16),
    0 0 22px rgba(110, 168, 255, 0.56);
}

.current-stage-marker.mature-candidate-readiness {
  border-color: rgba(94, 234, 212, 0.98);
  box-shadow:
    0 0 0 4px rgba(94, 234, 212, 0.16),
    0 0 22px rgba(94, 234, 212, 0.56);
}

/* Subtle readiness colour matching inside the active global-context bubble.
   Kept intentionally quiet: no extra glow, no extra labels. */

.bubble-country-label.emerging-readiness {
  border-color: rgba(139, 92, 246, 0.28);
  color: #efe9ff;
}

.bubble-country-label.immature-readiness {
  border-color: rgba(251, 191, 36, 0.28);
  color: #fff4cc;
}

.bubble-country-label.transitioning-readiness {
  border-color: rgba(110, 168, 255, 0.28);
  color: #e7f1ff;
}

.bubble-country-label.mature-candidate-readiness {
  border-color: rgba(94, 234, 212, 0.28);
  color: #e7fffb;
}

.bubble-country-fill.emerging-readiness {
  background: rgba(139, 92, 246, 0.88);
}

.bubble-country-fill.immature-readiness {
  background: rgba(251, 191, 36, 0.88);
}

.bubble-country-fill.transitioning-readiness {
  background: rgba(110, 168, 255, 0.88);
}

.bubble-country-fill.mature-candidate-readiness {
  background: rgba(94, 234, 212, 0.88);
}

/* Compact interpretive cards: status and reading guidance */

.model-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.2rem;
}

.model-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(110, 168, 255, 0.09);
  border: 1px solid rgba(110, 168, 255, 0.20);
  font-size: 0.82rem;
  font-weight: 800;
}

.model-status-pill.caution {
  color: #fff4cc;
  background: rgba(251, 191, 36, 0.10);
  border-color: rgba(251, 191, 36, 0.26);
}

.how-read-card {
  margin: 1.1rem 0 1.2rem;
  padding: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(110, 168, 255, 0.08), rgba(94, 234, 212, 0.04)),
    rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.how-read-card h3 {
  margin: 0 0 0.75rem;
}

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

.how-read-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.how-read-grid strong {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--text);
}

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

/* Selected-country comparison context */

.comparison-block {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.44);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.comparison-block h4 {
  margin: 0 0 0.75rem;
}

.comparison-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.comparison-summary-card {
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(110, 168, 255, 0.07);
  border: 1px solid rgba(110, 168, 255, 0.13);
}

.comparison-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.comparison-summary-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.comparison-table-wrap {
  overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(153, 177, 255, 0.12);
  text-align: right;
  white-space: nowrap;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  color: var(--muted);
}

.comparison-table th {
  color: var(--text);
  font-weight: 900;
}

.comparison-table .positive,
.comparison-note .positive {
  color: #b9fff2;
}

.comparison-table .negative,
.comparison-note .negative {
  color: #ffd6d6;
}

.comparison-table .neutral,
.comparison-note .neutral {
  color: var(--muted);
}

.comparison-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .comparison-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Selected-country source transparency */

.source-transparency {
  margin: 1rem 0;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.44);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.source-transparency summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  list-style: none;
}

.source-transparency summary::-webkit-details-marker {
  display: none;
}

.source-transparency summary::after {
  content: "open";
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(153, 177, 255, 0.13);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-transparency[open] summary::after {
  content: "close";
}

.source-transparency summary strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.source-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.source-mini-card {
  padding: 0.72rem;
  border-radius: 14px;
  background: rgba(110, 168, 255, 0.07);
  border: 1px solid rgba(110, 168, 255, 0.13);
}

.source-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.source-mini-card strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-table-wrap {
  overflow-x: auto;
  margin-top: 0.8rem;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.source-table th,
.source-table td {
  padding: 0.42rem 0.36rem;
  border-bottom: 1px solid rgba(153, 177, 255, 0.12);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.source-table th {
  color: var(--text);
  font-weight: 900;
}

.source-table td {
  color: var(--muted);
}

.source-table code {
  color: #dbeafe;
  font-size: 0.78rem;
}

.source-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.source-status.used {
  color: #e7fffb;
  background: rgba(94, 234, 212, 0.10);
  border: 1px solid rgba(94, 234, 212, 0.24);
}

.source-status.missing {
  color: #fff4cc;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.source-note,
.source-empty p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .source-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .source-transparency summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Selected-country export controls */

.selected-export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.75rem 0 0.25rem;
}

.mini-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(110, 168, 255, 0.09);
  border: 1px solid rgba(110, 168, 255, 0.22);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.mini-action-button:hover {
  transform: translateY(-1px);
  background: rgba(110, 168, 255, 0.14);
  border-color: rgba(110, 168, 255, 0.34);
}

.export-status {
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.export-status.is-visible {
  opacity: 1;
}

.pdf-action-button {
  background: rgba(94, 234, 212, 0.10);
  border-color: rgba(94, 234, 212, 0.24);
}

.pdf-action-button:hover {
  background: rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.34);
}

/* README / Method subpage and DOI strip */

.hero-doi-row {
  margin-top: 0.7rem;
}

.doi-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.34rem 0.42rem 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 220, 255, 0.14);
  background: linear-gradient(180deg, rgba(16, 54, 57, 0.92), rgba(13, 43, 46, 0.94));
  box-shadow: inset 0 1px 0 rgba(221, 247, 255, 0.06), 0 10px 24px rgba(2, 16, 20, 0.22);
  width: fit-content;
  max-width: 100%;
}

.doi-strip-label {
  color: rgba(228, 242, 233, 0.9);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doi-strip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.32rem;
  padding: 0.08rem 0.34rem;
  border-radius: 0.26rem;
  background: rgba(111, 121, 130, 0.42);
  border: 1px solid rgba(210, 220, 228, 0.12);
  color: #f0f4f7;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doi-strip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.52rem;
  padding: 0.08rem 0.56rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #1787dd, #0f72c8);
  border: 1px solid rgba(171, 224, 255, 0.42);
  color: #f4fbff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(233, 247, 255, 0.22), 0 8px 14px rgba(4, 53, 93, 0.22);
  white-space: nowrap;
}

.doi-strip-link:hover {
  background: linear-gradient(180deg, #2796ea, #137fd6);
  border-color: rgba(201, 236, 255, 0.68);
  text-decoration: none;
}

.readme-subpage .readme-hero {
  margin-top: 1rem;
}

.readme-document {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.readme-document h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.readme-document h2 {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(153, 177, 255, 0.16);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.readme-document h3 {
  margin-top: 1.4rem;
  font-size: 1.12rem;
}

.readme-document p,
.readme-document li {
  color: var(--muted);
  line-height: 1.65;
}

.readme-callout {
  margin: 1.1rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(94, 234, 212, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.18);
}

.readme-callout p {
  margin-bottom: 0;
}

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

.readme-link-grid a {
  display: block;
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(110, 168, 255, 0.08);
  border: 1px solid rgba(110, 168, 255, 0.16);
  text-decoration: none;
}

.readme-link-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.readme-link-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.readme-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.readme-stage-row span {
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
  font-size: 0.82rem;
  font-weight: 800;
}

.readme-stage-row .active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(44, 99, 255, 0.62), rgba(94, 234, 212, 0.22));
  border-color: rgba(94, 234, 212, 0.36);
}

.readme-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.readme-mini-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.readme-mini-card h3 {
  margin-top: 0;
}

.readme-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.readme-table th,
.readme-table td {
  padding: 0.58rem 0.55rem;
  border-bottom: 1px solid rgba(153, 177, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

.readme-table th {
  color: var(--text);
  font-weight: 900;
}

.readme-table td {
  color: var(--muted);
}

.readme-equation {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(153, 177, 255, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.readme-reference {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(110, 168, 255, 0.07);
  border: 1px solid rgba(110, 168, 255, 0.14);
}

.readme-document pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(153, 177, 255, 0.14);
}

.readme-document pre code {
  background: transparent;
  padding: 0;
  color: #dbeafe;
}

.readme-document code {
  color: #dbeafe;
}

@media (max-width: 900px) {
  .readme-link-grid,
  .readme-card-grid,
  .readme-stage-row {
    grid-template-columns: 1fr;
  }
}

/* Model Logic consolidated page and DOI strip */

.hero-doi-row {
  margin-top: 0.7rem;
}

.doi-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.34rem 0.42rem 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 220, 255, 0.14);
  background: linear-gradient(180deg, rgba(16, 54, 57, 0.92), rgba(13, 43, 46, 0.94));
  box-shadow: inset 0 1px 0 rgba(221, 247, 255, 0.06), 0 10px 24px rgba(2, 16, 20, 0.22);
  width: fit-content;
  max-width: 100%;
}

.doi-strip-label {
  color: rgba(228, 242, 233, 0.9);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doi-strip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.32rem;
  padding: 0.08rem 0.34rem;
  border-radius: 0.26rem;
  background: rgba(111, 121, 130, 0.42);
  border: 1px solid rgba(210, 220, 228, 0.12);
  color: #f0f4f7;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doi-strip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.52rem;
  padding: 0.08rem 0.56rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #1787dd, #0f72c8);
  border: 1px solid rgba(171, 224, 255, 0.42);
  color: #f4fbff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(233, 247, 255, 0.22), 0 8px 14px rgba(4, 53, 93, 0.22);
  white-space: nowrap;
}

.doi-strip-link:hover {
  background: linear-gradient(180deg, #2796ea, #137fd6);
  border-color: rgba(201, 236, 255, 0.68);
  text-decoration: none;
}

.model-logic-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.model-toc {
  position: sticky;
  top: 1rem;
}

.model-toc h2 {
  margin-top: 0;
}

.model-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.model-toc li + li {
  margin-top: 0.45rem;
}

.model-document {
  max-width: 1060px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.model-document h2 {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(153, 177, 255, 0.16);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.model-document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.model-document h3 {
  margin-top: 1.4rem;
  font-size: 1.12rem;
}

.model-document p,
.model-document li {
  color: var(--muted);
  line-height: 1.65;
}

.model-callout {
  margin: 1.1rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(94, 234, 212, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.18);
}

.model-callout p {
  margin-bottom: 0;
}

.model-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.model-stage-row span {
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
  font-size: 0.82rem;
  font-weight: 800;
}

.model-stage-row .active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(44, 99, 255, 0.62), rgba(94, 234, 212, 0.22));
  border-color: rgba(94, 234, 212, 0.36);
}

.model-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.model-mini-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.42);
  border: 1px solid rgba(153, 177, 255, 0.13);
}

.model-mini-card h3 {
  margin-top: 0;
}

.model-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.model-table th,
.model-table td {
  padding: 0.58rem 0.55rem;
  border-bottom: 1px solid rgba(153, 177, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

.model-table th {
  color: var(--text);
  font-weight: 900;
}

.model-table td {
  color: var(--muted);
}

.model-equation {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(153, 177, 255, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.apa-reference-list p {
  padding-left: 2rem;
  text-indent: -2rem;
}

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

  .model-toc {
    position: static;
  }

  .model-card-grid,
  .model-stage-row {
    grid-template-columns: 1fr;
  }
}

/* Tiny live-indicator heatmap */

.indicator-health-block {
  grid-column: 1 / -1;
}

.indicator-health-map {
  margin-top: 0.35rem;
}

.indicator-health-summary {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 0.42rem;
}

.indicator-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 18px));
  gap: 0.28rem;
  align-items: center;
}

.indicator-health-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  border: 1px solid rgba(153, 177, 255, 0.16);
}

.indicator-health-cell.live {
  color: #e7fffb;
  background: rgba(94, 234, 212, 0.24);
  border-color: rgba(94, 234, 212, 0.45);
}

.indicator-health-cell.skipped {
  color: #fff4cc;
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.42);
}

.indicator-health-cell.fallback {
  color: #d6deee;
  background: rgba(168, 180, 207, 0.16);
  border-color: rgba(168, 180, 207, 0.30);
}

.indicator-health-cell.unknown {
  color: #c8d4e8;
  background: rgba(110, 168, 255, 0.12);
  border-color: rgba(110, 168, 255, 0.24);
}

.indicator-health-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.indicator-health-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.indicator-health-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.indicator-health-legend i.live {
  background: rgba(94, 234, 212, 0.75);
}

.indicator-health-legend i.skipped {
  background: rgba(251, 191, 36, 0.75);
}

.indicator-health-legend i.fallback {
  background: rgba(168, 180, 207, 0.55);
}

/* Snapshot data status */

.status-pill.snapshot-status {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.30);
  color: #e7fffb;
}

/* Data provenance display */

.status-pill.fallback-status {
  background: rgba(168, 180, 207, 0.14);
  border-color: rgba(168, 180, 207, 0.28);
  color: #dbe4f4;
}

.quick-facts #dataUpdated,
.quick-facts #dataSourceRoute {
  color: var(--muted);
}

/* Collapsed country indicator detail */

.indicator-detail-disclosure {
  margin-top: 1rem;
  border: 1px solid rgba(153, 177, 255, 0.16);
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.34);
  overflow: hidden;
}

.indicator-detail-disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 900;
}

.indicator-detail-disclosure > summary::-webkit-details-marker {
  display: none;
}

.indicator-detail-disclosure > summary::after {
  content: "open";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(153, 177, 255, 0.10);
  border: 1px solid rgba(153, 177, 255, 0.16);
  font-size: 0.7rem;
  font-weight: 800;
}

.indicator-detail-disclosure[open] > summary::after {
  content: "close";
}

.indicator-detail-disclosure > summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.indicator-detail-content {
  padding: 0 0.95rem 0.95rem;
}

.indicator-detail-content h2,
.indicator-detail-content h3,
.indicator-detail-content h4,
.indicator-detail-content h5 {
  display: none;
}

/* Cleaner planetary bubble + country readiness header */

.transition-step.has-country-indicator {
  position: relative;
  overflow: hidden;
}

.bubble-country-indicator {
  margin-top: 0.28rem;
  width: 100%;
}

.bubble-country-track {
  display: block;
  width: 100%;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(140, 190, 255, 0.28);
  overflow: hidden;
}

.bubble-country-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 176, 255, 0.95), rgba(122, 224, 255, 0.95));
  box-shadow: 0 0 10px rgba(122, 224, 255, 0.28);
}

.current-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.current-stage-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.current-stage-heading {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.current-stage-country-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.current-stage-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(153, 177, 255, 0.16);
  background: rgba(110, 168, 255, 0.10);
  font-weight: 900;
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .current-stage-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Selected country mention highlight */

.country-mention-highlight {
  color: #ff5a5f;
  font-weight: 950;
  text-shadow: none;
}

/* Keep selected country highlight restrained */

.transition-lean-warning .country-mention-highlight,
.readiness-note .country-mention-highlight,
.comparison-context .country-mention-highlight,
.source-transparency .country-mention-highlight,
.indicator-detail-disclosure .country-mention-highlight {
  color: inherit;
  font-weight: inherit;
  text-shadow: none;
}

/* Streamlined selected-country export area */

.profile-bottom-actions {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(153, 177, 255, 0.16);
  background: rgba(7, 11, 20, 0.34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-bottom-actions-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.profile-bottom-actions-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.profile-bottom-actions-slot {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.profile-pdf-report-button {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .profile-bottom-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-bottom-actions-slot {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Bottom country-report download */

.selected-panel .profile-bottom-actions {
  display: none !important;
}

.country-report-download {
  margin-top: 1.5rem;
}

.report-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.report-download-panel h2 {
  margin-bottom: 0.4rem;
}

.report-download-panel .section-intro {
  margin-bottom: 0;
  max-width: 760px;
}

#downloadCountryPdfReport:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .report-download-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Stable country report CTA and non-flickering highlight */

.country-mention-highlight {
  color: #ff5a5f;
  font-weight: 950;
  text-shadow: none;
}

.report-download-panel {
  position: relative;
  isolation: isolate;
}

.report-download-panel .country-mention-highlight {
  display: inline;
}

/* Clean app.js reset support */

.country-mention-highlight {
  color: #ff5a5f;
  font-weight: 950;
  text-shadow: none;
}

.selected-country-name {
  margin-top: 0;
}

.selected-country-card .model-status-strip.compact {
  margin: 0.75rem 0 1rem;
}

.selected-metrics,
.compact-metrics {
  margin-top: 0.75rem;
}

.selected-diagnostics {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(153, 177, 255, 0.16);
  background: rgba(7, 11, 20, 0.34);
}

.maturity-interpretation {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.country-report-download {
  margin-top: 1.5rem;
}

.report-download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.report-download-panel .section-intro {
  margin-bottom: 0;
  max-width: 760px;
}

#downloadCountryPdfReport:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bubble-country-track {
  display: block;
  width: 100%;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(140, 190, 255, 0.28);
  overflow: hidden;
}

.bubble-country-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 176, 255, 0.95), rgba(122, 224, 255, 0.95));
}

@media (max-width: 760px) {
  .report-download-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
