:root {
  --country-accent: #8fd8e8;
  --country-accent-strong: #246b7d;
  --country-ink: #132532;
  --country-muted: #6a7d8b;
  --country-line: #e2ebef;
  --country-soft: #f7fafb;
  --country-card: rgba(255, 255, 255, 0.92);
  --country-shadow: 0 14px 38px rgba(29, 56, 72, 0.065);
  --country-shadow-soft: 0 8px 24px rgba(29, 56, 72, 0.045);
  --country-gold: #b98b17;
  --country-green: #20815c;
  --country-blue: #4f8fb5;
  --country-violet: #7c72b8;
  --geo-side-height: 760px;
}

.hero-art {
  background: radial-gradient(ellipse at center, #d7edf5, transparent 68%);
}

.site-header .brand.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.countries-header-logo {
  display: block;
  width: 132px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

/* =========================================================
   SEARCH WORKSPACE DIRECTLY BELOW HERO
========================================================= */
.directory-search-hub {
  padding-top: clamp(2rem, 4vw, 3.2rem);
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--country-line);
  border-bottom: 1px solid var(--country-line);
  background:
    radial-gradient(circle at 8% 0%, rgba(143, 216, 232, 0.12), transparent 26rem),
    #ffffff;
}

.search-hub-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.search-hub-heading h2 {
  margin: 0.35rem 0 0;
}

.search-hub-heading p {
  max-width: 760px;
  margin: 0.6rem 0 0;
  color: var(--country-muted);
  line-height: 1.55;
}

.country-search-form {
  margin: 0;
}

.country-region-chips {
  margin-top: 0.8rem;
}

.country-browse-shell,
.search-results-panel {
  margin-top: 1rem;
  border: 1px solid var(--country-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--country-shadow-soft);
}

.country-browse-shell {
  padding: 1rem;
}

.search-subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.search-subheading strong {
  color: var(--country-ink);
  font-size: 0.95rem;
}

.search-subheading p {
  margin: 0.18rem 0 0;
  color: var(--country-muted);
  font-size: 0.78rem;
}

.search-subheading > span {
  color: var(--country-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.country-browse-scroll {
  max-height: 390px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bfd0d8 transparent;
  padding-right: 0.25rem;
}

.country-browse-scroll::-webkit-scrollbar,
.business-results-scroll::-webkit-scrollbar,
.geo-country-leaders::-webkit-scrollbar {
  width: 9px;
}

.country-browse-scroll::-webkit-scrollbar-track,
.business-results-scroll::-webkit-scrollbar-track,
.geo-country-leaders::-webkit-scrollbar-track {
  background: transparent;
}

.country-browse-scroll::-webkit-scrollbar-thumb,
.business-results-scroll::-webkit-scrollbar-thumb,
.geo-country-leaders::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #bfd0d8;
  background-clip: padding-box;
}

.search-results-panel {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.search-results-panel .section-heading {
  margin-bottom: 0.8rem;
}

.search-results-panel .filter-panel {
  margin-bottom: 0.8rem;
}

.business-results-scroll {
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bfd0d8 transparent;
  padding-right: 0.25rem;
}

/* =========================================================
   GEOGRAPHY
========================================================= */
.geo-intelligence {
  padding-top: clamp(2.8rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.8rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 216, 232, 0.1), transparent 28rem),
    linear-gradient(180deg, #fbfdfe 0%, #f6fafb 100%);
  border-bottom: 1px solid var(--country-line);
}

.geo-intelligence-head,
.geo-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.4rem;
}

.geo-intelligence-head {
  margin-bottom: 1rem;
}

.geo-intelligence-head h2,
.geo-panel-heading h3 {
  margin: 0.35rem 0 0;
  color: var(--country-ink);
}

.geo-intelligence-head > div > p {
  max-width: 760px;
  margin: 0.65rem 0 0;
  color: var(--country-muted);
  line-height: 1.55;
}

.geo-live-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.62rem 0.88rem;
  border: 1px solid var(--country-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--country-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.geo-live-status.is-ready {
  color: #187651;
}

.geo-live-status.is-error {
  color: #9a5a00;
}

.geo-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--country-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--country-shadow-soft);
}

.geo-summary-strip > div {
  min-width: 0;
  padding: 0.9rem 1.05rem;
  border-right: 1px solid var(--country-line);
}

.geo-summary-strip > div:last-child {
  border-right: 0;
}

.geo-summary-strip span,
.geo-summary-strip small {
  display: block;
  color: var(--country-muted);
}

.geo-summary-strip span {
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geo-summary-strip strong {
  display: block;
  margin-top: 0.22rem;
  color: var(--country-ink);
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.geo-summary-strip small {
  margin-top: 0.16rem;
  font-size: 0.69rem;
}

.geo-regions-panel,
.geo-progress-panel,
.geo-leaders-panel {
  min-width: 0;
  border: 1px solid var(--country-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--country-shadow);
}

.geo-regions-panel {
  padding: 1.2rem;
}

.geo-panel-heading {
  margin-bottom: 1rem;
}

.geo-panel-heading > span {
  max-width: 360px;
  color: var(--country-muted);
  font-size: 0.77rem;
  text-align: right;
  line-height: 1.4;
}

.geo-region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

/* Softer premium cards, 4 per row */
.geo-region-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  overflow: hidden;
  border: 1px solid #e6edf1;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(247,251,252,0.92)) !important;
  color: var(--country-ink) !important;
  text-align: left;
  cursor: pointer;
  appearance: none;
  box-shadow:
    0 10px 28px rgba(25, 54, 70, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.92);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.geo-region-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(64,142,165,0.28), rgba(143,216,232,0.72), rgba(143,216,232,0));
}

.geo-region-card:hover,
.geo-region-card:focus-visible {
  transform: translateY(-2px);
  border-color: #cfe0e6;
  box-shadow:
    0 14px 34px rgba(25, 54, 70, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.96);
}

.geo-region-card.is-global {
  background:
    radial-gradient(circle at 0% 0%, rgba(143, 216, 232, 0.13), transparent 58%),
    linear-gradient(145deg, #ffffff, #f7fbfc) !important;
}

.geo-region-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 0.7rem;
  align-items: center;
}

/* Globe / continent icon only. No badge background. */
.geo-region-icon {
  display: inline-block;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 1.8rem;
  line-height: 1;
}

.geo-region-heading small {
  display: block;
  color: var(--country-muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.geo-region-heading strong {
  display: block;
  margin-top: 0.14rem;
  color: var(--country-ink);
  font-size: 1.03rem;
  line-height: 1.15;
}

.geo-region-represented {
  grid-column: 1 / -1;
  color: var(--country-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.geo-card-metrics {
  display: grid;
  gap: 0.53rem;
}

.geo-card-metric {
  display: block;
}

.geo-card-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--country-muted);
  font-size: 0.69rem;
}

.geo-card-metric-head > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.3rem;
}

.geo-card-metric-head i {
  font-style: normal;
  opacity: 0.82;
}

.geo-card-metric-head b {
  flex: 0 0 auto;
  color: var(--country-ink);
  font-size: 0.75rem;
}

.geo-card-meter {
  display: block;
  height: 5px;
  margin-top: 0.25rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f4;
}

.geo-card-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #397d91 0%, #78c8d9 68%, #a8e2ec 100%);
}

.geo-card-metric.is-unavailable {
  opacity: 0.52;
}

/* Coverage and top countries */
.geo-performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(390px, 0.85fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: stretch;
}

.geo-progress-panel,
.geo-leaders-panel {
  height: var(--geo-side-height);
  box-sizing: border-box;
}

.geo-progress-panel {
  padding: 1.15rem;
  overflow: hidden;
}

.geo-leaders-panel {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

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

.registry-tier-summary .tier {
  min-width: 0;
  padding: 0.68rem;
  border: 1px solid #e7eef2;
  border-radius: 14px;
  background: rgba(248, 251, 252, 0.86);
}

.registry-tier-summary .tier span,
.registry-tier-summary .tier small {
  display: block;
}

.registry-tier-summary .tier span {
  color: var(--country-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.registry-tier-summary .tier strong {
  display: block;
  margin-top: 0.16rem;
  color: var(--country-ink);
  font-size: 1.05rem;
}

.registry-tier-summary .tier small {
  margin-top: 0.12rem;
  color: var(--country-muted);
  font-size: 0.63rem;
}

.registry-tier-summary .tier-gold {
  border-color: rgba(185, 139, 23, 0.22);
  background: rgba(185, 139, 23, 0.045);
}

.registry-tier-summary .tier-green {
  border-color: rgba(32, 129, 92, 0.2);
  background: rgba(32, 129, 92, 0.045);
}

.registry-tier-summary .tier-blue {
  border-color: rgba(79, 143, 181, 0.2);
  background: rgba(79, 143, 181, 0.045);
}

.geo-progress-stack {
  display: grid;
  gap: 0.55rem;
}

.geo-progress-card {
  padding: 0.72rem 0.85rem;
  border: 1px solid #e6edf1;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
}

.geo-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.geo-progress-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.geo-progress-icon {
  display: inline-block;
  flex: 0 0 auto;
  border: 0;
  background: none;
  font-size: 0.95rem;
  line-height: 1;
}

.registry-gold-icon {
  color: var(--country-gold);
}

.registry-green-icon {
  color: var(--country-green);
}

.registry-blue-icon {
  color: var(--country-blue);
}

.readiness-strong-icon {
  color: var(--country-violet);
}

.geo-progress-heading span {
  display: block;
  color: var(--country-muted);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.geo-progress-heading strong {
  display: block;
  margin-top: 0.13rem;
  overflow: hidden;
  color: var(--country-ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-progress-heading > b {
  flex: 0 0 auto;
  color: var(--country-accent-strong);
  font-size: 0.92rem;
}

.geo-progress-track {
  height: 6px;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f4;
}

.geo-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #397d91 0%, #78c8d9 68%, #a8e2ec 100%);
  transition: width 320ms ease;
}

.registry-tier-track.gold > span {
  background: linear-gradient(90deg, #9a730d, #c69a2b, #e4c76e);
}

.registry-tier-track.green > span {
  background: linear-gradient(90deg, #176847, #2f936b, #77c7a4);
}

.registry-tier-track.blue > span {
  background: linear-gradient(90deg, #3f7698, #5f9fc2, #9bc7dc);
}

.readiness-tier-track > span {
  background: linear-gradient(90deg, #625b98, #877fc1, #bbb5df);
}

/* Right list stays equal height and scrolls */
.geo-country-leaders {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 0.12rem 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #bfd0d8 transparent;
}

.geo-country-leaders li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px solid #eef3f5;
}

.geo-country-leaders li:last-child {
  border-bottom: 0;
}

.geo-leader-rank {
  color: #8799a6;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.geo-country-leaders a {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.geo-country-flag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e5ecef;
  border-radius: 11px;
  background: rgba(255,255,255,0.86);
  font-size: 1.1rem;
}

.geo-leader-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.geo-leader-heading strong {
  overflow: hidden;
  color: var(--country-ink);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-leader-heading small {
  color: var(--country-muted);
  font-size: 0.65rem;
}

.geo-leader-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem 0.62rem;
  margin-top: 0.24rem;
  color: var(--country-muted);
  font-size: 0.66rem;
}

.geo-leader-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.geo-leader-stats i {
  font-style: normal;
}

.geo-scroll-hint {
  white-space: nowrap;
}

/* Country cards inside the scroll workspace */
.browse-card .card-symbol {
  font-size: 1.8rem;
}

.country-card-live {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e9eff2;
}

.country-card-live b,
.country-card-live small {
  display: block;
}

.country-card-live b {
  color: var(--country-ink);
  font-size: 0.76rem;
}

.country-card-live small {
  color: var(--country-muted);
  font-size: 0.62rem;
}

.country-card-live.is-empty {
  display: block;
  color: #8a6b33;
  font-weight: 700;
}

.browse-card.is-unrepresented {
  background: #fbfcfd;
}

@media (prefers-reduced-motion: reduce) {
  .geo-progress-track > span,
  .geo-region-card {
    transition: none;
  }
}

@media (max-width: 1280px) {
  .geo-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .geo-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geo-performance-grid {
    grid-template-columns: 1fr;
  }

  .geo-progress-panel,
  .geo-leaders-panel {
    height: auto;
  }

  .geo-country-leaders {
    max-height: 620px;
  }
}

@media (max-width: 760px) {
  .countries-header-logo {
    width: 116px;
    height: auto;
    max-height: 54px;
  }

  .search-hub-heading,
  .search-subheading,
  .geo-intelligence-head,
  .geo-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .geo-panel-heading > span {
    max-width: none;
    text-align: left;
  }

  .geo-summary-strip,
  .geo-region-grid,
  .registry-tier-summary {
    grid-template-columns: 1fr;
  }

  .business-results-scroll {
    max-height: 540px;
  }

  .country-browse-scroll {
    max-height: 340px;
  }

  .country-card-live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geo-progress-heading strong {
    white-space: normal;
  }

  .geo-scroll-hint {
    white-space: normal;
  }
}

/* =========================================================
   COUNTRIES 6.4.4 — SOFT LISTING-STYLE CONTINENT CARDS
   Append after v6.4.3 styles.
========================================================= */

.geo-region-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.geo-region-card,
.geo-region-card.is-global {
  min-height: 214px;
  padding: 0.9rem 1rem;
  gap: 0.6rem;
  border: 1px solid #dce6eb;
  border-radius: 14px;
  background: #ffffff !important;
  box-shadow: 0 5px 16px rgba(20, 46, 61, 0.035);
}

.geo-region-card::before {
  display: none;
}

.geo-region-card:hover,
.geo-region-card:focus-visible {
  transform: translateY(-1px);
  border-color: #c7d7df;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(20, 46, 61, 0.06);
}

/* Wide header: icon, title and represented count share one row. */
.geo-region-top {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.geo-region-icon {
  font-size: 1.6rem;
}

.geo-region-heading {
  min-width: 0;
}

.geo-region-heading small {
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.geo-region-heading strong {
  margin-top: 0.08rem;
  font-size: 0.98rem;
}

.geo-region-represented {
  grid-column: auto;
  justify-self: end;
  max-width: 118px;
  color: #738793;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

/* Let each metric use the full card width. */
.geo-card-metrics {
  width: 100%;
  gap: 0.42rem;
  margin-top: 0.05rem;
}

.geo-card-metric {
  width: 100%;
}

.geo-card-metric-head {
  width: 100%;
  font-size: 0.66rem;
}

.geo-card-metric-head b {
  font-size: 0.72rem;
}

.geo-card-meter {
  width: 100%;
  height: 4px;
  margin-top: 0.2rem;
  background: #edf1f3;
}

/* Solid metric colors, no gradients. */
.geo-card-metric:nth-child(1) .geo-card-meter i {
  background: #d95656;
}

.geo-card-metric:nth-child(2) .geo-card-meter i {
  background: #e58a35;
}

.geo-card-metric:nth-child(3) .geo-card-meter i {
  background: #2f9a68;
}

.geo-card-metric:nth-child(4) .geo-card-meter i {
  background: #4287cf;
}

.geo-card-metric:nth-child(5) .geo-card-meter i {
  background: #6f76c8;
}

/* Coverage bars use matching solid colors. */
#geo-country-progress-bar {
  background: #4287cf;
}

#geo-mapped-progress-bar {
  background: #d95656;
}

#geo-agentic-progress-bar {
  background: #e58a35;
}

#geo-gold-progress-bar {
  background: #c59a28;
}

#geo-green-progress-bar {
  background: #2f9a68;
}

#geo-blue-progress-bar {
  background: #4287cf;
}

#geo-strong-progress-bar {
  background: #6f76c8;
}

.geo-progress-track > span,
.registry-tier-track.gold > span,
.registry-tier-track.green > span,
.registry-tier-track.blue > span,
.readiness-tier-track > span {
  background-image: none;
}

/* Tighter coverage cards and less dead vertical space. */
.geo-progress-stack {
  gap: 0.48rem;
}

.geo-progress-card {
  padding: 0.66rem 0.82rem;
  border-radius: 13px;
  box-shadow: none;
}

.geo-progress-track {
  height: 5px;
  margin-top: 0.42rem;
}

:root {
  --geo-side-height: 680px;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .geo-region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .geo-region-represented {
    max-width: 96px;
  }
}

@media (max-width: 1180px) {
  .geo-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geo-region-card,
  .geo-region-card.is-global {
    min-height: 205px;
  }
}

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

  .geo-region-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .geo-region-represented {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

/* =========================================================
   COUNTRIES 6.4.6
   Country directory directly below hero/search.
   One-row country cards + compact responsive typography.
========================================================= */

.directory-search-hub {
  padding-top: clamp(1.5rem, 2.4vw, 2.4rem);
  padding-bottom: clamp(1.5rem, 2.4vw, 2.4rem);
}

.search-hub-heading {
  margin-bottom: 0.8rem;
}

.search-hub-heading h2 {
  font-size: clamp(1.7rem, 2.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.search-hub-heading p {
  max-width: 900px;
  margin-top: 0.45rem;
  font-size: clamp(0.74rem, 0.82vw, 0.92rem);
  line-height: 1.45;
}

.country-search-form {
  margin-top: 0.8rem;
}

.country-search-form input,
.country-search-form button {
  min-height: 44px;
  font-size: clamp(0.75rem, 0.8vw, 0.9rem);
}

.country-region-chips {
  margin-top: 0.65rem;
}

.country-region-chips button,
.country-region-chips .chip {
  font-size: clamp(0.62rem, 0.7vw, 0.78rem);
}

/* Country panel sits immediately below its search controls. */
.country-browse-shell {
  margin-top: 0.75rem;
  padding: 0.8rem;
  overflow: hidden;
  border-radius: 16px;
}

.search-subheading {
  margin-bottom: 0.55rem;
}

.search-subheading strong {
  font-size: clamp(0.82rem, 0.9vw, 1rem);
}

.search-subheading p,
.search-subheading > span {
  font-size: clamp(0.6rem, 0.66vw, 0.74rem);
}

/* One row only. The row scrolls horizontally after the visible width. */
.country-browse-scroll {
  width: 100%;
  max-height: 222px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b9cad3 transparent;
  padding: 0.08rem 0 0.3rem;
}

.country-browse-scroll::-webkit-scrollbar {
  height: 8px;
}

.country-browse-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.country-browse-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b9cad3;
}

.country-browse-scroll .browse-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: 1fr !important;
  grid-auto-flow: column !important;
  grid-auto-columns: clamp(180px, 14vw, 225px);
  gap: clamp(0.5rem, 0.65vw, 0.72rem);
  width: max-content;
  min-width: 100%;
  align-items: stretch;
}

.country-browse-scroll .browse-card {
  min-width: 0;
  min-height: 178px;
  max-height: 194px;
  padding: clamp(0.72rem, 0.8vw, 0.9rem);
  overflow: hidden;
  border-radius: 13px;
}

.country-browse-scroll .browse-card h3,
.country-browse-scroll .browse-card .card-title,
.country-browse-scroll .browse-card strong {
  font-size: clamp(0.74rem, 0.75vw, 0.88rem);
  line-height: 1.18;
}

.country-browse-scroll .browse-card p,
.country-browse-scroll .browse-card small,
.country-browse-scroll .browse-card a {
  font-size: clamp(0.55rem, 0.58vw, 0.67rem);
  line-height: 1.28;
}

.country-browse-scroll .browse-card .card-symbol {
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
}

.country-browse-scroll .country-card-live {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  margin-top: 0.45rem;
  padding-top: 0.42rem;
}

.country-browse-scroll .country-card-live b {
  font-size: clamp(0.6rem, 0.62vw, 0.72rem);
}

.country-browse-scroll .country-card-live small {
  font-size: clamp(0.46rem, 0.5vw, 0.57rem);
  line-height: 1.1;
}

/* Business search remains below the country row, not between hero and country browse. */
.search-results-panel {
  margin-top: 0.8rem;
}

/* Global + continents remain 4-up on large displays, 2-up on tablets, 1-up on phones. */
.geo-region-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.geo-region-heading strong {
  font-size: clamp(0.78rem, 0.86vw, 0.98rem);
}

.geo-region-heading small,
.geo-region-represented,
.geo-card-metric-head {
  font-size: clamp(0.5rem, 0.56vw, 0.66rem);
}

.geo-card-metric-head b {
  font-size: clamp(0.56rem, 0.6vw, 0.72rem);
}

@media (max-width: 1180px) {
  .country-browse-scroll {
    max-height: 212px;
  }

  .country-browse-scroll .browse-grid {
    grid-auto-columns: clamp(175px, 22vw, 210px);
  }

  .geo-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .directory-search-hub {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }

  .search-hub-heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .country-browse-shell {
    padding: 0.65rem;
  }

  .country-browse-scroll {
    max-height: 202px;
  }

  .country-browse-scroll .browse-grid {
    grid-auto-columns: minmax(164px, 76vw);
    gap: 0.55rem;
  }

  .country-browse-scroll .browse-card {
    min-height: 168px;
    max-height: 184px;
  }

  .country-browse-scroll .country-card-live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geo-region-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   COUNTRIES 6.4.7 — 4-UP COUNTRY GRID + LEADER ALIGNMENT
========================================================= */

/* ---------------------------------------------------------
   COUNTRY BROWSE
   4 cards per row on desktop, vertical scroll only.
--------------------------------------------------------- */
.country-browse-scroll {
  width: 100%;
  max-height: 430px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0.08rem 0.28rem 0.2rem 0;
}

.country-browse-scroll .browse-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 0.72rem;
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch;
}

.country-browse-scroll .browse-card {
  width: 100%;
  min-width: 0;
  min-height: 150px;
  max-height: none;
  padding: 0.78rem 0.82rem;
  overflow: hidden;
  border-radius: 13px;
}

.country-browse-scroll .browse-card h3,
.country-browse-scroll .browse-card .card-title,
.country-browse-scroll .browse-card strong {
  font-size: clamp(0.78rem, 0.82vw, 0.92rem);
  line-height: 1.18;
}

.country-browse-scroll .browse-card p,
.country-browse-scroll .browse-card small,
.country-browse-scroll .browse-card a {
  font-size: clamp(0.57rem, 0.6vw, 0.69rem);
  line-height: 1.28;
}

.country-browse-scroll .country-card-live {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
  margin-top: 0.5rem;
  padding-top: 0.46rem;
}

.country-browse-scroll .country-card-live b {
  font-size: clamp(0.62rem, 0.65vw, 0.74rem);
}

.country-browse-scroll .country-card-live small {
  font-size: clamp(0.47rem, 0.5vw, 0.58rem);
  line-height: 1.08;
}

/* ---------------------------------------------------------
   COVERAGE PANEL
   Keep all seven bars inside the card, including the last one.
--------------------------------------------------------- */
.geo-progress-panel,
.geo-leaders-panel {
  height: 640px;
}

.geo-progress-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.geo-progress-panel .geo-panel-heading {
  flex: 0 0 auto;
}

.registry-tier-summary {
  flex: 0 0 auto;
}

.geo-progress-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr !important;
  grid-template-rows: repeat(7, minmax(58px, 1fr));
  gap: 0.48rem;
  overflow: hidden;
  padding: 0;
}

.geo-progress-card {
  min-height: 0;
  height: 100%;
  padding: 0.58rem 0.78rem;
}

.geo-progress-heading {
  min-height: 31px;
}

.geo-progress-heading strong {
  font-size: clamp(0.7rem, 0.7vw, 0.82rem);
  line-height: 1.15;
}

.geo-progress-heading span {
  font-size: clamp(0.53rem, 0.55vw, 0.63rem);
}

.geo-progress-heading > b {
  font-size: clamp(0.78rem, 0.78vw, 0.9rem);
}

.geo-progress-track {
  height: 5px;
  margin-top: 0.34rem;
}

/* ---------------------------------------------------------
   TOP COUNTRIES
   Flag, country name and stats align on one visual baseline.
--------------------------------------------------------- */
.geo-country-leaders li {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0.66rem 0;
  align-items: center;
}

.geo-country-leaders a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.88rem;
  align-items: center;
}

.geo-country-flag {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.18rem;
  line-height: 1;
}

.geo-leader-main {
  min-width: 0;
  padding-top: 0.02rem;
}

.geo-leader-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 18px;
}

.geo-leader-heading strong {
  font-size: clamp(0.76rem, 0.78vw, 0.9rem);
  line-height: 1.18;
}

.geo-leader-heading small {
  font-size: clamp(0.58rem, 0.6vw, 0.68rem);
  line-height: 1;
}

.geo-leader-stats {
  margin-top: 0.28rem;
  gap: 0.22rem 0.7rem;
  font-size: clamp(0.58rem, 0.6vw, 0.68rem);
  line-height: 1.15;
}

/* ---------------------------------------------------------
   RESPONSIVE COUNTRY GRID
--------------------------------------------------------- */
@media (max-width: 1280px) {
  .country-browse-scroll .browse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .country-browse-scroll {
    max-height: 390px;
  }

  .country-browse-scroll .browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .geo-progress-panel,
  .geo-leaders-panel {
    height: auto;
    min-height: 0;
  }

  .geo-progress-stack {
    grid-template-rows: none;
  }
}

@media (max-width: 560px) {
  .country-browse-scroll {
    max-height: 360px;
  }

  .country-browse-scroll .browse-grid {
    grid-template-columns: 1fr !important;
  }

  .geo-country-leaders a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.72rem;
  }

  .geo-country-flag {
    width: 34px;
    height: 34px;
  }
}
