:root {
    --news-bg: #f7f1e7;
    --news-paper: #fffdf8;
    --news-card: rgba(255, 255, 255, 0.82);
    --news-ink: #141923;
    --news-muted: #6b7280;
    --news-border: rgba(20, 25, 35, 0.1);
    --news-line: rgba(20, 25, 35, 0.08);
    --news-accent: #a2252a;
    --news-accent-dark: #7d1a1f;
    --news-secondary: #102748;
    --news-gold: #c3923a;
    --news-shadow: 0 26px 60px rgba(17, 24, 39, 0.12);
    --news-radius: 26px;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--news-ink);
    background:
        radial-gradient(circle at top left, rgba(194, 146, 58, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 39, 72, 0.1), transparent 22%),
        linear-gradient(180deg, #faf6ef 0%, #f5efe5 40%, #efe6d8 100%);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.news-topbar {
    background: #111827;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.news-topbar-inner,
.news-navbar-inner,
.site-main,
.news-footer-inner {
    width: min(1320px, calc(100% - 2rem));
    margin: 0 auto;
}

.news-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
}

.news-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-socials a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

.news-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(18px);
    background: rgba(250, 246, 239, 0.86);
    border-bottom: 1px solid rgba(20, 25, 35, 0.06);
}

.news-navbar-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--news-accent), var(--news-gold));
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 18px 30px rgba(162, 37, 42, 0.18);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy span {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--news-muted);
}

.brand-copy strong {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.15;
}

.nav-toggle {
    display: none;
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 39, 72, 0.1), rgba(162, 37, 42, 0.12));
    color: var(--news-secondary);
    box-shadow: 0 12px 24px rgba(16, 39, 72, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(16, 39, 72, 0.12);
}

.nav-toggle-lines {
    width: 20px;
    height: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle-lines span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.18s ease, width 0.22s ease;
}

.nav-toggle-lines span:nth-child(2) {
    width: 75%;
    align-self: flex-end;
}

.nav-toggle.is-active {
    background: linear-gradient(135deg, var(--news-secondary), #183b6d);
    color: #fff;
}

.nav-toggle.is-active .nav-toggle-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

.nav-toggle.is-active .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.news-nav-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.news-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-menu a,
.news-menu button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: var(--news-ink);
}

.news-menu a.active,
.news-menu a:hover,
.news-menu button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--news-secondary), #183b6d);
}

.news-search-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    min-width: min(360px, 100%);
}

.news-search-input {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(20, 25, 35, 0.1);
    background: rgba(255, 255, 255, 0.86);
    padding: 0 1rem;
    box-shadow: none;
}

.news-search-input:focus {
    outline: none;
    border-color: rgba(162, 37, 42, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(162, 37, 42, 0.12);
}

.news-search-submit,
.news-button,
.news-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.news-search-submit,
.news-button {
    color: #fff;
    background: linear-gradient(135deg, var(--news-accent), var(--news-accent-dark));
    box-shadow: 0 16px 30px rgba(162, 37, 42, 0.2);
}

.news-search-submit:hover,
.news-button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.news-button-outline {
    color: var(--news-secondary);
    border-color: rgba(16, 39, 72, 0.16);
    background: rgba(255, 255, 255, 0.75);
}

.news-button-outline:hover {
    color: var(--news-secondary);
    background: #fff;
}

.dropdown-menu {
    border: 1px solid rgba(20, 25, 35, 0.08);
    box-shadow: var(--news-shadow);
    border-radius: 20px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    font-weight: 600;
}

.dropdown-item:hover {
    background: rgba(16, 39, 72, 0.07);
}

.site-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.section-block {
    margin-bottom: 2rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-heading p {
    margin: 0.35rem 0 0;
    color: var(--news-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: var(--news-accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.panel-card,
.story-card,
.feature-hero,
.side-list-card,
.article-shell,
.sidebar-panel,
.auth-panel {
    background: var(--news-card);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--news-radius);
    box-shadow: var(--news-shadow);
    backdrop-filter: blur(14px);
}

.feature-hero {
    overflow: hidden;
}

.feature-media,
.story-card-media,
.mini-story-media,
.interview-media {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--news-radius) - 6px);
}

.feature-media img,
.story-card-media img,
.mini-story-media img,
.interview-media img,
.story-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-media {
    min-height: 420px;
}

.feature-media::after,
.story-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 18, 0.05), rgba(7, 11, 18, 0.55));
}

.feature-content {
    padding: 1.6rem;
}

.news-kicker,
.news-badge,
.sponsored-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-kicker,
.news-badge {
    background: rgba(16, 39, 72, 0.92);
    color: #fff;
}

.sponsored-tag {
    background: rgba(195, 146, 58, 0.96);
    color: #fff;
}

.news-headline-xl,
.news-headline-lg,
.news-headline-md,
.article-title {
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.12;
}

.news-headline-xl {
    font-size: clamp(2rem, 4vw, 3.45rem);
}

.news-headline-lg {
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.news-headline-md {
    font-size: 1.1rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.story-meta,
.mini-story-meta,
.article-meta,
.sidebar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--news-muted);
    font-size: 0.95rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 1.4rem;
}

.side-list-card {
    padding: 1.1rem;
}

.side-list-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.95rem;
    padding: 0.8rem 0;
    text-decoration: none;
}

.side-list-item + .side-list-item {
    border-top: 1px solid var(--news-line);
}

.side-list-item h4,
.story-card h4,
.story-card h3,
.sidebar-panel h4 {
    margin: 0;
}

.story-card {
    overflow: hidden;
    height: 100%;
}

