.country-results-page {
  color: #000;
  font-family: 'Inter Tight', sans-serif;
}

.country-results-page *,
.country-results-page *::before,
.country-results-page *::after {
  box-sizing: border-box;
}

.country-container {
  width: min(100% - 64px, 1120px);
  margin-inline: auto;
}

.country-hero {
  position: relative;
  padding: 100px 0 50px;
  background:
    radial-gradient(ellipse at 100% 0, #ee73b7 0, transparent 46%),
    radial-gradient(ellipse at 0 100%, #4ed3ce 0, transparent 28%), #e6e5df;
}

.country-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 80px;
  min-height: 350px;
}

.country-hero h1 {
  margin: 0 0 32px;
  color: #000;
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.country-download {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border: 1px solid #000;
  border-radius: 40px;
  color: #fff;
  background: #000;
  font-size: 18px;
}

.country-download img {
  width: 24px;
}

.country-cover-link {
  justify-self: center;
}

.country-cover {
  display: block;
  width: 290px;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 22px;
}

.country-next {
  display: block;
  width: 24px;
  height: 24px;
  margin: 24px auto 0;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
}

.country-results {
  padding-top: 76px;
  padding-bottom: 36px;
  scroll-margin-top: 80px;
}

.country-results-page h2 {
  margin: 0 0 20px;
  color: #000;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
}

.country-description {
  margin: 0 0 30px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
}

.country-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid #666;
}

.country-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 26px;
}

.country-year-tab {
  padding: 10px 12px;
  border: 1px solid #666;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.country-year-tab[aria-selected='true'] {
  color: #fff;
  background: #000;
  border-color: #000;
}

.country-unit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
  font-size: 14px;
}

.country-unit-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-unit-legend img {
  width: 20px;
  height: 20px;
  filter: brightness(0);
}

.country-scale {
  width: 230px;
  margin: 40px 0 30px;
  font-size: 13px;
  line-height: 1.25;
}

.country-scale p {
  margin: 0 0 8px;
  font-size: 16px;
  color: #000;
}

.country-gradient {
  height: 28px;
  margin: 8px 0 5px;
  background: linear-gradient(90deg, #fa2222, #ffc333 30%, #f3e829 50%, #91d515 70%, #22cc81);
}

.country-scale-labels {
  display: flex;
  justify-content: space-between;
}

.country-table-scroll {
  overflow-x: auto;
}

.country-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #000;
  font-size: 13px;
}

.country-label-column {
  width: 245px;
}

.country-unit-column {
  width: 28px;
}

.country-table th,
.country-table td {
  padding: 5px 3px;
  vertical-align: middle;
}

.country-table th {
  font-weight: 400;
  text-align: left;
}

.country-table thead th {
  padding-bottom: 16px;
  text-align: center;
}

.country-table thead img {
  display: block;
  width: 26px;
  height: 18px;
  margin: 0 auto 7px;
}

.country-table thead span {
  font-size: 14px;
}

.country-number {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.country-total,
.country-index-row .country-number {
  font-weight: 600 !important;
}

.country-index-row th,
.country-index-row td {
  padding-bottom: 18px;
}

.country-dimension-row {
  border-top: 1px solid #888;
}

.country-dimension-row th,
.country-dimension-row td {
  padding-top: 18px;
  padding-bottom: 14px;
}

.country-score {
  display: inline-block;
  min-width: 60px;
  padding: 5px 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.country-dimension-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  color: #000;
  background: transparent;
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

.country-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ed169d;
}

.country-chevron::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-2px) rotate(45deg);
}

[aria-expanded='false'] .country-chevron::after {
  transform: translateY(2px) rotate(225deg);
}

.country-dimension-body[hidden],
.country-message[hidden] {
  display: none;
}

.country-category-row th {
  padding-top: 16px;
  padding-bottom: 8px;
  font-size: 16px;
}

.country-indicator-row th {
  padding-top: 12px;
  padding-bottom: 8px;
  line-height: 1.5;
}

.country-indicator-number {
  float: left;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  color: #fff;
  background: #3abcc1;
  font-size: 12px;
}

.country-indicator-row th > span:last-child {
  display: block;
  margin-left: 32px;
}

.country-value-row th {
  padding-left: 32px;
  font-size: 12px;
  line-height: 1.35;
}

.country-unit img {
  width: 18px;
  height: 18px;
}

.country-dimension-body tr:last-child td,
.country-dimension-body tr:last-child th {
  padding-bottom: 22px;
}

.country-scroll-hint {
  display: none;
}

.country-message {
  padding: 20px 0;
  color: #000;
}

.country-results-page footer {
  display: block;
  min-height: 0;
  background: #fff;
}

.country-reports {
  min-height: 440px;
  padding: 80px 0;
  background-position: right bottom !important;
  background-size: clamp(360px, calc(100% - 620px), 737px) auto !important;
}

.country-reports p {
  margin: 0 0 28px;
  color: #000;
  font-size: 14px;
}

.country-reports .country-year-tabs {
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid #666;
}

.country-report-panel {
  margin-top: 36px;
}

.country-report-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 280px;
  min-height: 100px;
  padding: 22px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-size: 16px;
}

.country-report-card img {
  width: 40px;
  filter: invert(1);
}

.country-report-pending {
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.country-report-pending span:last-child {
  color: #666;
  font-size: 14px;
}

.country-results-page footer > .bg-black\! {
  min-height: 210px;
}

.country-results-page footer .copy {
  padding-top: 0;
}

.country-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.country-results-page button:focus-visible,
.country-results-page a:focus-visible,
.country-table-scroll:focus-visible {
  outline: 3px solid #20a5aa;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .country-scroll-hint {
    display: block;
    margin: 0 0 12px;
    color: #666;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .country-container {
    width: calc(100% - 40px);
  }

  .country-hero {
    padding-top: 100px;
    padding-bottom: 35px;
  }

  .country-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .country-hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .country-cover {
    width: 210px;
  }

  .country-download {
    font-size: 15px;
    padding: 14px 18px;
  }

  .country-results {
    padding-top: 45px;
  }

  .country-results-page h2 {
    font-size: 28px;
  }

  .country-desktop-break {
    display: none;
  }

  .country-unit-legend {
    gap: 16px;
    font-size: 12px;
  }

  .country-year-tabs {
    gap: 6px;
    padding-bottom: 18px;
  }

  .country-year-tab {
    padding: 9px 10px;
    font-size: 12px;
  }

  .country-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
  }

  .country-category-row th {
    position: static !important;
  }

  .country-reports {
    padding-top: 48px;
    padding-bottom: 170px;
    background-size: min(100%, 480px) auto !important;
  }

  .country-results-page footer .content {
    padding-bottom: 24px;
  }
}
