/* ==========================================================================
   MilhasBot Editorial Design System — Condé Nast / AFAR / The Points Guy PT-BR
   Enqueued as a cached external stylesheet (blocksy-child/functions.php, prio 99)
   and excluded from LiteSpeed CSS/UCSS optimization so cached & new pages agree.
   Tokens strictly follow DESIGN.md: navy-tinted canvas, Fraunces + Schibsted
   Grotesk + JetBrains Mono (tabular numerals only; kickers always in sans).
   ========================================================================== */
:root {
  --mb-ui-ink: #14233A;
  --mb-ui-body: #2A3647;
  --mb-ui-muted: #556274;
  --mb-ui-line: #DCE3EE;
  --mb-ui-line-strong: #C4D0E0;
  --mb-ui-surface: #FFFFFF;
  --mb-ui-canvas: #F5F7FB;
  --mb-ui-state: #EEF3FA;
  --mb-ui-gold: #7C5E22;
  --mb-ui-gold-soft: #F7F1E3;
  --mb-ui-gold-border: #E3D2B0;
  --mb-ui-gold-dark: #D4A953;
  --mb-ui-focus: #1E4F86;
  --mb-ui-radius: 10px;
  --mb-ui-shadow: 0 4px 16px -4px rgba(20, 35, 58, 0.06), 0 1px 3px rgba(20, 35, 58, 0.03);
}

/* --------------------------------------------------------------------------
   1. Masthead & Primary Navigation (.mb-utility-bar)
   -------------------------------------------------------------------------- */
body .mb-utility-bar {
  padding: 10px 0 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mb-ui-line);
  box-shadow: 0 1px 3px rgba(20, 35, 58, 0.03);
}
body .mb-utility-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
}
body .mb-utility-logo {
  gap: 10px;
  justify-self: start;
  min-height: 48px;
  text-decoration: none;
}
body .mb-utility-logo img {
  width: 40px;
  height: 40px;
}
body .mb-utility-wordmark {
  color: var(--mb-ui-ink);
  font: 600 25px/1.08 var(--mb-serif, 'Fraunces', Georgia, serif);
  letter-spacing: -0.035em;
}
body .mb-utility-actions {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  gap: 6px;
  align-items: center;
}
body .mb-utility-bar .mb-session [data-mb-account-link] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--mb-ui-line-strong);
  background: var(--mb-ui-surface);
  color: var(--mb-ui-ink) !important;
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
body .mb-utility-bar .mb-session [data-mb-account-link]:hover {
  background: var(--mb-ui-ink);
  border-color: var(--mb-ui-ink);
  color: #FFFFFF !important;
}
body .mb-utility-menu {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: flex-start;
  border-top: 1px solid #EEF2F7;
}
body .mb-utility-menu__list {
  width: 100%;
  gap: 2px 6px;
  flex-wrap: wrap;
  border-bottom: 0;
}
body .mb-utility-menu__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--mb-ui-body);
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
body .mb-utility-menu__list a:hover {
  color: var(--mb-ui-ink);
  background: rgba(238, 243, 250, 0.65);
  border-bottom-color: var(--mb-ui-gold);
}
body .mb-utility-menu__list :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a {
  color: var(--mb-ui-ink);
  font-weight: 650;
  border-bottom-color: var(--mb-ui-ink);
}
body .mb-utility-bar :is(.mb-utility-search-btn, .mb-utility-menu-btn, .mb-utility-socials a) {
  min-width: 48px;
  min-height: 48px;
  opacity: 1;
  color: var(--mb-ui-muted);
  transform: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
body .mb-utility-bar :is(.mb-utility-search-btn, .mb-utility-menu-btn, .mb-utility-socials a):hover {
  background: var(--mb-ui-state);
  color: var(--mb-ui-ink);
}
body .mb-utility-bar :is(button, a):focus-visible,
body :is(.mb-eas, .mb-fh, .mb-cr, .mb-bonus-painel, .mb-tn) :is(a, button):focus-visible,
:where(main, #offcanvas, .cmplz-cookiebanner) :where(a[href], button, summary, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--mb-ui-focus);
  outline-offset: 2px;
}
/* Full-screen Stories surface (/em-alta/): hide utility masthead so it never slices across the dark stage */
body.mb-emalta-page .mb-utility-bar {
  display: none !important;
}
body.mb-emalta-page .mb-ea__brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}
body.mb-emalta-page .mb-ea__mode button {
  min-block-size: 38px;
}
/* Anchor target breathing room for TOC jumps (extra clearance when sticky calculator bar is active) */
:where(:target, main :is(h2, h3, section, details)[id]) {
  scroll-margin-top: 24px;
}
body.single-ferramenta :where(:target, main :is(h2, h3, section, details)[id]) {
  scroll-margin-top: 56px;
}

