:root {
  color-scheme: light dark;
  --bg: #f2f5f1;
  --bg-elevated: #ffffff;
  --bg-muted: #e6ece4;
  --text: #12201a;
  --text-muted: #4a5c53;
  --border: #c5d0c8;
  --accent: #0d6b4a;
  --accent-strong: #084f36;
  --accent-soft: #d4f0e3;
  --on-accent: #ffffff;
  --danger: #8a2b2b;
  --shadow: 0 1px 0 rgba(18, 32, 26, 0.05), 0 10px 30px rgba(18, 32, 26, 0.04);
  --header-h: 3.5rem;
  --touch: 2.75rem; /* 44px — alvo mínimo de toque */
  --radius: 4px;
  /* Escala 4pt: ritmo apertado em grupos, folgado entre seções */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.75rem;
  --space-section: clamp(1.5rem, 3.2vw, 2.35rem);
  --space-panel: clamp(0.95rem, 2vw, 1.35rem);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --hero-glow: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration: 200ms;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html[data-theme="dark"] {
  --bg: #101412;
  --bg-elevated: #171c19;
  --bg-muted: #222925;
  --text: #e7eee9;
  --text-muted: #9aaba1;
  --border: #2f3b34;
  --accent: #4ecf9a;
  --accent-strong: #7ae0b4;
  --accent-soft: #1a3328;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Contém overflow sem criar scrollport (sticky do header continua ok) */
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

/* Foco visível (teclado / switcher) — não depende de outline do browser */
:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

/* Inputs já têm borda; o anel de foco precisa de offset limpo */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: max(0.75rem, var(--safe-left));
  top: -3rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.75rem;
  z-index: 100;
  border-radius: var(--radius);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: max(0.75rem, var(--safe-top));
  box-shadow: var(--focus-ring);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

/* Filhos do body em coluna: sem min-width:auto expandindo a página no mobile */
.site-header,
.main,
.site-footer {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  /* Header rola por dentro; a página não ganha scroll horizontal */
  overflow-x: clip;
}

.header-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-h);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.4rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.header-scroll::-webkit-scrollbar {
  height: 4px;
}

.header-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--touch);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
  padding-inline: 0.15rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--bg-muted);
  border-color: var(--border);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-select,
.theme-toggle,
.button,
input,
textarea,
select,
button {
  font: inherit;
}

.lang-select {
  min-height: var(--touch);
  min-width: 6.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch);
  min-height: var(--touch);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.theme-toggle:hover {
  background: var(--bg-muted);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.theme-toggle:active {
  background: var(--bg-muted);
}

html[data-theme="light"] .theme-icon-dark,
html[data-theme="dark"] .theme-icon-light {
  display: none;
}

.main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: var(--space-lg) 0 var(--space-2xl);
  overflow-x: clip;
}

.hero {
  padding: var(--space-md) 0 var(--space-xs);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr);
  gap: var(--space-md) var(--space-lg);
  align-items: end;
  padding: var(--space-lg) 0 var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--hero-glow);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.hero-compact {
  padding-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

/* Artigo: título agrupado; capa vem logo abaixo com ar controlado */
.hero-article {
  margin-bottom: var(--space-xs);
}

.hero-article .lead {
  margin-bottom: var(--space-sm);
}

.hero-article .byline {
  margin: 0 0 var(--space-sm);
}

.hero-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-end;
  padding-bottom: var(--space-2xs);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.hero-chip-accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent-strong);
}

.hero-brand-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.provider-logo-lg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
}

/* Title block + compact thumb on the side (not a huge banner) */
.hero-with-thumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
}

.hero-with-thumb .hero-brand-row {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-with-thumb .hero-brand-row > div {
  min-width: 0;
}

.hero-with-thumb a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.provider-logo,
.provider-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  flex: 0 0 auto;
}

