/* Global Signals — Country Intelligence */

.gsc-page {
  min-height: 100vh;
}

.gsc-main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0 calc(3rem + env(safe-area-inset-bottom, 0px));
  min-height: 70vh;
}

.gsc-hub-head {
  margin-bottom: 1.75rem;
  animation: gs-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gsc-hub-head h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  color: #f4f7fc;
  font-weight: 650;
}

.gsc-hub-desc {
  margin: 0 0 1.1rem;
  max-width: 42rem;
  color: #9aa8bd;
  line-height: 1.55;
  font-size: 1.02rem;
}

.gsc-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.gsc-root {
  margin-top: 0.5rem;
  min-height: 10rem;
}

.gsc-root[data-gsc-state="empty"],
.gsc-root[data-gsc-state="loading"],
.gsc-root[data-gsc-state="error"] {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem 1.1rem;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(14, 22, 38, 0.55);
}

.gsc-root[data-gsc-state="ready"],
.gsc-root[data-gsc-state="detail"] {
  display: block;
  text-align: left;
}

.gsc-empty,
.gsc-loading,
.gsc-error {
  margin: 0;
  max-width: 32rem;
  color: #9aa8bd;
  line-height: 1.55;
}

.gsc-error {
  color: #f0b4b4;
}

.gsc-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 167, 0.28);
  background:
    linear-gradient(135deg, rgba(125, 211, 167, 0.08), transparent 55%),
    rgba(14, 22, 38, 0.75);
}

.gsc-badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0b1220;
  background: #7dd3a7;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gsc-banner p:last-child {
  margin: 0;
  color: #c5d0e0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.gsc-hub-count {
  margin: 0 0 1rem;
  color: #9aa8bd;
  font-size: 0.92rem;
}

.gsc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.9rem;
}

.gsc-card {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(420px 140px at 0% 0%, rgba(61, 139, 253, 0.08), transparent 60%),
    rgba(14, 22, 38, 0.72);
  animation: gs-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gsc-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.gsc-card__title a {
  text-decoration: none;
  color: #f4f7fc;
}

.gsc-card__title a:hover,
.gsc-card__title a:focus-visible {
  color: #7dd3a7;
  outline: none;
}

.gsc-card__region {
  margin: 0 0 0.55rem;
  color: #7dd3a7;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gsc-card__summary {
  margin: 0 0 0.85rem;
  color: #9aa8bd;
  line-height: 1.5;
  font-size: 0.94rem;
}

.gsc-card__summary--empty {
  font-style: italic;
}

.gsc-card__cta a {
  color: #9ec5ff;
  font-size: 0.9rem;
  font-weight: 500;
}

.gsc-detail__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.gsc-detail__nav a {
  color: #9aa8bd;
  text-decoration: none;
  font-size: 0.9rem;
}

.gsc-detail__nav a:hover,
.gsc-detail__nav a:focus-visible {
  color: #7dd3a7;
  outline: none;
}

.gsc-detail__head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  animation: gs-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gsc-detail__head h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: -0.03em;
  color: #f4f7fc;
  font-weight: 650;
}

.gsc-iso {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  vertical-align: middle;
  color: #9ec5ff;
  background: rgba(61, 139, 253, 0.12);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gsc-detail__region {
  margin: 0 0 0.75rem;
  color: #7dd3a7;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88rem;
}

.gsc-detail__summary {
  margin: 0;
  max-width: 46rem;
  color: #c5d0e0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.gsc-section {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(14, 22, 38, 0.55);
}

.gsc-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #f4f7fc;
}

.gsc-section h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: #e8eef7;
  font-weight: 600;
}

.gsc-list,
.gsc-events,
.gsc-trades,
.gsc-risks,
.gsc-related,
.gsc-citizen {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gsc-list li,
.gsc-trades li,
.gsc-related li,
.gsc-citizen li,
.gsc-risks li {
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.gsc-list li:last-child,
.gsc-trades li:last-child,
.gsc-related li:last-child,
.gsc-citizen li:last-child,
.gsc-risks li:last-child,
.gsc-events li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.gsc-list__notes {
  display: block;
  margin-top: 0.25rem;
  color: #9aa8bd;
  line-height: 1.45;
  font-size: 0.92rem;
}

.gsc-list__type {
  display: inline-block;
  margin-left: 0.45rem;
  color: #7dd3a7;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gsc-event {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.gsc-event__label,
.gsc-risks .gsc-event__label {
  margin: 0 0 0.35rem;
  color: #f0d48a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gsc-event p,
.gsc-risks li > p:not(.gsc-event__label) {
  margin: 0 0 0.5rem;
  color: #c5d0e0;
  line-height: 1.5;
}

.gsc-event__asof {
  margin: 0.35rem 0 0 !important;
  color: #9aa8bd !important;
  font-size: 0.82rem;
}

.gsc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.gsc-chip {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #9aa8bd;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.gsc-empty-inline {
  margin: 0;
  color: #9aa8bd;
  font-style: italic;
  line-height: 1.5;
}

.gsc-note {
  margin: 0.85rem 0 0;
  color: #9aa8bd;
  font-size: 0.88rem;
  line-height: 1.5;
}

.gsc-note a {
  color: #9ec5ff;
}

.gsc-citizen__cat {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: #7dd3a7;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
}

.gsc-citizen__cat:hover,
.gsc-citizen__cat:focus-visible {
  text-decoration: underline;
  outline: none;
}

.gsc-trades a,
.gsc-related a {
  color: #9ec5ff;
  text-decoration: none;
}

.gsc-trades a:hover,
.gsc-related a:hover,
.gsc-trades a:focus-visible,
.gsc-related a:focus-visible {
  color: #7dd3a7;
  outline: none;
}

.gs-top nav a[aria-current="page"] {
  color: #7dd3a7;
}

@media (max-width: 40rem) {
  .gsc-main {
    padding-top: 5.75rem;
  }

  .gsc-section {
    padding: 1rem 0.9rem;
  }

  .gsc-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gsc-hub-head,
  .gsc-card,
  .gsc-detail__head {
    animation: none;
  }
}