/* --------------------------------------------------------------------------
   2. Home Editorial Hero & Study Track Selector (.mb-magazine__head, .mb-tn)
   -------------------------------------------------------------------------- */
body.home .mb-template-home > .mb-magazine__head {
  padding: 28px 0 24px;
  margin-bottom: 22px;
  gap: 28px 40px;
  align-items: end;
  border-bottom: 2px solid var(--mb-ui-ink);
}
body.home .mb-magazine__h1 {
  font-family: var(--mb-serif, 'Fraunces', Georgia, serif);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--mb-ui-ink);
}
body.home .mb-magazine__h1 em {
  font-style: italic;
  font-weight: 500;
}
body.home .mb-magazine__h1-milhas {
  color: var(--mb-ui-gold);
}
body.home .mb-magazine__sub {
  font-size: 15.5px;
  line-height: 1.62;
  text-align: left;
  color: var(--mb-ui-body);
  border-left: 2px solid var(--mb-ui-gold);
  padding: 2px 0 2px 16px;
  margin: 0;
}

body.home .mb-tn {
  margin: 0 0 28px;
}
body.home .mb-tn__q {
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-left: 3px solid var(--mb-ui-gold);
  border-radius: var(--mb-ui-radius);
  padding: 18px 22px;
  box-shadow: var(--mb-ui-shadow);
}
body.home .mb-tn__op {
  border: 1px solid #D4DFEE;
  border-radius: 8px;
  background: #F8FAFD;
  padding: 12px 14px;
  min-height: 48px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
body.home .mb-tn__op:hover {
  background: var(--mb-ui-ink);
  border-color: var(--mb-ui-ink);
  color: #FFFFFF;
  transform: translateY(-1px);
}
body.home .mb-tn__op:hover span {
  color: #C9D8EE;
}
body.home .mb-tn__sua {
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-radius: var(--mb-ui-radius);
  padding: 10px 16px;
}
body.home .mb-tn__trocar {
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   3. Quick Index Strip (.mb-sts)
   -------------------------------------------------------------------------- */
body .mb-sts {
  margin: 22px 0;
  padding: 16px 0;
  border-block: 1px solid var(--mb-ui-line);
}
body .mb-sts .mb-eas__lista {
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 0;
}
body .mb-sts .mb-eas__item {
  width: auto;
  max-width: 100%;
}
body .mb-sts .mb-eas__link {
  min-height: 48px;
  padding: 10px 14px;
  align-items: flex-start;
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease;
}
body .mb-sts .mb-eas__link:hover {
  border-color: var(--mb-ui-gold);
  background: #FCFBF8;
}
body .mb-sts .mb-eas__anel,
body .mb-sts .mb-eas__seta {
  display: none;
}
body .mb-sts .mb-eas__nome {
  display: block;
  margin: 0;
  max-width: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mb-ui-ink);
  text-align: left;
}
body .mb-sts .mb-eas__sub {
  max-width: none;
  text-align: left;
  font-size: 12px;
  color: var(--mb-ui-muted);
}
body .mb-sts .mb-eas__item.is-atual .mb-eas__link {
  background: var(--mb-ui-state);
  border-color: var(--mb-ui-ink);
}

/* --------------------------------------------------------------------------
   4. Live Bonus Panel & Mobile Deal Cards (.mb-bonus-painel)
   -------------------------------------------------------------------------- */
body .mb-bonus-painel,
body.home .mb-template-home > .mb-bonus-painel {
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 12px 0 36px;
  box-shadow: 0 10px 28px -12px rgba(20, 35, 58, 0.08), 0 1px 3px rgba(20, 35, 58, 0.03);
}
body .mb-bonus-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EDF7F2;
  border: 1px solid #C3E3D1;
  color: #155239;
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 14px;
  font: 600 12.5px/1.4 var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  letter-spacing: 0.01em;
}
body .mb-bonus-ticker strong {
  color: #0D3B28;
  font-weight: 700;
}
body .mb-bonus-ticker__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  flex-shrink: 0;
}
body .mb-bonus-ticker__pulse::after {
  content: none;
}
body .mb-bonus-painel__titulos h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.18;
  color: var(--mb-ui-ink);
  margin: 0 0 6px;
}
body .mb-bonus-painel__sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mb-ui-muted);
  opacity: 1;
}
body .mb-bonus-filtro__chip {
  min-height: 40px;
  border-radius: 999px;
}
body .mb-bonus-tabela thead th {
  background: #F8FAFD;
  border-top: 1px solid var(--mb-ui-line);
  border-bottom: 1px solid var(--mb-ui-line-strong);
  padding: 11px 14px;
  color: var(--mb-ui-muted);
}
body .mb-bonus-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--mb-ui-state);
  border: 1px solid #D4E0F0;
  color: #1E4F86;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body .mb-bonus-link:hover {
  background: var(--mb-ui-ink);
  border-color: var(--mb-ui-ink);
  color: #FFFFFF;
  text-decoration: none;
}
body .mb-nivel-guia {
  border: 1px solid var(--mb-ui-line);
  border-left: 3px solid var(--mb-ui-focus);
  border-radius: 8px;
  background: #F8FAFD;
  padding: 4px 16px;
  margin: 14px 0;
}
body .mb-nivel-guia__titulo {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 0;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  color: var(--mb-ui-ink);
}
body .mb-nivel-guia[open] {
  padding-bottom: 16px;
}

