/* =========================================================
   Portal de Notícias — folha de estilo principal
   Temas claro/escuro via [data-theme] no elemento <html>
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    --bg:            #ffffff;
    --bg-soft:       #f2f4f7;
    --surface:       #ffffff;
    --surface-2:     #f7f8fa;
    --surface-3:     #eef1f5;
    --border:        #e2e6eb;
    --border-2:      #cfd5dd;
    --text:          #0f1319;
    --text-2:        #3d4551;
    --muted:         #6b7480;
    --accent:        #c8102e;
    --accent-ink:    #ffffff;
    --accent-soft:   rgba(200, 16, 46, .10);
    --link:          #0b57d0;
    --ok:            #0f9d58;
    --shadow-sm:     0 1px 2px rgba(15, 19, 25, .06);
    --shadow:        0 2px 10px rgba(15, 19, 25, .08);
    --shadow-lg:     0 12px 32px rgba(15, 19, 25, .12);
    --radius:        10px;
    --radius-lg:     16px;
    --wrap:          1240px;
    --header-h:      64px;
    --font-ui:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-serif:    'Lora', Georgia, 'Times New Roman', serif;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg:            #0d1117;
    --bg-soft:       #090c11;
    --surface:       #151a21;
    --surface-2:     #1a2028;
    --surface-3:     #212933;
    --border:        #262e39;
    --border-2:      #38424f;
    --text:          #e9ecf1;
    --text-2:        #b9c0cc;
    --muted:         #8a93a1;
    --accent:        #ff4d60;
    --accent-ink:    #1a0409;
    --accent-soft:   rgba(255, 77, 96, .14);
    --link:          #7fb0ff;
    --ok:            #2ea36a;
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, .4);
    --shadow:        0 2px 12px rgba(0, 0, 0, .45);
    --shadow-lg:     0 14px 38px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .2s ease, color .2s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.018em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Topbar ---------- */
.topbar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--muted);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.topbar__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__links { display: flex; gap: 16px; flex-shrink: 0; }
.topbar__links a:hover { color: var(--accent); }

/* ---------- 4. Cabeçalho ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(1px)) {
    .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(180%) blur(12px); }
}
.site-header__inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand__mark {
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--accent); color: var(--accent-ink);
    display: grid; place-items: center;
    font-weight: 900; font-size: 21px; letter-spacing: -.04em;
}
.brand__text strong { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.brand__text small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 9px;
    background: transparent; border: 1px solid transparent; color: var(--text-2);
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.menu-btn { display: none; }

.theme-btn .icon-moon { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: block; }

.search {
    display: flex; align-items: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 6px 4px 14px;
    transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search input {
    border: 0; background: transparent; color: var(--text);
    font: inherit; font-size: 14px; width: 190px; padding: 5px 0;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search button {
    border: 0; background: var(--accent); color: var(--accent-ink);
    width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
}
.search--page { padding: 6px 6px 6px 18px; max-width: 520px; margin-top: 16px; }
.search--page input { width: 100%; font-size: 15px; }
.search--page button { width: auto; height: 34px; padding: 0 16px; font-size: 14px; font-weight: 600; }

/* navegação de editorias */
.mainnav { border-top: 1px solid var(--border); background: var(--bg); }
.mainnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav__inner::-webkit-scrollbar { display: none; }
.mainnav a {
    position: relative; white-space: nowrap;
    padding: 11px 13px; font-size: 14px; font-weight: 600; color: var(--text-2);
}
.mainnav a::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px;
    background: var(--cat, var(--accent)); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.mainnav a:hover { color: var(--text); }
.mainnav a:hover::after, .mainnav a.is-active::after { transform: scaleX(1); }
.mainnav a.is-active { color: var(--text); }
.mainnav a.mainnav__videos { color: var(--accent); }
.mainnav a.mainnav__videos span { font-size: 11px; margin-right: 2px; }
/* Com o script: mostra o que cabe e o resto vai para "Mais" (sem script,
   a linha continua rolando de lado, como antes). */
