/* Coverage hub and country pages.
   Loaded after solutions-tokens.css, so the type scale and rules come from there.
   This file only owns layout for .cvg-* (hub) and .cc-* (country). */

.cvg-page { background: #fff; }

/* Local container. .editorial-shell lives in home-editorial.css, which the
   coverage pages deliberately do not load, so owning the container here keeps
   the page independent of the homepage stylesheet. */
.cvg-page .editorial-shell {
  width: min(var(--frame), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
.cvg-page .editorial-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------------- hub hero ---------------- */
.cvg-hero {
  padding: clamp(56px, 7vw, 104px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.cvg-hero__title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 14px 0 0;
  max-width: 18ch;
}
.cvg-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.cvg-hero__lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
  margin: 22px 0 0;
}
.cvg-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cvg-hero__jump a {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background .15s, border-color .15s, color .15s;
}
.cvg-hero__jump a:hover,
.cvg-hero__jump a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* At phone widths keep the headline metrics stable during the font swap. */
@media (max-width: 360px) {
  .cvg-hero__title { font-family: system-ui, sans-serif; }
  .cvg-hero__title em { font-family: Georgia, serif; }
}

/* ---------------- hub regions ---------------- */
.cvg-body { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px); }

.cvg-region { margin-bottom: clamp(44px, 4.5vw, 68px); }
.cvg-region:last-of-type { margin-bottom: 0; }

.cvg-region__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cvg-region__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: var(--t-head);
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
}
.cvg-region__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.cvg-region__dot--europe   { background: #1a9e57; }
.cvg-region__dot--asia     { background: #3157ff; }
.cvg-region__dot--americas { background: #3157ff; }
.cvg-region__dot--africa   { background: #1a9e57; }

.cvg-region__count {
  font-size: var(--t-small);
  color: var(--muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.cvg-region__blurb {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--muted);
  max-width: 74ch;
  margin: 14px 0 22px;
}

.cvg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Chips, not a grid. 79 markets across four uneven regions never divide evenly
     into a fixed column count, so any grid leaves dead cells on the last row.
     Wrapping chips have no empty positions to fill. */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cvg-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.cvg-item:hover,
.cvg-item:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cvg-item--soon {
  /* #8a93a8 on white is 2.9:1 and fails WCAG AA. #5a6478 clears 4.5:1 while
     still reading as secondary against the linked items next to it. */
  color: #5a6478;
  background: #fbfcfe;
  cursor: default;
}
.cvg-item--soon:hover { background: #fbfcfe; border-color: var(--rule-strong); color: #5a6478; }

.cvg-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  flex: none;
}
/* 10px bold needs 4.5:1, so both tag colours are darker than the loose
   --accent / --muted pair used at body size. */
.cvg-tag--bloc  { background: rgba(49,87,255,.12); color: #2340c4; }
.cvg-tag--scope { background: rgba(11,15,45,.09); color: #4a5568; }
.cvg-item:hover .cvg-tag,
.cvg-item:focus-visible .cvg-tag { background: rgba(255,255,255,.22); color: #fff; }

.cvg-note {
  margin-top: clamp(44px, 4.5vw, 68px);
  padding: 28px 30px;
  background: #f6f7fb;
  border-left: 3px solid var(--accent);
}
.cvg-note h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 14px;
}
.cvg-note ul { list-style: none; margin: 0; padding: 0; }
.cvg-note li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.cvg-note li:first-child { border-top: 0; }
.cvg-note strong { color: var(--ink); font-weight: 600; }

/* ---------------- country page ---------------- */
.cc-hero {
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 4vw, 64px);
  background: linear-gradient(180deg, #f7f8fc 0%, #fff 100%);
  border-bottom: 1px solid var(--rule);
}
.cc-hero__inner {
  width: min(var(--frame), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
.cc-hero__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.cc-hero__title {
  font-family: var(--font-display);
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}
.cc-hero__lead {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--muted);
  max-width: 66ch;
  margin: 20px 0 0;
}

/* the demo query box: visual only, submits into the lead form */
.cc-search {
  margin: 34px 0 0;
  max-width: 720px;
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(11,15,45,.07);
}
.cc-search__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.cc-search__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-search__input {
  flex: 1 1 260px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
.cc-search__input::placeholder { color: #9aa3b8; }
.cc-search__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.cc-search__btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 22px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s;
}
.cc-search__btn:hover { background: var(--accent-deep); }
.cc-search__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* sections */
.cc-section { padding: clamp(48px, 5vw, 78px) 0; }
.cc-section--alt { background: #fafbfd; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cc-h2 {
  font-family: var(--font-display);
  font-size: var(--t-head);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
}
.cc-lead {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--muted);
  max-width: 74ch;
  margin: 16px 0 0;
}

.cc-cards--facts { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }
.cc-card--fact { padding: 20px 22px; }
.cc-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 9px;
}
.cc-card__value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* ---------------- flags ---------------- */
.cvg-flag {
  flex: none;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11,15,45,.10);
  background: #eef1f7;
}
.cvg-flag--none { display: inline-block; background: transparent; box-shadow: none; }
.cvg-name { min-width: 0; }

.cc-hero__kicker { display: flex; align-items: center; gap: 10px; }
.cc-hero__flag {
  width: 26px;
  height: 19px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11,15,45,.12);
}

/* playbook */
.cc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 26px 34px;
  margin: 32px 0 0;
}
.cc-step__n {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.cc-step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.35;
}
.cc-step p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
}

.cc-caveats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  max-width: 84ch;
}
.cc-caveats li {
  position: relative;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--rule);
}
.cc-caveats li:first-child { border-top: 0; }
.cc-caveats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* cta */
.cc-cta {
  padding: clamp(52px, 6vw, 88px) 0;
  background: var(--ink);
  color: #fff;
}
.cc-cta h2 {
  font-family: var(--font-display);
  font-size: var(--t-head);
  line-height: 1.14;
  margin: 0;
  max-width: 26ch;
}
.cc-cta p {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 60ch;
  margin: 16px 0 26px;
}
.cc-cta__btn {
  height: 50px;
  padding: 0 26px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s;
}
.cc-cta__btn:hover { background: var(--accent-hi); }

/* siblings */
.cc-siblings { padding: clamp(40px, 4vw, 64px) 0 clamp(56px, 6vw, 88px); }
.cc-siblings h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.cc-siblings ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cc-siblings a {
  display: inline-block;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  transition: background .14s, color .14s, border-color .14s;
}
.cc-siblings a:hover,
.cc-siblings a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 860px) {
  .cc-hero__title { font-size: clamp(30px, 8vw, 44px); }
}
/* ---------------- cards (replaces the old line tables) ---------------- */
.cc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}
.cc-stat {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.cc-section--alt .cc-stat { background: #fff; }
.cc-stat__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cc-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
}
/* .cc-source 已于 2026-11-16 下线：页面不再标注第三方数据来源。 */

.cc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}
.cc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .16s, box-shadow .16s;
}
.cc-card:hover {
  border-color: rgba(49,87,255,.35);
  box-shadow: 0 10px 28px rgba(11,15,45,.07);
}
.cc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.cc-card__title {
  min-width: 0;
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
}
.cc-card__top .cc-card__title { flex: 1 1 140px; }
.cc-card__chip {
  flex: none;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #2340c4;
  background: rgba(49,87,255,.10);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: normal;
  line-height: 1.35;
}
.cc-card__stat {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 12px 0 0;
}
.cc-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}
.cc-card--tight .cc-card__stat { font-size: 20px; margin-top: 14px; }

