/* 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 {
    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;
  }

  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}