.mainnav.is-js .mainnav__inner { overflow: visible; position: relative; }
.mainnav__mais { position: relative; margin-left: auto; flex: none; }
.mainnav__mais > button {
    border: 0; background: transparent; cursor: pointer; white-space: nowrap;
    padding: 11px 13px; font: 700 14px var(--font-ui); color: var(--text);
}
.mainnav__mais > button:hover, .mainnav__mais > button[aria-expanded="true"] { color: var(--accent); }
.mainnav__lista {
    position: absolute; right: 0; top: 100%; z-index: 60; min-width: 210px; max-height: 70vh; overflow-y: auto;
    display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.mainnav__lista[hidden] { display: none; }
.mainnav__lista a { padding: 9px 12px; border-radius: 8px; }
.mainnav__lista a::after { display: none; }
.mainnav__lista a:hover, .mainnav__lista a.is-active { background: var(--surface-2); color: var(--text); }

/* ---------- 5. Plantão / urgente ---------- */
.breaking { background: var(--accent); color: var(--accent-ink); }
.breaking__inner { display: flex; align-items: center; gap: 12px; padding: 9px 20px; font-size: 14px; }
.breaking__tag {
    text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .08em;
    background: rgba(255, 255, 255, .22); padding: 3px 8px; border-radius: 4px; flex-shrink: 0;
}
.breaking a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breaking a:hover { color: inherit; text-decoration: underline; }
.breaking time { margin-left: auto; font-size: 12px; opacity: .85; flex-shrink: 0; }

/* ---------- 6. Menu lateral (mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .5); }
.drawer[hidden] { display: none; }
.drawer__panel {
    width: min(320px, 86vw); height: 100%; background: var(--bg);
    padding: 18px; overflow-y: auto; box-shadow: var(--shadow-lg);
    animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer__head strong { font-size: 19px; font-weight: 900; }
.search--drawer { padding: 5px 6px 5px 14px; }
.search--drawer input { width: 100%; }
.search--drawer button { width: auto; padding: 0 14px; font-size: 13px; }
.drawer__nav { display: flex; flex-direction: column; margin-top: 18px; }
.drawer__nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 8px; border-radius: 8px; font-weight: 600; font-size: 15px;
}
.drawer__nav a:hover { background: var(--surface-2); }
.drawer__nav hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; width: 100%; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---------- 7. Layout de página ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 32px 48px; }
.layout__main { min-width: 0; }
.sidebar {
    display: flex; flex-direction: column; gap: 24px;
    align-self: start; position: sticky; top: calc(var(--header-h) + 16px);
}

.section-title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-title--cat { padding-left: 12px; border-left: 5px solid var(--cat, var(--accent)); }
.section-link { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.section-link:hover { color: var(--accent); }

.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 var(--accent-soft); }
    70%  { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- 8. Capa: manchetes ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    grid-template-areas: 'main side' 'list list';
    gap: 28px;
    padding-block: 28px 8px;
}
.hero__main { grid-area: main; }
.hero__side { grid-area: side; display: flex; flex-direction: column; gap: 22px; }
.hero__list {
    grid-area: list; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0 28px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 18px;
}

.lead { display: flex; flex-direction: column; gap: 14px; }
.lead__media { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-3); aspect-ratio: 16 / 9; }
.lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.lead:hover .lead__media img { transform: scale(1.035); }
.lead__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; }
.lead__title a:hover { color: var(--accent); }
.lead__dek { color: var(--text-2); font-size: 17px; margin: 0; }

/* ---------- 9. Cards ---------- */
.card { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.card__media {
    display: block; overflow: hidden; border-radius: var(--radius);
    background: var(--surface-3); aspect-ratio: 16 / 9; position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__flag {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent); color: var(--accent-ink);
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    padding: 4px 8px; border-radius: 4px;
}
.card__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.card__cat {
    align-self: flex-start;
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
    color: var(--cat, var(--accent));
}
.card__cat:hover { text-decoration: underline; color: var(--cat, var(--accent)); }
.card__title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.28; }
.card__title a:hover { color: var(--accent); }
.card__dek { color: var(--text-2); font-size: 14.5px; margin: 0; }
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

.card--lead .card__title { font-size: clamp(20px, 2vw, 24px); font-weight: 800; }
.card--sm .card__title { font-size: 16px; }

.card--text { border-top: 3px solid var(--cat, var(--accent)); padding-top: 12px; padding-bottom: 18px; }
.card--text .card__title { font-size: 16.5px; }

.card--row {
    flex-direction: row-reverse; gap: 16px; align-items: flex-start;
    padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.card--row .card__media { width: 168px; flex-shrink: 0; }
.card--row .card__title { font-size: 17.5px; }

/* ---------- 10. Régua de últimas ---------- */
.strip { background: var(--surface-2); border-block: 1px solid var(--border); padding-block: 22px; }
.strip--bottom { margin-top: 8px; }
.strip__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.strip__rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
    gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px;
}
.strip__rail::-webkit-scrollbar { height: 6px; }
.strip__rail::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }
.mini {
    scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px;
    padding-left: 14px; border-left: 3px solid var(--cat, var(--accent));
}
.mini time { font-size: 12px; font-weight: 700; color: var(--accent); }
.mini__cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mini a { font-size: 15px; font-weight: 600; line-height: 1.34; }

/* ---------- 11. Blocos de editoria ---------- */
.block { margin-bottom: 44px; }
.block__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.block__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.block__grid > .card--lead { grid-row: span 3; }
.block__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.block__grid--4 > .card { grid-row: auto; }
.rows { display: flex; flex-direction: column; gap: 18px; }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.grid-cards > .card--lead { grid-column: 1 / -1; }
.grid-cards > .card--lead .card__media { aspect-ratio: 21 / 9; }

/* ---------- 12. Sidebar ---------- */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.box__title { font-size: 16px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.box p { font-size: 14px; color: var(--text-2); }

.ranked { display: flex; flex-direction: column; }
.ranked li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.ranked li:last-child { border-bottom: 0; padding-bottom: 0; }
.ranked__n { font-size: 22px; font-weight: 900; color: var(--accent); line-height: 1; width: 24px; flex-shrink: 0; opacity: .8; }
.ranked a { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: block; }
.ranked__meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
    flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px;
    background: var(--bg); border: 1px solid var(--border-2); border-radius: 8px; color: var(--text);
}
.newsletter button {
    border: 0; background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.newsletter button:hover { filter: brightness(1.08); }
.newsletter--side { flex-direction: column; }
.newsletter--side button { width: 100%; }

.ad {
    background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: var(--radius);
    min-height: 90px; display: grid; place-items: center; color: var(--muted); font-size: 13px;
}
.ad--header { margin-top: 18px; }

/* ---------- 13. Página de notícia ---------- */
.layout--article { padding-top: 24px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }

.post { max-width: 760px; }
.post__flag {
    display: inline-block; background: var(--accent); color: var(--accent-ink);
    font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
    padding: 4px 9px; border-radius: 4px; margin-bottom: 10px;
}
.post__head { margin-bottom: 24px; }
.post__title { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.07; margin: 8px 0 14px; }
.post__dek { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); font-weight: 400; line-height: 1.45; margin: 0 0 20px; }

