:root {
    --main-color: #023e95;
    --main-color-strong: #01327a;
    --main-color-font: #ffffff;
    --accent-color: #ffc107;
    --top-color: #232323;
    --ink: #212529;
    --muted: #656565;
    --line: #e1e1e1;
    --soft: #f5f5f5;
    --ticker: #d9d9d9;
    --container: 1400px;
    --font-default: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: var(--font-default);
    font-size: 16px;
}

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

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

.container {
    width: min(var(--container), calc(100% - 30px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 45px;
    background: var(--top-color);
    color: #fff;
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 45px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    height: 45px;
    padding: 0 22px;
    margin-left: -6px;
    background: #151515;
    font-style: italic;
    font-weight: 650;
    transform: skewX(-10deg);
}

.social-links {
    display: flex;
    gap: 9px;
}

.social-links a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    background: #151515;
    border-radius: 50%;
    font-weight: 800;
}

.current-date {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 98px;
    height: 28px;
    background: var(--accent-color);
    color: #151515;
    border-radius: 30px;
    font-weight: 650;
}

.brand-strip {
    background: #fff;
}

.brand-strip__inner {
    display: grid;
    grid-template-columns: minmax(220px, 380px) 1fr minmax(120px, 170px);
    gap: 26px;
    align-items: center;
    min-height: 118px;
    padding: 6px 0;
}

.brand {
    display: block;
    line-height: 0.82;
    transform: skewX(-8deg);
}

.brand span,
.brand strong {
    font-size: clamp(3rem, 6.2vw, 5.5rem);
    font-weight: 950;
    letter-spacing: 0;
}

.brand span {
    color: #151515;
}

.brand strong {
    color: var(--main-color);
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #151515;
    font-size: 0.82rem;
    font-weight: 850;
    text-align: right;
    text-transform: uppercase;
}

.ad img {
    width: 100%;
    height: 99px;
    object-fit: cover;
    border-radius: 3px;
}

.main-menu {
    background: var(--main-color);
    color: var(--main-color-font);
}

.main-menu__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 52px;
    overflow-x: auto;
}

.main-menu a {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-menu a:hover {
    color: var(--accent-color);
}

.trending {
    background: var(--ticker);
}

.trending__inner {
    position: relative;
    display: grid;
    grid-template-columns: 125px 1fr 115px;
    height: 39px;
    overflow: hidden;
}

.trending__label,
.trending__menu {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 39px;
    background: var(--ticker);
    border: 0;
    color: #191919;
    font: inherit;
    font-weight: 750;
    text-transform: uppercase;
}

.trending__label span {
    width: 12px;
    height: 12px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(2, 62, 149, 0.12);
}

.trending__ticker {
    display: flex;
    gap: 34px;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(249, 249, 249, 0.98);
}

.trending__ticker a {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 750;
    text-transform: uppercase;
}

.trending__menu {
    justify-content: center;
    cursor: pointer;
}

.stories-band {
    background: var(--soft);
    padding: 30px 0 35px;
}

.stories-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(110px, 1fr));
    gap: 16px;
    overflow-x: auto;
}

.story-card {
    position: relative;
    min-height: 166px;
    overflow: hidden;
    border-radius: 5px;
    background: #333;
}

.story-card::after,
.news-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.74));
}

.story-card img,
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 27px;
    z-index: 1;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.9fr;
    gap: 22px;
    padding: 30px 0;
}

.news-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 3px;
    background: #222;
}

.news-card--large {
    min-height: 420px;
}

.news-card__body {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 1;
    color: #fff;
}

.pill {
    display: inline-flex;
    padding: 4px 9px;
    margin-bottom: 8px;
    background: var(--pill-color);
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-card h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.news-card p {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.88);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    padding: 10px 0 40px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--main-color);
}

.section-title h2 {
    margin: 0;
    padding: 9px 14px;
    background: var(--main-color);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title a {
    color: var(--main-color);
    font-weight: 750;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.post-row img {
    width: 210px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 3px;
}

.post-row span {
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-row h3 {
    margin: 5px 0 6px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.post-row p {
    margin: 0 0 8px;
    color: var(--muted);
}

.post-row small {
    color: #858585;
}

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

.panel + .panel {
    margin-top: 22px;
}

.panel h2 {
    margin: 0 0 15px;
    color: var(--main-color);
    font-size: 1rem;
    text-transform: uppercase;
}

.module-line,
.event-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.module-line span,
.event-line span {
    color: var(--muted);
    font-size: 0.88rem;
}

.soft-band {
    padding: 34px 0 42px;
    background: var(--soft);
}

.classified-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.classified-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.classified-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.classified-card strong,
.classified-card h3,
.classified-card span {
    display: block;
    padding-inline: 14px;
}

.classified-card strong {
    padding-top: 13px;
    color: var(--main-color);
}

.classified-card h3 {
    margin: 5px 0;
    font-size: 1rem;
}

.classified-card span {
    padding-bottom: 16px;
    color: var(--muted);
}

.split-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding: 38px 0 46px;
}

.guide-list,
.podcast-list {
    display: grid;
    gap: 12px;
}

.guide-list article,
.podcast-list article {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}

.guide-list span {
    color: var(--main-color);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.podcast-list article {
    grid-template-columns: 42px 1fr;
}

.podcast-list button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    cursor: pointer;
}

.podcast-list span,
.podcast-list small,
.guide-list small {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #f9f9f9;
}

.article-page {
    padding: 42px 0;
}

.article-header {
    max-width: 920px;
    margin-bottom: 28px;
}

.article-header h1 {
    margin: 12px 0 10px;
    color: #151515;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
}

.article-header p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.5;
}

.article-header small {
    color: #858585;
}

.compact-header h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 5px;
}

.article-body {
    max-width: 840px;
    margin-top: 28px;
    color: #30343a;
    font-size: 1.08rem;
    line-height: 1.78;
}

.related-news {
    padding-bottom: 42px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 36px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--main-color);
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    color: var(--muted);
}

.footer-bottom {
    padding: 15px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.admin-shell {
    padding: 40px 0;
}

.admin-heading span {
    color: var(--main-color);
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-heading h1 {
    margin: 4px 0;
    font-size: 2.4rem;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 26px 0;
}

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

.admin-metrics strong {
    display: block;
    color: var(--main-color);
    font-size: 2rem;
}

@media (max-width: 1050px) {
    .brand-strip__inner,
    .hero-grid,
    .content-grid,
    .split-sections,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ad--square {
        display: none;
    }

    .stories-row {
        grid-template-columns: repeat(8, 140px);
    }

    .classified-grid,
    .admin-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .topbar {
        height: auto;
    }

    .topbar__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 0;
    }

    .current-date {
        width: 100%;
        margin-left: 0;
    }

    .brand-strip__inner {
        min-height: 0;
    }

    .main-menu__inner {
        gap: 20px;
    }

    .trending__inner {
        grid-template-columns: 110px 1fr;
    }

    .trending__menu {
        display: none;
    }

    .post-row,
    .classified-grid,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .post-row img {
        width: 100%;
    }
}
