/* ============================================================
   Public site styles
   ============================================================ */

:root {
    --bg:            #ffffff;
    --bg-soft:       #f7f7f9;
    --bg-elevated:   #ffffff;
    --text:          #111827;
    --text-muted:    #6b7280;
    --text-invert:   #ffffff;
    --border:        #e5e7eb;
    --border-strong: #d1d5db;

    --primary:       #c8102e;
    --primary-hover: #a50d25;
    --accent:        #111827;

    --radius:        10px;
    --radius-sm:     6px;
    --shadow-sm:     0 1px 2px rgba(0,0,0,.05);
    --shadow-md:     0 4px 14px rgba(0,0,0,.06);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;

    --maxw:          1200px;
    --maxw-narrow:   760px;
}

[data-theme="dark"] {
    --bg:            #0b1120;
    --bg-soft:       #111827;
    --bg-elevated:   #1f2937;
    --text:          #f1f5f9;
    --text-muted:    #94a3b8;
    --border:        #1f2937;
    --border-strong: #334155;
    --primary:       #ef4444;
    --primary-hover: #dc2626;
    --accent:        #f1f5f9;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.site {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 .5em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -40px; left: 8px;
    background: var(--primary); color: #fff;
    padding: 8px 14px; border-radius: var(--radius-sm);
    z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: var(--radius-sm);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn--primary {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.site-logo i { color: var(--primary); }
.site-logo:hover { color: var(--primary); }

.primary-nav { margin-left: 8px; }
.primary-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 18px; align-items: center;
    flex-wrap: wrap;
}
.primary-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.site-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__actions button,
.header-social {
    background: none;
    border: 1px solid transparent;
    color: var(--text);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
}
.site-header__actions button:hover,
.header-social:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

[data-theme="dark"]  .theme-icon--light { display: none; }
[data-theme="light"] .theme-icon--dark  { display: none; }

.nav-toggle { display: none; }

/* Search drawer */
.site-search {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 12px 0;
}
.site-search__inner {
    display: flex; align-items: center; gap: 10px;
    position: relative;
}
.site-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.site-search > .site-search__inner > i {
    color: var(--text-muted);
}
.search-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 18px;
}

/* ============================================================
   Breaking ticker
   ============================================================ */