.post__byline {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 0; border-block: 1px solid var(--border);
}
.post__author { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.post__author strong { display: block; font-weight: 700; }
.post__author span { color: var(--muted); font-size: 12.5px; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
    display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0;
}

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__btn {
    font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.share__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.share--bottom { margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--border); }
.share--bottom > span { font-size: 14px; font-weight: 700; margin-right: 4px; }

.post__figure { margin: 0 0 28px; }
.post__figure img { width: 100%; border-radius: var(--radius-lg); background: var(--surface-3); }
.post__figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; padding-left: 2px; }

.post__content { font-family: var(--font-serif); font-size: 19px; line-height: 1.72; color: var(--text); }
.post__content p { margin: 0 0 1.15em; }
.post__content h2 { font-family: var(--font-ui); font-size: 25px; font-weight: 800; margin: 1.7em 0 .6em; letter-spacing: -.02em; }
.post__content h3 { font-family: var(--font-ui); font-size: 21px; font-weight: 700; margin: 1.5em 0 .5em; }
.post__content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.post__content ul, .post__content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post__content ul { list-style: disc; }
.post__content ol { list-style: decimal; }
.post__content li { margin-bottom: .5em; }
.post__content img { border-radius: var(--radius); margin: 1.5em 0; }
.post__content blockquote {
    margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent);
    font-size: 21px; font-style: italic; color: var(--text-2);
}
.post__content figure { margin: 1.6em 0; }
.post__content figcaption { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.post__content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.post__content table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 15px; margin: 1.4em 0; }
.post__content th, .post__content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.post__content th { background: var(--surface-2); font-weight: 700; }

.post__source {
    font-size: 13.5px; color: var(--muted); padding: 12px 16px; background: var(--surface-2);
    border-radius: var(--radius); border-left: 3px solid var(--border-2);
}
.post__source a { color: var(--link); text-decoration: underline; }
/* Aviso de que o texto foi feito com IA: discreto, mas sempre presente */
.post__ia { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; line-height: 1.5; }
.post__ia a { color: var(--link); text-decoration: underline; }

.post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; }
.post__tags > span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.block--related { margin-top: 40px; padding-top: 8px; }

