/*
 * GNews MT - camada visual (carregada depois de style.css).
 * Refina tipografia, cartões, cabeçalho e rodapé.
 * Não altera nenhuma regra de publicidade (.ad-*, .editoria-ad-*, .ad-strip).
 */

:root {
    --brand: #114184;
    --brand-700: #0d3268;
    --brand-900: #0a1f3f;
    --brand-050: #eef3fb;
    --accent: #f5b800;
    --live: #dc2626;
    --ink: #111827;
    --ink-2: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --canvas: #f3f5f8;
    --surface: #ffffff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 12px 28px -8px rgba(16, 24, 40, .18), 0 4px 10px -4px rgba(16, 24, 40, .08);
    --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
    --font-ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-read: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

body {
    font-family: var(--font-ui);
    background: var(--canvas);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* ---- CABEÇALHO ---- */
.site-header,
.masthead {
    background:
        radial-gradient(520px 150px at 50% 38%, rgba(120, 170, 255, .30), transparent 70%),
        linear-gradient(120deg, var(--brand-700) 0%, var(--brand) 50%, #1650a0 100%);
}

/* O logo tem partes em azul-marinho: um contorno claro sutil garante leitura sobre o azul */
.site-header .site-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .12));
}

.masthead-inner {
    min-height: 96px;
    padding-top: 14px;
    padding-bottom: 4px;
}

.masthead-menu {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
}

.hamburger {
    width: 24px;
    gap: 5px;
}

.hamburger span {
    height: 2.5px;
}

.masthead-icon--search,
.masthead-social {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    transition: background .15s;
}

.masthead-icon--search:hover,
.masthead-social:hover {
    background: rgba(255, 255, 255, .12);
}

.search-icon {
    width: 20px;
    height: 20px;
}

.masthead-social img {
    width: 18px;
    height: 18px;
}

.site-header .site-logo {
    height: 76px;
}

/* Ícones do tempo (sprite SVG em includes/weather.php) */
.wx-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: middle;
    overflow: visible;
}

/* Mini clima do cabeçalho: ícone + temperatura agora | cidade sobre a barrinha mín–máx com marcador */
.masthead-weather {
    --wx-rain: #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 7px 16px 7px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    color: #fff;
    text-align: left;
    transition: background .2s, box-shadow .2s, transform .2s;
}

.masthead-weather:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    transform: translateY(-1px);
}

.masthead-weather span {
    display: inline;
    margin-top: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.masthead-weather .mw-icon {
    width: 34px;
    height: 34px;
}

.masthead-weather .mw-now {
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, .2);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}

.masthead-weather .mw-info {
    display: grid;
    gap: 5px;
}

.masthead-weather .mw-city {
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.masthead-weather .mw-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, .8);
}

.masthead-weather .mw-bar {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7dd3fc, #fcd34d 55%, #f87171);
}

.masthead-weather .mw-dot {
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
    transition: left .6s cubic-bezier(.2, .7, .2, 1);
}