.story-card-media {
    height: 220px;
}

.story-card-body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.story-grid-3,
.story-grid-4,
.story-grid-2 {
    display: grid;
    gap: 1.2rem;
}

.story-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    gap: 1.5rem;
}

.article-shell {
    padding: 1.55rem;
}

.article-cover {
    border-radius: 24px;
    overflow: hidden;
    margin: 1.4rem 0;
}

.article-cover img,
.article-cover iframe {
    width: 100%;
    min-height: 440px;
    border: 0;
    display: block;
}

.article-body {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #202631;
}

.article-body p + p {
    margin-top: 1.2rem;
}

.sidebar-stack {
    display: grid;
    gap: 1.2rem;
}

.sidebar-panel {
    padding: 1.2rem;
}

.sidebar-panel h3,
.sidebar-panel h4 {
    font-family: "Libre Baskerville", Georgia, serif;
    margin-bottom: 0.9rem;
}

.sidebar-list {
    display: grid;
    gap: 0.9rem;
}

.sidebar-link {
    text-decoration: none;
    display: block;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--news-line);
}

.sidebar-link:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.category-pill-row,
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 39, 72, 0.08);
    color: var(--news-secondary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
}

.category-pill.active,
.category-pill:hover {
    background: var(--news-secondary);
    color: #fff;
}

.comment-card {
    padding: 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 25, 35, 0.08);
}

.comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--news-secondary), #244a84);
    color: #fff;
    font-weight: 800;
}

.news-input,
.news-textarea,
.form-control {
    border-radius: 18px;
    border: 1px solid rgba(20, 25, 35, 0.12);
    box-shadow: none;
}

.news-input,
.form-control {
    min-height: 48px;
}

.news-textarea {
    min-height: 130px;
    padding: 1rem;
}

.news-input:focus,
.news-textarea:focus,
.form-control:focus {
    outline: none;
    border-color: rgba(162, 37, 42, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(162, 37, 42, 0.1);
}

.ad-frame {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: stretch;
}

.ad-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-frame .sponsored-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.news-empty {
    padding: 2rem;
    text-align: center;
    color: var(--news-muted);
}

.result-list {
    display: grid;
    gap: 1rem;
}

.result-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
}

.result-card .story-card-media {
    height: 180px;
}

.news-footer {
    padding: 0 0 2rem;
}

.news-footer-inner {
    background: rgba(17, 24, 39, 0.97);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 32px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
}

.news-footer h4 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-family: "Libre Baskerville", Georgia, serif;
}

.news-footer p,
.news-footer li,
.news-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.news-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.category-tabs-shell {
    padding: 1.2rem;
}

.category-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}

.category-tab-button {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: rgba(16, 39, 72, 0.08);
    color: var(--news-secondary);
    font-weight: 800;
}

.category-tab-button.active {
    background: linear-gradient(135deg, var(--news-secondary), #183b6d);
    color: #fff;
}

.category-tab-pane {
    display: none;
}

.category-tab-pane.active {
    display: block;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(162, 37, 42, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(16, 39, 72, 0.12), transparent 24%),
        linear-gradient(180deg, #faf6ef 0%, #f0e7da 100%);
}

.auth-grid {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
}

.auth-editorial {
    padding: 2.5rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(16, 39, 72, 0.96), rgba(162, 37, 42, 0.88)),
        url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1200&q=80")
            center/cover;
}

.auth-editorial h1 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.auth-panel {
    padding: 2.2rem;
}

.auth-panel h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    margin-bottom: 0.4rem;
}

.auth-panel p {
    color: var(--news-muted);
}

@media (max-width: 1199.98px) {
    .story-grid,
    .article-layout,
    .news-footer-inner {
        grid-template-columns: 1fr;
    }

    .story-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .news-navbar-inner {
        flex-wrap: wrap;
    }

    .news-nav-panel {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 247, 0.96));
        padding: 1rem;
        border-radius: 26px;
        border: 1px solid rgba(20, 25, 35, 0.08);
        box-shadow: 0 24px 44px rgba(17, 24, 39, 0.12);
        position: relative;
        overflow: hidden;
    }

    .news-nav-panel::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: linear-gradient(90deg, var(--news-accent), var(--news-gold), var(--news-secondary));
    }

    .news-nav-panel.is-open {
        display: flex;
        animation: mobileNavReveal 0.22s ease;
    }

    .news-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .news-menu li {
        width: 100%;
    }

    .news-menu a,
    .news-menu button {
        width: 100%;
        justify-content: space-between;
        border-radius: 18px;
        padding: 0.95rem 1rem;
        background: rgba(16, 39, 72, 0.04);
    }

    .news-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.55rem;
        border-radius: 18px;
        box-shadow: none;
        background: rgba(16, 39, 72, 0.04);
        border-color: rgba(20, 25, 35, 0.06);
    }

    .news-search-form {
        margin-left: 0;
        min-width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-submit,
    .news-button,
    .news-button-outline {
        width: 100%;
    }

    .news-nav-panel .d-flex.flex-wrap.gap-2 {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.75rem !important;
    }

    .story-grid-3,
    .story-grid-4,
    .story-grid-2 {
        grid-template-columns: 1fr;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes mobileNavReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .news-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-main,
    .news-topbar-inner,
    .news-navbar-inner,
    .news-footer-inner {
        width: min(1320px, calc(100% - 1.2rem));
    }

    .feature-media,
    .article-cover img,
    .article-cover iframe {
        min-height: 260px;
    }

    .story-card-media {
        height: 200px;
    }

    .side-list-item {
        grid-template-columns: 78px 1fr;
    }
}