.cc-cards--partners { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.cc-cards--partners .cc-card--tight .cc-card__stat { font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--muted); }

@media (max-width: 640px) {
  .cc-stats, .cc-cards, .cc-cards--partners { grid-template-columns: 1fr; }
}
/* ---------------- hero grid: search + snapshot ---------------- */
.cc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  /* stretch so the two cards share a bottom edge instead of one floating short */
  align-items: stretch;
  margin: 34px 0 0;
  max-width: 1160px;
}
.cc-hero__grid .cc-search {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  /* the form is shorter than the snapshot list; pushing the hint down fills the
     card instead of leaving a dead block under the button */
  justify-content: space-between;
}
.cc-search__scope {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.cc-search__scope li {
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: #3c4a63;
  padding: 5px 0 5px 20px;
}
.cc-search__scope li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.cc-hero__grid .cc-search__hint { margin-top: auto; padding-top: 16px; }

.cc-snapshot {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.cc-snapshot__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.cc-snapshot__list { list-style: none; margin: 0; padding: 0; }
.cc-snapshot__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.cc-snapshot__list li:first-child { border-top: 0; padding-top: 0; }
.cc-snapshot__k {
  font-size: 13px;
  color: var(--muted);
  flex: 0 1 auto;
}
.cc-snapshot__v {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  /* An authority name such as "Servicio de Administración Tributaria (SAT)"
     is longer than a 390px row allows, so the value has to be able to wrap
     instead of pushing the page 18px wide. */
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 940px) {
  .cc-hero__grid { grid-template-columns: 1fr; gap: 18px; }
}
.cc-search__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
}
.cc-search__tag {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  color: #33415c;
  background: #f1f4fa;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.cc-search__tag:hover,
.cc-search__tag:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cc-siblings__lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 92ch;
}
.cc-siblings__hub {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 9px 0;
}
.cc-siblings__hub:hover { text-decoration: underline; }

.cc-data-note {
  margin: 18px 0 0;
  color: #526079;
  font-size: .875rem;
  line-height: 1.6;
}

.cc-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
}
.cc-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  text-align: left;
}
.cc-table--datasets { min-width: 44rem; }
.cc-table caption {
  padding: 16px;
  text-align: left;
  font-weight: 700;
}
.cc-table th,
.cc-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  font-size: .875rem;
}
.cc-table thead { background: #f3f6fc; }
.cc-table--history td { width: 29%; }
.cc-table--history td,
.cc-partner__row span { font-variant-numeric: tabular-nums; }

.cc-bar {
  --cc-bar-fill: #5579c2;
  display: block;
  width: 100%;
  height: 6px;
  margin: 8px 0 0;
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e8edf7;
}
.cc-bar--export { --cc-bar-fill: #278274; }
.cc-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--cc-bar-fill); }

.cc-measured { margin: 24px 0; }
.cc-context-title { margin: 28px 0 12px; }
.cc-measured h3,
.cc-partner h4 { margin: 0; }
.cc-measured > p { margin: 4px 0 14px; color: #526079; }
.cc-partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cc-partner ul { margin: 6px 0 0; padding: 0; list-style: none; }
.cc-partner li { padding: 10px 0; }
.cc-partner li + li { border-top: 1px solid var(--rule); }
.cc-partner__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: .875rem;
}
.cc-partner__row span { color: #526079; }

.cc-spotlight {
  padding: clamp(18px, 4vw, 40px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #f3f6fc;
}
.cc-spotlight .cc-card__body { margin-top: 8px; }
.cc-faq { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cc-faq summary { cursor: pointer; font-weight: 700; }
.cc-faq p { margin: 8px 0 0; line-height: 1.6; }

@media (max-width: 640px) {
  .cc-partner-grid { grid-template-columns: 1fr; }
}
/* Basis steps down with the shell so names still fit at each width. */