.topic-nav {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.topic-nav-inner {
    height: 52px;
}

.latest-label {
    height: 44px;
    border-radius: 10px 10px 0 0;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.topic-rail {
    gap: 4px;
}

.topic-item {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
}

.topic-item:hover {
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-weight: 500;
}

.topic-item.active {
    background: #fff;
    color: var(--brand);
    font-weight: 600;
}

.topic-arrows {
    padding-bottom: 8px;
    gap: 6px;
}

.topic-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.topic-arrow:hover {
    background: rgba(255, 255, 255, .18);
}

/* ---- FAIXA "AGORA" ---- */
.headline-strip {
    height: 50px;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.headline-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.headline-strip .headline-window {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 48px), transparent 100%);
}

.headline-live {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: var(--live);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.headline-live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.headline-item {
    gap: 10px;
    color: var(--ink-2);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
}

.headline-tag {
    min-height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
}

/* ---- DESTAQUES DA HOME ---- */
.headline-showcase {
    padding: 28px 0 40px;
}

.headline-feature {
    min-height: 400px;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.headline-feature-copy {
    justify-content: center;
    padding: 40px 40px 36px;
}

.headline-category,
.headline-card-body span,
.editoria-card-list .tag-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.headline-category::before {
    content: '';
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.headline-feature h2 {
    margin-top: 14px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
}

.headline-bullets {
    gap: 0;
    margin-top: 26px;
    padding-left: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.headline-bullets li {
    position: relative;
    padding: 12px 0 12px 20px;
    border-top: 1px solid var(--line);
}

.headline-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--brand);
}

.headline-feature-media {
    min-height: 400px;
}

.headline-feature-media img,
.headline-card img,
.card-h img,
.card-v img,
.related-card img,
.result-card img,
.article-hero-img {
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}

.headline-feature:hover .headline-feature-media img {
    transform: scale(1.03);
}

.headline-card-grid {
    gap: 20px;
    margin-top: 24px;
}

.headline-card {
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.headline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.headline-card img {
    height: auto;
    aspect-ratio: 16 / 10;
}

.headline-card:hover img,
.card-v:hover img,
.related-card:hover img,
.result-card:hover img {
    transform: scale(1.04);
}

.headline-card-body {
    padding: 14px 16px 18px;
}

.headline-card-body span {
    margin-bottom: 6px;
}

.headline-card-body h3,
.editoria-card-list .card-v-body h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.headline-card:hover h3 {
    color: var(--brand);
}

/* ---- CABEÇALHOS DE SEÇÃO ---- */
.section-header {
    gap: 14px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: var(--brand);
}

.section-line {
    height: 1px;
    background: var(--line);
}

.section-line::before {
    display: none;
}

.section-more {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-050);
    color: var(--brand);
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.section-more:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

/* ---- LISTA "MAIS RECENTES" ---- */
.card-list {
    gap: 18px;
}

.card-h {
    grid-template-columns: 270px minmax(0, 1fr);
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.card-h:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* height: 0 + min-height: 100% faz a foto preencher o card sem ditar a altura dele (fotos em retrato não esticam a linha) */
.card-h {
    min-height: 168px;
}

.card-h img {
    height: 0;
    min-height: 100%;
}

.card-h-body {
    padding: 20px 24px;
    gap: 8px;
}

.card-meta,
.result-card-meta {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.tag {
    font-family: var(--font-ui);
    border-radius: 4px;
}

.tag-sm {
    margin-bottom: 0;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
}

.card-h-body h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ink);
}

.card-h-body p,
.card-v-body p,
.result-card p {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.55;
}

/* ---- EDITORIAS DA HOME ---- */
.home-editorias-layout {
    gap: 44px;
    padding-bottom: 48px;
}

.editoria-card-list {
    gap: 20px;
}

.card-v,
.editoria-card-list .card-v {
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.card-v:hover,
.editoria-card-list .card-v:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-v img,
.editoria-card-list .card-v img {
    height: auto;
    aspect-ratio: 16 / 10;
}

.editoria-card-list .card-v-body {
    padding: 14px 16px 18px;
}

.editoria-card-list .tag-card {
    margin-bottom: 6px;
}

.card-h:hover h3,
.card-v:hover h3,
.related-card:hover h4,
.widget-news-item:hover h4 {
    color: var(--brand);
}

/* ---- BARRA LATERAL ---- */
.sidebar {
    gap: 22px;
}

.sidebar-widget {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 12px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-transform: none;
}

.widget-title::before {
    content: '';
    width: 5px;
    height: 18px;
    border-radius: 3px;
    background: var(--brand);
}

.widget-news-item {
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.widget-news-item:hover {
    background: #f8fafc;
}

.widget-rank {
    min-width: 30px;
    color: #c5d2e6;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.widget-news-item:first-child .widget-rank {
    color: var(--brand);
}

.widget-news-info h4 {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.widget-news-info span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

/* Clima */
.sidebar-widget--climate,
.climate-widget {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-900) 100%);
    color: #fff;
}

.climate-title {
    min-height: 50px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.climate-title button {
    border-color: rgba(255, 255, 255, .3);
    font-family: var(--font-ui);
    font-weight: 600;
}

.climate-city-form {
    border-bottom-color: rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .12);
}

.climate-city-form button {
    background: var(--accent);
    color: var(--brand-900);
}

.climate-temp,
.climate-city,
.climate-day .day-temp {
    color: #fff;
}

.climate-temp {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.climate-details {
    color: rgba(255, 255, 255, .78);
}

.climate-row {
    border-top-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .8);
}

.climate-day .day-name {
    color: rgba(255, 255, 255, .6);
}

/* ---- MATÉRIA ---- */
.article-layout {
    gap: 48px;
    padding: 32px 0 56px;
}

.breadcrumb {
    gap: 8px;
    font-size: 13px;
}

.breadcrumb > span {
    color: #c0c6d0;
    font-weight: 400;
}

.breadcrumb-link {
    color: var(--muted);
    font-weight: 500;
}

.article-category {
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: .08em;
}

.article-title {
    max-width: 820px;
    color: var(--ink);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin-bottom: 18px;
}

.article-subtitle {
    max-width: 760px;
    padding-left: 18px;
    border-left: 3px solid var(--brand);
    color: var(--ink-2);
    font-family: var(--font-ui);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 24px;
}

.article-meta {
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.author-name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.author-role {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.article-meta .share-btns {
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    transition: transform .15s, filter .15s;
}

.share-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.share-btn.copy {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
}

.article-hero-img {
    height: auto;
    max-height: 540px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.article-body {
    max-width: 720px;
    color: #1f2937;
    font-family: var(--font-read);
    font-size: 19.5px;
    line-height: 1.75;
}

.article-body p {
    margin-bottom: 1.25em;
}

.article-body a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body strong,
.article-body b {
    color: var(--ink);
    font-weight: 600;
}

.article-body img {
    height: auto;
    margin: 28px 0;
    border-radius: var(--radius-sm);
}

.article-body h2,
.article-body h3 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -.01em;
}

.article-body h2 {
    border-bottom: 0;
    padding-bottom: 0;
}

.article-body blockquote {
    border-left: 3px solid var(--brand);
    font-family: var(--font-read);
    color: var(--ink-2);
}

.article-tags {
    max-width: 720px;
    align-items: center;
    border-top-color: var(--line);
}

.article-tag {
    padding: 6px 14px;
    border-radius: 999px;
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 500;
}

.article-tag:hover {
    background: var(--brand-050);
    color: var(--brand);
    border-color: var(--brand-050);
}

.related-section {
    margin-top: 44px;
}

.related-grid {
    gap: 18px;
}

.related-card {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    height: auto;
    aspect-ratio: 16 / 10;
}

.related-card-body {
    padding: 14px 16px 16px;
}

.related-card-body h4 {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.35;
}

.tag-related {
    margin-bottom: 0;
}

/* ---- LISTAGENS (categoria / busca) ---- */
.listing-page {
    padding: 40px 0 60px;
}

.listing-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom-color: var(--line);
}

.listing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.listing-kicker::before {
    content: '';
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.listing-title,
.static-page-header h1 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.listing-summary {
    color: var(--muted);
}

.result-list {
    gap: 18px;
}

.result-card {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-card {
    min-height: 175px;
}

.result-card img {
    height: 0;
    min-height: 100%;
    border-radius: 0;
}

.result-card-body {
    padding: 20px 24px 20px 0;
}

.result-card h2 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.result-card:hover h2 {
    color: var(--brand);
}

.empty-state {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.sitemap-block {
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* ---- MENU LATERAL E BUSCA ---- */
.site-menu-head {
    background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand) 100%);
}

.site-menu-list a {
    min-height: 52px;
    border-bottom-color: #eef0f3;
    color: var(--ink-2);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
}

.site-menu-list a:hover {
    background: var(--brand-050);
    color: var(--brand);
}

.search-overlay-row input {
    border-radius: 12px;
    font-family: var(--font-ui);
}

.search-overlay-row button {
    border-radius: 12px;
    font-family: var(--font-ui);
    font-weight: 700;
}

/* ---- RODAPÉ ---- */
footer {
    margin-top: 64px;
    padding-top: 56px;
    background: var(--brand-900);
    color: #9fb0c8;
}

.footer-inner {
    gap: 40px;
    margin-bottom: 44px;
}

.footer-logo-area p {
    color: #9fb0c8;
    font-size: 14px;
}

.footer-col h5 {
    display: block;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: 0;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: .12em;
}

.footer-col h5::after {
    content: '';
    display: block;
    width: 22px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--accent);
}

.footer-col li {
    padding: 5px 0;
    color: #9fb0c8;
    font-size: 14px;
    cursor: default;
}

.footer-col li:hover {
    color: #9fb0c8;
}

.footer-col li a {
    transition: color .15s;
}

.footer-col li a:hover {
    color: #fff;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, .16);
}

.footer-social-link img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #07172f;
    color: #6f82a0;
    font-size: 12.5px;
}

/* ---- WIDGET DE CLIMA (home) ---- */
.climate-widget {
    --wx-rain: #93c5fd;
}

.climate-main {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 14px;
}

.climate-main > div:last-child {
    grid-column: 1 / -1;
}

.climate-icon {
    width: 46px;
    height: 46px;
    color: #fff;
}

.climate-temp {
    min-width: 0;
}

.climate-temp sup {
    top: 0;
    margin-left: 2px;
    font-size: 22px;
    vertical-align: top;
}

.climate-day .day-icon {
    display: flex;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.climate-day .day-min {
    margin-top: 1px;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.climate-more {
    display: block;
    margin-top: 18px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background .15s;
}

.climate-more:hover {
    background: rgba(255, 255, 255, .18);
}

/* ---- PÁGINA DO TEMPO ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.weather-page {
    --wx-cloud: #64748b;
    padding: 28px 0 60px;
}

.wx-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #f5d08a;
    border-radius: var(--radius-sm);
    background: #fff8e6;
    color: #7a4b00;
    font-size: 14px;
}

.wx-hero {
    display: grid;
    gap: 26px;
    padding: 26px 30px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.wx-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wx-city {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.wx-pin {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

.wx-search {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.wx-search input {
    width: 240px;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--ink);
    font: 400 14px var(--font-ui);
    outline: none;
}

.wx-search input:focus {
    border-color: var(--brand);
    background: var(--surface);
}

.wx-search button {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font: 600 14px var(--font-ui);
    cursor: pointer;
}

.wx-now {
    display: grid;
    gap: 22px;
}

.wx-now-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wx-icon--hero {
    width: 88px;
    height: 88px;
    color: var(--wx-cloud);
}

.wx-now-temp {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.05em;
}

.wx-now-temp span {
    margin-left: 4px;
    font-size: 24px;
    letter-spacing: 0;
    vertical-align: top;
}

.wx-now-text {
    display: grid;
    gap: 4px;
}

.wx-now-text strong {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
}

.wx-minmax {
    display: flex;
    gap: 14px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
}

.wx-now-text small {
    color: var(--muted);
    font-size: 12.5px;
}

.wx-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    margin: 0;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    row-gap: 16px;
}

.wx-metrics > div {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    text-align: center;
}

.wx-metrics > div + div {
    border-left: 1px solid var(--line);
}

.wx-metrics dt {
    color: var(--muted);
    font-size: 12.5px;
}

.wx-metrics dd {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.wx-metrics dd small {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 500;
}

.wx-wind-arrow {
    display: inline-block;
    color: var(--brand);
    font-size: 16px;
}

.wx-alerts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.wx-alert {
    padding: 14px 18px;
    border-left: 4px solid;
    border-radius: var(--radius-sm);
}

.wx-alert strong {
    font-size: 15px;
    font-weight: 700;
}

.wx-alert p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.wx-alert--attention {
    border-color: #f5b800;
    background: #fff8e1;
    color: #5c4400;
}

.wx-alert--warning {
    border-color: #f97316;
    background: #fff1e6;
    color: #7c2d12;
}

.wx-alert--critical {
    border-color: #dc2626;
    background: #fdecec;
    color: #7f1d1d;
}

.wx-block {
    margin-top: 40px;
}

.wx-block .section-header {
    margin-top: 0;
}

.wx-block .section-title {
    margin: 0;
}

.wx-hours {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74px;
    gap: 4px;
    margin: 0;
    padding: 8px;
    overflow-x: auto;
    list-style: none;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.wx-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    border-radius: var(--radius-sm);
    color: var(--wx-cloud);
    scroll-snap-align: start;
}

.wx-hour.is-now {
    background: var(--brand-050);
}

.wx-hour-time {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.wx-hour.is-now .wx-hour-time {
    color: var(--brand);
}

.wx-hour .wx-icon {
    width: 28px;
    height: 28px;
}

.wx-hour strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.wx-hour-rain {
    color: var(--muted);
    font-size: 12px;
}

.wx-hour-rain.is-likely {
    color: #2563eb;
    font-weight: 600;
}

.wx-days {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.wx-day {
    display: grid;
    grid-template-columns: 120px 36px minmax(0, 1fr) 64px minmax(170px, 280px);
    align-items: center;
    gap: 18px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    color: var(--wx-cloud);
}

.wx-day:last-child {
    border-bottom: 0;
}

.wx-day-name strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.wx-day-name span {
    color: var(--muted);
    font-size: 12.5px;
}

.wx-day .wx-icon {
    width: 32px;
    height: 32px;
}

.wx-day-label {
    color: var(--ink-2);
    font-size: 14px;
}

.wx-day-rain {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 600;
}

.wx-drop {
    width: 8px;
    height: 8px;
    border-radius: 50% 0 50% 50%;
    background: currentColor;
    transform: rotate(-45deg);
}

.wx-day-range {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.wx-day-min {
    color: var(--muted);
    text-align: right;
}

.wx-day-max {
    color: var(--ink);
}

.wx-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e8edf4;
}

.wx-bar span {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #f5b800 55%, #ef4444);
}

.wx-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    background: transparent;
}

.wx-cities a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s, border-color .15s;
}

.wx-cities a:hover,
.wx-cities a.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.wx-source {
    margin-top: 36px;
    color: var(--muted);
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .wx-now {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wx-metrics {
        grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    }
}

@media (max-width: 700px) {
    .wx-hero {
        padding: 20px 18px 22px;
    }

    .wx-search,
    .wx-search input {
        width: 100%;
    }

    .wx-now-main {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6px 14px;
    }

    .wx-now-text {
        grid-column: 1 / -1;
    }

    .wx-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .wx-metrics > div:nth-child(odd) {
        border-left: 0;
    }

    .wx-icon--hero {
        width: 64px;
        height: 64px;
    }

    .wx-now-temp {
        font-size: 60px;
    }

    .wx-day {
        grid-template-columns: minmax(0, 1fr) 32px 56px;
        grid-template-areas:
            "name icon rain"
            "range range range";
        gap: 10px 12px;
        padding: 14px 16px;
    }

    .wx-day-name { grid-area: name; }
    .wx-day .wx-icon { grid-area: icon; }
    .wx-day-rain { grid-area: rain; justify-content: flex-end; }
    .wx-day-range { grid-area: range; }

    .wx-day-label {
        display: none;
    }
}

/* ---- ÍCONES DE INTERFACE ---- */
.ui-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -.15em;
    overflow: visible;
}

.section-title .section-icon {
    width: 22px;
    height: 22px;
    color: var(--brand);
}

.section-title:has(.section-icon)::before {
    display: none;
}

.wx-search button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wx-now-text small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wx-metric-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    padding: 9px;
    border-radius: 12px;
    background: var(--brand-050);
    color: var(--ink-2);
    transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}

.wx-metrics > div:hover .wx-metric-icon {
    transform: translateY(-3px) rotate(-4deg);
}

.wx-metrics > div:nth-child(1) .wx-metric-icon { background: #fdecec; }
.wx-metrics > div:nth-child(2) .wx-metric-icon { background: #e6f6f4; color: #0f766e; }
.wx-metrics > div:nth-child(3) .wx-metric-icon { background: #e8f0fe; }
.wx-metrics > div:nth-child(4) .wx-metric-icon { background: #eef0fd; color: #4338ca; }
.wx-metrics > div:nth-child(5) .wx-metric-icon { background: #fff6dc; }
.wx-metrics > div:nth-child(6) .wx-metric-icon { background: #fff0e4; color: #9a3412; }

.wx-wind-arrow {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #0f766e;
    transform: rotate(var(--wind-rotation, 0deg));
}

.wx-wind-arrow .ui-icon {
    width: 16px;
    height: 16px;
}

.wx-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.wx-alert-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
}

.wx-day-rain .ui-icon {
    width: 16px;
    height: 16px;
}

.wx-cities a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wx-cities .ui-icon {
    width: 14px;
    height: 14px;
    color: var(--brand);
    transition: color .15s;
}

.wx-cities a:hover .ui-icon,
.wx-cities a.is-active .ui-icon {
    color: #fff;
}

/* ---- ÍCONES DO TEMPO ANIMADOS ---- */
.wx-a-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: wx-spin 24s linear infinite;
}

.wx-a-drift {
    animation: wx-drift 4.5s ease-in-out infinite alternate;
}

.wx-a-drop {
    animation: wx-drop 1.3s ease-in infinite;
}

.wx-a-bolt {
    animation: wx-bolt 3s linear infinite;
}

.wx-a-glow {
    animation: wx-glow 3.5s ease-in-out infinite alternate;
}

.wx-a-fog {
    animation: wx-drift 3.5s ease-in-out infinite alternate-reverse;
}

@keyframes wx-spin {
    to { transform: rotate(360deg); }
}

@keyframes wx-drift {
    from { transform: translateX(-.7px); }
    to { transform: translateX(.9px); }
}

@keyframes wx-drop {
    0% { opacity: 0; transform: translateY(-2px); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translateY(2.5px); }
}

@keyframes wx-bolt {
    0%, 84%, 90%, 100% { opacity: 1; }
    87%, 93% { opacity: .15; }
}

@keyframes wx-glow {
    from { opacity: .75; }
    to { opacity: 1; }
}

.wx-icon--hero {
    animation: wx-float 5s ease-in-out infinite alternate;
}

@keyframes wx-float {
    from { translate: 0 -2px; }
    to { translate: 0 4px; }
}

.masthead-weather .mw-dot {
    animation: mw-dot-in 1.1s .4s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes mw-dot-in {
    from { left: 0; opacity: 0; }
}

.wx-bar span {
    transform-origin: left center;
    animation: bar-grow .9s cubic-bezier(.2, .7, .2, 1) backwards;
}

.wx-day:nth-child(2) .wx-bar span { animation-delay: .06s; }
.wx-day:nth-child(3) .wx-bar span { animation-delay: .12s; }
.wx-day:nth-child(4) .wx-bar span { animation-delay: .18s; }
.wx-day:nth-child(5) .wx-bar span { animation-delay: .24s; }
.wx-day:nth-child(6) .wx-bar span { animation-delay: .30s; }
.wx-day:nth-child(7) .wx-bar span { animation-delay: .36s; }

@keyframes bar-grow {
    from { scale: 0 1; }
}

/* ---- MOVIMENTO NO SITE ---- */

/* Transição suave entre páginas (navegadores com View Transitions) */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vt-out .2s ease both;
}

::view-transition-new(root) {
    animation: vt-in .32s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes vt-out {
    to { opacity: 0; }
}

@keyframes vt-in {
    from { opacity: 0; translate: 0 10px; }
}

/* Aparição ao rolar (classes aplicadas pelo main.js) */
.reveal {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
        translate .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* Fotos entram em fade quando terminam de carregar */
.img-pending {
    opacity: 0;
}

/* Zoom suave de entrada nas fotos principais */
.headline-feature-media img,
.article-hero-img {
    animation: photo-settle 1.4s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes photo-settle {
    from { scale: 1.07; }
}

/* Selo "Agora" e faixa de manchetes */
.headline-strip {
    animation: strip-in .6s .1s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes strip-in {
    from { opacity: 0; translate: 0 -6px; }
}

/* Menu lateral: itens em cascata */
body.menu-open .site-menu-list a {
    animation: menu-item-in .45s cubic-bezier(.2, .7, .2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 28ms + 80ms);
}

@keyframes menu-item-in {
    from { opacity: 0; translate: -16px 0; }
}

.site-menu-backdrop {
    animation: fade-in .25s ease;
}

body.search-open .search-overlay-row {
    animation: fade-up .4s .08s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes fade-in {
    from { opacity: 0; }
}

@keyframes fade-up {
    from { opacity: 0; translate: 0 10px; }
}

/* Sublinhado que cresce nos links de texto */
.footer-col li a,
.breadcrumb-link,
.sitemap-block a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color .15s, background-size .3s cubic-bezier(.2, .7, .2, 1);
}

.footer-col li a:hover,
.breadcrumb-link:hover,
.sitemap-block a:hover {
    background-size: 100% 1px;
}

/* Botões respondem ao toque */
.section-more,
.share-btn,
.topic-item,
.topic-arrow,
.wx-search button,
.wx-cities a,
.climate-more,
.footer-social-link,
.search-overlay-row button {
    transition: background .15s, color .15s, border-color .15s, transform .15s, filter .15s;
}

.section-more:active,
.share-btn:active,
.topic-item:active,
.topic-arrow:active,
.wx-search button:active,
.wx-cities a:active,
.climate-more:active,
.back-to-top:active {
    transform: scale(.96);
}

.section-more:hover {
    transform: translateX(2px);
}

/* Barra de progresso de leitura (matéria) */
.reading-progress {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    z-index: 300;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #3b82f6 60%, var(--accent));
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* Voltar ao topo */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    translate: 0 14px;
    scale: .9;
    pointer-events: none;
    transition: opacity .3s, translate .3s cubic-bezier(.2, .7, .2, 1), scale .3s, background .15s, transform .15s;
}

.back-to-top.is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--brand-700);
}

.back-to-top .ui-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 760px) {
    .back-to-top {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
    }
}

/* ---- ACESSIBILIDADE ---- */
[data-href]:focus-visible,
.headline-card:focus-visible,
.share-btn:focus-visible,
.section-more:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    @view-transition {
        navigation: none;
    }
}

/* ---- RESPONSIVO ---- */
@media (max-width: 900px) {
    .headline-feature {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .headline-feature-media {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .headline-feature-copy {
        padding: 26px 26px 22px;
    }

    .headline-feature h2 {
        font-size: 28px;
    }

    .article-layout {
        gap: 28px;
    }

    .article-title {
        font-size: 34px;
    }
}

@media (max-width: 760px) {
    .masthead-weather {
        display: none;
    }

    .masthead-inner {
        min-height: 0;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .hamburger {
        width: 30px;
        gap: 6px;
    }

    .hamburger span {
        height: 3px;
    }

    .masthead-icon--search {
        width: 40px;
        height: 40px;
    }

    .search-icon {
        width: 24px;
        height: 24px;
    }

    .headline-strip {
        height: 46px;
    }

    .headline-inner {
        width: 90%;
        padding: 0;
        gap: 10px;
    }

    .headline-live {
        padding: 4px 9px 4px 8px;
        font-size: 10px;
    }

    .headline-item {
        font-size: 13px;
    }

    .section-title {
        font-size: 19px;
    }

    .section-title::before {
        height: 18px;
    }

    .card-h-body {
        padding: 16px 18px 18px;
    }

    .card-h-body h3 {
        font-size: 17px;
    }

    .article-meta .share-btns {
        width: 100%;
        margin-left: 0;
    }

    .article-body {
        font-size: 18px;
    }

    footer {
        margin-top: 40px;
        padding-top: 40px;
    }
}

@media (max-width: 700px) {
    .result-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .result-card img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .result-card-body {
        padding: 16px 18px 20px;
    }

    .listing-title,
    .static-page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .card-h {
        grid-template-columns: 1fr;
    }

    .card-h img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .article-title {
        font-size: 28px;
    }

    .article-subtitle {
        font-size: 17px;
    }

    .article-hero-img {
        border-radius: var(--radius-sm);
        margin-bottom: 24px;
    }

    /* Cartões compactos (miniatura + título) para listas longas no celular */
    .headline-card,
    .editoria-card-list .card-v {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: stretch;
    }

    .headline-card img,
    .editoria-card-list .card-v img {
        height: 100%;
        min-height: 92px;
        aspect-ratio: auto;
    }

    .headline-card-body,
    .editoria-card-list .card-v-body {
        padding: 12px 14px;
        align-self: center;
    }

    .headline-card-body h3,
    .editoria-card-list .card-v-body h3 {
        font-size: 14.5px;
    }

    .headline-card-grid,
    .editoria-card-list {
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .headline-feature-copy {
        padding: 20px 18px;
    }

    .headline-feature h2 {
        font-size: 23px;
    }

    .headline-bullets {
        margin-top: 16px;
        font-size: 14px;
    }
}

/* ---- PRÉ-VISUALIZAÇÃO (rascunho aberto por quem está logado no painel) ---- */
.preview-banner {
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid #f5d08a;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    background: #fff8e6;
    color: #6b4500;
    font-size: 14px;
}
