/*
Theme Name: Beauty Harmonia Editorial
Theme URI: https://beautyharmonia.com/
Author: Beauty Harmonia
Author URI: https://beautyharmonia.com/
Description: Tema editorial responsivo criado do zero para o Beauty Harmonia, com capa modular, carrossel, mais lidas, páginas de categoria e matérias completas.
Version: 1.0.4
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beauty-harmonia-editorial
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bh-ink: #111111;
  --bh-paper: #fffdf8;
  --bh-white: #ffffff;
  --bh-soft: #f4f0ea;
  --bh-line: #d8d2ca;
  --bh-pink: #ff3f9f;
  --bh-pink-dark: #e61d7c;
  --bh-yellow: #ffe447;
  --bh-violet: #7650ff;
  --bh-mint: #62e4c3;
  --bh-blue: #4fb7ff;
  --bh-radius: 18px;
  --bh-shadow: 0 12px 40px rgba(17, 17, 17, .10);
  --bh-container: 1240px;
  --bh-reading: 720px;
  --bh-heading: "Archivo Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --bh-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bh-paper);
  color: var(--bh-ink);
  font-family: var(--bh-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.bh-menu-open,
body.bh-search-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .16em; }
a:hover { text-decoration-color: var(--bh-pink); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: 8px; padding: 10px 14px; background: #fff; color: #000; z-index: 99999; }

.bh-container { width: min(calc(100% - 40px), var(--bh-container)); margin-inline: auto; }
.bh-reading { width: min(calc(100% - 40px), var(--bh-reading)); margin-inline: auto; }
.bh-section { padding: 52px 0; }
.bh-section + .bh-section { border-top: 1px solid var(--bh-line); }
.bh-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.bh-kicker, .bh-card__category, .bh-chip, .bh-meta-label {
  display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; line-height: 1.2; font-weight: 900;
}
.bh-title, .bh-section-title, h1, h2, h3 { font-family: var(--bh-heading); line-height: 1.02; letter-spacing: -.035em; }
.bh-section-title { margin: 0; font-size: clamp(32px, 4vw, 58px); text-transform: uppercase; }
.bh-section-title::after { content: "!!!"; color: var(--bh-pink); margin-left: 4px; }
.bh-section-link { font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.bh-empty { padding: 48px; background: var(--bh-soft); border: 2px dashed var(--bh-line); border-radius: var(--bh-radius); text-align: center; }

/* Header */
.bh-site-header { position: relative; z-index: 80; background: var(--bh-paper); border-bottom: 1px solid var(--bh-line); }
.bh-header-main { min-height: 116px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.bh-header-actions { display: flex; align-items: center; gap: 10px; }
.bh-header-actions--right { justify-content: flex-end; }
.bh-icon-button {
  width: 48px; height: 48px; display: inline-grid; place-items: center; padding: 0;
  border: 2px solid var(--bh-ink); border-radius: 999px; background: transparent; color: var(--bh-ink);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.bh-icon-button:hover { transform: translateY(-2px); background: var(--bh-ink); color: var(--bh-paper); }
.bh-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bh-menu-label { margin-left: 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.bh-menu-trigger { display: inline-flex; align-items: center; border: 0; background: none; color: inherit; padding: 0; }
.bh-brand {
  display: flex; align-items: center; justify-content: center;
  width: min(430px, 46vw); min-width: 300px; min-height: 96px;
  text-decoration: none;
}
.bh-brand img, .custom-logo { width: auto; max-width: min(430px, 46vw); max-height: 96px; object-fit: contain; }
.bh-brand-wordmark { display: block; width: min(430px, 46vw); }
/* A marca do cabeçalho usa o arquivo interno do tema para não depender
   da configuração do logotipo do WordPress nem desaparecer no desktop. */
.bh-brand .bh-header-logo {
  display: block !important; visibility: visible !important; opacity: 1 !important;
  width: 100% !important; height: auto !important;
  max-width: 430px !important; max-height: 96px !important;
  object-fit: contain;
}
.bh-nav-wrap { position: sticky; top: 0; z-index: 70; background: var(--bh-ink); color: #fff; }
.admin-bar .bh-nav-wrap { top: 32px; }
.bh-main-nav { min-height: 50px; display: flex; align-items: stretch; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.bh-main-nav::-webkit-scrollbar { display: none; }
.bh-main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; white-space: nowrap; }
.bh-main-nav li { display: flex; }
.bh-main-nav a { display: flex; align-items: center; padding: 0 18px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.bh-main-nav a:hover, .bh-main-nav .current-menu-item > a, .bh-main-nav .current-cat > a { background: var(--bh-pink); color: #111; }

/* Overlay menu/search */
.bh-overlay { position: fixed; inset: 0; z-index: 999; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.bh-overlay.is-open { visibility: visible; opacity: 1; }
.bh-overlay__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.72); backdrop-filter: blur(6px); }
.bh-drawer { position: absolute; inset: 0 auto 0 0; width: min(520px, 92vw); background: var(--bh-paper); transform: translateX(-102%); transition: transform .28s ease; overflow-y: auto; }
.bh-overlay.is-open .bh-drawer { transform: translateX(0); }
.bh-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 24px; background: var(--bh-paper); border-bottom: 1px solid var(--bh-line); }
.bh-drawer__logo { width: 260px; max-width: 70%; }
.bh-drawer__body { padding: 28px 28px 50px; }
.bh-drawer__menu, .bh-drawer__menu ul { list-style: none; margin: 0; padding: 0; }
.bh-drawer__menu > li { border-bottom: 1px solid var(--bh-line); }
.bh-drawer__menu > li > a { display: block; padding: 16px 0; font-family: var(--bh-heading); font-size: 27px; text-transform: uppercase; text-decoration: none; }
.bh-drawer__menu .sub-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; padding: 0 0 18px; }
.bh-drawer__menu .sub-menu a { font-size: 14px; font-weight: 800; text-decoration: none; }
.bh-drawer__recent { margin-top: 34px; padding: 22px; border-radius: var(--bh-radius); background: var(--bh-yellow); color: #111; }
.bh-drawer__recent h3 { margin: 0 0 14px; text-transform: uppercase; font-size: 20px; }
.bh-drawer__recent a { display: block; padding: 10px 0; border-top: 1px solid rgba(17,17,17,.2); font-weight: 800; text-decoration: none; }
.bh-search-panel { position: relative; margin: 12vh auto 0; width: min(900px, calc(100% - 32px)); padding: 34px; background: var(--bh-paper); border-radius: 24px; transform: translateY(-20px); transition: transform .25s ease; }
.bh-overlay.is-open .bh-search-panel { transform: translateY(0); }
.bh-search-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bh-search-panel h2 { margin: 0; font-size: clamp(30px, 6vw, 64px); text-transform: uppercase; }
.bh-search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 28px; }
.bh-search-form input { min-width: 0; height: 58px; padding: 0 18px; border: 2px solid var(--bh-ink); border-radius: 999px; background: var(--bh-white); color: var(--bh-ink); }
.bh-search-form button { height: 58px; padding: 0 26px; border: 2px solid var(--bh-ink); border-radius: 999px; background: var(--bh-pink); color: #111; font-weight: 900; text-transform: uppercase; }

/* Hero */
.bh-home-hero { padding: 30px 0 42px; }
.bh-hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr); gap: 22px; align-items: stretch; }
.bh-slider { position: relative; min-height: 620px; overflow: hidden; border-radius: 24px; background: #111; box-shadow: var(--bh-shadow); }
.bh-slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.bh-slide.is-active { opacity: 1; pointer-events: auto; }
.bh-slide__image, .bh-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.06) 12%, rgba(0,0,0,.28) 44%, rgba(0,0,0,.96) 100%);
}
.bh-slide__content { position: relative; z-index: 2; padding: clamp(28px, 5vw, 58px); color: #fff; max-width: 870px; }
.bh-slide__tag { display: inline-flex; margin-bottom: 14px; padding: 8px 12px; border-radius: 999px; background: var(--bh-yellow); color: #111; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.bh-slide h2 {
  margin: 0; font-size: clamp(30px, 3.9vw, 58px); line-height: 1.01; text-transform: uppercase;
  text-shadow: 0 3px 2px rgba(0,0,0,.92), 0 8px 24px rgba(0,0,0,.92);
}
.bh-slide p {
  margin: 14px 0 0; max-width: 680px; font-size: clamp(15px, 1.45vw, 19px); line-height: 1.4;
  text-shadow: 0 2px 3px rgba(0,0,0,.95), 0 5px 18px rgba(0,0,0,.88);
}
.bh-slider__controls { position: absolute; z-index: 4; left: 28px; right: 28px; bottom: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bh-slider__button { width: 42px; height: 42px; border: 0; border-radius: 999px; background: #fff; color: #111; font-size: 22px; font-weight: 900; }
.bh-slider__dots { display: flex; gap: 6px; margin-right: auto; }
.bh-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); transition: width .2s; }
.bh-slider__dot.is-active { width: 30px; background: var(--bh-yellow); }
.bh-hero-side { display: grid; gap: 22px; grid-template-rows: 1fr 1fr; }
.bh-side-card { position: relative; min-height: 0; overflow: hidden; border-radius: 22px; background: #222; color: #fff; }
.bh-side-card::after { content: ""; position: absolute; inset: 24% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.bh-side-card__content { position: absolute; inset: auto 0 0; z-index: 2; padding: 22px; }
.bh-side-card h3 { margin: 8px 0 0; font-size: clamp(25px, 2.2vw, 38px); }
.bh-side-card a { text-decoration: none; }
.bh-placeholder { background: linear-gradient(135deg, var(--bh-pink), var(--bh-violet) 48%, var(--bh-yellow)); }

/* Chips */
.bh-category-strip { padding: 20px 0; border-top: 1px solid var(--bh-line); border-bottom: 1px solid var(--bh-line); overflow: hidden; }
.bh-category-strip__inner { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.bh-category-strip__inner::-webkit-scrollbar { display: none; }
.bh-chip { flex: 0 0 auto; padding: 11px 16px; border: 2px solid var(--bh-ink); border-radius: 999px; text-decoration: none; background: var(--bh-white); }
.bh-chip:nth-child(3n+1):hover { background: var(--bh-pink); color: #111; }
.bh-chip:nth-child(3n+2):hover { background: var(--bh-yellow); color: #111; }
.bh-chip:nth-child(3n):hover { background: var(--bh-mint); color: #111; }

/* Cards and grids */
.bh-grid { display: grid; gap: 24px; }
.bh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-card { min-width: 0; }
.bh-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--bh-radius); background: var(--bh-soft); }
.bh-card__media a { display: block; position: absolute; inset: 0; }
.bh-card__image { transition: transform .45s ease; }
.bh-card:hover .bh-card__image { transform: scale(1.04); }
.bh-card__body { padding: 14px 2px 0; }
.bh-card__category { color: var(--bh-pink-dark); text-decoration: none; }
.bh-card h3 { margin: 8px 0 8px; font-size: clamp(23px, 2vw, 34px); }
.bh-card h3 a { text-decoration: none; }
.bh-card__excerpt { margin: 0; color: color-mix(in srgb, var(--bh-ink) 72%, transparent); font-size: 15px; line-height: 1.45; }
.bh-card__date { display: block; margin-top: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .66; }
.bh-card--compact { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--bh-line); }
.bh-card--compact .bh-card__media { aspect-ratio: 1; }
.bh-card--compact .bh-card__body { padding: 0; }
.bh-card--compact h3 { font-size: 22px; }
.bh-feature-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 20px; }
.bh-feature-card { position: relative; min-height: 410px; border-radius: 22px; overflow: hidden; background: #111; color: #fff; }
.bh-feature-card:first-child { grid-row: span 2; min-height: 640px; }
.bh-feature-card::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.bh-feature-card__content { position: absolute; z-index: 2; inset: auto 0 0; padding: 26px; }
.bh-feature-card h2, .bh-feature-card h3 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 52px); }
.bh-feature-card a { text-decoration: none; }

/* Most read */
.bh-most-read { background: var(--bh-ink); color: #fff; }
.bh-most-read .bh-section-title::after { color: var(--bh-yellow); }
.bh-ranking { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.bh-rank { position: relative; min-height: 250px; padding: 24px; background: var(--bh-ink); }
.bh-rank__number { display: block; font-family: var(--bh-heading); font-size: 86px; line-height: .8; color: var(--bh-pink); }
.bh-rank:nth-child(even) .bh-rank__number { color: var(--bh-yellow); }
.bh-rank h3 { margin: 22px 0 0; font-size: 25px; }
.bh-rank a { text-decoration: none; }

/* Promo/newsletter */
.bh-promo { padding: 34px 0; background: var(--bh-yellow); color: #111; }
.bh-promo__inner { display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center; }
.bh-promo h2 { margin: 0; font-size: clamp(32px, 5vw, 68px); text-transform: uppercase; }
.bh-promo p { margin: 8px 0 0; max-width: 720px; font-weight: 700; }
.bh-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 2px solid currentColor; border-radius: 999px; background: var(--bh-pink); color: #111; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.bh-button:hover { background: #111; color: #fff; }

/* Archive */
.bh-archive-header { padding: 58px 0 28px; }
.bh-archive-header h1 { margin: 0; font-size: clamp(58px, 9vw, 132px); text-transform: uppercase; overflow-wrap: anywhere; }
.bh-archive-header p { max-width: 760px; margin: 16px 0 0; font-size: 21px; font-weight: 700; }
.bh-archive-list { padding-bottom: 70px; }
.bh-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.bh-pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 2px solid var(--bh-ink); border-radius: 999px; text-decoration: none; font-weight: 900; }
.bh-pagination .current, .bh-pagination a:hover { background: var(--bh-pink); color: #111; }

/* Single */
.bh-single { padding-bottom: 70px; }
.bh-single-head { padding: 54px 0 30px; }
.bh-breadcrumbs { margin-bottom: 20px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.bh-breadcrumbs a { color: var(--bh-pink-dark); }
.bh-single-title { margin: 0; font-size: clamp(42px, 5.2vw, 78px); max-width: 1050px; text-wrap: balance; overflow-wrap: break-word; }
.bh-single-deck { max-width: 820px; margin: 20px 0 0; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.38; font-weight: 650; }
.bh-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; font-size: 14px; font-weight: 800; }
.bh-byline__author { display: inline-flex; align-items: center; gap: 10px; }
.bh-byline__avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--bh-soft); }
.bh-featured { width: min(calc(100% - 24px), 1440px); margin: 0 auto; }
.bh-featured img { width: 100%; max-height: 840px; object-fit: cover; border-radius: 22px; }
.bh-featured figcaption { width: min(100%, var(--bh-reading)); margin: 8px auto 0; font-size: 12px; opacity: .72; }
.bh-tools { position: sticky; top: 70px; z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: fit-content; margin: 26px auto; padding: 9px; background: var(--bh-white); border: 1px solid var(--bh-line); border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.bh-tool { min-width: 42px; height: 42px; border: 0; border-radius: 999px; background: var(--bh-soft); color: var(--bh-ink); font-weight: 900; }
.bh-tool:hover { background: var(--bh-pink); color: #111; }
.bh-summary { margin: 30px 0; border: 2px solid var(--bh-ink); border-radius: var(--bh-radius); overflow: hidden; background: var(--bh-white); }
.bh-summary summary { cursor: pointer; padding: 18px 22px; list-style: none; font-family: var(--bh-heading); font-size: 22px; text-transform: uppercase; }
.bh-summary summary::-webkit-details-marker { display: none; }
.bh-summary summary::after { content: "+"; float: right; color: var(--bh-pink); }
.bh-summary[open] summary::after { content: "–"; }
.bh-summary__body { padding: 0 22px 18px; }
.bh-summary__body p { margin: 0; }
.bh-entry-content { font-size: 18px; line-height: 1.76; overflow-wrap: anywhere; }
.bh-entry-content > * { width: min(calc(100% - 40px), var(--bh-reading)); max-width: var(--bh-reading); margin-left: auto; margin-right: auto; }
.bh-entry-content > .alignwide { width: min(calc(100% - 40px), 1120px); max-width: 1120px; }
.bh-entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
.bh-entry-content p { margin-top: 0; margin-bottom: 1.45em; }
.bh-entry-content > p:first-of-type::first-letter { float: left; padding: .06em .12em 0 0; font-family: var(--bh-heading); font-size: 4.4em; line-height: .78; color: var(--bh-pink); }
.bh-entry-content h2 { margin-top: 1.5em; font-size: clamp(34px, 4.2vw, 58px); }
.bh-entry-content h3 { margin-top: 1.4em; font-size: clamp(28px, 3vw, 42px); }
.bh-entry-content blockquote { padding: 26px 0 26px 28px; border-left: 8px solid var(--bh-pink); font-size: 1.34em; font-weight: 800; }
.bh-entry-content figure { margin-top: 2.2em; margin-bottom: 2.2em; }
.bh-entry-content figcaption { font-size: 12px; opacity: .7; }
.bh-entry-content iframe, .bh-entry-content video { max-width: 100%; }
.bh-entry-content a { color: var(--bh-pink-dark); font-weight: 700; }
.bh-entry-content ul, .bh-entry-content ol { padding-left: 1.4em; }
.bh-post-cta { width: min(calc(100% - 40px), 900px); margin: 44px auto; padding: 28px; border-radius: 22px; background: var(--bh-mint); color: #111; text-align: center; }
.bh-post-cta h2 { margin: 0; font-size: clamp(30px, 5vw, 55px); text-transform: uppercase; }
.bh-post-cta p { margin: 8px auto 18px; max-width: 650px; }
.bh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--bh-line); }
.bh-tags a { padding: 8px 12px; border: 1px solid var(--bh-line); border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; }
.bh-related { margin-top: 56px; }
.bh-author-box { display: grid; grid-template-columns: 86px 1fr; gap: 20px; margin-top: 40px; padding: 24px; border: 2px solid var(--bh-ink); border-radius: 20px; }
.bh-author-box img { border-radius: 50%; }
.bh-author-box h3 { margin: 0 0 6px; font-size: 24px; }
.bh-author-box p { margin: 0; }

/* Footer */
.bh-site-footer { padding: 46px 0 30px; background: var(--bh-ink); color: #fff; text-align: center; }
.bh-footer-logo { display: inline-block; width: min(360px, 78vw); }
.bh-footer-copy { margin: 18px 0 0; font-size: 13px; font-weight: 700; opacity: .8; }
.bh-footer-copy a { color: inherit; }

/* Comments */
.bh-comments { width: min(calc(100% - 40px), var(--bh-reading)); margin: 50px auto 0; }
.bh-comments h2 { font-size: 34px; }
.bh-comments-list { list-style: none; padding: 0; }
.bh-comments-list .comment { padding: 20px 0; border-top: 1px solid var(--bh-line); }
.bh-comments-list .children { list-style: none; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--bh-line); border-radius: 10px; background: var(--bh-white); color: var(--bh-ink); }
.comment-form input[type=submit] { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--bh-pink); font-weight: 900; }

/* Load more */
.bh-load-more-wrap { text-align: center; margin-top: 34px; }
.bh-load-more[disabled] { opacity: .55; cursor: wait; }
.bh-load-more-status { min-height: 24px; margin-top: 8px; font-size: 13px; font-weight: 700; }

@media (min-width: 783px) {
  .bh-header-main { grid-template-columns: minmax(150px, 1fr) minmax(320px, 430px) minmax(150px, 1fr); }
  .bh-brand { width: 100%; }
}

@media (max-width: 1024px) {
  .bh-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bh-ranking { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bh-rank:last-child { grid-column: 1 / -1; }
  .bh-feature-grid { grid-template-columns: 1.3fr 1fr; }
  .bh-feature-card:first-child { grid-row: span 2; }
  .bh-feature-card:last-child { grid-column: 1 / -1; min-height: 360px; }
}

@media (max-width: 782px) {
  .admin-bar .bh-nav-wrap { top: 46px; }
  .bh-header-main { min-height: 88px; grid-template-columns: 48px 1fr 48px; gap: 8px; }
  .bh-menu-label { display: none; }
  .bh-icon-button { width: 44px; height: 44px; }
  .bh-brand { width: min(245px, 64vw); min-width: 0; min-height: 68px; }
  .bh-brand img, .custom-logo, .bh-brand-wordmark { width: min(245px, 64vw); max-width: 245px; max-height: 68px; }
  .bh-brand .bh-header-logo { max-width: 245px !important; max-height: 68px !important; }
  .bh-main-nav { justify-content: flex-start; }
  .bh-main-nav a { padding: 0 14px; }
  .bh-hero-grid { grid-template-columns: 1fr; }
  .bh-slider { min-height: 520px; }
  .bh-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .bh-side-card { min-height: 310px; }
  .bh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-promo__inner { grid-template-columns: 1fr; }
  .bh-promo__inner .bh-button { justify-self: start; }
  .bh-feature-grid { grid-template-columns: 1fr 1fr; }
  .bh-feature-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 520px; }
  .bh-feature-card { min-height: 340px; }
  .bh-feature-card:last-child { grid-column: auto; }
  .bh-single-title { font-size: clamp(36px, 7.8vw, 52px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bh-container, .bh-reading { width: min(calc(100% - 24px), var(--bh-container)); }
  .bh-section { padding: 38px 0; }
  .bh-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bh-header-main { min-height: 82px; }
  .bh-brand { width: min(228px, 66vw); min-height: 62px; }
  .bh-brand img, .custom-logo, .bh-brand-wordmark { width: min(228px, 66vw); max-height: 62px; }
  .bh-brand .bh-header-logo { max-width: 228px !important; max-height: 62px !important; }
  .bh-slider { min-height: 470px; border-radius: 16px; }
  .bh-slide__content { padding: 24px 20px 70px; }
  .bh-slide h2 { font-size: clamp(25px, 7.4vw, 36px); line-height: 1.03; }
  .bh-slide p { font-size: 15px; line-height: 1.38; max-width: calc(100% - 78px); }
  .bh-slider__controls { left: 18px; right: 18px; }
  .bh-hero-side { grid-template-columns: 1fr; }
  .bh-side-card { min-height: 360px; }
  .bh-grid--4, .bh-grid--3 { grid-template-columns: 1fr; }
  .bh-card h3 { font-size: 29px; }
  .bh-card--compact { grid-template-columns: 112px 1fr; }
  .bh-card--compact h3 { font-size: 19px; }
  .bh-ranking { grid-template-columns: 1fr; }
  .bh-rank:last-child { grid-column: auto; }
  .bh-rank { min-height: 190px; }
  .bh-rank__number { font-size: 68px; }
  .bh-feature-grid { grid-template-columns: 1fr; }
  .bh-feature-card, .bh-feature-card:first-child, .bh-feature-card:last-child { grid-column: auto; min-height: 430px; }
  .bh-archive-header h1 { font-size: clamp(50px, 16vw, 82px); }
  .bh-single-head { padding: 32px 0 24px; }
  .bh-single-title { font-size: clamp(34px, 9vw, 44px); line-height: 1.04; }
  .bh-single-head .bh-container { width: min(calc(100% - 32px), var(--bh-container)); }
  .bh-single-deck { font-size: 18px; line-height: 1.42; }
  .bh-featured { width: calc(100% - 12px); }
  .bh-featured img { border-radius: 14px; }
  .bh-tools { top: 56px; max-width: calc(100% - 20px); }
  .bh-entry-content { font-size: 17px; line-height: 1.76; }
  .bh-entry-content > * { width: min(calc(100% - 40px), var(--bh-reading)); }
  .bh-entry-content > .alignwide { width: min(calc(100% - 24px), 1120px); }
  .bh-search-panel { margin-top: 7vh; padding: 24px 18px; }
  .bh-search-form { grid-template-columns: 1fr; }
  .bh-drawer__menu > li > a { font-size: 24px; }
  .bh-author-box { grid-template-columns: 64px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.bh-site-footer .custom-logo { filter: brightness(0) invert(1); }

/* Ajustes v1.0.3 — títulos dos destaques mais compactos */
.bh-side-card__content {
  padding: 16px 18px 18px;
}
.bh-side-card h3 {
  max-width: 96%;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .95), 0 6px 18px rgba(0, 0, 0, .85);
}

@media (max-width: 600px) {
  .bh-slide__content {
    padding: 20px 18px 72px;
  }
  .bh-slide h2 {
    max-width: 92%;
    font-size: clamp(19px, 5.5vw, 25px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .98), 0 7px 20px rgba(0, 0, 0, .92);
  }
  .bh-slide p {
    max-width: calc(100% - 52px);
    font-size: 14px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
}
