/* =========================================================================
   Solvex News — Stylesheet
   ========================================================================= */
:root {
    --navy: #0b1f3a;
    --navy-700: #13294b;
    --accent: #d62828;
    --accent-dark: #b21e1e;
    --ink: #16202c;
    --muted: #5b6775;
    --line: #e6e9ee;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(11, 31, 58, .08);
    --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
    --max: 1200px;
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    padding-top: var(--header-height, 0);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.main-content { padding-top: 26px; padding-bottom: 50px; min-height: 50vh; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
    padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { position: relative; }
.masthead {
    position: fixed; top: 0; left: 0; right: 0; z-index: 902;
    background: var(--bg); border-bottom: 1px solid var(--line);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 78px; }
.brand img { height: 38px; width: auto; }
.nav-toggle, .search-toggle {
    background: none; border: 0; cursor: pointer; color: var(--navy); padding: 8px;
    display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle { flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav (white background) */
.primary-nav { background: #fff; border-bottom: 1px solid var(--line); }
.primary-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.primary-nav ul {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap;
}
.primary-nav a {
    display: flex; align-items: center; color: var(--navy); padding: 0 12px; font-weight: 600; font-size: 12px;
    letter-spacing: .2px; border-bottom: 3px solid transparent; height: 42px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
    color: var(--accent); border-color: var(--accent); background: rgba(11,31,58,.04);
}
.primary-nav .lang-switcher { padding: 8px 0; }

/* Search bar */
.search-bar { display: none; background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; z-index: 903; }
.search-bar.open { display: block; }

/* Nav toggle only on mobile/tablet */
.nav-toggle { display: none; }
.search-toggle { display: inline-flex; }
.lang-switcher { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-link { color: var(--muted); text-decoration: none; padding: 2px 4px; }
.lang-link:hover { color: var(--accent); }
.lang-link.active { color: var(--navy); border-bottom: 2px solid var(--accent); }

/* Laptop/desktop: fixed masthead, nav below it, hide nav on scroll down */
@media (min-width: 861px) {
    .mobile-menu-header { display: none; }
    .primary-nav {
        position: fixed;
        top: var(--masthead-height, 78px);
        left: 0; right: 0;
        z-index: 901;
        transition: transform .25s ease, visibility .25s ease;
    }
    .primary-nav.nav-hidden {
        transform: translateY(-100%);
        visibility: hidden;
    }
}
.search-bar-inner { display: flex; gap: 10px; padding: 14px 18px; }

/* Laptop/desktop: compact, centered header like CBS News */
@media (min-width: 861px) {
    .masthead { padding: 2px 0; }
    .masthead-inner {
        height: 52px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        justify-items: center;
        align-items: center;
    }
    .brand { grid-column: 2; }
    .brand img { height: 28px; }
    .search-toggle { grid-column: 3; justify-self: end; }
}
.search-bar input {
    flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.search-bar button, .search-page-form button {
    padding: 12px 22px; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
    font-weight: 600; cursor: pointer;
}

/* ---------- Sections / grid ---------- */
.section { margin: 38px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title {
    font-size: 22px; font-weight: 800; margin: 0; padding-left: 12px;
    border-left: 5px solid var(--accent); line-height: 1.2;
}
.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 0 0 14px; font-weight: 700; }
.section-more { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.section-more:hover { color: var(--accent); }

.grid { display: grid; gap: 24px; }
.grid-cards { grid-template-columns: repeat(4, 1fr); }
.grid-cards-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card { background: var(--bg); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius); }
.card-media img, .thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.thumb-fallback { display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 800; font-family: var(--serif); }
.thumb-wrap { position: relative; display: block; width: 100%; height: 100%; }
.thumb-wrap .thumb-fallback { position: absolute; inset: 0; }
.card-cat {
    position: absolute; left: 10px; top: 10px; color: #fff; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; padding: 5px 10px; border-radius: 6px;
}
.breaking-badge {
    position: absolute; right: 10px; top: 10px; background: #c00; color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    padding: 5px 10px; border-radius: 6px; z-index: 2;
}
.card-body { padding: 12px 4px 4px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.32; margin: 0 0 6px; }
.card-excerpt { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.card-meta { color: #8b95a3; font-size: 12.5px; display: flex; gap: 8px; flex-wrap: wrap; }
.card-compact .card-title { font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-bottom: 34px; }
.hero-lead { min-width: 0; }
.card-lead { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.card-lead-link { display: block; position: relative; height: 100%; min-height: 420px; color: #fff; text-decoration: none; }
.card-lead-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.card-lead-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.card-lead-fallback-initial { font-size: 120px; font-weight: 800; color: rgba(255,255,255,.35); font-family: var(--serif); }
.card-lead-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,58,.92) 0%, rgba(11,31,58,.5) 50%, rgba(11,31,58,.2) 100%); }
.card-lead-mobile-img { display: none; }
.card-lead-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px; z-index: 2; }
.card-lead-content .breaking-badge { position: static; display: inline-block; margin-right: 8px; vertical-align: middle; }
.card-lead-content .card-cat { display: inline-block; vertical-align: middle; }
.card-lead .card-title { font-family: var(--serif); font-size: 34px; line-height: 1.15; margin: 14px 0 10px; color: #fff; }
.card-lead .card-excerpt { font-size: 16px; color: rgba(255,255,255,.85); margin: 0 0 14px; }
.card-lead .card-meta { color: rgba(255,255,255,.7); font-size: 12.5px; }
.hero-side { padding-left: 0; }
.side-list { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 16px; }
.side-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-thumb { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--accent); }
.side-item h3 { font-size: 15.5px; line-height: 1.3; margin: 4px 0 6px; font-weight: 700; }
.side-item h3 a { color: var(--ink); }
.side-item h3 a:hover { color: var(--accent); }
.side-excerpt { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }

/* ---------- Newsletter section ---------- */
.newsletter-section { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; margin-bottom: 34px; }
.newsletter-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.newsletter-title { font-size: 22px; margin: 0 0 8px; }
.newsletter-text p { margin: 0; opacity: .85; }
.newsletter-section .newsletter-form { display: flex; gap: 10px; }
.newsletter-section .newsletter-form input { flex: 1; min-width: 240px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 15px; }
.newsletter-section .newsletter-form input::placeholder { color: #9aa7b8; }
.newsletter-section .newsletter-form button { padding: 12px 22px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.newsletter-section .newsletter-form button:hover { background: var(--accent-dark); }

/* ---------- Breadcrumb / page hero ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.page-hero { margin-bottom: 22px; }
.page-title { font-family: var(--serif); font-size: 36px; margin: 0; padding-left: 14px; border-left: 6px solid var(--accent); line-height: 1.15; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 0 4px; }
.article-head { margin-bottom: 18px; }
.article-cat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.article-title { font-family: var(--serif); font-size: 40px; line-height: 1.14; margin: 0 0 16px; letter-spacing: -.3px; }
.article-lead { font-size: 18px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; font-weight: 400; }
.article-meta { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-figure { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; }
.article-figure img { display: block; width: 100%; max-height: 540px; object-fit: cover; }
.article-figure-fallback { aspect-ratio: 16/9; }
.image-caption { display: block; padding: 10px 4px; font-size: 13px; color: var(--muted); text-align: center; }
.article .ad-box { margin: 16px auto; }
.image-credit { display: block; padding: 8px 12px; font-size: 12px; color: var(--muted); background: var(--bg-soft); text-align: right; }
.article-body { font-size: 18.5px; line-height: 1.8; color: #232f3d; }
.article-body p { margin: 0 0 24px; }
.article-body h2 { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin: 38px 0 14px; }
.article-body h3 { font-size: 22px; margin: 30px 0 12px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; }
.article-body figure { margin: 24px 0; }
.article-body figure img { margin: 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; text-align: center; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote {
    margin: 24px 0; padding: 8px 22px; border-left: 4px solid var(--accent);
    font-family: var(--serif); font-size: 21px; color: var(--navy); background: var(--bg-soft);
}
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-share { display: flex; align-items: center; gap: 12px; margin: 28px 0; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 14px; }
.article-share a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 13px; }
.article-share a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Static pages / forms ---------- */
.static-page { max-width: 760px; margin: 0 auto; }
.static-page h2 { font-size: 22px; margin: 28px 0 10px; }
.static-page p { font-size: 17px; line-height: 1.7; color: #2b3744; }
.static-page a { color: var(--accent); text-decoration: underline; }
.contact-form, .search-page-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.search-page-form { flex-direction: row; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea, .search-page-form input {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus, input:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }

.btn-solid { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; align-self: flex-start; }
.btn-solid:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); padding: 13px 22px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* ---------- Alerts (also used for contact form) ---------- */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #fdecec; color: #b21e1e; border: 1px solid #f5c2c2; }
.alert-success { background: #e7f7ed; color: #1a7d44; border: 1px solid #b6e3c6; }


/* ---------- 404 / empty ---------- */
.notfound { text-align: center; padding: 70px 0; }
.notfound-code { font-family: var(--serif); font-size: 90px; color: var(--accent); margin: 0; line-height: 1; }
.notfound h1 { font-size: 28px; margin: 6px 0 10px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }
.empty-state { text-align: center; padding: 60px 18px; }
.empty-state h1 { font-family: var(--serif); font-size: 38px; margin: 0 0 12px; color: var(--navy); }
.empty-state p { color: var(--muted); font-size: 17px; margin: 0 0 10px; }
.empty-state .newsletter-form { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #060f1c; color: #c5cfde; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.8fr; gap: 24px; padding: 36px 18px; }
.footer-brand img { height: 32px; margin-bottom: 12px; }
.footer-brand p { max-width: 280px; opacity: .8; margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; opacity: .85; font-size: 13px; }
.footer-email:hover { color: #fff; opacity: 1; }
.footer-email svg { opacity: .8; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { opacity: .8; font-size: 13px; }
.footer-col a:hover { color: #fff; opacity: 1; }
.footer-connect .newsletter-form { display: flex; gap: 10px; max-width: 100%; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: #c5cfde; font-size: 14px; font-weight: 600; }
.footer-social:hover { color: #fff; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; border-radius: 8px; font-size: 15px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.newsletter-form input::placeholder { color: #9aa7b8; }
.newsletter-form button { padding: 12px 22px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.newsletter-form button:hover { background: var(--accent-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; opacity: .8; }
.footer-bottom-inner a { color: inherit; text-decoration: underline; }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- Ad units ---------- */
.ad-box {
    margin: 24px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
.ad-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.ad-placeholder {
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
    min-height: 90px;
    display: grid;
    place-items: center;
}
.ad-leaderboard .adsbygoogle { min-height: 90px; }
.ad-inline .adsbygoogle { min-height: 250px; }

/* ---------- Cookie consent ---------- */
.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 20px; z-index: 900;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.consent[hidden] { display: none !important; }
.consent p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; min-width: 240px; }
.consent a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions button { padding: 10px 20px; font-size: 14px; }

@media (max-width: 560px) {
    .consent { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
    .consent-actions { width: 100%; justify-content: stretch; }
    .consent-actions button { flex: 1; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
    .grid-cards { grid-template-columns: repeat(3, 1fr); }
    .grid-cards-3 { grid-template-columns: repeat(3, 1fr); }
    .card-lead .card-title { font-size: 28px; }
    .newsletter-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .topbar { display: none; }
    input, textarea, select, .search-bar input, .search-page-form input, .newsletter-form input { font-size: 16px; }
    .hero { grid-template-columns: 1fr; }
    .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
    .card-lead, .card-lead-link { min-height: auto; }
    .card-lead-bg, .card-lead-overlay { display: none; }
    .card-lead-mobile-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
    .card-lead-content { position: static; padding: 18px 0 0; color: var(--ink); }
    .card-lead .card-title { color: var(--ink); font-size: 26px; margin: 10px 0 8px; }
    .card-lead .card-excerpt { color: var(--muted); }
    .card-lead .card-meta { color: #8b95a3; }
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .grid-cards-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 18px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-connect { grid-column: 1 / -1; }
    .article-title { font-size: 32px; }
    .page-title { font-size: 28px; }

    /* Mobile/tablet nav: slide-in panel */
    .nav-toggle {
        display: inline-flex; order: -1;
        width: 40px; height: 40px; border-radius: 8px;
        justify-content: center; align-items: center;
    }
    .nav-toggle span { width: 22px; height: 2.5px; border-radius: 2px; }
    .primary-nav {
        position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw;
        background: #fff; transform: translateX(-100%); transition: transform .35s ease, visibility .35s;
        z-index: 950; overflow-y: auto; box-shadow: 6px 0 40px rgba(0,0,0,.25);
        border-bottom: 0; visibility: hidden;
        display: none; flex-direction: column;
    }
    .primary-nav.open { transform: translateX(0); visibility: visible; display: flex; }
    .mobile-menu-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--navy);
        color: #fff; min-height: 58px;
    }
    .mobile-menu-title { font-weight: 700; font-size: 16px; letter-spacing: .3px; }
    .nav-close {
        background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 8px;
        width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
    }
    .nav-close:hover { background: rgba(255,255,255,.25); }
    .primary-nav .container { padding: 0; width: 100%; }
    .primary-nav-inner { flex-direction: column; align-items: stretch; }
    .primary-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    .primary-nav li { list-style: none; }
    .primary-nav a {
        display: flex; align-items: center; justify-content: space-between;
        color: var(--navy); padding: 15px 22px; font-size: 15.5px; font-weight: 600;
        border-left: 4px solid transparent;
    }
    .primary-nav a::after { content: '›'; color: #c4cbd4; font-size: 18px; }
    .primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); background: rgba(11,31,58,.04); }
    .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { color: var(--accent); }
    .primary-nav .lang-switcher { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 15px; }
    .primary-nav .lang-link { padding: 4px 6px; }
    .nav-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 940; opacity: 0;
        visibility: hidden; transition: .3s;
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
    body { font-size: 15.5px; }
    .masthead-inner { height: 64px; }
    .brand img { height: 32px; }
    .grid-cards { grid-template-columns: 1fr; gap: 20px; }
    .grid-cards-3 { grid-template-columns: 1fr; gap: 20px; }
    .card-lead .card-title { font-size: 23px; }
    .card-lead .card-excerpt { font-size: 15px; }
    .side-list { display: flex; flex-direction: column; }
    .side-item { grid-template-columns: 110px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
    .side-thumb { aspect-ratio: 1; }
    .newsletter-section { padding: 24px; }
    .article { padding: 0; }
    .article-title { font-size: 28px; line-height: 1.2; }
    .article-body { font-size: 17.5px; line-height: 1.72; }
    .article-body p { margin: 0 0 20px; }
    .article-body h2 { font-size: 23px; margin: 28px 0 12px; }
    .article-body h3 { font-size: 19px; }
    .article-lead { font-size: 17.5px; }
    .article-figure { margin: 18px 0; border-radius: 8px; }
    .article-figure img { max-height: 360px; }
    .article-meta { font-size: 13px; }
    .form-row { grid-template-columns: 1fr; }
    .topbar-date { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
    .search-page-form { flex-direction: column; }
    .page-title { font-size: 24px; }
    input, textarea, select, .search-bar input, .search-page-form input, .newsletter-form input { font-size: 16px; }
}
