/**
 * Destination section layouts.
 * Grid 50/50 zig-zag para sections de destino + primitivos visuais
 * (stats, gauges, chips, money_compare, months_chart, image+caption).
 *
 * Pareado com inc/destination-visuals.php (composer + primitivos PHP).
 */

/* ── Grid 50/50 com alternância zig-zag ─────────────────────────────────── */

.dest-sections {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.dest-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.dest-section--flip .dest-section__text   { order: 2; }
.dest-section--flip .dest-section__visual { order: 1; }

.dest-section--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 56rem;
  margin-inline: auto;
}

.dest-section__head {
  margin-bottom: 1rem;
}

/* Desktop: alinha o topo da coluna visual com a 1ª linha do parágrafo
 * (compensa a altura do header de ícone+título do text-column). */
.dest-section:not([data-section="intro"]) .dest-section__visual {
  padding-top: 2.75rem;
}

.dest-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(15, 23, 42);
  line-height: 1.25;
}

.dest-section__summary {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(100, 116, 139);
  line-height: 1.5;
}

.dest-section__body,
.dest-section__body p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgb(71, 85, 105);
}

.dest-section__body p {
  margin: 0 0 0.75em;
}

.dest-section__body p:last-child { margin-bottom: 0; }

.dest-section__body-extra {
  margin-top: 1.25rem;
}

.dest-section__body-extra .dv-gauge { max-width: 70%; }

@media (max-width: 900px) {
  .dest-section,
  .dest-section--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .dest-section--flip .dest-section__text   { order: 1; }
  .dest-section--flip .dest-section__visual { order: 2; }
  .dest-sections { gap: 6rem; }
  .dest-section:not([data-section="intro"]) .dest-section__visual {
    padding-top: 0;
  }
}

/* ── Card-shell wrapper ─────────────────────────────────────────────────── */

.dv-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Image + caption ────────────────────────────────────────────────────── */

.dv-image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(241, 245, 249);
  position: relative;
  aspect-ratio: 4 / 3;
}

.dv-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dv-image__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  color: white;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
}

/* ── Stats (grande número + label + sub) ────────────────────────────────── */

.dv-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dv-stat-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.dv-stat-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 480px) {
  .dv-stat-grid,
  .dv-stat-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dv-stat {
  background: rgb(248, 250, 252);
  border-radius: 12px;
  padding: 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 6rem;
  justify-content: center;
}

.dv-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(15, 23, 42);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.dv-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(100, 116, 139);
  font-weight: 600;
}

.dv-stat__sub {
  font-size: 0.7rem;
  color: rgb(148, 163, 184);
  font-weight: 500;
}

.dv-card--transport .dv-stat {
  align-items: center;
  text-align: center;
}

/* ── Stack vertical para gauges agrupadas ───────────────────────────────── */

.dv-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Gauge (barra horizontal com label + valor) ─────────────────────────── */

.dv-gauge { display: flex; flex-direction: column; gap: 0.35rem; }

.dv-gauge__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
}

.dv-gauge__label  { color: rgb(71, 85, 105); font-weight: 500; }
.dv-gauge__value  { color: rgb(15, 23, 42);  font-weight: 700; }

.dv-gauge__track {
  position: relative;
  height: 8px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.dv-gauge__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dv-tone-from), var(--dv-tone-to));
}

.dv-gauge--blue,
.dv-gauge--emerald,
.dv-gauge--sky    { --dv-tone-from: rgb(51, 65, 85);    --dv-tone-to: rgb(15, 23, 42); }

.dv-gauge--amber,
.dv-gauge--rose   { --dv-tone-from: rgb(148, 163, 184); --dv-tone-to: rgb(100, 116, 139); }

/* ── Dual gauge (safety vs crime) ───────────────────────────────────────── */

.dv-dual { display: flex; flex-direction: column; gap: 0.6rem; }

.dv-dual__row {
  display: grid;
  grid-template-columns: minmax(0, 7rem) 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
}

