@import url("navigation-transitions.css");
@import url("scrollbars.css");
@import url("body-dots.css");
@import url("footer.css");
@import url("headlines.css");
@import url("account.css");
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Condensed:wght@400;700&family=New+Rocker&display=swap');
/* GERAL ----------------------------------------------------------------- */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: black;
    color: floralwhite;
    font-family: "Libre Caslon Condensed", Georgia, serif;
}
/* CABEÇALHO ------------------------------------------------------------- */
.site-header {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    column-gap: 30px;
    padding: 18px 30px;
    background-color: floralwhite;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.10) 0.8px, transparent 1px);
    background-size: 8px 8px;
    border-bottom: 6px solid var(--site-accent, #AF8058);
    position: relative;
    z-index: 1002;
}
/* SELETOR DE TEMA ------------------------------------------------------- */
.theme-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    background: none;
    border: none;
    color: black;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.theme-toggle .sun {
    opacity: 0.4;
}
.logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    font-family: "New Rocker", serif;
    font-size: clamp(22px, 5.2vw, 36px);
    font-weight: bold;
}
.main-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-self: center;
    gap: clamp(24px, 3vw, 48px);
}
.main-nav a {
    color: black;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    line-height: 1.25;
}
.main-nav a:hover {
    text-decoration: underline;
}
/* MENU HAMBÚRGUER ------------------------------------------------------- */
.menu-toggle {
    display: none;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    anchor-name: --hamburger;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background-color: black;
}
/* CONTEÚDO -------------------------------------------------------------- */
main {
    flex: 1;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 30px 30px;
}

/* RODAPÉ ---------------------------------------------------------------- */
footer {
    background-color: floralwhite;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.10) 0.8px, transparent 1px);
    background-size: 8px 8px;
    color: black;
}