/* Mobile stacked deal cards for .mb-bonus-tabela */
@media (max-width: 768px) {
  body .mb-bonus-painel,
  body.home .mb-template-home > .mb-bonus-painel {
    padding: 20px 16px;
    border-radius: 12px;
  }
  body .mb-bonus-tabela tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  body .mb-bonus-tabela tbody tr {
    display: block;
    background: #F9FBFD;
    border: 1px solid var(--mb-ui-line);
    border-left: 3px solid #1E4F86;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0;
  }
  html:not([data-mb-nivel="experiente"]) body .mb-bonus-tabela tbody tr.mb-nivel-extra {
    display: none;
  }
  html:not([data-mb-nivel="experiente"]) body .mb-bonus-tabela tbody tr.mb-nivel-ultima {
    border-bottom: 1px solid var(--mb-ui-line);
  }
  body .mb-bonus-tabela tbody td {
    display: block;
    padding: 5px 0;
    border: 0;
  }
  body .mb-bonus-tabela tbody td:first-child {
    padding: 0 0 9px;
    margin-bottom: 5px;
    border-bottom: 1px solid #E5ECF5;
    font-size: 15px;
  }
  body .mb-bonus-tabela tbody td:first-child::before,
  body .mb-bonus-tabela tbody td:last-child::before {
    content: none;
  }
  body .mb-bonus-tabela tbody td::before {
    font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.06em;
    color: var(--mb-ui-muted);
    opacity: 1;
    margin-right: 8px;
  }
  body .mb-bonus-tabela tbody td:last-child {
    padding: 10px 0 0;
    margin-top: 6px;
    border-top: 1px dashed var(--mb-ui-line);
  }
  body .mb-bonus-tabela .mb-bonus-link {
    width: 100%;
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   5. Interactive Tools & "Por onde começar" (.mb-fh, .mb-hv2-comecar)
   -------------------------------------------------------------------------- */
body .mb-fh {
  margin: 40px 0;
}
body .mb-fh__head {
  margin-bottom: 18px;
}
body .mb-fh__kick {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mb-ui-gold);
}
body .mb-fh__h {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--mb-ui-ink);
}
body .mb-fh__all {
  color: #1E4F86;
  font-weight: 600;
}
body .mb-fh__all:hover {
  color: var(--mb-ui-gold);
  text-decoration: underline;
}
body .mb-fh__grid,
body.home .mb-fh__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
body .mb-fh__card,
body.home .mb-fh__card {
  display: flex;
  flex-direction: column;
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--mb-ui-shadow);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
body .mb-fh__card:hover,
body.home .mb-fh__card:hover {
  background: var(--mb-ui-surface);
  border-color: var(--mb-ui-gold-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(20, 35, 58, 0.14);
}
body .mb-fh__top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
body .mb-fh__ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mb-ui-gold-soft);
  border: 1px solid var(--mb-ui-gold-border);
  color: var(--mb-ui-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body .mb-fh__ck {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mb-ui-muted);
}
body .mb-fh__ct,
body.home .mb-fh__ct {
  font-family: var(--mb-serif, 'Fraunces', Georgia, serif);
  font-size: 19px;
  line-height: 1.24;
  color: var(--mb-ui-ink);
  margin: 0 0 8px;
}
body .mb-fh__cd,
body.home .mb-fh__cd {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mb-ui-body);
  margin: 0;
}
body .mb-fh__go {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 650;
  color: #1E4F86;
}
body .mb-fh__card:hover .mb-fh__go {
  color: var(--mb-ui-gold);
}