.dv-dual__label { color: rgb(71, 85, 105); font-weight: 500; }
.dv-dual__value { color: rgb(15, 23, 42);  font-weight: 700; min-width: 2.5rem; text-align: right; }

.dv-dual__track {
  position: relative;
  height: 8px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.dv-dual__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.dv-dual__row--good .dv-dual__fill { background: linear-gradient(90deg, rgb(51, 65, 85), rgb(15, 23, 42)); }
.dv-dual__row--bad  .dv-dual__fill { background: linear-gradient(90deg, rgb(148, 163, 184), rgb(100, 116, 139)); }

/* ── Chips (pills com overflow "+N more") ───────────────────────────────── */

/* Stack vertical de múltiplos chipsets (ex: Top countries + Top companies). */
.cluster-chipset-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dv-chipset {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dv-chipset__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(100, 116, 139);
  font-weight: 600;
}

.dv-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dv-chip {
  background: rgb(226, 232, 240);
  color: rgb(51, 65, 85);
  padding: 0.425rem 0.75rem 0.3rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
}

.dv-chip--more {
  background: transparent;
  color: rgb(100, 116, 139);
  font-weight: 500;
}

.dv-chip:has(> a) {
  padding: 0;
  overflow: hidden;
}

.dv-chip > a {
  display: block;
  padding: 0.425rem 0.75rem 0.3rem;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.dv-chip:has(> a):hover {
  background: rgb(3, 7, 18);
  color: rgb(255, 255, 255);
}

/* ── Money compare (barras stacked horizontais) ─────────────────────────── */

.dv-bars { display: flex; flex-direction: column; gap: 0.4rem; }

.dv-bars__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(100, 116, 139);
  font-weight: 600;
}

.dv-bars__list { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }

.dv-bar {
  display: grid;
  grid-template-columns: minmax(0, 9rem) 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}

.dv-bar__label  { color: rgb(71, 85, 105); font-weight: 500; }
.dv-bar__value  { color: rgb(15, 23, 42);  font-weight: 700; min-width: 3.5rem; text-align: right; }

.dv-bar__track {
  position: relative;
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.dv-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgb(71, 85, 105), rgb(15, 23, 42));
  border-radius: 999px;
}

/* ── 12-month mini chart ────────────────────────────────────────────────── */

.dv-months { display: flex; flex-direction: column; gap: 0.4rem; }

.dv-months__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(100, 116, 139);
  font-weight: 600;
}

.dv-months__bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.25rem;
  align-items: end;
  height: 100px;
}

.dv-months__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 0.2rem;
  justify-content: end;
}

