:root {
    --bg: #f2f4f7;
    --surface: #ffffff;
    --ink: #16181d;
    --muted: #5e6470;
    --line: #d9dde4;
    --primary: #d72a2f;
    --accent: #111318;
    --gradient: linear-gradient(135deg, #ffffff 0%, #f7f8fa 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    padding: 12px clamp(16px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-top {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(220px, 480px) auto;
    gap: 12px;
    align-items: center;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.brand-logo {
    height: 34px;
    width: auto;
    max-width: 300px;
    display: block;
}

.main-nav {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
}

.nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 2px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-active,
.nav-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff;
}

.header-search {
    display: flex;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    min-height: 38px;
    max-width: 480px;
}

.header-search input {
    border: 0;
    outline: none;
    appearance: none;
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    color: var(--ink);
}

.header-search button {
    border: 0;
    border-left: 1px solid var(--line);
    width: 38px;
    background: #fff;
    color: #b31f25;
    cursor: pointer;
    appearance: none;
    outline: none;
}

.btn-subscribe {
    border: 0;
    color: #fff;
    background: var(--accent);
    padding: 8px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
    line-height: 1;
    min-height: 38px;
    min-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.hero {
    margin: 20px auto 24px;
    border-radius: 0;
    padding: clamp(20px, 3vw, 36px);
    color: var(--ink);
    background: var(--gradient);
    border: 1px solid var(--line);
}

.hero h1 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.tag-chip {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--muted);
    padding: 8px 12px;
    font-size: 0.84rem;
    cursor: pointer;
}

.tag-chip.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.layout-grid { display: block; margin-bottom: 26px; }

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    margin: 0 0 16px;
}

.cards {
    display: grid;
    gap: 14px;
}

.card-article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 100%;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 210px;
    aspect-ratio: 16 / 10;
}

.card-content {
    padding: 16px 18px;
}

.card-meta {
    color: var(--muted);
    font-size: 0.84rem;
    margin: 0 0 8px;
}

.card-content h3 {
    margin: 0 0 9px;
    line-height: 1.25;
    font-family: "Space Grotesk", sans-serif;
}

.card-excerpt {
    margin: 0 0 10px;
    color: #364153;
}

.card-author {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.news-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 18px;
}

.news-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-box li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.news-box li:last-child {
    border-bottom: 0;
}

.article-shell {
    width: min(950px, 92vw);
    margin: 24px auto 30px;
}

.article-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.article-hero-copy {
    padding: clamp(18px, 3vw, 34px);
    position: relative;
    background:
        linear-gradient(90deg, rgba(215, 42, 47, 0.06), transparent 35%),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 26px,
            rgba(17, 19, 24, 0.03) 27px,
            transparent 28px
        );
}

.article-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 5px;
    background: #d72a2f;
}

.article-hero-media {
    min-height: 100%;
    background: #e9edf2;
}

.crumb {
    margin: 0 0 14px;
    color: var(--muted);
}

.crumb a {
    color: #273042;
}

.article-cover {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 0;
    display: block;
}

.article-head h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 0 0 12px;
    line-height: 1.2;
    max-width: 20ch;
    text-wrap: balance;
}

.article-head .meta {
    color: var(--muted);
    margin: 0;
    font-size: 1.02rem;
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.article-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: clamp(18px, 4vw, 34px);
    line-height: 1.75;
    font-size: 1.06rem;
}

.article-body h2 {
    margin-top: 26px;
    font-family: "Space Grotesk", sans-serif;
    padding-left: 10px;
    border-left: 3px solid #d72a2f;
    line-height: 1.3;
}

.article-inline-media {
    margin: 18px 0 20px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px;
}

.article-inline-media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.related-searches {
    margin-top: 26px;
    background: #fff8f8;
    color: #16181d;
    border-radius: 0;
    border: 1px solid #f1c7ca;
    padding: 16px;
}

.related-searches h3 {
    margin: 0 0 10px;
    color: #9f1f24;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.3px;
}

.related-searches .links {
    display: grid;
    gap: 12px;
}

.related-searches a {
    color: #ffffff;
    border: 1px solid #0f766e;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
    background: #0f766e;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.related-searches a:hover {
    background: #0d5f58;
    border-color: #0d5f58;
    transform: translateX(2px);
}

.related-articles {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.related-item a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 12px;
}

.related-title {
    font-weight: 600;
}

.related-meta {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    padding: 30px clamp(16px, 4vw, 56px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-col {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 14px;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
}

.newsletter-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 18px;
    background-image:
        radial-gradient(circle at 10% 16%, rgba(215, 42, 47, 0.08), transparent 32%),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 24px,
            rgba(17, 19, 24, 0.03) 25px,
            transparent 26px
        );
}

.newsletter-box h3 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
}

.newsletter-box p {
    margin: 0 0 12px;
    color: var(--muted);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    min-width: 240px;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 10px 11px;
}

.newsletter-form button {
    border: 0;
    border-radius: 2px;
    padding: 10px 12px;
    color: #fff;
    background: var(--accent);
}

.newsletter-msg {
    margin: 2px 0 0;
    width: 100%;
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-links {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.footer-links a {
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 10px;
    border-radius: 2px;
}

.footer-copy {
    color: var(--muted);
    margin: 0;
}

.footer-legal {
    margin: 6px 0 14px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-legal p {
    margin: 0 0 8px;
}

.footer-legal p:last-child {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

.search-state {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 12px;
}

.search-state p {
    margin: 0;
    color: var(--muted);
}

.disclosure-box {
    border: 1px solid #f2c7c9;
    background: #fff5f5;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.disclosure-box p {
    margin: 0;
    color: #5f2a2d;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 6px;
}

.team-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px;
}

.team-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid var(--line);
}

.team-card h3 {
    margin: 9px 0 6px;
    font-family: "Space Grotesk", sans-serif;
}

.team-card p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 960px) {
    .header-top {
        grid-template-columns: 1fr;
    }

    .header-search {
        width: 100%;
    }

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

    .desktop-subscribe {
        display: none;
    }

    .related-item a {
        flex-direction: column;
    }

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

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

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

    .article-hero-copy::before {
        width: 100%;
        height: 4px;
        top: 0;
        bottom: auto;
    }

    .article-hero-media {
        border-top: 1px solid var(--line);
    }
}