/* Deep-navy editorial contrast band for "Por onde começar" on Home */
body.home .mb-hv2-comecar {
  width: 100%;
  left: auto;
  transform: none;
  background: linear-gradient(145deg, #14233A 0%, #0E1A2C 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 36px 28px;
  margin: 40px 0;
  box-shadow: 0 14px 34px -14px rgba(14, 27, 46, 0.3);
}
body.home .mb-hv2-comecar .mb-hv2-wrap {
  padding-inline: 0;
}
body.home .mb-hv2-comecar__head {
  text-align: left;
  margin-bottom: 24px;
}
body.home .mb-hv2-comecar .mb-hv2-h2 {
  color: #FFFFFF;
}
body.home .mb-hv2-comecar .mb-hv2-dek {
  color: #C5D4EA;
  text-align: left;
  margin: 8px 0 0;
}
body.home .mb-hv2-cgrid {
  gap: 16px;
}
body.home .mb-hv2-cstart {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
body.home .mb-hv2-cstart:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 169, 83, 0.55);
  transform: translateY(-2px);
}
body.home .mb-hv2-cstart__ico {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--mb-ui-gold-dark);
  margin-bottom: 14px;
}
body.home .mb-hv2-cstart h3 {
  color: #FFFFFF;
  font-size: 19px;
  margin: 0 0 8px;
}
body.home .mb-hv2-cstart p {
  color: #C5D4EA;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Card Rankings (.mb-cr — Home Top 3 & /cartoes/ 4-Profile Grid)
   -------------------------------------------------------------------------- */
body .mb-cr {
  margin: 36px 0;
}
body .mb-cr__eyebrow {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mb-ui-gold);
}
body .mb-cr__card {
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--mb-ui-shadow);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
body .mb-cr__card:hover {
  border-color: var(--mb-ui-line-strong);
  transform: translateY(-2px);
}
body .mb-cr__badge {
  position: static;
  align-self: flex-start;
  width: auto;
  height: 26px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mb-ui-state);
  border: 1px solid #D4E0F0;
  color: var(--mb-ui-ink);
  font-family: var(--mb-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  margin-bottom: 4px;
}
body .mb-cr__card:first-child .mb-cr__badge {
  background: var(--mb-ui-ink);
  border-color: var(--mb-ui-ink);
  color: #E5BE70;
}
body .mb-cr__emissor {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mb-ui-muted);
  margin: 2px 0 0;
}
body .mb-cr--perfil .mb-cr__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body .mb-cr--perfil .mb-cr__emissor {
  display: inline-block;
  align-self: flex-start;
  background: var(--mb-ui-gold-soft);
  border: 1px solid var(--mb-ui-gold-border);
  color: var(--mb-ui-gold);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
body .mb-cr__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Destination Cards & 6th Index CTA Tile (.mb-cards--destinos, .mb-card--cta)
   -------------------------------------------------------------------------- */
body .mb-cards--destinos .mb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
body .mb-card-milhas-list {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--mb-ui-line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
body .mb-card-milhas-list .mb-card-milhas {
  margin: 0;
  padding: 0;
  border-top: 0;
}
body .mb-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  min-height: 300px;
  padding: 26px;
  border-radius: 10px;
  background: radial-gradient(125% 120% at 15% 10%, #1F375B 0%, #122139 72%);
  border: 1px solid rgba(212, 169, 83, 0.32);
  box-shadow: 0 12px 28px -12px rgba(14, 27, 46, 0.35);
}
body .mb-card--cta:hover {
  background: radial-gradient(125% 120% at 15% 10%, #244069 0%, #142642 72%);
  border-color: rgba(212, 169, 83, 0.6);
  transform: translateY(-3px);
}
body .mb-card-cta__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body .mb-card-cta__ico {
  color: var(--mb-ui-gold-dark);
  flex-shrink: 0;
}
body .mb-card-cta__mid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto 0;
}
body .mb-card-cta__dek {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.55;
  color: #C5D4EA;
}
body .mb-card-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 169, 83, 0.48);
  color: #FFFFFF;
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.16s ease, border-color 0.16s ease;
}
body .mb-card--cta:hover .mb-card-cta__btn {
  background: var(--mb-ui-gold-dark);
  border-color: var(--mb-ui-gold-dark);
  color: #122139;
}