.dv-months__col {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 3px;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.dv-months__col-fill {
  width: 100%;
  background: var(--dv-month-tone, rgb(59, 130, 246));
  border-radius: 3px;
  transition: height 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.2rem;
}

.dv-months__val {
  font-size: 0.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  white-space: nowrap;
}

.dv-months--blue  .dv-months__col-fill { background: linear-gradient(180deg, rgb(100, 116, 139), rgb(51, 65, 85)); }
.dv-months--rose  .dv-months__col-fill { background: linear-gradient(180deg, rgb(71, 85, 105), rgb(15, 23, 42)); }
.dv-months--sky   .dv-months__col-fill { background: linear-gradient(180deg, rgb(148, 163, 184), rgb(100, 116, 139)); }

.dv-months__bar--empty .dv-months__col { background: transparent; border: 1px dashed rgba(15, 23, 42, 0.1); }

.dv-months__lbl {
  font-size: 0.6rem;
  color: rgb(148, 163, 184);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Ranked list (top attractions) ──────────────────────────────────────── */

.dv-ranked {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dv-ranked li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

.dv-ranked__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(203, 213, 225);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgb(71, 85, 105);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.dv-ranked__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(30, 41, 59);
  line-height: 1.35;
}

/* ── Badges (yes/no flags como international airport, treaty) ───────────── */

.dv-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.425rem 0.75rem 0.3rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.dv-badge--good    { background: rgb(15, 23, 42);          color: white; }
.dv-badge--bad     { background: rgba(15, 23, 42, 0.06);   color: rgb(100, 116, 139); }
.dv-badge--neutral { background: rgba(15, 23, 42, 0.06);   color: rgb(71, 85, 105); }

.dv-badge::before {
  content: "✓";
  font-weight: 800;
}

.dv-badge--bad::before     { content: "✕"; }
.dv-badge--neutral::before { content: "•"; }

/* ── Note block (consulate address) ─────────────────────────────────────── */

.dv-note {
  background: rgb(248, 250, 252);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dv-note__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(71, 85, 105);
  font-weight: 700;
}

.dv-note__body {
  font-size: 0.78rem;
  color: rgb(30, 41, 59);
  line-height: 1.5;
}

/* ── Visa pills (relevant visa slugs) ───────────────────────────────────── */

.dv-visa-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dv-visa-pills li { display: inline-flex; }

.dv-visa-pill {
  background: rgb(15, 23, 42);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  display: inline-flex;
  align-items: center;
}

a.dv-visa-pill {
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

a.dv-visa-pill:hover,
a.dv-visa-pill:focus {
  background: rgb(51, 65, 85);
  color: white;
  transform: translateY(-1px);
}

.dv-visa-pill--inactive {
  background: rgb(226, 232, 240);
  color: rgb(100, 116, 139);
}

.dv-visa-pill--secondary {
  background: rgb(241, 245, 249);
  color: rgb(51, 65, 85);
}

a.dv-visa-pill--secondary:hover,
a.dv-visa-pill--secondary:focus {
  background: rgb(226, 232, 240);
  color: rgb(15, 23, 42);
}

/* ── Prose block dentro de dv-card ──────────────────────────────────────── */

.dv-card__prose {
  background: rgb(248, 250, 252);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  font-size: 0.82rem;
  color: rgb(64, 64, 64);
  line-height: 1.6;
}

.dv-card__prose-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(82, 82, 82);
  font-weight: 700;
  margin: 0 0 0.55rem;
}

.dv-card__prose p {
  margin: 0;
}

/* ── Lede paragraph (large intro inside a dv-card) ──────────────────────── */

.dv-card__lede {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
  color: rgb(100, 116, 139);
  letter-spacing: 0;
}

/* ── Stack cards (verticais, grandes, empilhados) ───────────────────────── */

.dv-stack-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dv-stack-card {
  background: rgb(248, 250, 252);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
}

.dv-stack-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dv-stack-card__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(100, 116, 139);
  font-weight: 600;
}

.dv-stack-card__sub {
  font-size: 0.78rem;
  color: rgb(71, 85, 105);
  line-height: 1.4;
  font-weight: 500;
}

.dv-stack-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(15, 23, 42);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.dv-stack-card__value-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(100, 116, 139);
  letter-spacing: 0;
  margin-left: 0.2rem;
}

@media (max-width: 480px) {
  .dv-stack-card { grid-template-columns: minmax(0, 1fr); }
  .dv-stack-card__value { text-align: left; font-size: 1.7rem; }
}

/* ── Cost-of-living (persona × category matrix) ──────────────────────────── */

.dv-card--cost { gap: 1rem; }

.dv-cost-index {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0;
}

.dv-cost-index__num {
  font-size: 1.9rem;
  font-weight: 700;
  color: rgb(23, 23, 23);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dv-cost-index__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dv-cost-index__label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(115, 115, 115);
  font-weight: 600;
  line-height: 1.1;
}

.dv-cost-index__delta {
  font-size: 0.7rem;
  color: rgb(82, 82, 82);
  font-weight: 500;
  line-height: 1.2;
}

.dv-cost-grid {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
  background: transparent;
}

.dv-cost-grid th,
.dv-cost-grid td {
  padding: 0.6rem 0.1rem;
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: right;
  color: rgb(38, 38, 38);
  border: 0;
}

.dv-cost-grid td + td,
.dv-cost-grid th + th { padding-left: 0.9rem; }

