/* Identidade: o azul e o vermelho do logotipo do Passageiro Elite, sobre o quase preto
   do site principal. Barlow no texto e Barlow Condensed nos títulos; o itálico pesado
   do logotipo aparece só na marca.

   As oito --series-N são a paleta dos gráficos: cada programa tem uma posição fixa
   (programs.py), e o modo escuro usa tons próprios, não uma inversão. */
:root {
  color-scheme: light;
  --page: #f4f5f9;
  --surface: #ffffff;
  --ink: #141519;
  --ink-2: #4a4f63;
  --muted: #7c8296;
  --line: #e3e6ef;
  --axis: #c5c9d6;
  --brand: #3d5af1;
  --brand-strong: #2c46d8;
  --brand-soft: #eef1ff;
  --promo: #d92626;
  --promo-soft: #ffecec;
  --up: #0a7d33;
  --down: #c62828;
  --dark: #141519;
  --dark-2: #1f2233;
  --on-dark: #ffffff;
  --on-dark-2: #b8bdd0;
  --logo-blue: #7f95ff;
  --logo-red: #ff5a5a;
  --teal: #02d1ae;
  --shadow: 0 1px 2px rgba(20, 21, 25, .04), 0 12px 28px -18px rgba(20, 21, 25, .18);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0e0f13;
    --surface: #171922;
    --ink: #f2f3f7;
    --ink-2: #b8bdd0;
    --muted: #8a90a6;
    --line: #2a2c36;
    --axis: #3a3d4a;
    --brand: #8ea0ff;
    --brand-strong: #aab8ff;
    --brand-soft: #20243d;
    --promo: #ff7a7a;
    --promo-soft: #3a1b1f;
    --up: #2fc45f;
    --down: #ff7a7a;
    --dark: #0a0b0e;
    --dark-2: #171a29;
    --shadow: none;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.5 var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.625rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
small { font-size: .8125rem; color: var(--ink-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-2); }
.empty { color: var(--ink-2); padding: 24px 0; }
.nowrap { white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- cabeçalho */
.top { background: var(--dark); color: var(--on-dark); }
.top.has-hero {
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(79, 109, 245, .42), transparent 62%),
    radial-gradient(700px 380px at -4% 118%, rgba(255, 59, 59, .2), transparent 60%),
    var(--dark);
}
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: grid; color: var(--on-dark); line-height: 1; }
.brand:hover { text-decoration: none; }
.wordmark { font: italic 800 1.75rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.byline { margin-top: 3px; font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.byline b { color: var(--logo-blue); font-style: italic; }
.byline i { color: var(--logo-red); font-weight: 700; }
.nav { display: flex; gap: 22px; font-weight: 500; }
.nav a { color: var(--on-dark-2); }
.nav a:hover { color: var(--on-dark); text-decoration: none; }

.search { position: relative; display: flex; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.search input {
  flex: 1; min-width: 0; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px 0 0 10px;
  background: #fff; color: #141519; font: inherit;
}
.search input::placeholder { color: #7c8296; }
.search button {
  padding: 0 16px; border: 0; border-radius: 0 10px 10px 0; background: var(--logo-blue); color: #0d1030;
  font: 600 .9375rem var(--text); cursor: pointer;
}
.search button:hover { background: #9bacff; }
.suggest {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); padding: 6px;
  background: #fff; border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
}
.suggest a { display: block; padding: 8px 12px; border-radius: 8px; color: #141519; }
.suggest a:hover, .suggest a.on { background: #eef1ff; text-decoration: none; }

.hero { padding-top: 40px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--logo-blue); }
.hero .lead { margin-top: 12px; max-width: 52ch; font-size: 1.125rem; color: var(--on-dark-2); }
.search-big { margin: 28px 0 0; max-width: 620px; }
.search-big input { padding: 16px 20px; font-size: 1.0625rem; border-radius: 14px 0 0 14px; }
.search-big button { padding: 0 26px; font-size: 1.0625rem; border-radius: 0 14px 14px 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 22px; color: var(--on-dark-2); }
.hero-stats strong { color: var(--on-dark); font-weight: 700; }
.hero-stats .live::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--teal); vertical-align: 1px;
}

/* ---------------------------------------------------------------- página */
main.wrap { padding-top: 28px; padding-bottom: 72px; }
main section { margin-top: 44px; }
main section.first { margin-top: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head a { font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 28px; }
.crumbs { display: flex; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.page-head > div { flex: 1; min-width: 0; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.note { margin-top: 14px; font-size: .9375rem; }

/* ---------------------------------------------------------------- avatar da loja */
.avatar {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand);
  font: 700 .8125rem var(--text); letter-spacing: .02em;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3px; object-fit: contain; background: #fff; }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: .6875rem; }
.avatar.lg { width: 48px; height: 48px; border-radius: 12px; }
.avatar.xl { width: 76px; height: 76px; border-radius: 18px; font-size: 1.375rem; }
.avatar.xl img { padding: 6px; }

/* ---------------------------------------------------------------- filtros */
.filters { display: grid; gap: 10px; margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap;
}
.pill small { font-weight: 500; color: var(--muted); }
.pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill.on small { color: rgba(255, 255, 255, .78); }
.pills.sub .pill { padding: 5px 12px; font-size: .875rem; font-weight: 500; background: transparent; }
.pills.sub .pill.on { background: var(--brand); }
.filter { display: block; margin-bottom: 14px; }
.filter input {
  width: 100%; max-width: 340px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit;
}

/* ---------------------------------------------------------------- valores */
.rate { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.member { display: block; color: var(--ink-2); font-size: .8125rem; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--promo-soft); color: var(--promo);
  font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.big { font: 700 2.5rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.big small { font: 600 1rem var(--text); color: var(--ink-2); margin: 0 3px; }
.delta { font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta .arrow { font-size: .75rem; margin-right: 2px; }
.delta.up .arrow { color: var(--up); }
.delta.down .arrow { color: var(--down); }
.btn {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--brand); border-radius: 10px; color: var(--brand);
  font-weight: 600; font-size: .9375rem; white-space: nowrap;
}
.btn:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------- ranking */
.rank li {
  display: grid; grid-template-columns: 1.75rem auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.rank li:last-child { border-bottom: 0; }
.rank li[hidden] { display: none; }
.pos { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.who { display: grid; min-width: 0; }
.who a { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who a:hover { color: var(--brand); }
.val { display: grid; justify-items: end; gap: 2px; text-align: right; }
.val .rate { font-size: 1.0625rem; }

/* ---------------------------------------------------------------- destaques */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.promo { display: grid; gap: 14px; padding: 16px; border-top: 3px solid var(--promo); }
.promo-store { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.promo-store span { display: grid; min-width: 0; }
.promo-store strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-store:hover { text-decoration: none; }
.promo-store:hover strong { color: var(--brand); }
.promo-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--ink-2); min-height: 1.2em; }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ups li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; }

/* ---------------------------------------------------------------- loja */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); gap: 14px; }
.tile { display: grid; gap: 6px; padding: 18px 20px; }
.tile > small { text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; font-weight: 600; color: var(--muted); }
.tile > span { color: var(--ink-2); font-weight: 500; }
.offers-box { --offer-cols: minmax(120px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) minmax(0, 1.5fr) 118px; }
/* Títulos das colunas; Programa e Valor ordenam a lista. A seta mostra a coluna e o sentido em uso. */
.offers-head { display: grid; grid-template-columns: var(--offer-cols); gap: 8px 20px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.offers-head button, .offers-head span {
  padding: 0; border: 0; background: none; text-align: left; color: var(--muted);
  font: 600 .6875rem var(--text); letter-spacing: .08em; text-transform: uppercase;
}
.offers-head button { cursor: pointer; }
.offers-head button:hover, .offers-head button[data-dir] { color: var(--ink); }
.offers-head button[data-dir="desc"]::after { content: " ↓"; }
.offers-head button[data-dir="asc"]::after { content: " ↑"; }
.offers li {
  display: grid; grid-template-columns: var(--offer-cols);
  align-items: center; gap: 8px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.offers .btn { justify-self: end; }
.offers li:last-child { border-bottom: 0; }
.offers li[hidden] { display: none; }
.offers .worth { display: grid; gap: 2px; }
.offers .worth .rate { font-size: 1.25rem; color: var(--brand); }
.offers .worth .rate.muted { color: var(--muted); }
.kinds { margin-bottom: 12px; }
.kinds[hidden] { display: none; }
.kinds .pill { font-family: inherit; cursor: pointer; }
.offers .prog a { font: 700 1.25rem/1.1 var(--display); color: var(--ink); }
.offers .prog a:hover { color: var(--brand); text-decoration: none; }
.offers .prog small, .offers .meta small { display: block; }
.offers .val { justify-items: start; text-align: left; }
.offers .val .rate { font-size: 1.25rem; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.store { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); box-shadow: none; }
.store span { display: grid; min-width: 0; }
.store strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store:hover { border-color: var(--brand); text-decoration: none; }

/* ---------------------------------------------------------------- tabelas */
.list { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.list th {
  text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.list td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.cell-store { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cell-store a { color: var(--ink); }
details summary { cursor: pointer; color: var(--brand); font-size: .875rem; margin-top: 4px; }
.rules { white-space: pre-line; color: var(--ink-2); font-size: .875rem; margin-top: 8px; max-width: 70ch; }

/* ---------------------------------------------------------------- índice e textos */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.letters a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
main section.letter { margin-top: 28px; }
.letter h2 { color: var(--brand); margin-bottom: 8px; }
.index { columns: 230px; column-gap: 28px; }
.index li { padding: 4px 0; break-inside: avoid; }
.index a { color: var(--ink); }
.index a:hover { color: var(--brand); }
.prose { padding: 28px; max-width: 760px; }
.prose h2 { margin: 28px 0 8px; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; margin: 8px 0 12px; }
.prose li { padding: 2px 0; }
.legal { max-width: 820px; }
.legal p + ul { margin-top: 8px; }

/* ---------------------------------------------------------------- gráfico */
.chart { margin: 0; padding: 20px; }
.chart figcaption { font: 700 1.25rem/1.1 var(--display); margin-bottom: 10px; }
.chart figcaption small { margin-left: 6px; font: 500 .8125rem var(--text); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; font-size: .8125rem; color: var(--ink-2); }
.legend .key { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; border-radius: 1px; }
.plot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 220px auto; column-gap: 8px; }
.y-axis { position: relative; min-width: 2ch; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.y-axis span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; }
.area { position: relative; border-bottom: 1px solid var(--axis); cursor: crosshair; touch-action: pan-y; }
.area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.area path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.dot { position: absolute; width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; border: 2px solid var(--surface); }
.crosshair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--axis); pointer-events: none; }
.tooltip {
  position: absolute; z-index: 2; top: 8px; min-width: 150px; padding: 8px 10px; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .3); font-size: .8125rem;
}
.tooltip time { display: block; color: var(--ink-2); margin-bottom: 4px; }
.tooltip div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tooltip .key { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.tooltip strong { font-variant-numeric: tabular-nums; }
.tooltip span { color: var(--ink-2); }
.x-axis { grid-column: 2; position: relative; height: 1.5rem; font-size: .75rem; color: var(--muted); }
.x-axis span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.x-axis .first { transform: none; }
.x-axis .last { transform: translateX(-100%); }

/* ---------------------------------------------------------------- simulador */
.field { position: relative; display: grid; gap: 6px; align-content: start; }
.field > label, .field > span { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums;
}
.field input:focus-visible { outline-offset: 0; border-color: var(--brand); }
.field[hidden] { display: none; }
.link { padding: 0; border: 0; background: none; color: var(--brand); font: 500 .9375rem var(--text); cursor: pointer; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sim-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; padding: 20px; }
.sim-form input { padding: 12px 14px; font-size: 1.0625rem; }
.sim-form .suggest { border: 1px solid var(--line); }
.sim-verdict { margin-bottom: 14px; padding: 16px 20px; border-left: 4px solid var(--brand); }
.sim-rank li { grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: start; gap: 6px 12px; padding: 16px; }
.sim-rank .who { gap: 2px; }
.sim-rank .who a { font: 700 1.25rem/1.1 var(--display); }
.sim-rank .val .rate { font-size: 1.25rem; }
.sim-extra { grid-column: 2 / -1; display: grid; gap: 4px; }
.sim-member { display: flex; align-items: flex-start; gap: 6px; font-size: .8125rem; color: var(--ink-2); cursor: pointer; }
.sim-member input { flex: none; margin: 3px 0 0; accent-color: var(--brand); }
.sim-settings { display: grid; gap: 16px; padding: 20px; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.sim-grid[hidden] { display: none; }
.sim-how { max-width: none; padding: 20px 24px; }
.sim-how ul { margin-top: 0; }

/* ---------------------------------------------------------------- rodapé */
.bottom { background: var(--dark); color: var(--on-dark-2); padding: 40px 0 48px; font-size: .9375rem; }
.bottom a { color: var(--on-dark); }
.foot { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.foot .wordmark { color: var(--on-dark); font-size: 1.5rem; }
.foot > div p { margin-top: 8px; max-width: 34ch; }
.foot nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 24px; align-content: start; }
.foot nav button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.foot nav button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Aviso de cookies (só com o Google Analytics ligado); o JavaScript o mostra e esconde. */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: flex; flex-wrap: wrap;
  gap: 12px 24px; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto;
  padding: 14px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); font-size: .9375rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-actions { display: flex; gap: 8px 16px; align-items: center; }
.cookie-actions .btn { background: none; font-family: inherit; cursor: pointer; }
.fine { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; max-width: none; }

@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  .wrap { padding: 0 16px; }
  .bar { gap: 10px 18px; }
  .nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; }
  .search { flex-basis: 100%; max-width: none; order: 4; margin-left: 0; }
  .hero { padding-top: 24px; padding-bottom: 40px; }
  .search-big button { padding: 0 18px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .rank li { grid-template-columns: 1.25rem auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .sim-rank li { grid-template-columns: 1.25rem minmax(0, 1fr) auto; }
  .sim-form { grid-template-columns: 1fr; padding: 16px; }
  .sim-head { flex-wrap: wrap; gap: 4px 16px; }
  /* No celular: programa e valor na primeira linha; a oferta, os detalhes e o botão embaixo.
     Os títulos das colunas viram uma linha de "ordenar por". */
  .offers-head { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; }
  .offers-head::before { content: "Ordenar por"; color: var(--muted); font: 500 .8125rem var(--text); }
  .offers-head span { display: none; }
  .offers li { grid-template-columns: minmax(42%, 1fr) minmax(0, auto); padding: 16px; }
  .offers .btn { justify-self: stretch; }
  .offers .worth { grid-column: 2; grid-row: 1; justify-items: end; text-align: right; }
  .offers .val, .offers .meta, .offers .btn { grid-column: 1 / -1; }
  .offers .btn { text-align: center; }
  .list th, .list td { padding: 10px 12px; }
  .list .wide { display: none; }
  .list .nowrap { white-space: normal; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .big { font-size: 2rem; }
  /* Destaques viram um carrossel horizontal, em vez de oito cartões empilhados. */
  .promo-grid { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .promo-grid::-webkit-scrollbar { display: none; }
  .promo { flex: 0 0 72%; scroll-snap-align: start; }
  .page-head { flex-wrap: wrap; }
  .foot { grid-template-columns: 1fr; }
  .prose { padding: 20px; }
}