/* ---------- 14. Paginação, avisos, erros ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 40px; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 13px; border-radius: 9px;
    display: inline-grid; place-items: center; font-size: 14px; font-weight: 600;
    border: 1px solid var(--border); background: var(--surface);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager__gap { border: 0; background: transparent; min-width: 20px; }

.flash { background: var(--ok); color: #fff; font-size: 14.5px; font-weight: 600; }
.flash--error { background: var(--accent); color: var(--accent-ink); }
.flash .wrap { padding-block: 11px; }

.empty {
    padding: 48px 20px; text-align: center; color: var(--muted); background: var(--surface-2);
    border: 1px dashed var(--border-2); border-radius: var(--radius-lg);
}

.page-head { padding: 30px 0 8px; border-bottom: 3px solid var(--cat, var(--accent)); margin-bottom: 4px; }
.page-head__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.03em; }
.page-head__sub { color: var(--text-2); margin: 8px 0 18px; font-size: 16px; }

.error-page { text-align: center; padding: 80px 20px 100px; }
.error-page__code { font-size: 78px; font-weight: 900; color: var(--accent); letter-spacing: -.05em; line-height: 1; }
.error-page h1 { font-size: 28px; margin: 12px 0; }
.error-page p { color: var(--text-2); max-width: 480px; margin: 0 auto 24px; }
.error-page__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 9px;
    background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14.5px; border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 70;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top[hidden] { display: none; }

/* ---------- 15. Rodapé ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 40px; padding-block: 44px 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.site-footer__brand p { font-size: 14px; color: var(--text-2); margin: 14px 0; max-width: 40ch; }
.brand--footer { margin-bottom: 4px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
    font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border-2); color: var(--text-2);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__news p { font-size: 14px; color: var(--text-2); }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted);
}

/* ---------- 16. Responsivo ---------- */
@media (max-width: 1080px) {
    .layout { grid-template-columns: 1fr; gap: 32px; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .post { max-width: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; grid-template-areas: 'main' 'side' 'list'; gap: 24px; }
    .hero__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
    .block__grid { grid-template-columns: 1fr; }
    .block__grid > .card--lead { grid-row: auto; }
    .block__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search { display: none; }
    .menu-btn { display: grid; }
    .topbar__date { display: none; }
}

@media (max-width: 560px) {
    .brand__mark { width: 34px; height: 34px; font-size: 18px; }
    .brand__text strong { font-size: 17px; }
    .brand__text small { display: none; }
    .grid-cards, .block__grid--4 { grid-template-columns: 1fr; }
    .card--row { flex-direction: column-reverse; }
    .card--row .card__media { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .post__content { font-size: 18px; }
    .layout { padding-block: 22px 34px; }
    .breaking time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

@media print {
    .topbar, .site-header, .breaking, .sidebar, .site-footer, .share, .to-top, .strip, .progress { display: none !important; }
    body { background: #fff; color: #000; }
    .post__content { font-size: 12pt; }
}

/* logo enviado pelo painel — troca com o tema quando há as duas versões */
.brand__logo { max-height: 46px; max-width: 300px; width: auto; object-fit: contain; }
.brand__logo--escuro { display: none; }
:root[data-theme="dark"] .brand__logo--claro { display: none; }
:root[data-theme="dark"] .brand__logo--escuro { display: block; }
@media (max-width: 560px) { .brand__logo { max-height: 36px; max-width: 190px; } }

/* ---------------------------------------------------------
   Notícia sem foto
   ---------------------------------------------------------
   Nem toda notícia tem imagem de licença livre disponível, e
   forçar um placeholder cinza faz o site parecer quebrado. O
   card então vira texto, com um traço na cor da editoria para
   não sumir no meio dos que têm foto. */

.card--sem-foto {
    padding: 14px 0 14px 15px;
    border-left: 3px solid var(--cat, #c8102e);
}

.card--sem-foto .card__title {
    font-size: 1.06em;
}

.card--sem-foto .card__flag--solto {
    position: static;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 2px;
}

.lead--sem-foto {
    padding: 22px 0 22px 20px;
    border-left: 4px solid var(--cat, #c8102e);
}

/* ---------- Temas, linha do tempo, "Entenda" e histórico ---------- */
.entenda { margin: 8px 0 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--cat, var(--accent)); }
.entenda__titulo { margin: 0 0 8px; font: 800 13px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--cat, var(--accent)); }
.entenda__texto { margin: 0; font: 400 17px/1.6 var(--font-ui); color: var(--text); }
.entenda__termos { margin: 14px 0 0; display: grid; gap: 10px; }
.entenda__termos > div { padding-top: 10px; border-top: 1px dashed var(--border-2); }
.entenda__termos dt { font: 700 15px/1.3 var(--font-ui); color: var(--text); }
.entenda__termos dd { margin: 3px 0 0; font: 400 15px/1.55 var(--font-ui); color: var(--text-2); }

.historico { margin: 28px 0; display: grid; gap: 18px; }
.historico__bloco { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.historico__titulo { margin: 0 0 10px; font: 800 15px/1.3 var(--font-ui); color: var(--text); }
.historico__titulo a { color: var(--cat, var(--accent)); text-decoration: none; }
.historico__lista { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border-2); display: grid; gap: 10px; }
.historico__lista li { position: relative; display: grid; gap: 2px; }
.historico__lista li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cat, var(--accent)); }
.historico__lista time { font: 600 12px/1.2 var(--font-ui); color: var(--muted); }
.historico__lista a { font: 600 15px/1.4 var(--font-ui); color: var(--text); text-decoration: none; }
.historico__lista a:hover { color: var(--cat, var(--accent)); }
.historico__mais { display: inline-block; margin-top: 12px; font: 700 13px/1 var(--font-ui); color: var(--link); text-decoration: none; }

.chip--tema { border-color: var(--cat, var(--accent)); }
.chip--tema small { margin-left: 4px; opacity: .65; font-weight: 600; }

.tema__tipo { display: inline-block; margin: 6px 0 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 11px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .06em; }
.tema__resumo { max-width: 760px; margin: 6px 0 10px; font: 400 17px/1.6 var(--font-ui); color: var(--text-2); }

.linha { list-style: none; margin: 0; padding: 0; }
.linha__dia { margin-bottom: 26px; }
.linha__dia > ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border-2); display: grid; gap: 14px; }
.linha__data { position: sticky; top: calc(var(--header-h) + 4px); z-index: 1; margin: 0 0 12px; padding: 6px 0; background: var(--bg); font: 800 14px/1.3 var(--font-ui); text-transform: capitalize; color: var(--text); }
.linha__item { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; }
.linha__item::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cat, var(--accent)); }
.linha__item time { font: 700 13px/1.5 var(--font-ui); color: var(--muted); }
.linha__texto a { font: 700 16px/1.4 var(--font-ui); color: var(--text); text-decoration: none; }
.linha__texto a:hover { color: var(--cat, var(--accent)); }
.linha__texto p { margin: 4px 0 0; font: 400 14px/1.5 var(--font-ui); color: var(--text-2); }
.linha__cat { display: block; margin-bottom: 2px; font: 700 11px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--cat, var(--accent)); }
.linha__foto { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--surface-3); }

.temas-bloco { margin-bottom: 30px; }
.temas-nuvem { display: flex; flex-wrap: wrap; gap: 8px; }
.temas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.temas-lista li { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; }
.temas-lista a { font: 700 15px/1.3 var(--font-ui); color: var(--text); text-decoration: none; }
.temas-lista a:hover { color: var(--accent); }
.temas-lista span { font: 400 12px/1.3 var(--font-ui); color: var(--muted); }

@media (max-width: 640px) {
  .linha__item { grid-template-columns: 44px 1fr; }
  .linha__foto { display: none; }
  .entenda { padding: 14px 16px; }
}