/* Thead: subtle uppercase labels, single bottom rule. */
.dv-cost-grid thead th {
  padding-top: 0.4rem;
  padding-bottom: 0.6rem;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(115, 115, 115);
  border-bottom: 1px solid rgb(212, 212, 212);
}

.dv-cost-grid thead th:first-child { text-align: left; }

/* Body cells: thin hairline between rows. */
.dv-cost-grid tbody td,
.dv-cost-grid tbody th {
  border-bottom: 1px solid rgb(238, 238, 238);
  font-size: 0.74rem;
}

.dv-cost-grid tbody th {
  text-align: left;
  font-weight: 500;
  color: rgb(64, 64, 64);
  width: 40%;
}

.dv-cost-grid__rowhead { text-align: left; }

/* Category cell: helper icon + label, with hover/focus tooltip. */
.dv-cost-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dv-cost-cat__help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 9999px;
  background: rgb(229, 229, 229);
  color: rgb(82, 82, 82);
  font-family: ui-serif, Georgia, serif;
  font-style: italic;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  user-select: none;
  flex: 0 0 auto;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dv-cost-cat__help:hover,
.dv-cost-cat__help:focus-visible {
  background: rgb(64, 64, 64);
  color: white;
}

.dv-cost-cat__help::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgb(23, 23, 23);
  color: white;
  font-family: inherit;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  width: max-content;
  max-width: 16rem;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.dv-cost-cat__help::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgb(23, 23, 23);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.dv-cost-cat__help:hover::after,
.dv-cost-cat__help:hover::before,
.dv-cost-cat__help:focus-visible::after,
.dv-cost-cat__help:focus-visible::before {
  opacity: 1;
}

@media (max-width: 520px) {
  .dv-cost-cat { gap: 0.35rem; }
  .dv-cost-cat__help::after { max-width: 12rem; left: 0; transform: none; }
  .dv-cost-cat__help::before { left: 0.4rem; transform: none; }
}

.dv-cost-grid__empty { color: rgb(163, 163, 163); font-weight: 400; }

/* Total row: bold dark, separated by extra padding only (no heavy rule). */
.dv-cost-grid__totalrow th,
.dv-cost-grid__totalrow td {
  padding-top: 0.95rem;
  padding-bottom: 0.4rem;
  border-top: 0;
  border-bottom: 0;
  font-weight: 700;
  color: rgb(23, 23, 23);
}

.dv-cost-grid__totalrow th {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(82, 82, 82);
}

.dv-cost-grid__note {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgb(115, 115, 115);
  font-style: italic;
}

.dv-cost-grid__source {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgb(140, 140, 140);
}

.dv-cost-grid__source a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(200, 200, 200);
  text-underline-offset: 2px;
}

.dv-cost-grid__source a:hover {
  color: rgb(82, 82, 82);
  text-decoration-color: currentColor;
}

@media (max-width: 520px) {
  .dv-cost-grid th,
  .dv-cost-grid td { padding: 0.5rem 0.05rem; font-size: 0.78rem; }
  .dv-cost-grid td + td,
  .dv-cost-grid th + th { padding-left: 0.55rem; }
  .dv-cost-grid tbody th { width: 38%; }
}

/* ── Hero fallback (own-term image when section is empty) ────────────────── */

.dv-hero-fallback {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(241, 245, 249);
  aspect-ratio: 4 / 3;
}

.dv-hero-fallback picture {
  display: block;
  width: 100%;
  height: 100%;
}

.dv-hero-fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Country fallback: gallery of child-state images ─────────────────────── */

.dv-states-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.dv-states-gallery[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dv-states-gallery[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dv-states-gallery__tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgb(241, 245, 249);
  text-decoration: none;
  isolation: isolate;
}

.dv-states-gallery__tile picture {
  display: block;
  width: 100%;
  height: 100%;
}

.dv-states-gallery__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.dv-states-gallery__tile:hover img {
  transform: scale(1.04);
}

.dv-states-gallery__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(15,23,42,0.75) 100%);
  pointer-events: none;
}

