@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --red: #e30613;
    --red-dark: #b30410;
    --ink: #101418;
    --muted: #5c6672;
    --line: #e6e8ec;
    --soft: #f4f5f7;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(16, 20, 24, .08);
    --font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

a:hover { color: var(--red); }

a, button, input, textarea, select { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.2px; }

p { margin: 0 0 16px; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Cabeçalho ---------- */
.site-header {
    background: var(--header-bg, var(--red));
    color: var(--header-text, var(--white));
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 40;
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--header-text, var(--white));
    flex-shrink: 0;
}

.brand:hover { color: var(--header-text, var(--white)); }
.brand-footer, .brand-footer:hover { color: #fff; }

.brand-mark { width: 44px; height: 44px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark path { fill: var(--red, #e30613); }

.brand-text { display: flex; flex-direction: column; line-height: .95; }
.brand-text small { font-size: 12px; font-weight: 600; letter-spacing: 3px; }
.brand-text strong { font-size: 23px; font-weight: 700; letter-spacing: 1px; }

.brand-image { max-height: 46px; width: auto; }
.brand-image-footer { max-height: 56px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.main-nav a { padding: 8px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--header-text, #fff); border-bottom-color: rgba(255, 255, 255, .5); border-bottom-color: color-mix(in srgb, var(--header-accent, #fff) 55%, transparent); }
.main-nav a.is-active { border-bottom-color: var(--header-accent, #fff); }

.header-tools { display: flex; align-items: center; gap: 18px; }

.header-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .16);
    border-radius: 30px;
    padding: 4px 6px 4px 14px;
}

.header-search input {
    width: 96px;
    background: transparent;
    border: 0;
    color: var(--header-text, #fff);
    font-size: 13px;
    outline: none;
    transition: width .2s ease;
}

.header-search input::placeholder { color: rgba(255, 255, 255, .75); color: color-mix(in srgb, var(--header-text, #fff) 72%, transparent); }
.header-search input:focus { width: 160px; }

.header-search button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    background: color-mix(in srgb, var(--header-text, #fff) 18%, transparent);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.header-search button svg { width: 15px; height: 15px; fill: currentColor; color: var(--header-text, #fff); }

.live-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .8px;
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    background: var(--header-accent, #fff);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--header-accent, #fff) 25%, transparent);
    animation: pulse 1.6s infinite;
}

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

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span { display: block; height: 2px; background: var(--header-text, #fff); border-radius: 2px; }

.nav-close, .nav-scrim { display: none; }

/* ---------- Faixa de últimas ---------- */
.ticker {
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: #6a727d;
}

.ticker-inner { display: flex; align-items: center; gap: 14px; height: 42px; overflow: hidden; }

.ticker-label {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--red);
    border-right: 1px solid var(--line);
    padding-right: 14px;
}

.ticker-window { overflow: hidden; position: relative; flex: 1; }

.ticker-track {
    display: flex;
    gap: 44px;
    width: max-content;
    animation: ticker 60s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { white-space: nowrap; color: #6a727d; }
.ticker-track a:hover { color: var(--cat, var(--red)); }
.ticker-track strong { color: var(--red); font-weight: 700; }

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Estrutura ---------- */
.site-main { padding-bottom: 56px; }

.ad-top { margin-top: 22px; }

.ad-slot { margin: 0 auto 26px; text-align: center; }
.ad-slot img { margin: 0 auto; border-radius: 4px; max-width: 100%; height: auto; }
.ad-label {
    display: block;
    font-size: 9px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #9aa2ad;
    margin-bottom: 6px;
}

.ad-slider { position: relative; }
.ad-slider-viewport { overflow: hidden; border-radius: 4px; }
.ad-slider-track { display: flex; transition: transform .35s ease; }
.ad-slide { flex: 0 0 100%; min-width: 100%; }
.ad-slide img { display: block; margin: 0 auto; border-radius: 4px; max-width: 100%; height: auto; }
.ad-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 14, 20, .55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}
.ad-slider:hover .ad-slider-nav,
.ad-slider:focus-within .ad-slider-nav { opacity: 1; }
.ad-slider-nav:hover { background: rgba(10, 14, 20, .8); }
.ad-slider-nav.is-prev { left: 6px; }
.ad-slider-nav.is-next { right: 6px; }

@media (max-width: 900px) {
    .ad-slider-nav { opacity: 1; }
}

.ad-placeholder {
    border: 1px dashed #d3d7de;
    border-radius: 8px;
    background: #fafbfc;
    min-height: 90px;
    display: grid;
    place-items: center;
    color: #98a1ac;
    font-size: 12px;
    padding: 18px;
}

.ad-header img { max-height: 190px; width: auto; }
.ad-band { margin: 10px auto 34px; }

/* ---------- Destaque ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
    gap: 36px;
    margin: 6px auto 34px;
}

.hero-featured { min-width: 0; }

.hero-media {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--soft);
    aspect-ratio: 16 / 9;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-featured:hover .hero-media img { transform: scale(1.02); }

.hero-media-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: #8994a1;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text { padding-top: 18px; }

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #2a3138;
}

.category-tag:hover { color: var(--red); }

.tag-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.hero-text h1 {
    font-size: clamp(26px, 2.6vw, 37px);
    font-weight: 700;
    margin: 10px 0 12px;
}

.hero-text h1 a:hover { color: var(--cat, var(--red)); }

.hero-excerpt { color: #4a535d; font-size: 16px; margin-bottom: 10px; }

.meta { font-size: 12px; color: #8b939e; }

.hero-list { border-left: 1px solid var(--line); padding-left: 30px; }

.hero-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.hero-list-head h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.hero-list-head .live-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent); }

.mini { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini-media { width: 108px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--soft); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { display: block; min-width: 0; }
.mini-title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 6px 0; }
.mini:hover .mini-title { color: var(--cat, var(--red)); }
.mini-excerpt { display: block; font-size: 12.5px; color: #7b838e; line-height: 1.45; }

/* ---------- Cards ---------- */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.section-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }

.section-head-tinted { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }

.section-bar { width: 5px; height: 22px; border-radius: 3px; }

.section-more { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--red); }

.latest { margin: 12px auto 42px; }

.card-grid { display: grid; gap: 26px 22px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-media {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--soft);
}

.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }

.card-media-empty { display: grid; place-items: center; height: 100%; font-size: 12px; color: #98a1ac; text-transform: uppercase; letter-spacing: .8px; }

.card-body { padding-top: 12px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 7px 0 6px; }
.card-title a:hover { color: var(--cat, var(--red)); }
.card-excerpt { font-size: 13px; color: #6c7681; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-compact .card-title { font-size: 15px; }

/* ---------- Editorias + lateral ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: start;
}

.editoria { margin-bottom: 44px; }

.sidebar { display: flex; flex-direction: column; gap: 26px; }

.widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.widget-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--red);
}

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.4; }
.rank-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank { color: var(--red); font-weight: 700; font-size: 16px; width: 18px; flex-shrink: 0; }
.rank-list a:hover { color: var(--cat, var(--red)); }

.live-widget { background: #14181d; color: #fff; border-color: #14181d; }
.live-widget h2 { font-size: 20px; margin: 10px 0 8px; }
.live-widget p { font-size: 13.5px; color: #b9c2cc; }
.live-flag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ff5a63; }
.live-flag .live-dot { background: var(--red, #ff3b46); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-light { background: #fff; color: #14181d; margin-top: 6px; }
.btn-light:hover { background: #f1f3f5; color: #14181d; }

/* ---------- Artigo ---------- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
    margin-top: 26px;
}

.article { max-width: 820px; }

.breadcrumb { font-size: 12px; color: #8b939e; display: flex; gap: 8px; margin-bottom: 18px; }
.breadcrumb a { color: #6c7681; }
.breadcrumb a:hover { color: var(--red); }

.article-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; margin: 12px 0 14px; }

.article-lead { font-size: 18.5px; color: #4a535d; line-height: 1.55; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 12.5px;
    color: #818a95;
    padding: 14px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.article-cover { margin: 0 0 26px; }
.article-cover img { border-radius: var(--radius); width: 100%; }
.article-cover figcaption { font-size: 12px; color: #8b939e; margin-top: 8px; }

.article-body { font-size: 18px; line-height: 1.75; color: #222a31; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 27px; margin: 34px 0 14px; }
.article-body h3 { font-size: 22px; margin: 30px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--red);
    background: #faf4f4;
    font-size: 20px;
    line-height: 1.5;
    font-style: italic;
}
.article-body img { border-radius: 8px; margin: 20px auto; }
.article-body figure { margin: 24px 0; }

.content-gallery { margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fbfcfd; }
.content-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.content-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.content-gallery figcaption { font-size: 12.5px; color: #6c7681; margin-top: 10px; }

.content-video { position: relative; padding-top: 56.25%; margin: 26px 0; border-radius: 10px; overflow: hidden; background: #000; }
.content-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article .ad-slot { margin: 30px 0; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 34px 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: #6c7681; }
.share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.share-btn.share-whatsapp svg { width: 19px; height: 19px; }
.share-btn.share-telegram svg { width: 16px; height: 16px; }
.share-link svg { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #0f1419; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-link { background: #4b5563; }
.share-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.share-feedback { font-size: 12px; font-weight: 600; color: #18794e; }

.related { margin-top: 34px; }

/* ---------- Páginas de listagem ---------- */
.page-head { margin: 34px auto 26px; }
.page-head h1 { font-size: clamp(28px, 3vw, 38px); margin: 8px 0 6px; }
.page-head p { color: #5c6672; max-width: 720px; margin: 0; }
.page-count { display: inline-block; font-size: 12px; color: #8b939e; margin-top: 6px; }

.page-search { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.page-search input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.page-search input:focus { outline: 2px solid rgba(227, 6, 19, .2); outline: 2px solid color-mix(in srgb, var(--red) 20%, transparent); border-color: var(--red); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.page-link { padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: #5c6672; }
.page-link:hover { border-color: var(--red); color: var(--red); }
.page-link.is-current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

.empty-state { padding: 34px; text-align: center; color: #8994a1; background: var(--soft); border-radius: var(--radius); font-size: 14px; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--soft); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 14px 10px;
    color: #fff;
    font-size: 12.5px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 12, .92);
    display: none;
    place-items: center;
    z-index: 90;
    padding: 28px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }
.lightbox-nav { position: absolute; background: rgba(255, 255, 255, .14); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ---------- Rodapé ---------- */
.site-footer { background: #12161b; color: #c8d0da; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 46px 20px 34px; }
.site-footer h3 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.site-footer a { color: #c8d0da; }
.site-footer a:hover { color: #fff; }
.site-footer li { display: flex; align-items: center; gap: 9px; }
.site-footer li .icon { width: 15px; height: 15px; flex: 0 0 15px; color: #8d97a3; transition: color .15s; }
.site-footer li:hover .icon { color: #fff; }
.footer-brand p { font-size: 13.5px; color: #9aa4b0; max-width: 300px; }
.footer-address { font-size: 12.5px; }
.brand-footer { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #242a31; font-size: 12px; color: #8d97a3; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }

/* ---------- Erros / flash ---------- */
.error-page { text-align: center; padding: 90px 20px; max-width: 640px; }
.error-code { color: var(--red); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.error-page h1 { margin: 12px 0 24px; font-size: 28px; }

.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; }
.flash-success { background: #e9f7ef; color: #1c6b3f; border: 1px solid #bfe6cf; }
.flash-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f6c9c9; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
    .main-nav { gap: 14px; font-size: 12.5px; }
    .header-search input { width: 70px; }
    .split, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ad-top { margin-top: 16px; }
}

@media (max-width: 900px) {
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .brand { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
    .nav-toggle { display: flex; grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
    .header-tools { grid-column: 2; grid-row: 1; justify-self: center; justify-content: center; margin: 0; }
    .header-search { display: none; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 84vw);
        margin: 0;
        padding: 70px 26px 26px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--header-bg, #c10511);
        background-image: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .16));
        color: var(--header-text, #fff);
        box-shadow: -18px 0 46px rgba(0, 0, 0, .32);
        transform: translateX(104%);
        visibility: hidden;
        transition: transform .28s ease, visibility .28s;
        overflow-y: auto;
        z-index: 70;
    }
    .main-nav.is-open { transform: translateX(0); visibility: visible; }
    .main-nav a {
        width: 100%;
        padding: 12px 0;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
        border-bottom-color: color-mix(in srgb, var(--header-text, #fff) 20%, transparent);
    }
    .main-nav a.is-active { border-bottom-color: var(--header-accent, #fff); }

    .nav-close {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 14px;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: rgba(0, 0, 0, .2);
        color: var(--header-text, #fff);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8, 10, 14, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s;
        z-index: 65;
    }
    .nav-scrim.is-open { opacity: 1; visibility: visible; }

    body.nav-open { overflow: hidden; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .hero-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
    .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .site-main { padding-bottom: 36px; }
    .header-tools .live-link { font-size: 11px; }
    .brand-text strong { font-size: 20px; }
    .hero-text h1 { font-size: 26px; }
    .card-grid-4, .card-grid-3, .sidebar, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .article-body { font-size: 17px; }
    .article-title { font-size: 28px; }
    .article-lead { font-size: 17px; }
    .share { flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .brand { gap: 7px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-text small { font-size: 10px; letter-spacing: 2px; }
    .brand-text strong { font-size: 18px; }
    .header-tools .live-link { font-size: 10.5px; }
}

@media (max-width: 340px) {
    .brand-text { display: none; }
}