/* Linha do tempo: marcos "Agora" e "Início", "você está aqui" */
.tema__kicker, .historico__kicker { display: block; margin-bottom: 4px; font: 800 12px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.linha__marco { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 14px/1.3 var(--font-ui); color: var(--muted); }
.linha__marco span { padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.linha__marco--inicio { margin: 6px 0 24px; }
.linha__marco--inicio span { background: var(--text-2); }
.linha__continua { margin: 4px 0 20px; font: 600 14px/1.4 var(--font-ui); color: var(--muted); }
.historico__guia { margin: -4px 0 12px; font: 400 13px/1.45 var(--font-ui); color: var(--muted); }
.historico__aqui strong { font: 800 15px/1.4 var(--font-ui); color: var(--cat, var(--accent)); }
.historico__lista li.historico__aqui::before { background: var(--cat, var(--accent)); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Faixa "Em alta agora" na capa: os temas do momento, cada um leva à linha do tempo */
.em-alta { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.em-alta__inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.em-alta__rotulo { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 800 12px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.em-alta__lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.em-alta__lista::-webkit-scrollbar { display: none; }
.em-alta__lista a { flex: none; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); font: 600 13px/1 var(--font-ui); color: var(--text); text-decoration: none; white-space: nowrap; }
.em-alta__lista a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Vídeos (/videos e /video/...) ---------- */
.video-player { margin: 18px 0 8px; }
.video-player__formato { display: inline-flex; gap: 4px; margin-bottom: 10px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.video-player__formato button { border: 0; background: transparent; color: var(--text-2); font: 600 13px var(--font-ui); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.video-player__formato button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.video-player__tela { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); }
.video-player__tela.is-vertical { aspect-ratio: 9 / 16; max-width: 400px; max-height: 80vh; margin: 0 auto; }
.video-noticias { margin: 22px 0; }
.video-noticias ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; line-height: 1.45; }
.video-noticias__ed { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-right: 6px; }
.video-noticias__nota { color: var(--muted); font-size: 13px; margin-top: 12px; }
.video-outros { margin: 28px 0; }
.video-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 14px; }
.video-card { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.video-card:hover .video-card__titulo { color: var(--accent); }
.video-card__capa, .video-destaque__capa { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.video-card__capa img, .video-destaque__capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(200, 16, 46, .92); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 4px; box-shadow: var(--shadow); }
.video-card__tempo { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); color: #fff; font: 600 12px var(--font-ui); padding: 2px 7px; border-radius: 6px; }
.video-card__titulo { font-weight: 700; font-size: 15px; line-height: 1.3; }
.video-card__data { color: var(--muted); font-size: 13px; }
.video-destaque { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; margin: 20px 0 26px; align-items: start; }
.video-destaque__selo { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.video-destaque h2 { font-size: 22px; line-height: 1.25; margin: 10px 0 6px; }
.video-destaque h2 a { color: var(--text); text-decoration: none; }
.video-destaque p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.video-destaque ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; color: var(--text-2); }
@media (max-width: 760px) { .video-destaque { grid-template-columns: 1fr; } }
.video-chamada { margin-top: 14px; }
.video-chamada__link { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--text); text-decoration: none; }
.video-chamada__link:hover strong { color: var(--accent); }
.video-chamada__capa { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.video-chamada__capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-chamada__capa .video-card__play { width: 40px; height: 40px; font-size: 15px; }
.video-chamada__texto { display: grid; gap: 5px; justify-items: start; }
.video-chamada__texto strong { font-size: 17px; line-height: 1.3; }
.video-chamada__texto > span:last-child { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .video-chamada__link { grid-template-columns: 120px 1fr; gap: 10px; } .video-chamada__texto strong { font-size: 15px; } }
.video-chamada__cta { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; font: 700 13px var(--font-ui); padding: 6px 12px; border-radius: 999px; }
.video-chamada__cta { order: 4; margin-top: 2px; }

/* Vídeo da matéria (v15) */
.post-video { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 22px 0 26px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.post-video .yt-lite, .post-video .yt-lite__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: 10px; overflow: hidden; background: #000; padding: 0; cursor: pointer; }
.post-video .yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.post-video .yt-lite:hover img { opacity: 1; }
.yt-lite__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: #c8102e; color: #fff; font-size: 28px; line-height: 68px; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.post-video__texto { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.post-video__kicker { color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.post-video__texto strong { font-size: 1.08rem; line-height: 1.3; }
.post-video__outro { align-self: flex-start; margin-top: 4px; border: 1px solid var(--accent); color: var(--accent); background: transparent;
  border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.post-video--empe { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; }
.post-video--empe .yt-lite, .post-video--empe .yt-lite__frame { aspect-ratio: 9 / 16; }
@media (max-width: 560px) {
  .post-video--empe { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; }
  .post-video--empe .yt-lite__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; line-height: 52px; font-size: 22px; }
}

/* Aviso de cookies (só aparece com o Google Analytics ligado) */
.consentimento { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; }
.consentimento[hidden] { display: none; }
.consentimento p { margin: 0; flex: 1 1 320px; }
.consentimento__botoes { display: flex; gap: 8px; }
.consentimento button { border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text); }
.consentimento .consentimento__sim { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Ao vivo (eleições 04/10) */
.ao-vivo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 8px 0 32px; }
.ao-vivo__canal { display: flex; flex-direction: column; gap: 8px; }
.ao-vivo .yt-lite, .ao-vivo .yt-lite__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #1b1f27, #3a0d16); color: #fff; }
.ao-vivo__nome { position: absolute; left: 16px; top: 14px; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.ao-vivo__titulo { font-size: 1.1rem; margin: 4px 0 0; }
.ao-vivo__sobre { margin: 0; color: var(--muted); font-size: .95rem; }
.ao-vivo__fonte { margin: 0; font-size: .82rem; color: var(--muted); }
.ao-vivo__selo, .mainnav__aovivo span { color: #e0102f; }
.ao-vivo__selo { font-size: .55em; vertical-align: middle; margin-right: 6px; letter-spacing: .06em; text-transform: uppercase;
  animation: ao-vivo-pisca 1.6s ease-in-out infinite; }
@keyframes ao-vivo-pisca { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ao-vivo__selo { animation: none; } }

/* "Siga o katavNews" (12/10/2026): Telegram e WhatsApp em destaque, depois as redes */
.siga {
    margin: 28px 0; padding: 20px 22px; border-radius: var(--radius-lg, 14px);
    background: var(--surface-2); border: 1px solid var(--border);
}
.siga__titulo { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.siga__texto { font-size: 14.5px; color: var(--text-2); margin: 0 0 14px; }
.siga__canais { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.siga__canal {
    display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
    font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; flex: 1 1 210px; justify-content: center;
}
.siga__canal:hover { color: #fff; filter: brightness(1.08); }
.siga__canal--telegram { background: #1c8ad1; }
.siga__canal--whatsapp_canal { background: #128c4b; }
.siga__icone { font-size: 18px; line-height: 1; }
.siga__redes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.siga__redes > span { font-size: 13.5px; font-weight: 700; margin-right: 2px; }
.post__content .siga a.share__btn, .post__content .siga a.siga__canal { text-decoration: none; }
@media print { .siga { display: none !important; } }
.siga-faixa {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px;
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.siga-faixa__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.siga-faixa__link--telegram { color: #1c8ad1; }
.siga-faixa__link--whatsapp_canal { color: #128c4b; }
:root[data-theme="dark"] .siga-faixa__link--telegram { color: #5cb8f0; }
:root[data-theme="dark"] .siga-faixa__link--whatsapp_canal { color: #3ed07f; }
@media print { .siga-faixa { display: none !important; } }

/* ==========================================================================
   Tema App Evangelho (02/11/2026): as cores e a leitura das lições da Escola
   Dominical. Claro: papel e verde. Escuro: ébano e ouro, como o app antigo.
   Fica no fim do arquivo e só troca variáveis e o corpo da matéria; para
   voltar ao visual do katavNews, basta apagar este bloco.
   ========================================================================== */
:root {
    --bg:          #f7f6f2;
    --bg-soft:     #efece4;
    --surface:     #ffffff;
    --surface-2:   #f3f1ea;
    --surface-3:   #e9e5da;
    --border:      #e3ded3;
    --border-2:    #d3ccbd;
    --text:        #1b2420;
    --text-2:      #3b4540;
    --muted:       #6b746e;
    --accent:      #2d6a4f;
    --accent-ink:  #ffffff;
    --accent-soft: rgba(45, 106, 79, .10);
    --link:        #2d6a4f;
    --ouro:        #94630a;
}
:root[data-theme="dark"] {
    --bg:          #0d1117;
    --bg-soft:     #090c11;
    --surface:     #161c26;
    --surface-2:   #1b2230;
    --surface-3:   #232b3a;
    --border:      #252e3f;
    --border-2:    #313b50;
    --text:        #e8e4d8;
    --text-2:      #c4bfb2;
    --muted:       #8f97a6;
    --accent:      #d4a64a;
    --accent-ink:  #1a1305;
    --accent-soft: rgba(212, 166, 74, .14);
    --link:        #e8b84a;
    --ouro:        #eab308;
}

/* o corpo da lição: tópicos com a marca verde, versículos em cartão */
.post__content h2 {
    color: var(--accent);
    padding-bottom: .35em;
    border-bottom: 2px solid var(--accent-soft);
}
.post__content h3 { color: var(--text); }
.post__content h3::before {
    content: ""; display: inline-block; width: 6px; height: .9em; margin-right: .5em;
    background: var(--accent); border-radius: 3px; vertical-align: -.05em;
}
.post__content blockquote {
    margin: 1.4em 0; padding: 1em 1.2em;
    background: var(--surface-2); border-left: 4px solid var(--ouro);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-2);
}
.post__content blockquote p:last-child { margin-bottom: 0; }
.post__content sup { color: var(--accent); font-weight: 700; font-style: normal; font-family: var(--font-ui); font-size: .7em; }
.post__content strong { color: var(--text); }
.post__content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-family: var(--font-ui); font-size: 16px; }
.post__content th, .post__content td { border: 1px solid var(--border); padding: .55em .7em; text-align: left; vertical-align: top; }
.post__content th { background: var(--surface-2); }
.post__content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* os atalhos fixos do menu (Escola Dominical, Bíblia) */
.mainnav__fixo { font-weight: 700; color: var(--accent) !important; }

/* ==========================================================================
   Lições da Escola Dominical (05/11/2026): as caixas que o importador marca
   com classes "ed-*" (o filtro clean_html só deixa passar essas). Recupera o
   visual das lições do app antigo dentro da matéria: texto principal, resumo,
   leitura da semana em cartões, glossário com 💡, blocos do professor,
   tópicos, "nesta seção", subsídios, linhas do tempo, quadros e revisão.
   Tudo em variáveis do tema: claro (papel e verde) e escuro (ébano e ouro).
   ========================================================================== */
.post__content .ed-rotulo {
    font: 700 12px/1.3 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 .5em;
}
.post__content .ed-mini { font: 700 11px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .8em 0 .2em; }
.post__content .ed-fonte, .post__content .ed-legenda {
    font: 400 14px/1.5 var(--font-ui); color: var(--muted); margin: .6em 0 0;
}

/* texto principal e resumo: as duas caixas do topo */
.post__content .ed-texto-principal,
.post__content .ed-resumo {
    background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent);
    border-radius: var(--radius); padding: 1.1em 1.3em; margin: 0 0 1.4em;
}
.post__content .ed-texto-principal blockquote { margin: .2em 0; padding: 0; background: none; border: 0; font-size: 1.08em; }
.post__content .ed-ref { font: 700 14px var(--font-ui); color: var(--ouro); margin: .4em 0 0; }
.post__content .ed-resumo p:not(.ed-rotulo) { margin: 0; font-size: 1.05em; }

/* cartões em grade: leitura da semana, glossário, colunas do professor */
.post__content .ed-grade {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 14px; margin: 1em 0 1.6em;
}
.post__content .ed-dia,
.post__content .ed-cartao {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1em 1.1em; font-family: var(--font-ui); font-size: 15.5px; line-height: 1.55;
}
.post__content .ed-dia p, .post__content .ed-cartao p { margin: 0 0 .5em; }
.post__content .ed-dia-ref { font-weight: 700; font-size: 17px; color: var(--text); }
.post__content .ed-dia-titulo { font-style: italic; color: var(--text-2); }
.post__content .ed-dia-desc { color: var(--muted); font-size: 14.5px; }
.post__content .ed-dia-versos { border-top: 1px solid var(--border); margin-top: .7em; padding-top: .3em; }
.post__content .ed-dia-versos p:not(.ed-mini) { font-family: var(--font-serif); font-style: italic; color: var(--text-2); }
.post__content .ed-termo { margin-bottom: .45em !important; }
.post__content .ed-termo strong {
    font: 700 13px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.post__content .ed-cartao-rot { font-style: italic; color: var(--muted); font-size: 14px; margin-top: -.3em !important; }
.post__content .ed-simples {
    background: var(--accent-soft); border-radius: 8px; padding: .55em .7em; margin-top: .6em !important;
    color: var(--text);
}
.post__content .ed-simples em { font-style: normal; font-weight: 700; color: var(--ouro); }
.post__content .ed-refs { font-weight: 600; color: var(--accent); font-size: 14px; }

/* blocos do professor e subsídios */
.post__content .ed-professor,
.post__content .ed-subsidio {
    border: 1px solid var(--border); border-radius: var(--radius); margin: 1.4em 0;
    padding: 0 1.2em 1em; background: var(--surface);
}
.post__content .ed-professor { border-top: 4px solid var(--accent); }
.post__content .ed-subsidio { border-left: 4px solid var(--ouro); }
.post__content .ed-cab { margin: 0 -1.2em 1em; padding: .8em 1.2em; background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--font-ui); font-size: 16px; }
.post__content .ed-etiqueta {
    display: inline-block; font: 700 11px var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); padding: .2em .6em; border-radius: 4px; margin-right: .4em;
}
.post__content .ed-subsidio blockquote { margin: 0 0 .4em; background: none; border-left: 3px solid var(--border-2); border-radius: 0; }
.post__content .ed-lista { list-style: none; padding: 0; }
.post__content .ed-lista li {
    background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
    padding: .55em .8em; margin: 0 0 .5em; font-family: var(--font-ui); font-size: 16px;
}

/* tópicos numerados e "nesta seção" */
.post__content .ed-topico { margin: 1.6em 0; }
.post__content .ed-nesta-secao {
    background: var(--accent-soft); border-radius: var(--radius); padding: 1em 1.2em; margin: 1.6em 0;
    font-family: var(--font-ui); font-size: 15.5px;
}
.post__content .ed-nesta-secao::before {
    content: "Nesta seção"; display: block; font: 700 12px var(--font-ui); letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent); margin-bottom: .5em;
}
.post__content .ed-nesta-secao p { margin: 0 0 .4em; padding-left: 1.2em; position: relative; }
.post__content .ed-nesta-secao p::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* destaques, Pense! e Ponto importante */
.post__content .ed-destaque {
    font-style: italic; font-weight: 700; font-size: 1.2em; text-align: center; color: var(--text);
    margin: 1.6em auto; max-width: 34em; line-height: 1.5;
}
.post__content .ed-destaque::before { content: "\201C"; display: block; font-size: 2.4em; line-height: .6; color: var(--ouro); }
.post__content .ed-pense,
.post__content .ed-ponto { border-radius: var(--radius); padding: .9em 1.2em; margin: 1.4em 0; font-family: var(--font-ui); font-size: 16px; }
.post__content .ed-pense { background: rgba(212, 166, 74, .14); border-left: 4px solid var(--ouro); }
.post__content .ed-ponto { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.post__content .ed-pense p, .post__content .ed-ponto p { margin: 0; }
.post__content .ed-pense .ed-rotulo { color: var(--ouro); }

/* linhas do tempo */
.post__content .ed-linha-bloco { margin: 1.6em 0; }
.post__content .ed-linha { list-style: none; padding: 0 0 0 30px; position: relative; margin: .4em 0; }
.post__content .ed-linha::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--border-2); }
.post__content .ed-marco {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .75em 1em; margin: 0 0 .7em; font-family: var(--font-ui); font-size: 15.5px; line-height: 1.5;
}
.post__content .ed-marco::before {
    content: ""; position: absolute; left: -29px; top: 1em; width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--muted);
}
.post__content .ed-marco strong { display: block; margin-bottom: .2em; }
.post__content .ed-sub { display: block; color: var(--text-2); font-size: 14.5px; }
.post__content .ed-ambar { background: rgba(212, 166, 74, .12); border-color: rgba(212, 166, 74, .45); }
.post__content .ed-ambar::before { border-color: var(--ouro); }
.post__content .ed-ambar strong { color: var(--ouro); }
.post__content .ed-coral .ed-marco:not(.ed-ambar) { border-left: 3px solid #c0566b; }

/* quadros, texto bíblico, notas, revisão, conclusão, estante */
.post__content .ed-tabela { overflow-x: auto; margin: 1em 0; }
.post__content .ed-tabela table { margin: 0; font-size: 15px; }
.post__content .ed-texto-biblico { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1em 1.2em; margin: 1em 0 1.6em; }
.post__content .ed-texto-biblico blockquote { margin: 0; padding: 0; background: none; border: 0; }
.post__content .ed-nota { background: var(--surface-2); border-left: 4px solid var(--muted); border-radius: 0 var(--radius) var(--radius) 0; padding: .8em 1.1em; margin: 1em 0; font-family: var(--font-ui); font-size: 15px; }
.post__content .ed-nota p { margin: 0 0 .3em; }
.post__content .ed-revisao {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .9em 1.1em; margin: 0 0 .8em; font-family: var(--font-ui);
}
.post__content .ed-pergunta { font-weight: 700; color: var(--text); margin: 0 0 .3em; font-size: 16.5px; }
.post__content .ed-resposta { color: var(--text-2); margin: 0; font-size: 15.5px; }
.post__content .ed-conclusao {
    background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg);
    padding: 1.3em 1.5em; margin: 2em 0;
}
.post__content .ed-conclusao p, .post__content .ed-conclusao strong { color: var(--accent-ink); }
.post__content .ed-conclusao .ed-rotulo { color: var(--accent-ink); opacity: .85; }
.post__content .ed-estante { background: var(--surface); border-left: 4px solid var(--ouro); border-radius: 0 var(--radius) var(--radius) 0; padding: .8em 1.1em; font-family: var(--font-ui); font-size: 15.5px; }
.post__content .ed-objetivos { padding-left: 1.2em; }
.post__content .ed-objetivos li { margin-bottom: .4em; }

/* 05/11: abre-e-fecha (professor, subsídio, outras versões da Bíblia), cartão sozinho
   na grade, quadro com as linhas originais e versículos mais juntos */
.post__content details.ed-professor, .post__content details.ed-subsidio, .post__content details.ed-versao { padding-bottom: 0; }
.post__content details[open].ed-professor, .post__content details[open].ed-subsidio { padding-bottom: 1em; }
.post__content details.ed-versao { border: 1px solid var(--border); border-radius: var(--radius); margin: .8em 0; padding: 0 1.2em; background: var(--surface); }
.post__content details[open].ed-versao { padding-bottom: 1em; }
.post__content summary.ed-cab { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4em; }
.post__content summary.ed-cab::-webkit-details-marker { display: none; }
.post__content summary.ed-cab::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.post__content details[open] > summary.ed-cab::after { transform: rotate(180deg); }
.post__content details:not([open]) > summary.ed-cab { margin-bottom: 0; border-bottom: 0; border-radius: var(--radius); }
.post__content .ed-grade > :only-child { grid-column: 1 / -1; }
.post__content .ed-quadro { font-family: var(--font-ui); font-size: 15px; line-height: 1.6; margin: 0; }
.post__content .ed-texto-biblico p { margin: 0 0 .45em; }

/* 05/11: versículo em caixa (modelos de lição do 2º trimestre) */
.post__content .ed-versiculo {
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ouro);
    border-radius: 0 var(--radius) var(--radius) 0; padding: .8em 1.1em; margin: 1em 0;
    font-style: italic; color: var(--text-2);
}
.post__content .ed-versiculo .ed-ref { margin: 0 0 .3em; font-style: normal; }
.post__content .ed-versiculo p { margin: 0 0 .3em; }
.post__content .ed-versiculo-txt { font-style: italic; color: var(--text-2); border-left: 3px solid var(--ouro); padding-left: .8em; }

/* 05/11: Escola Dominical por trimestre (CategoryController::porTrimestre) */
.ed-tri { margin: 0 0 2.2em; }
.ed-tri__titulo {
    font: 800 20px/1.3 var(--font-ui); color: var(--text); margin: 0 0 .7em;
    padding-bottom: .4em; border-bottom: 2px solid var(--accent-soft);
}
.ed-tri__titulo span { color: var(--accent); font-weight: 700; }
.ed-tri__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ed-tri__lista a {
    display: flex; align-items: center; gap: 12px; height: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 14px; color: var(--text); text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.ed-tri__lista a:hover { border-color: var(--accent); transform: translateY(-1px); }
.ed-tri__num {
    flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); border-radius: 8px;
    font: 800 14px var(--font-ui);
}
.ed-tri__nome { flex: 1; font: 600 15.5px/1.35 var(--font-ui); }
.ed-tri__seta { color: var(--muted); }

/* cartão em linha sem foto: o texto ocupa a largura (antes ficava empurrado para a direita) */
.card--row.card--sem-foto { flex-direction: column; }
.card--row.card--sem-foto .card__body { width: 100%; }

/* 08/11/2026: abas do texto bíblico (Revista Atualizada | NVI | ARC); o clique está em app.js */
.post__content .ed-abas { margin: 1em 0 1.6em; }
.post__content .ed-abas-cab { display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: -1px; position: relative; z-index: 1; }
.post__content .ed-aba { cursor: pointer; padding: .5em .95em; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); color: var(--muted); font: 600 13px var(--font-ui); user-select: none; }
.post__content .ed-aba:hover { color: var(--text); }
.post__content .ed-aba.ed-ativa { background: var(--surface); color: var(--accent); }
.post__content .ed-painel { display: none; }
.post__content .ed-painel.ed-ativa { display: block; }
.post__content .ed-abas .ed-texto-biblico { margin-top: 0; border-top-left-radius: 0; }
