.country-page {
  --country-ink: #07162e;
  --country-muted: #526276;
  --country-line: #d8e0eb;
  --country-soft: #eef4fb;
  --country-blue: #0756b7;
}

.country-page .country-hero .container {
  max-width: var(--site-shell-wide) !important;
}

.country-page .country-hero h1 {
  max-width: min(100%, 1180px) !important;
}

.country-page .country-hero p:not(.eyebrow) {
  max-width: 860px !important;
}

.country-page .section-head {
  max-width: 1160px;
}

.country-page .section-title {
  max-width: 1080px;
  letter-spacing: 0;
  text-wrap: balance;
}

.country-page .section-lede {
  max-width: 1120px;
}

.country-fact-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--country-line);
  border-bottom: 1px solid var(--country-line);
}

.country-fact {
  min-height: 126px;
  padding: 24px clamp(18px, 2.2vw, 34px);
  background: #fff;
}

.country-fact span {
  display: block;
  margin-bottom: 8px;
  color: var(--country-blue);
  font-size: 13px;
  font-weight: 900;
}

.country-fact strong {
  display: block;
  color: var(--country-ink);
  font-size: 18px;
  line-height: 1.35;
}

.country-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.country-overview-item {
  min-height: 230px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--country-line);
  border-top: 5px solid var(--country-blue);
  border-radius: 6px;
}

.country-overview-item .meta,
.country-region-card .meta,
.country-industry-card .meta {
  margin: 0 0 10px;
  color: var(--country-blue);
  font-size: 13px;
  font-weight: 900;
}

.country-overview-item h3,
.country-region-card h3,
.country-industry-card h3 {
  margin: 0 0 12px;
  color: var(--country-ink);
  font-size: 22px;
  line-height: 1.3;
}

.country-overview-item p,
.country-industry-card p {
  margin: 0;
  color: var(--country-muted);
  line-height: 1.75;
}

.country-region-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.country-region-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 15px;
  color: var(--country-blue);
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border: 1px solid #a8c9ef;
  border-radius: 5px;
}

.country-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.country-region-card {
  scroll-margin-top: 96px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--country-line);
  border-left: 6px solid #f8b918;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(0, 24, 63, 0.06);
}

.country-region-card > p {
  margin: 0 0 20px;
  color: var(--country-muted);
  line-height: 1.7;
}

.country-region-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.country-region-card dl > div {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #e4eaf1;
}

.country-region-card dt {
  color: var(--country-ink);
  font-weight: 900;
}

.country-region-card dd {
  margin: 0;
  color: var(--country-muted);
  line-height: 1.65;
}

.country-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.country-industry-card {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--country-line);
  border-radius: 6px;
}

.country-industry-card .card-link {
  margin-top: auto;
}

.country-power-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}

.country-power-summary {
  position: sticky;
  top: 94px;
}

.country-power-summary .check-list {
  margin-top: 24px;
}

.country-power-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--country-line);
  border-radius: 6px;
  background: #fff;
}

.country-power-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.country-power-table th,
.country-power-table td {
  padding: 17px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.country-power-table thead th {
  color: #fff;
  background: #062d67;
  font-size: 14px;
}

.country-power-table tbody th {
  width: 24%;
  color: var(--country-ink);
  background: #f5f8fc;
  font-size: 15px;
}

.country-power-table td {
  color: var(--country-muted);
  line-height: 1.55;
}

.country-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-source-list a {
  display: block;
  padding: 12px 0;
  color: var(--country-blue);
  font-weight: 800;
  border-bottom: 1px solid var(--country-line);
}

.country-source-note {
  margin-top: 22px;
  padding: 18px 20px;
  color: var(--country-muted);
  line-height: 1.7;
  background: #f5f8fc;
  border-left: 4px solid #f8b918;
}

/* Country drill-down links are navigation controls, not passive tags. */
.country-page .country-link-group {
  padding: 28px;
}

.country-page .country-link-group p {
  min-height: 0;
  margin-bottom: 20px;
  line-height: 1.6;
}

.country-page .country-link-hub--complete {
  grid-template-columns: 1fr;
  gap: 18px;
}

.country-page .country-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.country-page .country-link-list a {
  position: relative;
  width: 100%;
  min-height: 50px;
  justify-content: flex-start;
  padding: 11px 44px 11px 16px;
  color: #0756b7;
  line-height: 1.35;
  background: #f7faff;
  border: 1px solid #9fc3ed;
  border-radius: 5px;
  box-shadow: 0 5px 12px rgba(0, 52, 120, 0.08);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.country-page .country-link-list a::after {
  content: "\2192";
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  background: #0756b7;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.country-page .country-link-list a:first-child {
  color: #fff;
  background: #0756b7;
  border-color: #0756b7;
  box-shadow: 0 8px 18px rgba(7, 86, 183, 0.2);
}

.country-page .country-link-list a:first-child::after {
  color: #07162e;
  background: #f8b918;
}

.country-page .country-link-list a:hover {
  color: #fff;
  background: #063f8f;
  border-color: #063f8f;
  box-shadow: 0 10px 22px rgba(0, 52, 120, 0.22);
  transform: translateY(-2px);
}

.country-page .country-link-list a:hover::after {
  color: #07162e;
  background: #f8b918;
  transform: translate(2px, -50%);
}

.country-page .country-link-list a:focus-visible {
  color: #07162e;
  background: #f8b918;
  border-color: #f8b918;
  outline: 3px solid rgba(248, 185, 24, 0.38);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .country-fact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .country-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-page .country-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .country-overview-grid,
  .country-region-grid,
  .country-power-layout {
    grid-template-columns: 1fr;
  }

  .country-power-summary {
    position: static;
  }

  .country-page .country-hero .container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .country-page .country-hero .container > *,
  .country-page .country-hero h1,
  .country-page .country-hero p:not(.eyebrow),
  .country-page .country-hero .tag-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .country-fact-strip,
  .country-overview-grid,
  .country-industry-grid,
  .country-source-list {
    grid-template-columns: 1fr;
  }

  .country-industry-grid {
    grid-auto-rows: auto;
  }

  .country-fact {
    min-height: 0;
    padding: 18px 20px;
  }

  .country-overview-item,
  .country-region-card,
  .country-industry-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .country-region-card dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .country-page .country-link-group {
    padding: 22px 20px;
  }

  .country-page .country-link-group p {
    min-height: 0;
  }

  .country-page .country-link-list {
    grid-template-columns: 1fr;
  }

  .country-page .country-hero .container {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    overflow: hidden;
  }

  .country-page .country-hero h1 {
    font-size: 34px !important;
    line-height: 1.14 !important;
    text-wrap: wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .country-page .country-hero p:not(.eyebrow) {
    font-size: 16px !important;
    line-height: 1.72 !important;
    overflow-wrap: anywhere;
  }

  .country-page .country-hero .tag-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .country-page .country-hero .tag {
    flex: 0 1 auto;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