.dv-states-gallery__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.55rem 0.7rem;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  z-index: 1;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .dv-states-gallery,
  .dv-states-gallery[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Padding lateral nos dv-cards dentro das sections ──────────────────── */
.dest-section .dv-card { padding: 0 1.75rem; }

/* ── Radial gauge (semi-circle / speedometer) ────────────────────────────── */

.dv-radial-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dv-radial {
  background: rgb(248, 250, 252);
  border-radius: 14px;
  padding: 0.7rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.dv-radial__chart {
  position: relative;
  width: 100%;
}

.dv-radial-pair .dv-radial__chart {
  max-width: 96px;
}

.dv-radial__chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dv-radial__bg {
  fill: none;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 8;
  stroke-linecap: round;
}

.dv-radial__fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.dv-radial--slate-400 .dv-radial__fill { stroke: rgb(148, 163, 184); }
.dv-radial--slate-500 .dv-radial__fill { stroke: rgb(100, 116, 139); }
.dv-radial--slate-700 .dv-radial__fill { stroke: rgb(51, 65, 85); }
.dv-radial--slate-900 .dv-radial__fill { stroke: rgb(15, 23, 42); }

.dv-radial__value {
  position: absolute;
  left: 50%;
  bottom: 0.05rem;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(15, 23, 42);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.dv-radial__label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(100, 116, 139);
  font-weight: 600;
  text-align: center;
}

/* ── Cluster (pa-career) — ícone inline ao lado do título ──────────────── */
/* Mantém o grid 50/50 zigzag herdado de .dest-section. O ícone (badge
 * brand-700) fica inline ao lado do h3 dentro de __head; a coluna __visual
 * fica vazia mas preserva a cadência do grid igual destinos. */

.dest-section__head--with-icon {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.dest-section--cluster .cluster-section__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #45526D;
  flex-shrink: 0;
}

.dest-section--cluster .cluster-section__icon-wrap .cluster-section__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: inherit;
  opacity: 1;
}

.dest-section--cluster .dest-section__head--with-icon .dest-section__title {
  margin: 0;
}

.cluster-section__hero-img {
  display: block;
  width: 90%;
  max-width: 90%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12);
  margin-inline: auto;
}

/* ── Skills cloud (chips ao lado do intro) ─────────────────────────────────
 * Reusa o sistema dv-chipset/dv-chips/dv-chip 1:1. Mesma cor, mesmo padding
 * e mesmo border-radius dos chips de Top countries / Top companies. Em
 * career (n2) ganha apenas uma faixa com border-bottom acima do texto. */

.career-skills-band {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(226, 232, 240);
}

.career-skills-band .cluster-skills {
  align-items: flex-start;
}

/* ── Ícone XL na coluna visual de seções career sem chip/card natural.
 * Decoração leve (stroke fino, cor brand) que preserva o ritmo do zig-zag
 * sem competir com o texto da seção. */
.career-section__icon-xl {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  color: rgba(69, 82, 109, 0.18);
}
.career-section__icon-xl .cluster-section__icon {
  width: 8rem;
  height: 8rem;
  stroke-width: 0.75;
  opacity: 1;
}

@media (max-width: 640px) {
  .dest-section--cluster .cluster-section__icon-wrap .cluster-section__icon {
    width: 1rem;
    height: 1rem;
  }
  .cluster-section__hero-img {
    border-radius: 1.25rem;
  }
  .career-skills-band {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }
  .career-section__icon-xl {
    min-height: 6rem;
  }
  .career-section__icon-xl .cluster-section__icon {
    width: 5rem;
    height: 5rem;
  }
}

/* ─────────────────────────────────────────────────────────
   Cluster — sinais de abertura/fechamento e forças do outlook.
   Ler/popular via pa-career sections: cluster_trends_signals_up,
   cluster_trends_signals_down, outlook_forces.
   ───────────────────────────────────────────────────────── */