.provider-mark {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.section-head-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.section-head-brand .provider-logo,
.section-head-brand .provider-mark {
  margin-top: 0.15rem;
}

.card-brand {
  margin-bottom: 0.15rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p,
li,
.lead,
.section-lead,
.field-help {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

h3 {
  font-size: 1.05rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.hero-actions--flush {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.button:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.button:active {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.button:disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.button-secondary:active {
  background: var(--bg-muted);
  color: var(--text);
}

.panel,
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.panel {
  padding: 1.15rem 1.25rem;
  margin: var(--space-panel) 0;
}

.panel-inset {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  margin-top: var(--space-md);
}

.section {
  margin: var(--space-section) 0;
}

.section-head {
  margin-bottom: var(--space-sm);
}

/* Fluxo da página de detalhe: blocos com respiração clara */
.model-page > .panel + .panel,
.model-page > .section + .section,
.prose-page > .panel {
  margin-top: var(--space-panel);
}

.model-page > .hero + .panel,
.model-page > .hero + .price-board,
.prose-page > .hero + .featured-cover {
  margin-top: var(--space-xs);
}

.section-lead,
.field-help,
.byline,
.source-line,
.price-unit {
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  /* min() evita 1 coluna forçada em telas ~320–480px (archives) */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.75rem), 1fr));
  gap: 0.85rem;
}

.card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

/* Hover só em dispositivos com hover real (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    box-shadow: 0 8px 24px rgba(18, 32, 26, 0.07);
    transform: translateY(-1px);
  }

  .nav-link:hover {
    color: var(--text);
    background: var(--bg-muted);
    border-color: var(--border);
  }
}

/* Feedback de toque sem depender de hover */
@media (hover: none) {
  .card:active {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    box-shadow: 0 4px 14px rgba(18, 32, 26, 0.06);
  }

  .nav-link:active {
    color: var(--text);
    background: var(--bg-muted);
    border-color: var(--border);
  }
}

.card-with-media {
  padding: 0.75rem;
  overflow: hidden;
}

.card-cover {
  display: block;
  margin: 0 0 0.55rem;
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  aspect-ratio: 16 / 9;
  max-height: 9.5rem;
}

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

.featured-cover {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow);
}

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

/* Compact media beside title (detail + provider hubs) */
.featured-cover-sm {
  flex: 0 0 auto;
  width: min(11.5rem, 38vw);
  max-width: 12.5rem;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  margin: 0;
}

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

.featured-cover-hub {
  width: 100%;
  max-width: 28rem;
  max-height: 9rem;
  margin: var(--space-sm) 0 var(--space-md);
  aspect-ratio: 16 / 9;
}

/* Capa de artigo: full-bleed controlado, não “banner solto” */
.featured-cover-article {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(20rem, 48vw);
  margin: var(--space-xs) 0 var(--space-md);
}

.prose-page > .featured-cover-article + .prose,
.prose-page > .featured-cover + .prose {
  margin-top: 0;
}

.price-item {
  border-radius: var(--radius);
}

.faq-block .faq-item {
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem 0.75rem 1.15rem;
  margin: 0.55rem 0;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--bg-muted));
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  list-style-position: inside;
  padding: 0.35rem 0.15rem;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  margin-inline-end: 0.45rem;
}

.faq-item p {
  margin: 0.55rem 0 0.15rem;
  padding-inline-start: 0.15rem;
  color: var(--text-muted);
}

.field-check span:first-child {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 600;
}

.field-check input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.money-bar {
  display: grid;
  /* min(100%, …) evita faixa mínima maior que a tela */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  padding: 0.85rem 0.95rem;
  margin: 0 0 1rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
}

.money-bar .money-field {
  margin: 0;
}

.money-field-full {
  grid-column: 1 / -1;
}

.money-bar .money-help {
  grid-column: 1 / -1;
  margin: 0;
}

.money-bar .hero-actions {
  grid-column: 1 / -1;
}

.compare-table {
  font-size: 0.92rem;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.compare-card .price-line {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.compact-stats {
  grid-template-columns: 1fr;
}

select[data-model-picker] {
  width: 100%;
  min-height: 14rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.45rem;
}

.card h3 {
  margin: 0;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-cta {
  margin-top: auto !important;
  font-weight: 600;
}

.card-cta a {
  text-decoration: none;
}

.card-cta a:hover {
  text-decoration: underline;
}

.price-board .price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.price-item {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 0.85rem;
}

.price-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-value {
  margin: 0.25rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.price-unit {
  margin: 0;
  font-size: 0.85rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.calc-card {
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.source-line {
  margin: var(--space-sm) 0 0;
  font-size: 0.92rem;
}

.source-line a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.7rem 0;
}

.field span:first-child {
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
  min-height: var(--touch);
  font-size: 1rem; /* evita zoom automático no iOS */
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

input[type="number"]:hover,
textarea:hover,
select:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.65rem;
  margin: 0;
  min-width: 0;
}

.stat-list > div {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0.65rem 0.75rem;
}

.stat-list dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.stat-list dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-emphasis {
  background: var(--accent-soft) !important;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border)) !important;
}

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  /* Largura mínima legível; o scroll fica só em .table-wrap */
  min-width: 560px;
}

.table-wrap .compare-table,
.table-wrap .data-table.compare-table {
  min-width: 960px;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-muted);
  font-size: 0.9rem;
  box-shadow: 0 1px 0 var(--border);
}

.data-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-muted) 45%, transparent);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.breadcrumbs {
  margin: 0 0 var(--space-sm);
  font-size: 0.92rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

.check-list,
.related-list {
  margin: var(--space-xs) 0 0;
  padding-left: 1.45rem;
  padding-right: 0.35rem;
}

.check-list li,
.related-list li {
  margin: 0.4rem 0;
  padding-left: 0.2rem;
}

.related-list a {
  display: inline;
  padding: 0.15rem 0;
}

.columns-2 {
  columns: 2;
  column-gap: var(--space-xl);
}

/* Aviso com tint — sem faixa lateral (anti-pattern de stripe) */
.notice {
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 88%, var(--bg-elevated));
  box-shadow: none;
}

