:root {
    --blue: #007fff;
    --blue-dark: #055aa8;
    --ink: #172033;
    --muted: #667085;
    --line: #d9e2ec;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --accent: #0f9f9a;
    --shadow: 0 16px 40px rgba(23, 32, 51, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 48px);
    background: #0b1220;
    color: white;
    border-bottom: 4px solid var(--blue);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 184px;
}

.nav {
    display: flex;
    gap: 18px;
    font-size: 0.94rem;
}

.nav a {
    color: rgba(255, 255, 255, 0.82);
}

.nav a:hover {
    color: white;
}

.search {
    display: grid;
    grid-template-columns: minmax(160px, 260px) auto;
    gap: 8px;
}

.search input,
.search button {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font: inherit;
}

.search input {
    width: 100%;
    padding: 0 12px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.24);
}

.search button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: var(--blue);
    font-weight: 700;
    cursor: pointer;
}

.main {
    width: 100%;
    margin: 0;
    padding: 0 0 56px;
}

.main > section:not(.page-head),
.main > .empty-state,
.main > .article-page {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
    gap: 28px;
    align-items: end;
    margin-bottom: 32px;
    padding: 46px max(16px, calc((100% - 1120px) / 2)) 42px;
    color: white;
    background: #0b1220;
    border-bottom: 4px solid var(--blue);
}

.eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 3.25rem;
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.lead {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 16px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card,
.empty-state,
.ajax-panel,
.article-page {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.article-card {
    overflow: hidden;
}

.article-cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: #dce8f5;
}

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

.article-card-body {
    padding: 18px;
}

.article-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: #e8f3ff;
    font-size: 0.78rem;
    font-weight: 800;
}

.text-link {
    color: var(--blue-dark);
    font-weight: 800;
}

.empty-state {
    padding: 28px;
}

.empty-state p,
.muted {
    color: var(--muted);
}

.ajax-panel {
    padding: 18px;
}

.article-page {
    overflow: hidden;
}

.article-header {
    padding: clamp(24px, 5vw, 48px);
}

.article-hero {
    margin: 0;
    aspect-ratio: 16 / 7;
    background: #dce8f5;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 760px;
    padding: 0 clamp(24px, 5vw, 48px) 48px;
    font-size: 1.05rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 4vw, 48px);
    color: var(--muted);
    background: #eef3f8;
    border-top: 1px solid var(--line);
}

.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;
}

@media (max-width: 860px) {
    .site-header,
    .page-head {
        grid-template-columns: 1fr;
    }

    .brand {
        width: 164px;
    }

    .search {
        grid-template-columns: 1fr auto;
    }

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

@media (max-width: 560px) {
    .site-header {
        gap: 14px;
    }

    .nav {
        flex-wrap: wrap;
    }

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

    h1 {
        font-size: 2.15rem;
    }

    .site-footer {
        flex-direction: column;
    }
}