/* ── Sinais up/down em 2 colunas, sem caixa externa ── */
.cluster-signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cluster-signals { grid-template-columns: 1fr 1fr; }
}
.cluster-signals__col {
  padding: 0;
}
.cluster-signals__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 0.6rem;
}
.cluster-signals__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  display: inline-block;
}
.cluster-signals__col--up .cluster-signals__dot { background: #16a34a; }
.cluster-signals__col--down .cluster-signals__dot { background: #dc2626; }
.cluster-signals__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.cluster-signals__list li {
  position: relative;
  padding: 0.5rem 0.9rem 0.4rem 1.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 9999px;
}
.cluster-signals__col--up .cluster-signals__list li {
  background: #dcfce7;
  color: #14532d;
}
.cluster-signals__col--down .cluster-signals__list li {
  background: #fee2e2;
  color: #7f1d1d;
}
.cluster-signals__col--up .cluster-signals__list li::before,
.cluster-signals__col--down .cluster-signals__list li::before {
  position: absolute;
  left: 0.7rem;
  top: 0.55rem;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
}
.cluster-signals__col--up .cluster-signals__list li::before {
  content: "↑";
  color: #16a34a;
}
.cluster-signals__col--down .cluster-signals__list li::before {
  content: "↓";
  color: #dc2626;
}

/* ── Cards numerados de "forças" do outlook (coluna estreita) ── */
.cluster-forces { }
.cluster-forces__grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cluster-forces__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.cluster-forces__card:last-child { border-bottom: none; }
.cluster-forces__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #45526D;
  border-radius: 999px;
  margin-top: 0.1rem;
}
.cluster-forces__body {
  flex: 1 1 auto;
  min-width: 0;
}
.cluster-forces__card h4.cluster-forces__headline {
  font-size: 0.85rem !important;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
  line-height: 1.3 !important;
}
.cluster-forces__desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* ─── Variant: slider (horizontal scroll-snap, 1 card por viewport) ─── */
.cluster-forces--slider { display: flex; flex-direction: column; }
.cluster-forces--slider .cluster-forces__slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.cluster-forces--slider .cluster-forces__slider-count {
  font-feature-settings: "tnum";
  color: #0f172a;
  font-weight: 400;
}
.cluster-forces--slider .cluster-forces__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0.875rem;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 4px;
}
.cluster-forces--slider .cluster-forces__grid::-webkit-scrollbar { display: none; }
.cluster-forces--slider .cluster-forces__card {
  min-width: 0;
  scroll-snap-align: start;
  padding: 2rem;
  border: 0;
  border-radius: 0.875rem;
  background: #f1f5f9;
  box-shadow: none;
}
@media (min-width: 768px) {
  .cluster-forces--slider .cluster-forces__card { padding: 2.5rem; }
}
@media (min-width: 1024px) {
  .cluster-forces--slider .cluster-forces__card { padding: 3rem; }
}
.cluster-forces--slider .cluster-forces__card h4.cluster-forces__headline {
  font-size: 0.95rem !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.35 !important;
}
.cluster-forces--slider .cluster-forces__card .cluster-forces__desc {
  font-size: 0.825rem;
  line-height: 1.55;
}
@media (min-width: 1024px) {
  .cluster-forces--slider .cluster-forces__card h4.cluster-forces__headline {
    font-size: 1rem !important;
  }
  .cluster-forces--slider .cluster-forces__card .cluster-forces__desc {
    font-size: 0.85rem;
  }
}
.cluster-forces--slider .cluster-forces__slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.cluster-forces--slider .cluster-forces__slider-dots {
  display: flex;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cluster-forces--slider .cluster-forces__slider-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.cluster-forces--slider .cluster-forces__slider-dots button.is-active {
  background: #0f172a;
  transform: scale(1.35);
}
.cluster-forces--slider .cluster-forces__slider-arrows {
  display: flex;
  gap: 0.375rem;
}
.cluster-forces--slider .cluster-forces__slider-arrows button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.cluster-forces--slider .cluster-forces__slider-arrows button:hover {
  border-color: #0f172a;
  transform: translateY(-1px);
}
