/* assets/css/style.css */
:root {
    /* Paleta Oficial JNBR */
    --brand-purple: #230054;
    --brand-violet: #3f0082;
    --brand-magenta: #C13584;
    --brand-coral: #C13584;
    --brand-orange: #ff5500;

    /* Gradiente Oficial */
    --brand-gradient: linear-gradient(135deg, #230054 0%, #460085 30%, #C13584 65%, #FF5500 100%);
    --brand-gradient-hover: linear-gradient(135deg, #320073 0%, #5600a1 30%, #D14493 65%, #ff6622 100%);

    /* Cores de Interface - Modo Claro */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #6b0080;
    --accent-hover: #460055;
    --accent-soft: rgba(136, 0, 91, 0.08);
    --border-color: #e2e8f0;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px rgba(35, 0, 84, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
}

/* O filtro de cidades da página Política fica recolhido para não ocupar a página inteira. */
.politica-city-filter {
    margin: 0 0 20px;
}

.politica-city-filter summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.politica-city-filter summary::-webkit-details-marker {
    display: none;
}

.politica-city-filter summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

.politica-city-filter[open] summary::after {
    content: '−';
}

.politica-city-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

[data-theme="dark"] {
    --bg-body: #0a0712;
    --bg-surface: #120e1e;
    --bg-subtle: #191428;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #ff6622;
    --accent-hover: #ff8844;
    --accent-soft: rgba(255, 85, 0, 0.15);
    --border-color: #272138;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
iframe,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Topbar */
.topbar {
    background-color: var(--brand-purple);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #e2e8f0;
    padding: 6px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.topbar-uf-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-uf-label {
    font-size: 0.76rem;
    opacity: 0.85;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-actions a {
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.topbar-actions a:hover {
    color: #ffaa66;
}

.topbar-actions .navbar-admin-button {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
}

.topbar-actions .navbar-admin-button:hover {
    background: var(--brand-gradient-hover);
    color: #ffffff;
}

.topbar-actions .navbar-admin-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffaa66;
    color: #ffaa66;
}

/* Header Principal - Gradiente Identidade JNBR */
.site-header {
    background: var(--brand-gradient);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 90;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.btn-menu-drawer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.btn-menu-drawer:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-menu-drawer span {
    width: 20px;
    height: 2px;
    background-color: currentColor;
    display: block;
}

.btn-menu-drawer small {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Logo JNBR | Jornal Nação BR */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-jnbr {
    font-size: 1.95rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.brand-divider {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    line-height: 1.25;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 3px 4px 3px 14px;
    max-width: 310px;
    width: 100%;
    min-width: 0;
}

.header-search input {
    border: none;
    background: transparent;
    color: #ffffff;
    width: 100%;
    min-width: 0;
    font-size: 0.88rem;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.header-search button {
    background: #ffffff;
    color: var(--brand-purple);
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.header-search button:hover {
    background: #ffe6d5;
}

/* Banners de Publicidade */
.jnbr-banner-box {
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.jnbr-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
}

.jnbr-banner-img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 190px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.jnbr-banner--topo_banner .jnbr-banner-link {
    max-width: 960px;
}

.jnbr-banner--topo_banner .jnbr-banner-img {
    max-height: 165px;
}

.jnbr-banner--meio_banner .jnbr-banner-img {
    max-height: 200px;
}

.jnbr-banner-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

/* Navegação Horizontal - Escura e Elegante */
.main-nav {
    background: rgba(15, 0, 40, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    max-width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 44px;
    white-space: nowrap;
}

.nav-list a {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-list a:hover {
    color: #ffffff;
    border-bottom-color: #ff7722;
}

.nav-list a.nav-highlight {
    color: #ff9944;
    font-weight: 700;
}

/* Faixa de Cidades */
.cities-strip {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    max-width: 100%;
}

.cities-strip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    overflow-x: auto;
    white-space: nowrap;
}

.cities-label {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.cities-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cities-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.cities-links a:hover {
    color: var(--brand-magenta);
}

.link-more-cities {
    background: none;
    border: none;
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Gaveta Lateral (Menu) */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 5, 25, 0.65);
    z-index: 190;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--brand-purple);
    color: #ffffff;
}

.btn-close-drawer {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
}

.drawer-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-group {
    margin-bottom: 24px;
}

.drawer-group h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-magenta);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-group ul.drawer-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.drawer-group a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.drawer-group a:hover {
    color: var(--brand-orange);
}

.drawer-group a.drawer-admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(35, 0, 84, 0.2);
}

.drawer-group a.drawer-admin-button:hover {
    background: var(--brand-gradient-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* Seções e Badges */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--brand-gradient);
}

.section-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-orange);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--brand-magenta);
}

.badge {
    display: inline-block;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Cards e Layout */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 18px;
}

/* Estúdio JNBR (Player / Vídeos) */
.video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 5, 40, 0.4);
    transition: background 0.2s ease;
}

.play-icon-btn {
    width: 52px;
    height: 52px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 46, 0, 0.4);
}

/* Botões Gerais */
.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    background: var(--brand-gradient-hover);
}

/* Menu reutilizável de compartilhamento das publicações. */
.share-widget {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    z-index: 2;
}

.share-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.share-trigger::-webkit-details-marker {
    display: none;
}

.share-trigger:hover {
    background: var(--brand-gradient-hover);
}

.share-trigger:focus-visible,
.share-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.share-options {
    display: none;
    flex-wrap: wrap;
    gap: 7px;
    max-width: min(620px, calc(100vw - 48px));
    padding: 10px;
    margin-top: 7px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
}

.share-widget[open] .share-options {
    display: flex;
}

.share-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.share-option .share-icon {
    flex: 0 0 17px;
}

.share-option span {
    white-space: nowrap;
}

.share-option:hover {
    border-color: var(--brand-magenta);
    color: var(--accent);
}

.share-option[hidden] {
    display: none;
}

.share-status {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Footer */
.site-footer {
    background: var(--brand-purple);
    color: #ffffff;
    border-top: 4px solid var(--brand-orange);
    margin-top: 50px;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 36px;
}

.footer-brand-col,
.footer-col {
    min-width: 0;
}

.footer-brand {
    align-items: center;
    text-align: left;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
}

.footer-col h4 {
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    color: #ffaa66;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.86rem;
    color: #cbd5e1;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col a.footer-admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.footer-col a.footer-admin-button:hover {
    background: var(--brand-gradient-hover);
    color: #fff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVIDADE — TABLETS E CELULARES
   ========================================================================== */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 680px) {
    .topbar {
        padding: 4px 0;
    }

    .topbar-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        min-height: 30px;
        gap: 8px;
    }

    .topbar-left {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .topbar-date,
    .topbar-secondary-link,
    .topbar-uf-label {
        display: none;
    }

    .topbar-actions {
        width: auto;
        justify-content: flex-end;
        gap: 8px;
        flex-shrink: 0;
    }

    .theme-toggle {
        padding: 3px 10px;
        font-size: 0.74rem;
    }

    .topbar-actions .navbar-admin-button {
        padding: 3px 9px;
        font-size: 0.72rem;
    }

    .header-main {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 12px;
    }
    
    .jnbr-banner-link,
    .jnbr-banner--topo_banner .jnbr-banner-link {
        max-width: 100%;
    }

    .jnbr-banner-img,
    .jnbr-banner--topo_banner .jnbr-banner-img,
    .jnbr-banner--meio_banner .jnbr-banner-img {
        max-height: 135px;
    }

    .btn-menu-drawer {
        padding: 6px 10px;
        gap: 3px;
        flex-shrink: 0;
    }

    .btn-menu-drawer span {
        width: 18px;
    }

    .btn-menu-drawer small {
        font-size: 0.62rem;
        margin-top: 1px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 0;
        min-width: 0;
    }

    .brand-jnbr {
        font-size: 1.2rem;
        letter-spacing: -0.04em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .brand-divider {
        height: 24px;
        flex-shrink: 0;
    }

    .brand-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-title {
        font-size: 1rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-tagline {
        font-size: 0.66rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 2px 0 0 0;
    }

    .nav-list {
        gap: 16px;
        height: 40px;
    }

    .nav-list a {
        font-size: 0.82rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

/* Perfis públicos e assinaturas de autoria */
.author-byline{display:inline-flex;align-items:center;gap:10px;min-width:0;vertical-align:middle}
.author-byline-photo,.author-byline-photo img{display:block;width:var(--author-photo-size,40px);height:var(--author-photo-size,40px);flex:0 0 var(--author-photo-size,40px);border-radius:50%}
.author-byline-photo img{object-fit:cover;border:2px solid var(--border-color)}
.author-byline-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.author-byline-name{color:var(--text-primary);font-weight:700;text-decoration:none}
.author-byline-name:hover{color:var(--brand-magenta);text-decoration:underline}
.author-byline-meta{color:var(--text-muted);font-size:.8rem;line-height:1.4}
.materia-participacao{margin-top:18px;padding:18px 20px}
.materia-metricas{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.materia-metricas>div{display:flex;align-items:baseline;gap:6px;padding:9px 12px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-subtle)}
.materia-metricas>div strong{font-size:1.08rem;color:var(--text-primary)}
.materia-metricas>div span,.materia-metrica-nota{font-size:.78rem;color:var(--text-muted)}
.materia-like{display:inline-flex;align-items:center;gap:8px;padding:10px 15px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-surface);color:var(--text-primary);font:inherit;font-weight:700;cursor:pointer;transition:transform .15s ease,color .15s ease,border-color .15s ease}
.materia-like:hover{transform:translateY(-1px);border-color:var(--brand-magenta)}
.materia-like.is-liked{color:#d92962;border-color:#d92962;background:rgba(217,41,98,.08)}
.materia-like:disabled{opacity:.65;cursor:wait}
.materia-heart{font-size:1.15rem;line-height:1}
.materia-metrica-nota{display:block;margin-top:9px}
.materia-comentarios{margin-top:28px}
.materia-comentario-form{padding:20px;margin-bottom:16px}
.materia-comentario-form h3{margin:0 0 6px;font-size:1.08rem}
.materia-comentario-form form{display:grid;gap:12px;margin-top:14px}
.materia-campo{display:grid;gap:6px;font-size:.88rem;font-weight:700}
.materia-campo input,.materia-campo textarea{width:100%;padding:11px 12px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-subtle);color:var(--text-primary);font:inherit;font-weight:400;resize:vertical}
.materia-campo input:focus,.materia-campo textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.materia-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.materia-comentarios-lista{display:grid;gap:12px}
.materia-comentario{padding:16px 18px}
.materia-comentario>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.materia-comentario p{margin:10px 0 0;line-height:1.6;overflow-wrap:anywhere}
.team-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.team-profile-card{display:flex;align-items:flex-start;gap:16px;padding:20px}
.team-profile-photo,.team-profile-photo img{display:block;width:72px;height:72px;flex:0 0 72px;border-radius:50%}
.team-profile-photo img{object-fit:cover;border:2px solid var(--brand-orange)}
.team-profile-info{min-width:0}
.team-profile-info h2,.team-profile-info h3{margin:0 0 6px;font-size:1.08rem;line-height:1.3}
.team-profile-info h2 a,.team-profile-info h3 a{color:var(--text-primary);text-decoration:none}
.team-profile-info p{margin:8px 0 10px;color:var(--text-secondary);font-size:.88rem;line-height:1.5}
.team-profile-grid-compact .team-profile-card{padding:16px;gap:12px}
.team-profile-grid-compact .team-profile-photo,.team-profile-grid-compact .team-profile-photo img{width:56px;height:56px;flex-basis:56px}
.columnist-profile-card{display:flex;align-items:center;gap:18px;padding:22px;margin-bottom:30px}
.columnist-profile-photo{display:block;width:84px;height:84px;flex:0 0 84px;object-fit:cover;object-position:center;border-radius:50%;border:2px solid var(--brand-orange);overflow:hidden}
.columnist-profile-card h1{margin:8px 0;font-size:2rem;line-height:1.2}
.columnist-profile-role{margin:0 0 10px;color:var(--brand-magenta);font-weight:700}
.columnist-profile-bio{color:var(--text-secondary);line-height:1.65;white-space:pre-line}
.columnist-instagram-link{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:8px 12px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-subtle);color:var(--brand-magenta);font-size:.88rem;font-weight:700;text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.columnist-instagram-link:hover{transform:translateY(-1px);border-color:var(--brand-magenta);background:var(--accent-soft)}
.columnist-articles{display:grid;gap:16px}
.columnist-article-card{padding:20px}
.columnist-article-card h3{margin:6px 0 8px;font-size:1.18rem;line-height:1.35}
.columnist-article-card p{margin:0 0 10px;color:var(--text-secondary)}
.gratitude-wall{max-width:1000px}
.gratitude-intro{padding:clamp(22px,5vw,44px);margin-bottom:28px;background:linear-gradient(135deg,var(--bg-surface),var(--accent-soft))}
.gratitude-intro h1{margin:12px 0;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.15}
.gratitude-intro>p{max-width:760px;margin:0;color:var(--text-secondary);font-size:1.04rem;line-height:1.8}
.gratitude-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.gratitude-card{display:flex;align-items:center;gap:14px;padding:16px}
.gratitude-photo,.gratitude-avatar{display:grid;width:64px;height:64px;flex:0 0 64px;place-items:center;border-radius:50%;object-fit:cover;border:2px solid var(--brand-orange)}
.gratitude-avatar{background:var(--brand-gradient);color:white;font-size:1.5rem}
.gratitude-card h3{margin:0;font-size:1rem;line-height:1.4}
.gratitude-handle{margin:4px 0 0;color:var(--brand-magenta);font-size:.88rem}
.gratitude-pix{margin-top:30px;padding:clamp(20px,4vw,32px);border-left:4px solid var(--brand-orange)}
.gratitude-pix h2{margin:0 0 8px;font-size:1.35rem}
.gratitude-pix>p{max-width:760px;color:var(--text-secondary);line-height:1.65}
.gratitude-pix-key{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px;padding:14px;background:var(--bg-subtle);border-radius:10px}
.gratitude-pix-key>span{color:var(--text-muted);font-size:.82rem}
.gratitude-pix-key strong{font-size:1rem;overflow-wrap:anywhere}
.gratitude-thanks{margin:14px 0 0;font-weight:600}
.alert-success,.alert-error{padding:12px 16px;border-radius:8px;margin-bottom:18px;font-weight:600}
.alert-success{background:rgba(16,185,129,.12);border:1px solid #10b981;color:#065f46}
.alert-error{background:rgba(239,68,68,.12);border:1px solid #ef4444;color:#991b1b}
@media(max-width:600px){.team-profile-card{padding:16px;gap:12px}.team-profile-photo,.team-profile-photo img{width:58px;height:58px;flex-basis:58px}.columnist-profile-card{padding:16px;gap:12px;flex-direction:row;align-items:center}.columnist-profile-photo{width:68px;height:68px;flex-basis:68px}.columnist-profile-card h1{font-size:1.4rem}}

/* Ajustes finais para telas estreitas: formulários, métricas e conteúdo editorial. */
@media (max-width: 680px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .main-nav { overflow: hidden; }
    .main-nav > .container { overflow-x: auto; scrollbar-width: thin; }
    .nav-list { width: max-content; min-width: 100%; padding-bottom: 4px; }
    .nav-list li { flex: 0 0 auto; }

    .gratitude-card { align-items: flex-start; padding: 14px; }
    .gratitude-photo, .gratitude-avatar { width: 52px; height: 52px; flex-basis: 52px; }
    .gratitude-pix-key { align-items: stretch; flex-direction: column; }
    .gratitude-pix-key strong { font-size: .94rem; }
    .gratitude-pix-key .btn-primary { width: 100%; min-height: 44px; }

    .materia-metricas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .materia-metricas > div { min-width: 0; padding: 9px; flex-direction: column; align-items: flex-start; gap: 2px; }
    .materia-metricas > div strong { font-size: 1rem; }
    .materia-metrica-nota { grid-column: 1 / -1; }
    .materia-like { justify-content: center; min-height: 44px; }
    .materia-comentario-form { padding: 16px; }
    .materia-comentario-form button { width: 100%; min-height: 44px; }
    .columnist-article-card, .columnist-profile-card { min-width: 0; }
    .columnist-profile-card { align-items: flex-start; }
    .columnist-profile-card > div { min-width: 0; }
    .columnist-profile-photo { width: 60px; height: 60px; flex-basis: 60px; }

    .share-options { left: 0; right: 0; width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
    .footer-col, .card, .section-block { min-width: 0; }
    .footer-bottom-inner { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
    .brand-tagline { display: none; }
    .brand-jnbr { font-size: 1.05rem; }
    .btn-menu-drawer { padding-left: 7px; padding-right: 7px; }
    .gratitude-grid { grid-template-columns: minmax(0, 1fr); }
    .materia-metricas { grid-template-columns: minmax(0, 1fr); }
}