/* TABLET ---------------------------------------------------------------- */
@media (max-width: 750px) {
    .site-header {
        grid-template-columns: auto auto auto;
        column-gap: clamp(10px, 2vw, 16px);
        padding: 14px clamp(12px, 4vw, 30px);
    }
    .main-nav {
        display: none;
        position: absolute;
        position-anchor: --hamburger;
        left: anchor(center);
        transform: translateX(-50%);
        top: 100%;
        flex-direction: column;
        gap: 14px;
        padding: 16px 20px;
        background-color: var(--site-accent, #AF8058);
    }
    .main-nav a {
        color: floralwhite;
    }
    .main-nav.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .theme-toggle {
        font-size: 26px;
    }
}
/* AVISO DE COOKIES ------------------------------------------------------ */
.cookie-notice {
    position: fixed;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: 360px;
    max-width: calc(100vw - 32px);
    min-height: 0;
    max-height: min(35dvh, 220px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: clamp(6px, 1.5vmin, 11px);
    border: 1px solid var(--site-accent, #AF8058);
    background: floralwhite;
    background-image: radial-gradient(circle, rgba(0, 0, 0, .10) .8px, transparent 1px);
    background-size: 8px 8px;
    color: black;
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}
body.light-mode .cookie-notice { background-color: black; color: floralwhite; background-image: radial-gradient(circle, rgba(255, 250, 240, .12) .8px, transparent 1px); }
.cookie-notice p { margin: 0; text-align: center; }
.cookie-notice p span { display: block; }
.cookie-notice button {
    justify-self: center;
    align-self: end;
    padding: 5px 12px;
    border: 1px solid var(--site-accent, #AF8058);
    background: var(--site-accent, #AF8058);
    color: floralwhite;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cookie-notice button:focus-visible { outline: 2px solid var(--site-accent, #AF8058); outline-offset: 3px; }
/* MODO CLARO ------------------------------------------------------------ */
.light-mode .theme-toggle .sun {
    opacity: 1;
}
.light-mode .site-header {
    background-color: black;
    background-image: radial-gradient(circle, rgba(255, 250, 240, 0.12) 0.8px, transparent 1px);
    border-bottom-color: var(--site-accent, #AF8058);
}
.light-mode .logo,
.light-mode .main-nav a,
.light-mode .theme-toggle {
    color: floralwhite;
}
.light-mode .menu-toggle span {
    background-color: floralwhite;
}
.light-mode footer {
    background-color: black;
    background-image: radial-gradient(circle, rgba(255, 250, 240, 0.12) 0.8px, transparent 1px);
    color: floralwhite;
}
.light-mode {
    background-color: floralwhite;
    color: black;
}
.light-mode main {
    color: black;
}
/* RESPONSIVIDADE ------------------------------------------------------- */
@media (max-width: 750px) {
    .light-mode .main-nav {
        background-color: var(--site-accent, #AF8058);
    }
}

/* The same sun stays opaque; its background contrasts with the page theme. */
body .theme-toggle { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background:floralwhite; color:black; }
body.light-mode .theme-toggle { background:black; color:floralwhite; }
body .theme-toggle .sun { opacity:1; }
body .theme-toggle[aria-disabled="true"] { opacity:.4; filter:grayscale(1); cursor:help; }

/* Appearance controls live in the account bar; the masthead shares its available space. */
.site-header.has-account-theme { grid-template-columns:auto auto; column-gap:clamp(16px,2vw,30px); }
.site-header.has-account-theme .main-nav { gap:clamp(12px,2vw,30px); }
/* Match main's 1500px outer width and 30px inset without shrinking the header background. */
@media(width > 750px) {
    .site-header.has-account-theme { padding-inline:max(30px,calc((100% - 1500px)/2 + 30px)); }
}

@media(max-width:750px) {
    .site-header.has-account-theme { grid-template-columns:auto auto; }
    .site-header.has-account-theme .main-nav { left:anchor(center); right:auto; transform:translateX(-50%); }
}
.masthead-utility { display:none; }
@media (max-width:750px) {
    .site-header.has-account-theme { grid-template-columns:auto auto auto; }
    .site-header.has-account-theme .menu-toggle { grid-column:2; }
    .masthead-utility {
        grid-column:3;
        grid-row:1;
        display:flex;
        justify-content:center;
        gap:clamp(12px,2vw,20px);
    }
    .masthead-utility a {
        color:black;
        font-weight:600;
        text-align:center;
        text-decoration:none;
        white-space:nowrap;
        line-height:1.25;
    }
    .masthead-utility a:is(:hover,:focus-visible) { text-decoration:underline; }
    .home-page .masthead-utility a { line-height:23px; }
}
.site-header .brand-mobile { display:none; }
@media(max-width:610px) {
    .site-header.has-account-theme { column-gap:clamp(10px,2.4vw,16px); padding-inline:clamp(16px,4vw,30px); }
    .site-header .logo .brand-full { display:none; }
    .site-header .logo .brand-mobile { display:inline; }
    .site-header.has-account-theme .main-nav { grid-column:auto; grid-row:auto; padding-inline:12px; --menu-width:min(200px, calc(100% - 24px)); width:var(--menu-width); left:clamp(calc(12px + var(--menu-width) / 2), anchor(center), calc(100% - 12px - var(--menu-width) / 2)); }
}

.site-header .logo,
.light-mode .site-header .logo { color: #FF2400; }
.site-header .logo:hover { text-decoration: underline; }
.site-header.has-account-theme .logo { font-size:clamp(23px,calc(19px + 1.8vw),36px); }
@media (max-width: 750px) {
    header.site-header.has-account-theme a.logo { font-size: clamp(26px, calc(8vw + 1px), 42px); }
}

.main-nav .mobile-folhao-link{display:none}
@media(max-width:650px){.main-nav .mobile-folhao-link:not([hidden]){display:block}}

/* Four moving strips follow the frame clockwise, keeping the content still. */
:is(.home-page,.article-related) article[data-alert-border="true"]{position:relative;--column-stripe-dark:#000;box-sizing:border-box;border:1px solid transparent}
:is(.home-page,.article-related) article[data-alert-border="true"]::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(45deg,#ffff00 0 12px,var(--column-stripe-dark) 12px 24px),repeating-linear-gradient(45deg,#ffff00 0 12px,var(--column-stripe-dark) 12px 24px),repeating-linear-gradient(45deg,#ffff00 0 12px,var(--column-stripe-dark) 12px 24px),repeating-linear-gradient(45deg,#ffff00 0 12px,var(--column-stripe-dark) 12px 24px);background-size:33.941126px 2px,2px 33.941126px,33.941126px 2px,2px 33.941126px;background-position:left top,right top,right bottom,left bottom;background-repeat:repeat-x,repeat-y,repeat-x,repeat-y;animation:alert-border-frame-clockwise 7s linear infinite}
@keyframes alert-border-frame-clockwise{to{background-position:calc(0% + 33.941126px) 0,100% calc(0% + 33.941126px),calc(100% - 33.941126px) 100%,0 calc(100% - 33.941126px)}}
@media(prefers-reduced-motion:reduce){:is(.home-page,.article-related) article[data-alert-border="true"]::after{animation:none}}


/* Shared dotted paper texture for account notices and the ePaper login dialog. */
.account-login-hint,.folhao-login{background-image:radial-gradient(#8885 .6px,transparent .6px);background-size:7px 7px}

/* The expanded desktop menu keeps its explicit line breaks. */
@media(max-width:750px){.main-nav a br{display:none}}
