:root {
    --folha-primary: #04548c;
    --folha-secondary: #189dbc;
    --folha-tertiary: #f07d00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    min-height: 100vh;
}

.font-serif,
.folha-heading {
    font-family: "League Spartan", system-ui, sans-serif !important;
    letter-spacing: -0.01em;
}

.bg-primary { background-color: var(--folha-primary) !important; }
.text-primary { color: var(--folha-primary) !important; }
.border-primary { border-color: var(--folha-primary) !important; }
.bg-secondary { background-color: var(--folha-secondary) !important; }
.text-secondary { color: var(--folha-secondary) !important; }
.border-secondary { border-color: var(--folha-secondary) !important; }
.bg-tertiary { background-color: var(--folha-tertiary) !important; }
.text-tertiary { color: var(--folha-tertiary) !important; }
.border-tertiary { border-color: var(--folha-tertiary) !important; }
.hover\:bg-primary:hover { background-color: var(--folha-primary) !important; }
.hover\:bg-secondary:hover { background-color: var(--folha-secondary) !important; }
.hover\:text-primary:hover { color: var(--folha-primary) !important; }
.hover\:text-secondary:hover { color: var(--folha-secondary) !important; }
.hover\:border-secondary:hover { border-color: var(--folha-secondary) !important; }
.focus-visible\:text-primary:focus-visible { color: var(--folha-primary) !important; }
.focus-visible\:text-secondary:focus-visible { color: var(--folha-secondary) !important; }

::selection {
    background: var(--folha-primary);
    color: #ffffff;
    text-shadow: none;
}

::-moz-selection {
    background: var(--folha-primary);
    color: #ffffff;
    text-shadow: none;
}

:focus-visible {
    outline: 3px solid var(--folha-tertiary);
    outline-offset: 2px;
}

img {
    content-visibility: auto;
}

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

.card-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-zoom:hover img {
    transform: scale(1.05);
}

.gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0) 100%);
}

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    background-color: var(--folha-secondary);
    bottom: -2px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.3s ease;
    width: 0;
}

.link-underline:hover::after {
    width: 100%;
}

.entry-content {
    color: #374151;
    font-size: 1.075rem;
    line-height: 1.85;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #111827;
    font-family: "League Spartan", system-ui, sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 0.9rem;
    margin-top: 2rem;
    scroll-margin-top: 7.5rem;
}

.entry-content h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
}

.entry-content h2 {
    border-left: 4px solid var(--folha-secondary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    padding-left: 0.75rem;
}

.entry-content h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 700;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
    margin-bottom: 1.35rem;
}

.entry-content a {
    color: var(--folha-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(24, 157, 188, 0.45);
    text-underline-offset: 3px;
}

.entry-content img {
    border-radius: 1rem;
    height: auto;
    max-width: 100%;
}

.entry-content blockquote {
    border-left: 4px solid var(--folha-tertiary);
    color: #4b5563;
    font-family: "League Spartan", system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    padding-left: 1.25rem;
}

.entry-content iframe,
.entry-content video {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.publicidade-slot iframe,
.publicidade-slot img {
    max-width: 100%;
}

#site-header .header-topbar,
#site-header .header-main,
#site-header .site-logo,
#site-header #menu-desktop .menu-desktop-list {
    transition: all 0.24s ease;
}

@media (min-width: 1024px) {
    #site-header.is-compact .header-topbar {
        border-bottom-width: 0 !important;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    #site-header.is-compact .header-main {
        padding-bottom: 0.45rem !important;
        padding-top: 0.45rem !important;
    }

    #site-header.is-compact .site-logo {
        height: 1.7rem !important;
    }

    #site-header.is-compact #menu-desktop .menu-desktop-list {
        font-size: 0.72rem !important;
        line-height: 1.1rem !important;
        padding-bottom: 0.45rem !important;
        padding-top: 0.45rem !important;
    }
}

@media (max-width: 767px) {
    .entry-content {
        font-size: 1rem;
        line-height: 1.75;
    }
}