/* --------------------------------------------------------------------------
   8. Editorial Containers, Pillars, Programs, Single Card & Destinations
   -------------------------------------------------------------------------- */
body aside.mb-tldr {
  padding: 6px 18px;
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-left: 3px solid var(--mb-ui-gold);
  border-radius: var(--mb-ui-radius);
  box-shadow: 0 2px 8px rgba(20, 35, 58, 0.03);
}
body aside.mb-tldr::before {
  content: none;
}
body .mb-tldr .mb-tldr__toggle {
  min-height: 48px;
  line-height: 24px;
  padding: 12px 32px 12px 0;
}
body .mb-tldr .mb-tldr__titulo {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mb-ui-ink);
}
body .mb-tldr .mb-tldr__icone {
  top: 15px;
}
body .mb-tldr .mb-tldr__toggle:hover .mb-tldr__titulo {
  color: var(--mb-ui-gold);
}
body .mb-tldr .mb-tldr__lista {
  padding-bottom: 12px;
}
body .mb-tldr .mb-tldr__det[open] > .mb-tldr__lista {
  padding-top: 12px;
  border-top: 1px solid var(--mb-ui-line);
}
body .mb-tldr .mb-tldr__item {
  text-wrap: pretty;
}
body .mb-tldr .mb-tldr__item strong {
  color: var(--mb-ui-ink);
  font-weight: 650;
}
body .mb-tldr .mb-tldr__item::marker {
  color: var(--mb-ui-gold);
}

body .mb-destino-toc {
  border-radius: var(--mb-ui-radius);
  border-color: var(--mb-ui-line);
  box-shadow: 0 2px 8px rgba(20, 35, 58, 0.03);
}

body .mb-pilar-hero__meta,
body .mb-destino-hero__byline {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mb-ui-muted);
  opacity: 1;
}

/* Compact pill for standalone reading-time indicator (preserves #3631 experiment) */
body:not(.postid-3631) .mb-readtime-wrap {
  margin: -4px 0 18px;
  padding: 0;
}
body:not(.postid-3631) .mb-readtime--block {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mb-ui-state);
  border: 1px solid #D4E0F0;
  color: var(--mb-ui-body);
  font-size: 12px;
  font-weight: 500;
}

/* Destination "Melhor época para ir" callout bar */
body .mb-melhor-epoca {
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-left: 3px solid var(--mb-ui-gold);
  border-radius: 8px;
  padding: 11px 16px;
  margin: 0 0 24px;
  box-shadow: 0 1px 3px rgba(20, 35, 58, 0.03);
}

