/* Ajustes da Revista Histeria: navegação, leitura, imagens e versão móvel. */
.histeria-screen-reader, .histeria-skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.histeria-skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100001; background: white; color: #222; padding: 12px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #523767; outline-offset: 4px; }
#histeria-main { scroll-margin-top: 90px; }
.nav-links { gap: clamp(16px, 2vw, 30px); align-items: center; margin-left: auto; }
.nav-container { gap: 18px; }
.histeria-search-toggle { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #49313c; border-radius: 50%; }
.histeria-search-toggle:hover, .histeria-search-toggle[aria-expanded="true"] { background: rgba(255,255,255,.4); }
.histeria-search-panel { background: #fff8f3; padding: 20px 0; border-bottom: 1px solid #e7cad2; box-shadow: 0 10px 18px rgb(74 46 44 / 8%); }
.histeria-search-form { display: flex; width: 100%; max-width: 700px; gap: 10px; }
.histeria-search-form input { min-width: 0; flex: 1; border: 1px solid #bba9a3; border-radius: 6px; background: #fff; padding: 13px 16px; font: 400 18px/1.4 'Degular', sans-serif; color: #262020; }
.histeria-search-form button { padding: 12px 20px; border-radius: 6px; background: #4a2e2c; color: #fff; font: 600 16px/1.4 'Degular', sans-serif; }
.dropdown-wrapper:hover .dropdown-menu, .dropdown-wrapper:focus-within .dropdown-menu, .dropdown-wrapper:has(.dropdown-btn[aria-expanded="true"]) .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu { color: #49313c; }
.menu-btn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.carousel-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Retira a linha horizontal dos cabeçalhos das editorias. */
.category-header, .category-content {
  /* Os fundos antigos usam seletores por ID; mantém a correção localizada. */
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.navbar .nav-links, .navbar .dropdown-btn { color: #49313c; }
.article-hero { height: auto; min-height: 540px; }
.article-hero > img.wp-post-image { height: 620px !important; object-fit: cover; }
.article-hero:not(:has(> img)) { min-height: 340px; }
.article-hero .hero-content { padding-bottom: 80px; }
.article-title { font-family: 'Lemon Milk', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.18; text-wrap: balance; }
.article-meta { flex-wrap: wrap; gap: 6px 18px; font: 16px/1.6 'Degular', sans-serif; text-transform: none; text-shadow: none; }
.article-meta span, .article-meta strong { font-family: inherit; line-height: inherit; }
.histeria-article-actions { max-width: 900px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 24px 20px; }
.histeria-article-actions button { border: 1px solid #4a2e2c; border-radius: 6px; color: #4a2e2c; background: #fff9eb; padding: 12px 16px; font: 600 17px/1.3 'Degular', sans-serif; min-height: 44px; }
.histeria-article-actions button:hover { background: #ffe5ed; }
.histeria-article-actions button svg { display: inline-block; width: 16px; height: 16px; margin-left: 5px; vertical-align: middle; }
.histeria-share-status { flex-basis: 100%; color: #4a2e2c; font: 16px/1.5 'Degular', sans-serif; }
.histeria-share-status:empty { display: none; }
.histeria-copy-fallback { width: 100%; }
.histeria-copy-fallback label { display: block; margin-bottom: 8px; }
.histeria-copy-fallback input { width: 100%; padding: 12px; border: 1px solid #937d75; border-radius: 4px; font-size: 16px; }
.single .article-body-container { margin-top: 0; border: 0; box-shadow: none; }
.article-body :is(p, li) { font-family: 'Degular', sans-serif; font-size: 1.2rem; line-height: 1.75; }
.article-body img { height: auto; max-width: 100%; }
.histeria-listing { background: #fff9f3; padding: 64px 0 90px; min-height: 65vh; color: #352927; }
.histeria-listing-heading { max-width: 780px; margin-bottom: 42px; }
.histeria-eyebrow { font: 600 15px/1.5 'Degular', sans-serif; color: #824456; margin-bottom: 10px; }
.histeria-listing h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; margin-bottom: 20px; font-weight: 400; }
.histeria-listing-heading > p { font-size: 20px; line-height: 1.5; }
.histeria-listing-heading .histeria-search-form { margin: 24px 0; }
.histeria-result-count { color: #61504b; }
.histeria-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px 28px; }
.histeria-result-card { min-width: 0; }
.histeria-result-image { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: #f7dce4; }
.histeria-result-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.histeria-result-image:hover img { transform: scale(1.025); }
.histeria-image-placeholder { display: grid; place-items: center; height: 100%; font-size: 28px; font-family: 'Lemon Milk', sans-serif; color: #7c4757; }
.histeria-result-body { padding: 18px 0; }
.histeria-result-body time { font: 16px/1.4 'Degular', sans-serif; color: #704c59; }
.histeria-result-body h2 { font-size: 18px; font-weight: 400; line-height: 1.55; margin: 9px 0 12px; overflow-wrap: anywhere; }
.histeria-result-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.histeria-result-body p { font-size: 18px; line-height: 1.55; color: #62514d; }
.histeria-read-more { display: inline-block; padding: 14px 0 0; font: 600 17px/1.4 'Degular', sans-serif; color: #704052; }
.histeria-read-more span[aria-hidden] { font-family: inherit; }
.histeria-pagination { margin-top: 36px; }
.histeria-pagination ul, .histeria-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: #352927; margin: 0; }
.histeria-pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #cfb7bc; border-radius: 5px; font-size: 17px; }
.histeria-pagination ul.page-numbers { border: 0; padding: 0; }
.histeria-pagination .current { background: #4a2e2c; color: #fff; border-color: #4a2e2c; }
.histeria-empty { padding: 35px 0 60px; max-width: 620px; }
.histeria-empty h2 { font-size: 21px; margin-bottom: 16px; line-height: 1.4; }
.histeria-empty p { font-size: 20px; line-height: 1.5; margin-bottom: 24px; }
.histeria-empty a { text-decoration: underline; text-underline-offset: 4px; font-size: 18px; }
@media (max-width: 1100px) {
  .navbar .nav-links { display: none; }
  .navbar .menu-btn { display: flex; color: #49313c; }
  .navbar .histeria-search-toggle { margin-left: auto; }
  .mobile-menu { max-height: calc(100dvh - 80px); overflow-y: auto; }
  .mobile-menu a { color: #49313c; }
}
@media (min-width: 1101px) { .navbar .menu-btn, .navbar .mobile-menu { display: none; } }
@media (max-width: 1000px) { .histeria-results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px) {
  /* Mantém as cores e texturas, retirando somente as divisórias pesadas. */
  .home main > section { border-top: 0; border-bottom: 0; }
  .home .news-grid-layout { width: 100%; margin: 0; gap: 26px; }
  .home .content-wrapper { padding: 0 20px; }
  .home .feature-image-wrapper { height: 240px; }
  .home .feature-text { padding: 18px; }
  .home .feature-text h3 { font-size: 1.15rem; line-height: 1.4; }
  .home .music-card-wrapper { transform: none; }
  .home .books-grid { margin-left: 0; }
  .home .music-grid, .home .cinema-grid { padding: 0; }
  .home .music-img { height: 200px; }
  .home .sidebar-news { margin-bottom: 0; }
  .home .books-grid .book-header { flex-direction: row; }
  .category-content .featured-article { margin-bottom: 32px; }
  .category-content .feat-img { height: 210px !important; }
  .category-content .feat-info { padding: 22px; }
  .category-content .feat-info h2 { font-size: clamp(1.1rem, 4.5vw, 1.5rem); line-height: 1.4; margin-bottom: 14px; }
  .category-content .excerpt-hero p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; border-left: 0; padding-left: 0; font-size: 1.05rem; }
  .article-hero { min-height: 0; }
  .article-hero > img.wp-post-image { height: 270px !important; opacity: 1; }
  .article-hero .hero-content { position: relative; background: #fff9f3; color: #352927; padding: 26px 0; }
  .article-hero .article-title { font-size: clamp(1.55rem, 5.6vw, 2rem); line-height: 1.3; text-shadow: none; }
  .single .article-body-container { padding: 28px 22px; margin-bottom: 0; }
  .histeria-article-actions { padding: 18px 20px; }
  .histeria-article-actions button { flex: 1 1 160px; }
}
@media (max-width: 600px) {
  .histeria-results-grid { grid-template-columns: 1fr; gap: 24px; }
  .histeria-listing { padding: 35px 0 60px; }
  .histeria-search-form { gap: 8px; }
  .histeria-search-form button { padding-inline: 12px; }
  .histeria-search-form input { padding-inline: 12px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  @page { margin: 18mm; }
  html, body, main { background: #fff !important; color: #000 !important; padding: 0 !important; margin: 0 !important; }
  .site-header, footer, .histeria-article-actions, .histeria-skip-link, #wpadminbar, .single main > section:last-child, .article-hero > img { display: none !important; }
  .article-hero { height: auto !important; min-height: 0 !important; background: #fff !important; overflow: visible !important; }
  .article-hero .hero-content { position: static !important; padding: 0 0 20px !important; background: none !important; color: #000 !important; }
  .article-hero .article-title { font: 700 23pt/1.25 Georgia, serif !important; text-shadow: none !important; text-transform: none !important; }
  .article-hero .badge { background: none !important; color: #000 !important; padding: 0; }
  .article-meta, .article-meta strong, .article-meta span { font: 10pt/1.5 Arial, sans-serif !important; }
  .single .bg-noticias, .single .article-body-container { background: #fff !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; max-width: none; }
  .article-body :is(p, li) { font: 12pt/1.6 Georgia, serif !important; color: #000 !important; }
  .article-body img, .article-body figure { max-width: 100% !important; height: auto !important; break-inside: avoid; }
  .article-body h2, .article-body h3 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
}

/* Imprime somente a materia, sem widgets administrativos da hospedagem. */
@media print {
  body.single > :not(main) { display: none !important; }
  .single .article-body img { max-height: 170mm !important; object-fit: contain; }
}

/* Remove as divisorias da home tambem na versao de computador. */
.home main > section { border-top: 0; border-bottom: 0; }
