:root {
  --site-hero-ink: #252839;
  --site-hero-purple: #635bff;
  --ink: #252839;
  --muted: #626b7d;
  --paper: #fff;
  --card: #fff;
  --lime: #635bff;
  --line: #e1e5ec;
  --dark: #252839;
}

body {
  background: #fff;
  color: var(--site-hero-ink);
}

.brand {
  color: inherit;
}

.brand-mark,
footer .brand-mark {
  background: var(--site-hero-purple);
  color: #fff;
}

.country-label {
  border-left: 1px solid #c9ced8;
  color: #7b8495;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-left: 6px;
  padding-left: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.nav .country-label + nav {
  margin-left: auto;
}

.country-label:hover {
  color: var(--site-hero-purple);
}

.nav {
  border-color: var(--line);
}

.nav .active,
.nav nav .active,
.footer-links a:hover,
.text-link,
.view-button,
.toc a:hover,
.prose a {
  color: var(--site-hero-purple) !important;
}

.button-primary,
.filters button.active,
.dialog-actions .button:not(.secondary) {
  background: var(--site-hero-purple);
  border-color: var(--site-hero-purple);
  color: #fff;
}

.button-primary span {
  color: #fff;
}

.button-ghost {
  border-color: var(--site-hero-purple);
  color: var(--site-hero-purple);
}

.market-card,
.callout,
footer {
  background: var(--site-hero-ink);
}

.market-card {
  box-shadow: 14px 14px 0 #e5e3ff;
}

.live-dot,
.callout strong {
  color: #aaa5ff;
}

.live-dot::before,
.mini-chart span,
.score-bar span {
  background: var(--site-hero-purple);
}

.mini-chart {
  border-color: #54586d;
}

.ranking-section,
.policy,
.editorial {
  background: #f7f8fb;
}

.company-mark,
.tag,
.dialog-score {
  background: #f0efff;
}

.methodology h2 i {
  color: var(--site-hero-purple);
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 700;
}

.dialog-actions .button.secondary {
  background: #fff;
  border-color: #c9c5ff;
  color: var(--site-hero-purple);
}

.hero,
.page-hero,
.article-hero {
  padding-top: clamp(72px, 9vw, 126px);
  padding-bottom: clamp(58px, 7vw, 92px);
}

.hero .eyebrow,
.page-hero .eyebrow,
.article-hero .kicker {
  color: #687086;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow span,
.page-hero .eyebrow span {
  display: none;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  color: var(--site-hero-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(62px, 9.2vw, 132px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .93;
  margin: clamp(34px, 4vw, 58px) 0 0;
  max-width: 1160px;
}

.hero h1 i,
.page-hero h1 i,
.article-hero h1 i {
  color: var(--site-hero-purple);
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: inherit;
}

.article-hero {
  max-width: 1120px;
}

.article-hero h1 {
  font-size: clamp(54px, 7.4vw, 104px);
}

.hero-grid {
  margin-top: 44px;
}

/* Keep the Pakistan market overview visible with the headline on desktop. */
body:has(#rankings) .hero {
  padding-top: clamp(58px, 5.5vw, 82px);
  padding-bottom: clamp(54px, 5vw, 72px);
}

body:has(#rankings) .hero h1 {
  font-size: clamp(62px, 7.1vw, 104px);
  max-width: 1280px;
}

body:has(#rankings) .hero-grid {
  margin-top: 30px;
}

@media (max-width: 760px) {
  .country-label {
    font-size: 12px;
    margin-left: 0;
    padding-left: 10px;
  }

  .hero,
  .page-hero,
  .article-hero {
    padding-top: 58px;
    padding-bottom: 48px;
  }

  .hero h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
    letter-spacing: -.065em;
    line-height: .96;
    margin-top: 28px;
  }
}
