/* Responsive refinements — Turma do Farofa v6 */
.mobile-menu-toggle,
.mobile-nav-panel,
.mobile-buy-link {
  display: none;
}

.article-hero h1 {
  font-size: clamp(3.35rem, 5.2vw, 4.8rem);
  line-height: 0.99;
  text-wrap: balance;
}

@media (max-width: 1020px) {
  .nav,
  .content-nav,
  .seo-nav {
    position: relative;
    z-index: 50;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;
    border: 1.5px solid #3a271e;
    border-radius: 999px;
    background: #fffdf7;
    color: #3a271e;
    cursor: pointer;
    font: inherit;
  }

  .mobile-menu-toggle::before {
    content: "";
    width: 20px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .mobile-menu-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    border-top: 2px solid currentColor;
    transform: translate(-50%, -50%);
  }

  .mobile-menu-toggle[aria-expanded="true"]::before {
    height: 0;
    border-bottom: 0;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    z-index: 100;
    width: min(330px, calc(100vw - 30px));
    padding: 12px;
    border: 1px solid rgba(58, 39, 30, 0.14);
    border-radius: 20px;
    background: #fffdf7;
    box-shadow: 0 22px 50px rgba(58, 39, 30, 0.2);
  }

  .mobile-nav-panel.is-open {
    display: grid;
    gap: 4px;
  }

  .mobile-nav-panel a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #3a271e;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav-panel a:hover,
  .mobile-nav-panel a:focus-visible {
    background: #fff0bd;
    outline: none;
  }

  .mobile-nav-panel .mobile-panel-buy {
    justify-content: center;
    margin-top: 5px;
    background: #f5b91f;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 0.94rem;
  }

  .nav-actions,
  .content-nav-links,
  .seo-nav-actions {
    gap: 8px;
  }

  .mobile-buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #3a271e;
    color: #fffdf7;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .content-nav-links > a:not(.mobile-buy-link) {
    display: none;
  }

  .content-nav-links .mobile-buy-link {
    color: #fffdf7;
  }

  h1,
  .seo-hero-copy h1,
  .content-hub-hero h1,
  .article-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.5rem);
    line-height: 1.01;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(2rem, 8.7vw, 3rem);
    line-height: 1.04;
  }

  .hero-grid {
    gap: 6px;
    padding-top: 36px;
  }

  .hero-copy > p {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .hero-actions > span {
    max-width: none;
  }

  .hero-art {
    min-height: 430px;
  }

  .sun {
    width: 300px;
    height: 300px;
  }

  .cover-shell {
    width: min(280px, 74vw);
  }

  .content-hub-hero,
  .article-hero {
    gap: 28px;
    padding: 42px 0 52px;
  }

  .content-hub-mark {
    width: min(220px, 56vw);
  }

  .article-hero-copy > p,
  .content-hub-hero p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .article-meta {
    gap: 7px;
  }

  .article-meta span {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .consent-banner {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    gap: 12px;
    padding: 15px;
    bottom: 10px;
    border-radius: 18px;
  }

  .consent-banner h2 {
    font-size: 1rem;
  }

  .consent-banner p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .consent-actions button,
  .button,
  .edition-actions a,
  .home-editorial-read,
  .article-download a {
    min-height: 44px;
  }

  .privacy-control {
    min-height: 42px;
    padding: 9px 13px;
  }
}

@media (max-width: 390px) {
  .mobile-buy-link {
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .hero-art {
    min-height: 390px;
  }
}

/* v6.3 — contexto de compra adulta na página do livro */
.seo-purchase-note{margin:.55rem 0 0;font-size:.82rem;line-height:1.45;opacity:.78;max-width:34rem}

/* v6.9 — fotografias editoriais intermediárias dos guias longos */
.article-inline-image {
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid rgba(47, 41, 34, .12);
  border-radius: 24px;
  background: #f6f1e7;
  box-shadow: 0 18px 48px rgba(61, 48, 34, .10);
}

.article-inline-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-inline-image figcaption {
  padding: .85rem 1rem 1rem;
  color: #5b5145;
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .article-inline-image {
    margin: 1.5rem 0;
    border-radius: 18px;
  }
}

/* v7 — transparência editorial visível em todos os artigos */
.editorial-transparency {
  display: grid;
  gap: .7rem;
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(58, 39, 30, .16);
  border-left: 5px solid #f5b91f;
  border-radius: 18px;
  background: #fffaf0;
  color: #3a271e;
}

.editorial-transparency strong {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editorial-transparency p {
  margin: 0;
  color: #5b5145;
  font-size: .9rem;
  line-height: 1.6;
}

.editorial-transparency nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
}

.editorial-transparency a {
  color: #6f4a00;
  font-size: .82rem;
  font-weight: 800;
  text-underline-offset: .2em;
}

.editorial-transparency a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(245, 185, 31, .5);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .editorial-transparency {
    padding: 1rem;
    border-radius: 14px;
  }

  .editorial-transparency nav {
    display: grid;
    gap: .6rem;
  }
}