/* Program ecosystem bar & floating Google invite card */
body .mb-eco {
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-left: 3px solid var(--mb-ui-gold);
  border-radius: var(--mb-ui-radius);
  box-shadow: var(--mb-ui-shadow);
}
body .mb-eco__title,
body .mb-pr2-ecard__tag {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif) !important;
}
body .mb-signin {
  border-radius: 12px;
  border-color: var(--mb-ui-line-strong);
  box-shadow: 0 16px 40px rgba(14, 27, 46, 0.18);
}
body .mb-signin .mb-signin__start {
  border-radius: 8px;
}

/* Single Card (single-cartao.php) spacing & tool pills */
body .mb-sc__meta {
  margin-bottom: 16px;
  gap: 10px 12px;
}
body .mb-sc__leitura {
  margin: 0 0 18px;
}
body .mb-sc__byline {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mb-ui-muted);
}
body .mb-sc__byline a {
  color: var(--mb-ui-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body .mb-sc__ferramentas {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--mb-ui-surface);
  border: 1px solid var(--mb-ui-line);
  border-radius: 12px;
  box-shadow: var(--mb-ui-shadow);
}
body .mb-sc__ferramentas-h {
  font-family: var(--mb-serif, 'Fraunces', Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--mb-ui-ink);
}
body .mb-sc__ferramentas-p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mb-ui-body);
  margin: 0 0 14px;
}
body .mb-sc__ferramentas-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body .mb-sc__pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  background: #F8FAFD;
  border: 1px solid #D4E0F0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1E4F86;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body .mb-sc__pill-link:hover {
  background: var(--mb-ui-ink);
  border-color: var(--mb-ui-ink);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   9. Complianz Cookie Consent Banner — Compact Editorial Styling (Symmetrical)
   -------------------------------------------------------------------------- */
body .cmplz-cookiebanner {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif) !important;
  background: #FFFFFF !important;
  border: 1px solid var(--mb-ui-line-strong) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  row-gap: 6px !important;
  box-shadow: 0 16px 40px rgba(14, 27, 46, 0.18) !important;
  min-inline-size: 0 !important;
  width: min(410px, calc(100vw - 24px)) !important;
  max-inline-size: calc(100vw - 24px) !important;
}
body .cmplz-cookiebanner :is(.cmplz-body, .cmplz-message, .cmplz-categories) {
  width: auto !important;
  min-inline-size: 0 !important;
}
body .cmplz-cookiebanner .cmplz-logo {
  display: none !important;
}
body .cmplz-cookiebanner .cmplz-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 2px !important;
}
body .cmplz-cookiebanner .cmplz-close {
  min-inline-size: 44px !important;
  min-block-size: 44px !important;
  width: 44px !important;
  height: 44px !important;
  margin: -8px -8px -8px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}