.breaking-ticker {
    display: flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
}
.breaking-ticker__label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: rgba(0,0,0,.15);
    font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    font-size: 12px;
    white-space: nowrap;
}
.breaking-ticker__track { overflow: hidden; }
.breaking-ticker__list {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 8px 20px;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    font-size: 14px;
}
.breaking-ticker__item { color: #fff; }
.breaking-ticker__item:hover { color: #ffe4e6; }
.breaking-ticker__sep  { opacity: .6; }

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    padding: 32px 20px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.hero__main {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero__media { display: block; }
.hero__media img,
.hero__media .img-placeholder {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.hero__body { padding: 20px 22px 24px; }
.hero__cat {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 3px 10px; border-radius: 99px;
    margin-bottom: 10px;
}
.hero__title {
    font-size: clamp(22px, 2.6vw, 34px);
    margin: 0 0 10px;
}
.hero__title a { color: inherit; }
.hero__excerpt { color: var(--text-muted); margin: 0 0 14px; }

.hero__side { display: grid; gap: 14px; }
.hero__card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.hero__card-media img,
.hero__card-media .img-placeholder {
    width: 130px; height: 90px; object-fit: cover;
}
.hero__card-body { padding: 10px 12px 10px 0; }
.hero__card-title {
    font-size: 15px;
    margin: 4px 0 6px;
    line-height: 1.3;
}

/* ============================================================
   Cards / grid
   ============================================================ */

.block { padding: 32px 20px; max-width: var(--maxw); margin: 0 auto; }
.block__header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.block__title {
    font-size: 20px; margin: 0;
    display: inline-flex; align-items: center; gap: 8px;
}
.block__title i { color: var(--primary); }
.block__link {
    font-size: 13px; font-weight: 600; color: var(--primary);
}
.block__link i { font-size: 11px; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__media { display: block; }
.card__media img,
.card__media .img-placeholder {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.card__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card__cat {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--primary);
    margin-bottom: 6px;
}
.card__title {
    font-size: 17px; line-height: 1.3;
    margin: 0 0 8px;
}
.card__title--sm { font-size: 15px; }
.card__excerpt { color: var(--text-muted); font-size: 14px; margin: 0 0 10px; }

.meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    color: var(--text-muted); font-size: 13px;
    margin-top: auto;
}
.meta--sm { font-size: 12px; gap: 10px; }
.meta__item { display: inline-flex; align-items: center; gap: 5px; }
.meta__item i { font-size: 11px; }

.img-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    width: 100%;
}
[data-theme="dark"] .img-placeholder {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 15px;
}

/* Trending list */
.block--trending .trending-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.trending-list__item {
    display: grid;
    grid-template-columns: 32px 90px 1fr;
    gap: 12px; align-items: center;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
}
.trending-list__rank {
    font-family: var(--font-serif);
    font-size: 22px; font-weight: 700;
    color: var(--primary);
    text-align: center;
}
.trending-list__media img { width: 90px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.trending-list__title { font-size: 15px; margin: 0 0 4px; line-height: 1.3; }

/* ============================================================
   Article page
   ============================================================ */

.article__container { max-width: 780px; }
.article__header { padding: 24px 0 12px; }
.article__cat {
    display: inline-block;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    padding: 3px 10px; border-radius: 99px;
    margin-bottom: 10px;
}
.article__title { font-size: clamp(26px, 3.2vw, 40px); margin: 0 0 12px; }
.article__lede { font-size: 18px; color: var(--text-muted); margin: 0 0 16px; }
.article__meta { margin-bottom: 18px; }
.article__meta a { color: var(--primary); }

.article__figure { margin: 20px 0; }
.article__figure img { width: 100%; border-radius: var(--radius); }
.article__figure figcaption {
    font-size: 13px; color: var(--text-muted);
    padding-top: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.article__body {
    font-family: var(--font-serif);
    font-size: 18px; line-height: 1.75;
    color: var(--text);
}
.article__body p  { margin: 0 0 1.2em; }
.article__body h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.article__body h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.article__body a  { color: var(--primary); text-decoration: underline; }
.article__body img { border-radius: var(--radius); margin: 1em 0; }
.article__body blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.4em 0; padding: 4px 16px;
    color: var(--text-muted);
    font-style: italic;
}
.article__body ul, .article__body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article__body code {
    background: var(--bg-soft); padding: 2px 5px;
    border-radius: 4px; font-size: .9em;
}

.article__share {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 24px;
}
.article__share-label { font-weight: 600; margin-right: 6px; }
.share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
}
.share-btn--fb { background: #1877f2; }
.share-btn--tg { background: #229ED9; }
.share-btn--wa { background: #25D366; }
.share-btn--x  { background: #000; }

.author-box {
    display: flex; gap: 14px; align-items: flex-start;
    margin-top: 24px; padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.author-box__avatar {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.author-box__name { font-size: 16px; margin: 0 0 4px; }
.author-box__bio  { color: var(--text-muted); margin: 0; font-size: 14px; }

.article-nav {
    background: var(--bg-soft);
    padding: 20px 0;
    margin-top: 32px;
}
.article-nav__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.article-nav__link {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 18px; background: var(--bg-elevated);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.article-nav__link--next { text-align: right; }
.article-nav__dir {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--primary);
}
.article-nav__title { font-family: var(--font-serif); font-size: 16px; line-height: 1.3; }

.block--related { padding-top: 40px; }

/* ============================================================
   Archive headers / search / author
   ============================================================ */

.archive-header { padding: 24px 0; }
.archive-header__title {
    font-size: 28px; margin: 0 0 6px;
    display: inline-flex; align-items: center; gap: 10px;
}
.archive-header__title i { color: var(--primary); }
.archive-header__desc  { color: var(--text-muted); margin: 0 0 6px; }
.archive-header__count { color: var(--text-muted); font-size: 13px; margin: 0; }

.breadcrumbs { padding: 14px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }

.search-form {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 0 24px;
}
.search-form i { color: var(--text-muted); }
.search-form input[type="search"] {
    flex: 1; padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated); color: var(--text); font: inherit;
}

.author-header {
    display: flex; gap: 20px; align-items: center;
    padding: 24px 0 32px;
}
.author-header__avatar {
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; flex-shrink: 0;
}
.author-header__name { font-size: 26px; margin: 0 0 4px; }
.author-header__role { color: var(--primary); font-weight: 600; margin: 0 0 6px; font-size: 14px; }
.author-header__bio  { color: var(--text-muted); margin: 0 0 8px; }
.author-header__count { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ============================================================
   Pagination
   ============================================================ */

.pagination { margin: 32px 0; }
.pagination ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.pagination a,
.pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-elevated); color: var(--text);
    font-size: 14px;
}
.pagination .active span {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.pagination .disabled span { opacity: .4; }
.pagination .ellipsis span { border: none; background: none; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   Flash
   ============================================================ */

.flash { padding: 10px 0; font-size: 14px; }
.flash--success { background: #ecfdf5; color: #065f46; }
.flash--error   { background: #fef2f2; color: #7f1d1d; }
.flash--warning { background: #fffbeb; color: #78350f; }

/* ============================================================
   Error page
   ============================================================ */

.error-page { text-align: center; padding: 60px 20px; }
.error-page__icon { font-size: 60px; color: var(--primary); margin: 0; }
.error-page__title { font-size: 64px; margin: 8px 0; }
.error-page__message { color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--accent);
    color: #cbd5e1;
    margin-top: 40px;
    padding: 40px 0 0;
}
[data-theme="light"] .site-footer { background: #111827; }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}
.site-footer__title { color: #fff; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-sans); }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 6px; font-size: 14px; }
.site-footer__list a { color: #cbd5e1; }
.site-footer__list a:hover { color: #fff; }

.site-logo--footer { color: #fff; }
.site-footer__about { font-size: 14px; color: #94a3b8; margin: 8px 0 14px; }

.social-row { display: flex; gap: 10px; }
.social-row a {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 14px;
}
.social-row a:hover { background: var(--primary); }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 40;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center; justify-content: center;
        width: 40px; height: 40px;
        background: none; border: none;
        font-size: 18px; color: var(--text);
        cursor: pointer;
    }
    .primary-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .2s ease;
    }
    .primary-nav.is-open { max-height: 70vh; overflow-y: auto; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
    .primary-nav a { padding: 12px 20px; border-bottom: none; border-left: 3px solid transparent; }
    .primary-nav a:hover, .primary-nav a[aria-current="page"] {
        border-left-color: var(--primary); border-bottom-color: transparent;
        background: var(--bg-soft);
    }

    .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .hero__card { grid-template-columns: 100px 1fr; }
    .hero__card-media img,
    .hero__card-media .img-placeholder { width: 100px; height: 70px; }

    .trending-list__item { grid-template-columns: 28px 70px 1fr; }
    .trending-list__media img { width: 70px; height: 50px; }

    .article-nav__inner { grid-template-columns: 1fr; }
    .article-nav__link--next { text-align: left; }

    .author-header { flex-direction: column; text-align: center; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 20px 16px; }
    .block { padding: 24px 16px; }
    .site-header__actions .header-social { display: none; }
    .article__title { font-size: 26px; }
}

/* ============================================================
   Dashboard — stat cards as links + icons
   ============================================================ */

.admin-stats a.stat-card {
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    position: relative;
}
.admin-stats a.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
    border-color: var(--primary);
}
.admin-stats a.stat-card:hover .stat-card__value { color: var(--primary); }

.stat-card__icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    font-size: 13px;
}
[data-theme="dark"] .stat-card__icon {
    background: rgba(59, 130, 246, .15);
}

.stat-card__value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    transition: color .12s ease;
}

/* ============================================================
   Dashboard — panel title icons + empty states
   ============================================================ */

.admin-panel__title i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 14px;
}

.admin-panel__link i {
    font-size: 11px;
    margin-left: 2px;
}

.admin-empty i {
    display: block;
    font-size: 26px;
    color: var(--text-muted);
    margin-bottom: 8px;
    opacity: .6;
}

/* ============================================================
   Dashboard — activity feed dots
   ============================================================ */

.activity-feed__item {
    grid-template-columns: 14px auto 1fr auto;
}
.activity-feed__icon {
    color: var(--primary);
    font-size: 7px;
    display: inline-flex;
    align-items: center;
    align-self: start;
    padding-top: 6px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--accent, #111827);
    color: #cbd5e1;
    margin-top: 40px;
    padding: 40px 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr 1fr;
    gap: 28px;
    padding-bottom: 30px;
}
@media (max-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 22px; }
}

.site-footer__title {
    color: #fff;
    font-size: 13px;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-family: var(--font-sans, sans-serif);
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__list li { margin-bottom: 8px; font-size: 14px; }
.site-footer__list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .12s ease;
}
.site-footer__list a:hover { color: #fff; text-decoration: underline; }

.site-logo--footer {
    color: #fff;
    margin-bottom: 8px;
}
.site-footer__about {
    font-size: 14px;
    color: #94a3b8;
    margin: 8px 0 14px;
    line-height: 1.55;
}

/* Social icons */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, transform .12s ease;
}
.social-row a:hover {
    background: var(--primary, #c8102e);
    transform: translateY(-2px);
}

/* Newsletter form */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-newsletter input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.footer-newsletter input[type="email"]::placeholder { color: #94a3b8; }
.footer-newsletter input[type="email"]:focus {
    border-color: var(--primary, #c8102e);
    background: rgba(255, 255, 255, .1);
}
.footer-newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: var(--primary, #c8102e);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s ease;
}
.footer-newsletter button:hover { background: var(--primary-hover, #a50d25); }

.footer-newsletter__note {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Bottom bar */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 0;
}
.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}
.site-footer__bottom-inner p { margin: 0; }
.site-footer__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-footer__meta a {
    color: #94a3b8;
    text-decoration: none;
}
.site-footer__meta a:hover { color: #fff; }

/* Back-to-top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary, #c8102e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    z-index: 40;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    color: #fff;
}

/* Screen-reader-only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Dark mode tweaks
   ============================================================ */
[data-theme="dark"] .site-footer { background: #020617; }
[data-theme="dark"] .footer-newsletter input[type="email"] {
    background: rgba(255, 255, 255, .04);
}

/* ============================================================
   Breaking news ticker
   ============================================================ */

.breaking {
    display: flex;
    align-items: center;
    background: var(--breaking-color, #c8102e);
    color: var(--breaking-text, #fff);
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 0;
}
.container > .breaking {
    border-radius: 8px;
    margin-top: 16px;
}

.breaking__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, .15);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking__icon {
    animation: breaking-pulse 1.6s ease-in-out infinite;
}
@keyframes breaking-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .6; transform: scale(.9); }
}

.breaking__track {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.breaking__list {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    white-space: nowrap;
    animation: breaking-scroll var(--breaking-duration, 45s) linear infinite;
    font-size: 14px;
}
.breaking--pause-hover:hover .breaking__list {
    animation-play-state: paused;
}

.breaking__item {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    transition: opacity .15s ease;
}
.breaking__item:hover {
    color: inherit;
    text-decoration: underline;
    opacity: .9;
}
.breaking__title { color: inherit; }

.breaking__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255, 255, 255, .2);
    padding: 2px 8px;
    border-radius: 99px;
}

.breaking__sep { opacity: .5; }

.breaking__cta {
    padding: 10px 18px;
    background: rgba(0, 0, 0, .15);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s ease;
}
.breaking__cta:hover {
    background: rgba(0, 0, 0, .25);
    color: inherit;
}

@keyframes breaking-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Pill */
.breaking--pill {
    border-radius: 99px;
    padding: 2px;
    margin-left: 20px;
    margin-right: 20px;
}
.breaking--pill .breaking__label { border-radius: 99px 0 0 99px; padding: 8px 16px; }
.breaking--pill .breaking__cta   { border-radius: 0 99px 99px 0; }

/* Minimal */
.breaking--minimal {
    background: transparent;
    color: var(--text, #111827);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    margin-top: 16px;
}
.breaking--minimal .breaking__label {
    background: var(--breaking-color, #c8102e);
    color: var(--breaking-text, #fff);
}
.breaking--minimal .breaking__cat {
    background: var(--bg-soft, #f3f4f6);
    color: var(--text-muted, #6b7280);
}
.breaking--minimal .breaking__cta {
    background: var(--bg-soft, #f3f4f6);
    color: var(--primary, #c8102e);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .breaking__list { animation: none; }
    .breaking__icon { animation: none; }
}

/* Mobile */
@media (max-width: 640px) {
    .breaking__label { padding: 8px 12px; font-size: 10px; }
    .breaking__list  { padding: 9px 16px; font-size: 13px; }
    .breaking__cta   { padding: 9px 12px; font-size: 11px; }
    .breaking--pill  { margin-left: 12px; margin-right: 12px; }
}

.continue-reading {
    padding: 32px 0;
    border-top: 1px solid var(--border, #e5e7eb);
    margin-top: 40px;
}
.continue-reading__header {
    margin-bottom: 20px;
}
.continue-reading__title {
    margin: 0;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 20px;
    display: inline-flex; align-items: center; gap: 10px;
}
.continue-reading__title i { color: var(--primary, #c8102e); font-size: 16px; }

.continue-reading__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.continue-reading__card {
    display: flex; flex-direction: column;
    background: var(--bg-panel, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.continue-reading__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    text-decoration: none;
}
.continue-reading__media {
    display: block; aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    overflow: hidden;
}
.continue-reading__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.continue-reading__body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}
.continue-reading__cat {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--primary, #c8102e);
}
.continue-reading__title-text {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 15px; line-height: 1.3;
}
.continue-reading__meta {
    font-size: 12px; color: var(--text-muted, #6b7280);
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto;
}
.continue-reading__progress {
    display: block; height: 4px; background: var(--bg, #f3f4f6);
    border-radius: 2px; overflow: hidden; flex: 1;
    max-width: 80px;
}
.continue-reading__progress-bar {
    display: block; height: 100%; background: var(--primary, #c8102e);
}
.continue-reading__label {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}