.notice h2 {
  margin-bottom: var(--space-xs);
  color: var(--accent-strong);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 1rem;
  padding: 1rem 0.5rem;
  border-top: 1px solid var(--border);
}

.pagination-status {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 8rem;
  text-align: center;
}

.pagination .button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.notice-inline {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin: var(--space-sm) 0 0;
}

.prose p,
.prose-page p {
  margin: 0 0 0.9rem;
  text-wrap: pretty;
}

.prose h2,
.prose-page h2 {
  margin-top: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-xs);
}

.prose h3,
.prose-page h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.prose ul,
.prose-page ul,
.prose ol,
.prose-page ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.15rem;
}

.prose li + li,
.prose-page li + li {
  margin-top: 0.35rem;
}

.prose > :first-child,
.prose-page .prose > :first-child {
  margin-top: 0;
}

.byline {
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 0 max(1.25rem, var(--safe-bottom));
  margin-top: auto;
  overflow-x: clip;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.25rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-tagline,
.footer-meta {
  color: var(--text-muted);
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0.15rem 0;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0.2rem 0;
  color: var(--text);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .columns-2 {
    columns: 2;
    column-gap: 1.25rem;
  }

  .hero-home {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(1120px, calc(100% - 1.25rem));
    max-width: 100%;
  }

  .main {
    padding: var(--space-md) 0 var(--space-xl);
  }

  .header-scroll {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }

  .panel {
    overflow-x: clip;
  }

  .panel {
    padding: 1rem 0.95rem;
  }

  .featured-cover-article {
    max-height: min(12.5rem, 52vw);
    margin-bottom: var(--space-md);
  }

  .section {
    margin: clamp(1.25rem, 5vw, 1.75rem) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .share-grid {
    grid-template-columns: 1fr;
  }

  /* Mantém título + thumb lado a lado — não empilha a imagem embaixo */
  .hero-with-thumb {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .hero-with-thumb .provider-logo-lg {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero-with-thumb h1 {
    font-size: clamp(1.3rem, 5.8vw, 1.7rem);
  }

  .hero-with-thumb .lead {
    font-size: 0.98rem;
    margin-bottom: 0.55rem;
  }

  .featured-cover-sm {
    width: 5.5rem;
    max-width: 28vw;
    flex-shrink: 0;
  }

  /* Archives / hubs: sempre 2 colunas no mobile */
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .card {
    padding: 0.7rem;
  }

  .card-with-media {
    padding: 0.5rem;
  }

  .card h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .card p {
    font-size: 0.82rem;
  }

  .card-cover {
    max-height: 6.25rem;
    margin-bottom: 0.4rem;
  }

  .card-cta a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
  }

  .columns-2 {
    columns: 2;
    column-gap: 0.9rem;
  }

  .faq-block .faq-item {
    padding: 0.55rem 0.85rem 0.7rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .money-bar {
    grid-template-columns: 1fr;
  }

  .breadcrumbs a,
  .breadcrumbs [aria-current="page"] {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
  }

  /* Tabelas: rolagem horizontal com espaço para o polegar */
  .table-wrap {
    margin-inline: -0.15rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Toque grosso (dedo): alvos e espaçamento extras, independente da largura */
@media (pointer: coarse) {
  .nav-link {
    padding-inline: 0.8rem;
  }

  .header-tools {
    gap: 0.55rem;
  }

  .hero-actions {
    gap: 0.7rem;
  }

  .button {
    padding-inline: 1.1rem;
  }

  .field-check input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .columns-2 {
    columns: 1;
  }

  .featured-cover-sm {
    width: 4.75rem;
    max-width: 26vw;
  }

  .lang-select {
    min-width: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card {
    transition: none;
  }

  .card:hover,
  .card:active {
    transform: none;
  }
}
