/*
Theme Name: Capão News
Theme URI: https://capaonews.com.br/
Author: Capão News
Author URI: https://capaonews.com.br/
Description: Tema editorial do Capão News, jornalismo comunitário do Capão Redondo e da Zona Sul de São Paulo.
Version: 1.0.0
Requires at least: 6.0
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: capao-news
*/

/* O CSS compilado do Tailwind deve ser gerado em assets/css/tailwind.css. */

:root { --font-family: 'Montserrat', Arial, sans-serif; --ink: #181818; --muted: #6b6969; --line: #d9d5d1; --accent: #6365a1; --soft: #f5f1eb; }
* { box-sizing: border-box; }
body.capao-site { background: #fffdf9; color: var(--ink); font-family: var(--font-family); margin: 0; }
body.capao-site :where(button, input, select, textarea) { font-family: var(--font-family); }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, .brand-capao, .brand-news, .site-navigation ul a, .section-heading > span, .section-heading > a, .lead-story h1, .secondary-story h2, .popular-story h2, .latest-story h3 { font-family: var(--font-family); }
.site-header { background: #fffdf9; border-bottom: 1px solid var(--ink); }
.header-inner { margin: 0 auto; max-width: 1120px; padding: 0 24px; }
.header-meta, .header-actions { color: var(--muted); display: flex; font-family: var(--font-family); font-size: 10px; font-weight: 700; justify-content: space-between; letter-spacing: .12em; text-transform: uppercase; }
.header-meta { display: none; }
.header-branding { border-bottom: 1px solid var(--ink); padding: 10px 24px 18px; text-align: center; }
.brand-link { align-items: center; display: inline-flex; flex-direction: column; text-decoration: none; }
.brand-mark { color: var(--accent); font-family: var(--font-family); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.header-logo-wrap, .footer-logo-wrap { display: inline-block; }
.header-logo-wrap { display: flex; justify-content: center; width: 100%; }
.header-logo-wrap a, .footer-logo-wrap a { display: inline-block; }
.header-logo-wrap img, .footer-logo-wrap img { display: block; height: auto; max-width: 100%; }
.header-logo-wrap img { max-height: 140px; max-width: min(480px, 100%); width: auto; }
.custom-logo-link, .custom-logo { display: inline-flex; align-items: center; justify-content: center; }
.custom-logo-link { max-width: 100%; }
.custom-logo { display: block !important; height: auto !important; max-height: 140px !important; max-width: min(480px, 100%) !important; width: auto !important; }
.footer-logo-wrap img { max-height: 80px; width: auto; }
.brand-wordmark { align-items: flex-end; display: inline-flex; flex-direction: row; gap: 0; justify-content: center; line-height: .72; }
.brand-capao { color: #111111; font-family: var(--font-family); font-size: clamp(80px, 7vw, 190px); font-weight: 800; letter-spacing: -.09em; line-height: .72; text-transform: uppercase; }
.brand-news { color: #7d83b5; font-family: var(--font-family); font-size: clamp(46px, 4vw, 100px); font-weight: 700; letter-spacing: -.06em; line-height: .72; margin-left: 0; text-transform: lowercase; }
.brand-tagline { color: var(--muted); font-family: var(--font-family); font-size: 10px; font-weight: 700; letter-spacing: .3em; margin-top: 14px; text-transform: uppercase; }
.header-actions { background: transparent; justify-content: flex-end; padding: 10px 32px 12px; }
.header-actions a { color: var(--ink); font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.site-navigation { border-top: 1px solid var(--line); margin: 0; max-width: none; overflow-x: auto; }
.site-navigation-inner { align-items: center; display: flex; gap: 18px; margin: 0 auto; max-width: 1120px; }
.site-navigation ul { align-items: center; display: flex; flex: 1; flex-wrap: nowrap; gap: 0; justify-content: space-between; list-style: none; margin: 0; min-width: 0; padding: 0; white-space: nowrap; }
.site-navigation ul li { flex: 0 0 auto; }
.site-navigation ul a { display: block; font-family: var(--font-family); font-size: 11px; font-weight: 800; letter-spacing: .11em; padding: 15px 12px; text-decoration: none; text-transform: uppercase; }
.site-navigation ul a:hover, .site-navigation ul a:focus-visible { background: var(--accent); color: #fff; outline: 0; }
.site-search { order: 1; align-items: center; background: #fff; border: 1px solid var(--line); display: flex; flex: 0 0 176px; height: 36px; transition: border-color .2s ease, box-shadow .2s ease; }
.site-search:focus-within { border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.site-search input { background: transparent; border: 0; color: var(--ink); font: 700 10px var(--font-family); letter-spacing: .08em; min-width: 0; outline: 0; padding: 8px 9px; text-transform: uppercase; width: 100%; }
.site-search input::placeholder { color: var(--muted); opacity: 1; }
.site-search button { align-items: center; background: var(--accent); border: 0; color: #fff; cursor: pointer; display: flex; font-size: 20px; height: 100%; justify-content: center; line-height: 1; padding: 0; transition: background .2s ease; width: 36px; }
.site-search button:hover, .site-search button:focus-visible { background: var(--ink); outline: 0; }
.mobile-menu-toggle { display: none; }
.site-main { margin: 0 auto; max-width: 1168px; padding: 20px 24px 70px; }
.ad-slot { align-items: center; border: 1px dashed #bdb7b1; color: #9c9790; display: flex; font-family: var(--font-family); font-size: 10px; justify-content: center; letter-spacing: .18em; min-height: 74px; text-transform: uppercase; }
.home-lead { align-items: start; border-bottom: 1px solid var(--ink); display: grid; gap: 26px; grid-template-columns: minmax(0, 1.75fr) minmax(250px, .75fr); padding: 14px 0 42px; }
.home-news-column { border-right: 1px solid var(--line); min-width: 0; padding-right: 32px; }
.lead-story { border: 0; padding: 0; }
.lead-image, .secondary-image, .latest-image { display: block; overflow: hidden; }
.lead-image { aspect-ratio: 1.5; }
.lead-image img, .secondary-image img, .latest-image img { display: block; height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.lead-image:hover img, .secondary-image:hover img, .latest-image:hover img { transform: scale(1.03); }
.eyebrow { color: var(--accent); font-family: var(--font-family); font-size: 10px; font-weight: 800; letter-spacing: .15em; margin: 14px 0 0; text-transform: uppercase; }
.featured-carousel { display: block; }
.featured-slides { position: relative; }
.featured-slide { display: none; }
.featured-slide.is-active { display: block; }
.featured-slide .eyebrow { margin-top: 10px; }
.featured-carousel-controls { align-items: center; display: flex; justify-content: space-between; margin-top: 12px; }
.carousel-arrow { background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 18px; height: 36px; width: 36px; }
.featured-carousel-dots { display: flex; gap: 8px; justify-content: center; flex: 1; }
.carousel-dot { background: rgba(99, 101, 161, .25); border: 0; border-radius: 999px; cursor: pointer; height: 8px; width: 28px; }
.carousel-dot.is-active { background: var(--accent); }
.lead-story h1, .featured-slide h1 { display: block; font-size: clamp(30px, 1.8vw, 38px); font-weight: 900; letter-spacing: -.05em; line-height: 1.04; margin: 8px 0 0; max-width: 700px; overflow-wrap: anywhere; }
.lead-story h1 a, .featured-slide h1 a, .secondary-story h2 a, .popular-story h2 a, .latest-story h3 a { text-decoration: none; }
.lead-summary { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 14px 0 0; }
.featured-story-grid, .latest-section, .popular-column { position: relative; }
.secondary-story h2, .popular-story h2, .latest-story h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.secondary-story h2 { font-size: 17px; font-weight: 800; }
.popular-story h2 { font-size: 16px; font-weight: 800; }
.latest-story h3 { font-size: 20px; font-weight: 800; }
.section-heading { align-items: baseline; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; padding-bottom: 12px; }
.section-heading .eyebrow { margin: 0; }
.section-heading > span, .section-heading > a { color: var(--muted); font-family: var(--font-family); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.secondary-stories { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 30px; }
.secondary-stories .section-heading { grid-column: 1 / -1; }
.secondary-story { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(241,239,234,.65)); border: 1px solid var(--line); border-radius: 12px; display: block; padding: 14px 14px 16px; transition: transform .2s ease, box-shadow .2s ease; }
.secondary-story:hover, .latest-story:hover { box-shadow: 0 10px 26px rgba(24, 24, 24, .08); transform: translateY(-2px); }
.secondary-story:last-child { border-bottom: 1px solid var(--line); }
.secondary-image { aspect-ratio: 1.7; border-radius: 10px; overflow: hidden; }
.secondary-story .eyebrow { margin: 0; letter-spacing: .1em; }
.secondary-story h2, .popular-story h2 { font-size: 18px; letter-spacing: -.025em; line-height: 1.08; margin: 7px 0 0; }
.story-date { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-family: var(--font-family); font-size: 10px; gap: 8px; letter-spacing: .08em; margin: 9px 0 0; text-transform: uppercase; }
.story-date__separator { color: var(--accent); font-size: 11px; }
.story-date__reading-time, .single-byline__reading-time { color: var(--accent); font-weight: 700; }
.popular-column { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.popular-story { border-bottom: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: 29px minmax(0, 1fr); padding: 18px 0; }
.popular-story:last-child { border-bottom: 0; }
.popular-number { color: var(--accent); font-family: var(--font-family); font-size: 20px; font-weight: 800; }
.popular-story .eyebrow { margin: 0; letter-spacing: .1em; }
.sidebar-ad { align-items: center; background: var(--soft); border: 1px dashed #bdb7b1; color: var(--muted); display: flex; flex: 1; flex-direction: column; font-family: var(--font-family); justify-content: center; margin-top: 24px; min-height: 220px; padding: 24px; text-align: center; }
.sidebar-ad span { font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-ad strong { color: var(--ink); font-family: var(--font-family); font-size: 23px; line-height: 1.05; margin-top: 12px; max-width: 190px; }
.sidebar-ad a { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; margin-top: 16px; text-decoration: none; text-transform: uppercase; }
.sidebar-ad.is-filled { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(237,235,231,.9)); }
.footer-partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-badge { align-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; display: inline-flex; justify-content: center; min-height: 66px; min-width: 120px; padding: 8px 12px; text-align: center; text-decoration: none; }
.partner-badge img { max-height: 46px; object-fit: contain; width: auto; }
.latest-section { padding: 42px 0 0; }
.latest-section .section-heading h2 { font-size: 34px; letter-spacing: -.035em; margin: 0; }
.latest-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 23px; }
.latest-image { aspect-ratio: 1.5; border-radius: 12px; overflow: hidden; }
.latest-story { background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(241,239,234,.65)); border: 1px solid var(--line); border-radius: 12px; padding: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.latest-story h3 { font-size: 22px; letter-spacing: -.025em; line-height: 1.05; margin: 9px 0 0; }
.article-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 38px 0; }
.empty-state { padding: 80px 0; }
.single-story { padding: 18px 0 0; }
.single-header { margin: 0 auto; max-width: 980px; text-align: center; }
.single-kicker { color: var(--accent); display: flex; font-family: var(--font-family); font-size: 10px; font-weight: 800; justify-content: space-between; letter-spacing: .14em; text-transform: uppercase; }
.single-header h1 { font-size: clamp(32px, 3vw, 72px); font-weight: 900; letter-spacing: -.065em; line-height: .9; margin: 18px 0 0; max-width: 980px; }
.reading-tools { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px auto 0; max-width: 1120px; padding: 12px 0; }
.reading-tools-label { color: var(--accent); font-family: var(--font-family); font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-right: 6px; text-transform: uppercase; }
.reading-tools button { background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-family: var(--font-family); font-size: 11px; padding: 8px 11px; }
.reading-tools button:hover, .reading-tools button:focus-visible { background: var(--accent); color: #fff; outline: 2px solid var(--accent); outline-offset: 2px; }
.reading-tools button:disabled { cursor: not-allowed; opacity: .45; }
.reading-tools button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.reading-status { color: var(--muted); font-family: var(--font-family); font-size: 10px; min-width: 110px; }
.single-deck { color: var(--muted); font-size: 20px; line-height: 1.35; margin: 18px auto 0; max-width: 700px; }
.single-byline { border-bottom: 1px solid var(--line); color: var(--muted); display: flex; font-family: var(--font-family); font-size: 10px; justify-content: center; gap: 16px; letter-spacing: .08em; margin-top: 18px; padding-bottom: 18px; text-transform: uppercase; }
.single-byline span { white-space: nowrap; }
.single-byline__reading-time { color: var(--accent); font-weight: 800; }
.single-hero-image { margin: 28px auto 0; max-width: 1120px; }
.single-hero-image img { display: block; height: auto; max-height: 680px; object-fit: cover; width: 100%; }
.single-hero-image figcaption { color: var(--muted); font-family: var(--font-family); font-size: 10px; margin-top: 8px; }
.single-layout { display: grid; gap: 34px; grid-template-columns: 110px minmax(0, 720px); justify-content: center; padding: 46px 0 60px; }
.single-share { align-items: center; display: flex; flex-direction: column; gap: 10px; padding-top: 7px; }
.single-share span { color: var(--muted); font-family: var(--font-family); font-size: 9px; font-weight: 800; letter-spacing: .1em; margin-bottom: 4px; text-transform: uppercase; writing-mode: vertical-rl; }
.single-share a, .single-share button { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 50%; color: var(--accent); display: flex; font-family: var(--font-family); font-size: 13px; font-weight: 800; height: 34px; justify-content: center; text-decoration: none; width: 34px; }
.single-share button { cursor: pointer; }
.single-content { font-size: 19px; line-height: 1.72; }
.single-content > p:first-child { font-size: 22px; line-height: 1.5; }
.single-content p { margin: 0 0 24px; }
.single-content h2, .single-content h3 { font-size: 32px; letter-spacing: -.03em; line-height: 1.05; margin: 42px 0 16px; }
.single-content blockquote { border-left: 3px solid var(--accent); font-size: 25px; font-style: italic; margin: 38px 0; padding: 4px 0 4px 24px; }
.single-content img { height: auto; max-width: 100%; }
.single-tags { border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-family); font-size: 10px; letter-spacing: .1em; margin-top: 42px; padding-top: 18px; text-transform: uppercase; }
.single-tags a { color: var(--accent); margin-left: 12px; text-decoration: none; }
.related-section { border-top: 1px solid var(--ink); padding: 38px 0 60px; }
.related-section .section-heading h2 { font-size: 34px; letter-spacing: -.035em; margin: 0; }
.accessibility-contrast body.capao-site { background: #000; color: #fff; }
.accessibility-contrast .site-header, .accessibility-contrast .site-main { background: #000; }
.accessibility-contrast .single-content, .accessibility-contrast .single-header h1 { color: #fff; }
.accessibility-contrast .single-deck, .accessibility-contrast .single-byline, .accessibility-contrast .single-hero-image figcaption { color: #eee; }
.accessibility-contrast .reading-tools, .accessibility-contrast .single-byline { border-color: #fff; }
.accessibility-contrast .reading-tools button { background: #000; border-color: #fff; color: #fff; }
html[data-font-scale="-1"] .single-content { font-size: 17px; }
html[data-font-scale="1"] .single-content { font-size: 21px; }
html[data-font-scale="2"] .single-content { font-size: 24px; }
.site-footer { background: var(--accent); color: #fff; margin-top: 20px; }
.site-footer .footer-inner { margin: 0 auto; max-width: 1168px; padding: 32px 24px 16px; }
.site-footer .footer-top { align-items: start; display: grid; gap: 32px; grid-template-columns: minmax(0, 1.7fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.1fr); padding-bottom: 24px; }
.site-footer .footer-top > div { min-width: 0; }
.site-footer .footer-logo-wrap { display: block; margin: 0 0 14px; }
/* Align the visible logo, excluding transparent image margins. */
.site-footer .footer-logo-wrap a { display: block; height: 91px; overflow: hidden; width: 187px; }
.site-footer .footer-logo-wrap .footer-brand-image { display: block; height: 101px; max-height: none; max-width: none; transform: translate(-57px, -3px); width: 301px; }
.site-footer .footer-slogan { font-size: 16px; line-height: 1.4; margin: 0 0 10px; }
.site-footer .footer-slogan strong { font-weight: 800; }
.site-footer .footer-tagline { color: #fff; font-size: 13px; line-height: 1.65; margin: 0; max-width: 42ch; text-wrap: pretty; }
.site-footer .footer-column h2 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.5; margin: 0 0 16px; text-transform: uppercase; }
.site-footer .footer-column a { color: #fff; font-size: 13px; line-height: 1.5; text-decoration: none; }
.site-footer .footer-column--journal > a { display: block; margin-top: 10px; width: fit-content; }
.site-footer .footer-column--journal > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 2px; }
.site-footer .footer-network-icons { display: grid; grid-template-columns: repeat(3, 42px); gap: 12px; }
.site-footer .footer-network-icons a { align-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; display: flex; height: 42px; justify-content: center; width: 42px; transition: background .2s ease; }
.site-footer .footer-network-icons a:hover { background: rgba(255,255,255,.18); }
.site-footer .footer-network-icons svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 19px; }
.site-footer .footer-network-icons a:nth-child(2) svg { fill: currentColor; stroke: none; }
.site-footer .footer-network-icons .icon-fill { fill: currentColor; stroke: none; }
.site-footer .footer-cta { text-align: right; }
.site-footer .footer-cta p { color: #fff; font-size: 13px; line-height: 1.65; margin: 0 0 16px auto; max-width: 26ch; }
.site-footer .footer-cta > a { background: #fff; color: var(--accent); display: inline-block; font-size: 12px; font-weight: 800; padding: 12px 14px; transition: background .2s ease; }
.site-footer .footer-cta > a:hover { background: #eeeefa; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.3); color: #fff; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 10px; letter-spacing: .06em; line-height: 1.6; padding-top: 14px; text-transform: uppercase; }
.site-footer .footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-bottom a:hover { text-decoration-thickness: 2px; }
.site-footer .footer-bottom a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 1023px) {
    .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
}
@media (max-width: 620px) {
    .site-footer .footer-inner { padding: 28px 16px 16px; }
    .site-footer .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .site-footer .footer-column h2 { margin-bottom: 12px; }
    .site-footer .footer-bottom { flex-direction: column; gap: 6px; }
}
.ad-slot { align-items: center; background: rgba(98, 100, 168, .08); border: 1px dashed rgba(105, 108, 167, .5); color: var(--muted); display: flex; font-family: var(--font-family); font-size: 12px; font-weight: 800; justify-content: center; letter-spacing: .14em; min-height: 90px; text-transform: uppercase; }
.ad-slot a { align-items: center; color: inherit; display: flex; justify-content: center; min-height: 90px; text-decoration: none; width: 100%; }
.ad-slot img { display: block; object-fit: cover; width: 100%; }
.ad-slot--top { margin: 0 auto 12px; max-width: 1120px; }
.ad-slot--top img { height: 90px; }
.ad-slot--middle { margin: 20px auto 0; max-width: 980px; }
.ad-slot--middle img { height: 140px; }
.team-page { margin: 0 auto; max-width: 760px; padding: 16px 14px 42px; }
.team-page-header { margin-bottom: 18px; text-align: center; }
.team-page-header h1 { color: #3d3d3d; font-size: clamp(22px, 2vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; }
.team-grid { display: grid; gap: 16px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 620px; }
.team-member { align-items: center; background: #f7f5f2; border: 1px solid rgba(24, 24, 24, 0.08); display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 190px; padding: 14px 12px; text-align: center; }
.team-member-image { aspect-ratio: 1 / 1; border-radius: 50%; display: block; height: 90px !important; object-fit: cover; width: 90px !important; }
.team-member h2 { color: #ee8a33; font-size: clamp(18px, 1.7vw, 28px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; margin: 0; }
.team-member p { color: #4d4d4d; font-size: clamp(12px, 0.9vw, 15px); line-height: 1.4; margin: 0; max-width: 26ch; }

/* Responsive component rules. */
.site-header .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.header-banner-image { display: block; width: 100%; height: auto; object-fit: contain; }
.site-search button { flex-shrink: 0; }
.site-menu > li { position: relative; }
.site-menu .sub-menu { background: #fffdf9; border: 1px solid var(--line); display: none; left: 0; min-width: 180px; position: absolute; top: 100%; white-space: normal; z-index: 20; }
.site-menu > li:hover > .sub-menu, .site-menu > li:focus-within > .sub-menu { display: block; }
.site-menu .sub-menu a { overflow-wrap: anywhere; }
.site-header a:focus-visible, .mobile-menu-toggle:focus-visible, .site-search button:focus-visible, .carousel-arrow:focus-visible, .carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-main, .site-footer { overflow-wrap: anywhere; }
.site-main :where(article, section, aside, .single-content, .prose, .wp-block-column) { min-width: 0; }
.site-main :where(img, video, iframe, embed, object) { max-width: 100%; }
.site-main :where(video, .wp-block-image img, .prose img) { height: auto; }
.site-main :where(figure, .wp-caption) { max-width: 100%; margin-left: 0; margin-right: 0; }
.single-content :where(pre, .wp-block-table), .prose :where(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.single-content table, .prose table { width: 100%; table-layout: fixed; }
.single-content :where(td, th), .prose :where(td, th) { overflow-wrap: anywhere; }
.single-byline { flex-wrap: wrap; }
.single-byline span { white-space: normal; }
.section-heading { flex-wrap: wrap; gap: 8px 16px; }
.secondary-story .eyebrow { margin-top: 12px; }
.sidebar-ad a { max-width: 100%; }
.sidebar-ad img { display: block; max-width: 100%; height: auto; }
.ad-slot img { height: auto; object-fit: contain; }
.ad-slot:has(img), .ad-slot a:has(img) { min-height: 0; }
.ad-slot { min-width: 0; text-align: center; }
.single-share { flex-wrap: wrap; }
@media (max-width: 1023px) {
    .header-inner { align-items: center; display: flex; gap: 16px; padding: 12px 24px; }
    .header-branding { border: 0; flex: 1; min-width: 0; padding: 0; text-align: left; }
    .header-logo-wrap { justify-content: flex-start; }
    .header-logo-wrap img, .header-logo-wrap .custom-logo { max-height: 80px !important; max-width: 100% !important; width: auto !important; height: auto !important; object-fit: contain; }
    .header-banner-image { max-height: 80px; width: auto; max-width: 100%; }
    .brand-capao { font-size: clamp(36px, 7vw, 64px); }
    .brand-news { font-size: clamp(25px, 4vw, 42px); }
    .brand-tagline { font-size: 8px; letter-spacing: .1em; margin-top: 10px; }
    .mobile-menu-toggle { align-items: center; background: #fff; border: 1px solid var(--line); color: var(--accent); display: flex; flex: 0 0 44px; height: 44px; justify-content: center; margin: 0; padding: 0; cursor: pointer; }
    .mobile-menu-icon { display: flex; flex-direction: column; gap: 4px; }
    .mobile-menu-icon i { background: currentColor; display: block; height: 2px; width: 18px; }
    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon i:first-child { transform: translateY(6px) rotate(45deg); }
    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon i:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon i:last-child { transform: translateY(-6px) rotate(-45deg); }
    .site-navigation { display: block; border: 0; overflow: visible; }
    .site-navigation-inner { align-items: stretch; flex-direction: column; gap: 12px; padding: 8px 24px 16px; }
    .site-navigation .site-menu { align-items: stretch; flex-direction: column; white-space: normal; width: 100%; }
    .site-menu li { min-width: 0; width: 100%; }
    .site-navigation ul a { font-size: 12px; line-height: 1.5; min-height: 44px; padding: 12px 10px; overflow-wrap: anywhere; }
    .site-menu .sub-menu { border: 0; border-left: 2px solid var(--line); display: block; margin-left: 12px; min-width: 0; position: static; width: calc(100% - 12px); }
    .site-search { flex: 0 0 44px; height: 44px; width: 100%; }
    .site-search input { font-size: 16px; }
    .site-search button { width: 44px; }
    .home-lead { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
    .home-news-column { border: 0; padding-right: 0; }
    .popular-column { border-top: 1px solid var(--line); padding-top: 24px; }
    .sidebar-ad { flex: initial; min-height: 180px; }
    .sidebar-ad.is-filled { padding: 16px; }
    .sidebar-ad.is-filled a { display: flex; justify-content: center; margin-top: 0; width: 100%; }
    .sidebar-ad.is-filled img { max-height: 360px; object-fit: contain; width: auto; }
    .latest-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .single-layout { grid-template-columns: 60px minmax(0, 1fr); gap: 20px; padding: 32px 0; }
}
@media (max-width: 620px) {
    .header-inner { gap: 12px; padding: 12px 16px; }
    .header-logo-wrap img, .header-logo-wrap .custom-logo, .header-banner-image { max-height: 64px !important; }
    .site-navigation-inner { padding-left: 16px; padding-right: 16px; }
    .site-main { padding: 16px 16px 36px; }
    .ad-slot { font-size: 10px; min-height: 54px; }
    .home-lead { padding-top: 4px; }
    .lead-story h1, .featured-slide h1 { font-size: clamp(24px, 6.5vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
    .secondary-stories { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 24px; }
    .secondary-story h2, .popular-story h2, .latest-story h3 { font-size: 20px; line-height: 1.25; }
    .latest-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
    .latest-section { padding-top: 28px; }
    .latest-section .section-heading h2, .related-section .section-heading h2 { font-size: 26px; line-height: 1.2; }
    .single-kicker, .single-byline { align-items: flex-start; flex-direction: column; gap: 8px; }
    .single-header { text-align: left; }
    .single-header h1 { font-size: clamp(26px, 7vw, 42px); line-height: 1.15; letter-spacing: -.04em; }
    .single-deck { font-size: 18px; line-height: 1.5; margin-left: 0; }
    .single-layout { display: block; padding: 24px 0; }
    .single-share { align-items: center; flex-direction: row; margin-bottom: 24px; padding: 0; }
    .single-share span { writing-mode: initial; }
    .single-share a, .single-share button { height: 44px; width: 44px; }
    .single-content { font-size: 18px; }
    .single-content > p:first-child { font-size: 20px; }
    .single-content h2, .single-content h3 { font-size: 26px; line-height: 1.2; }
    .single-content blockquote { font-size: 21px; padding-left: 16px; }
    .single-hero-image img { max-height: none; }
    .reading-tools { align-items: stretch; justify-content: flex-start; }
    .reading-tools-label, .reading-status { flex-basis: 100%; margin: 0; }
    .reading-tools button { min-height: 44px; flex: 1 1 auto; }
    .carousel-arrow { height: 44px; width: 44px; flex-shrink: 0; }
    .featured-carousel-dots { flex-wrap: wrap; gap: 4px; }
    .carousel-dot, .carousel-dot.is-active { background: transparent; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0; width: 24px; }
    .carousel-dot::before { background: rgba(99, 101, 161, .25); border-radius: 999px; content: ""; display: block; height: 8px; width: 24px; }
    .carousel-dot.is-active::before { background: var(--accent); }
    .team-page { padding-left: 0; padding-right: 0; }
    .team-grid { grid-template-columns: minmax(0, 1fr); }
    .team-member h2 { font-size: 22px; }
    .team-member p { font-size: 14px; }
    .site-main > article > header h1 { font-size: clamp(28px, 8vw, 42px); line-height: 1.15; }
}

/* Mobile drawer; desktop retains its existing navigation flow. */
.menu-drawer, .menu-drawer-surface { display: contents; }
.menu-drawer-heading, .menu-backdrop, .submenu-toggle { display: none; }
@media (max-width: 1023px) {
    .menu-backdrop:not([hidden]) { background: rgba(0,0,0,.5); border: 0; display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 10000; cursor: pointer; }
    .menu-drawer { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; visibility: hidden; z-index: 10001; transition: visibility 0s linear 180ms; }
    .menu-drawer.is-open { visibility: visible; transition-delay: 0s; }
    .menu-drawer-surface { background: #fffdf9; color: var(--ink); display: block; position: absolute; right: 0; top: 0; width: min(90vw, 360px); height: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); box-shadow: -8px 0 32px rgba(0,0,0,.15); transform: translateX(100%); transition: transform 180ms ease; }
    .menu-drawer.is-open .menu-drawer-surface { transform: translateX(0); }
    .menu-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
    .menu-drawer-heading h2 { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0; }
    .mobile-menu-close, .submenu-toggle { background: transparent; border: 1px solid var(--line); color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; font-size: 28px; padding: 0; }
    .menu-drawer .site-navigation-inner { padding: 0; gap: 16px; }
    .menu-drawer .site-search { order: -1; flex-basis: 48px; height: 48px; }
    .menu-drawer .site-search input { font-size: 16px; font-weight: 500; letter-spacing: normal; text-transform: none; padding: 12px; }
    .menu-drawer .site-search button { width: 48px; }
    .menu-drawer .site-menu { display: block; flex: none; }
    .menu-drawer .site-menu li { position: relative; border-bottom: 1px solid var(--line); }
    .menu-drawer .site-menu li:last-child { border-bottom: 0; }
    .menu-drawer .site-menu a { white-space: normal; border-radius: 0; font-size: 16px; font-weight: 600; letter-spacing: normal; text-transform: none; min-height: 48px; padding: 12px 8px; line-height: 1.5; }
    .menu-drawer .site-menu .has-submenu-toggle > a { padding-right: 60px; }
    .menu-drawer .submenu-toggle { position: absolute; top: 0; right: 0; border: 0; font-size: 24px; }
    .menu-drawer .sub-menu[hidden] { display: none; }
    .menu-drawer .sub-menu { margin: 0 0 8px 12px; }
    .menu-drawer .current-menu-item > a, .menu-drawer .current-menu-ancestor > a { background: var(--accent); color: #fff; }
    .menu-drawer .current-menu-ancestor > .submenu-toggle { color: #fff; }
    .mobile-menu-close:hover, .submenu-toggle:hover { background: rgba(99,101,161,.12); }
    .mobile-menu-close:focus-visible, .submenu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) {
    .menu-drawer, .menu-drawer-surface { transition: none; }
}

/* Compact scrolling header is exclusively a desktop component. */
.guia-archive-header { max-width: 760px; margin-bottom: 24px; }
.guia-archive-header h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.1; margin: 10px 0 16px; }
.guia-archive-header > p:not(.eyebrow), .guia-category-description { color: var(--muted); font-size: 16px; line-height: 1.65; }
.guia-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.guia-category-nav a, .guia-pagination .page-numbers { border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; font-size: 14px; text-decoration: none; }
.guia-category-nav a[aria-current], .guia-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.guia-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guia-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.guia-card-image { display: block; aspect-ratio: 1.5; }
.guia-card-image img { width: 100%; height: 100%; object-fit: cover; }
.guia-card-body { padding: 20px; }
.guia-card .eyebrow { margin: 0 0 10px; }
.guia-card h2 { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 0 0 12px; }
.guia-card h2 a { text-decoration: none; }
.guia-card-body > p:not(.eyebrow) { font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
.guia-card-rating, .guia-comment-stars { color: var(--accent); font-weight: 700; }
.guia-pagination { margin-top: 24px; }
.guia-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guia-pagination .screen-reader-text, .guia-reviews .screen-reader-text, .guia-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.guia-practical { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 32px 0; }
.single-content .guia-practical h2 { font-size: 24px; line-height: 1.3; margin: 0 0 20px; }
.guia-practical dl { margin: 0; }
.guia-practical dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 15px; line-height: 1.6; }
.guia-practical dt { font-weight: 700; }
.guia-practical dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.guia-practical a { color: var(--accent); text-underline-offset: 3px; }
.guia-reviews { max-width: 864px; margin: 0 auto 40px; border-top: 1px solid var(--line); padding-top: 28px; overflow-wrap: anywhere; }
.guia-reviews h2, .guia-reviews h3 { font-size: 26px; font-weight: 800; line-height: 1.3; margin: 0 0 16px; }
.guia-rating-summary { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 16px; }
.guia-comment-list { list-style: none; margin: 24px 0; padding: 0; }
.guia-comment { border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.guia-comment header { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 15px; }
.guia-comment time { color: var(--muted); font-size: 13px; }
.guia-comment-text { font-size: 16px; line-height: 1.65; }
.guia-comment-text p { margin: 12px 0 0; }
.guia-reviews .comment-form > p, .guia-review-notice { font-size: 14px; line-height: 1.6; }
.guia-reviews .comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.guia-reviews .comment-form input:not([type=radio]):not([type=checkbox]):not([type=submit]), .guia-reviews textarea { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; min-height: 48px; padding: 12px; width: 100%; max-width: 100%; }
.guia-reviews .comment-form p { margin: 16px 0; }
.guia-reviews .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.guia-reviews .comment-form-cookies-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; }
.guia-reviews .comment-form-cookies-consent label { font-weight: 400; }
.guia-reviews .submit { background: var(--accent); border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-size: 15px; font-weight: 700; min-height: 48px; padding: 12px 20px; }
.guia-rating-input { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.guia-rating-input legend { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.guia-rating-options { display: flex; flex-wrap: wrap; gap: 8px; }
.guia-reviews .guia-rating-options label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; min-height: 48px; margin: 0; padding: 10px; cursor: pointer; color: var(--accent); font-size: 18px; }
.guia-rating-options input { width: 18px; height: 18px; accent-color: var(--accent); }
.guia-rating-options label:has(input:checked) { background: var(--soft); border-color: var(--accent); }
.guia-archive a:hover, .guia-reviews a:hover { color: var(--accent); text-decoration: underline; }
.guia-archive a[aria-current]:hover { color: #fff; }
.guia-archive a:focus-visible, .guia-reviews :where(a, input, textarea):focus-visible, .guia-practical a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1023px) { .guia-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .guia-cards { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .guia-practical { padding: 18px; }
    .guia-practical dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .guia-reviews h2, .guia-reviews h3 { font-size: 23px; }
}
.desktop-compact-header { display: none; }
@media (min-width: 1024px) {
    .desktop-compact-header:not([hidden]) { background: #fffdf9; border-bottom: 1px solid var(--line); box-shadow: 0 3px 14px rgba(0,0,0,.08); display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
    body.admin-bar .desktop-compact-header { top: 32px; }
    .desktop-compact-inner { align-items: center; display: flex; gap: 20px; margin: 0 auto; max-width: 1168px; min-height: 68px; padding: 10px 24px; }
    .desktop-compact-brand { flex: 0 0 150px; min-width: 0; }
    .desktop-compact-brand a { display: block; text-decoration: none; }
    .desktop-compact-brand img, .desktop-compact-brand .custom-logo { display: block; height: auto !important; max-height: 44px !important; max-width: 150px !important; width: auto !important; object-fit: contain; }
    .desktop-compact-brand .brand-capao { font-size: 29px; }
    .desktop-compact-brand .brand-news { font-size: 19px; }
    .desktop-compact-brand .brand-tagline { display: none; }
    .desktop-compact-editorias { flex: 1; min-width: 0; }
    .desktop-compact-short-links { display: flex; align-items: center; gap: 16px; list-style: none; padding: 0; margin: 0; }
    .desktop-compact-short-links a { display: block; color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.4; text-decoration: none; text-transform: uppercase; padding: 10px 0; overflow-wrap: anywhere; }
    .desktop-compact-menu { flex: 0 0 auto; position: relative; }
    .desktop-compact-menu summary { color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 700; padding: 12px 8px; }
    .desktop-compact-menu > nav { background: #fffdf9; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.1); max-height: calc(100dvh - 120px); overflow-y: auto; padding: 8px; position: absolute; right: 0; top: 100%; width: 280px; }
    .desktop-compact-all-links, .desktop-compact-all-links ul { list-style: none; padding: 0; margin: 0; }
    .desktop-compact-all-links ul { padding-left: 16px; }
    .desktop-compact-all-links a { border-radius: 0; display: block; min-height: 44px; padding: 12px; font-size: 14px; line-height: 1.5; white-space: normal; text-decoration: none; overflow-wrap: anywhere; }
    .desktop-compact-search { flex: 0 0 180px; min-width: 0; }
    .desktop-compact-search-form { align-items: center; display: flex; border: 1px solid var(--line); height: 40px; }
    .desktop-compact-search-form input { background: transparent; border: 0; min-width: 0; width: 100%; padding: 10px; font-size: 13px; }
    .desktop-compact-search-form button { background: var(--accent); border: 0; color: #fff; align-self: stretch; flex: 0 0 40px; cursor: pointer; font-size: 20px; }
    .desktop-compact-header .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .desktop-compact-header a:hover, .desktop-compact-menu summary:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
    .desktop-compact-header :where(a, button, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}