body .cmplz-cookiebanner .cmplz-close:hover {
  background: var(--mb-ui-state) !important;
}
body .cmplz-cookiebanner .cmplz-title {
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--mb-ui-ink) !important;
}
body .cmplz-cookiebanner .cmplz-message {
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  color: var(--mb-ui-body) !important;
  margin-bottom: 6px !important;
}
body .cmplz-cookiebanner .cmplz-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  height: auto !important;
  min-block-size: 44px !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-family: var(--mb-sans, 'Schibsted Grotesk', system-ui, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-accept {
  background: var(--mb-ui-ink) !important;
  border: 1px solid var(--mb-ui-ink) !important;
  color: #FFFFFF !important;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-deny {
  background: #FFFFFF !important;
  border: 1px solid var(--mb-ui-ink) !important;
  color: var(--mb-ui-ink) !important;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences {
  background: var(--mb-ui-state) !important;
  border: 1px solid #D4E0F0 !important;
  color: var(--mb-ui-body) !important;
}
body .cmplz-cookiebanner .cmplz-links.cmplz-information {
  display: none !important;
}
body .cmplz-cookiebanner .cmplz-links.cmplz-documents {
  margin-top: 4px !important;
  gap: 12px !important;
}
body .cmplz-cookiebanner .cmplz-links a {
  font-size: 11.5px !important;
  color: var(--mb-ui-muted) !important;
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints, Coarse-Pointer Targets & Motion Preferences
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  body :is(
    .mb-eco__link,
    .mb-programa-toc__pill,
    .mb-destino-toc__link,
    .mb-camada-toggle,
    .mb-cf__chip,
    .mb-card__cta,
    .mb-bonus-filtro__chip,
    .mb-bonus-link,
    .mb-recirculacao__chip,
    .mb-sc__pill-link,
    .mb-signin .mb-signin__close
  ):not([hidden]) {
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
  }
  body .mb-signin .mb-signin__close:not([hidden]) {
    min-inline-size: 44px;
    justify-content: center;
  }
  /* Preserve native <summary> display (WebKit summary flex quirk); only ensure 44px tap height */
  body main details > summary {
    min-block-size: 44px;
  }
}

@media (max-width: 1024px) {
  body .mb-fh__grid,
  body.home .mb-fh__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body .mb-cr--perfil .mb-cr__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home .mb-hv2-cgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 999.98px) {
  body .mb-utility-bar {
    padding: 8px 0;
  }
  body .mb-utility-bar__inner {
    display: flex;
    gap: 8px;
    padding-inline: 20px;
  }
  body .mb-utility-logo {
    gap: 8px;
  }
  body .mb-utility-logo img {
    width: 32px;
    height: 32px;
  }
  body .mb-utility-wordmark {
    font-size: 22px;
  }
  body .mb-utility-actions {
    margin-left: auto;
    gap: 4px;
  }
  body .mb-utility-bar .mb-utility-actions .mb-utility-socials,
  body .mb-utility-menu {
    display: none;
  }
  body.home .mb-template-home > .mb-magazine__head {
    grid-template-columns: 1fr;
    padding-top: 22px;
    gap: 14px;
  }
}

@media (max-width: 767px) {
  /* Extra footer bottom clearance so floating .mb-topo and OS home bar never cover bottom links */
  body .ct-footer [data-row="bottom"] {
    padding-bottom: max(1.5rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
  }
}

@media (max-width: 600px) {
  body .mb-utility-bar__inner {
    padding-inline: 14px;
    gap: 4px;
  }
  body .mb-utility-wordmark {
    font-size: 19px;
  }
  body .mb-utility-logo img {
    width: 28px;
    height: 28px;
  }
  body .mb-utility-logo {
    min-width: 0;
    gap: 6px;
  }
  body .mb-utility-actions {
    gap: 2px;
  }
  body .mb-utility-bar .mb-session [data-mb-account-link] {
    padding: 0 12px;
    min-block-size: 44px;
    font-size: 12.5px;
  }
  body.home .mb-magazine__sub {
    padding-left: 12px;
    max-width: 42ch;
  }
  body .mb-fh__grid,
  body.home .mb-fh__grid,
  body .mb-cr--perfil .mb-cr__grid,
  body.home .mb-hv2-cgrid {
    grid-template-columns: 1fr;
  }
  body.home .mb-hv2-comecar {
    padding: 26px 18px;
    border-radius: 12px;
  }
  body .mb-sts .mb-eas__lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body .mb-sts .mb-eas__link {
    height: 100%;
    padding: 10px 12px;
  }
  body .cmplz-cookiebanner {
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-inline-size: none !important;
    padding: 10px 12px 8px !important;
    row-gap: 4px !important;
    border-radius: 12px !important;
  }
  body .cmplz-cookiebanner .cmplz-close {
    margin: -4px -6px 0 0 !important;
  }
  body .cmplz-cookiebanner .cmplz-message {
    font-size: 12px !important;
    line-height: 1.38 !important;
    margin-bottom: 4px !important;
  }
  body .cmplz-cookiebanner .cmplz-links.cmplz-documents {
    margin-top: 2px !important;
  }
}

@media (max-width: 360px) {
  body .mb-utility-wordmark {
    font-size: 17px;
  }
  body .mb-utility-bar .mb-session [data-mb-account-link] {
    padding: 0 9px;
    min-width: 58px;
    font-size: 12px;
  }
}

@media (forced-colors: active) {
  body .mb-utility-menu__list :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a,
  #offcanvas .mobile-menu :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a {
    border-color: Highlight !important;
  }
  body :is(aside.mb-tldr, .mb-tn__q, .mb-melhor-epoca, .mb-eco) {
    border: 1px solid CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  body :is(.mb-eas, .mb-fh, .mb-cr, .mb-utility-bar, .mb-tn, .mb-card--cta) * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
