/**
 * Gostaresh News — legacy layout (RTL, gostaresh.news style).
 *
 * @package Gostaresh_News
 */

:root {
    --gn-primary: #1D4E9E;
    --gn-primary-dark: #153a75;
    --gn-accent: #c0272d;
    --gn-text: #222;
    --gn-muted: #666;
    --gn-border: #d8dde6;
    --gn-bg: #fff;
    --gn-bg-soft: #f5f7fa;
    --gn-container: 1200px;
    --gn-font: "Vazirmatn", Tahoma, Arial, sans-serif;
    --gn-line: 1.8;
    --gn-heading-weight: 700;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--gn-font);
    font-size: 14px;
    line-height: var(--gn-line);
    color: var(--gn-text);
    background: var(--gn-bg);
    direction: rtl;
    text-align: right;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gn-primary); text-decoration: none; }
a:hover, a:focus-visible { color: var(--gn-accent); }

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--gn-heading-weight);
    line-height: 1.4;
    margin: 0 0 0.5em;
}

.container {
    width: min(100% - 20px, var(--gn-container));
    margin-inline: auto;
}

.skip-link {
    position: absolute; inset-inline-start: -9999px; top: 0; z-index: 99999;
    padding: 0.75rem 1rem; background: var(--gn-primary); color: #fff;
}
.skip-link:focus { inset-inline-start: 0; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Top bar ── */
.gn-topbar {
    background: var(--gn-primary-dark);
    color: #ccc;
    font-size: 12px;
    border-bottom: 2px solid var(--gn-accent);
}

.gn-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.gn-topbar__date { color: #eee; white-space: nowrap; }

.gn-topbar__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gn-topbar__menu {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-topbar__menu a { color: #ccc; font-size: 12px; }
.gn-topbar__menu a:hover { color: #fff; }

.gn-topbar-social { display: flex; gap: 8px; align-items: center; }
.gn-topbar-social a {
    color: #ccc;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.gn-topbar-social .social-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 0;
}
.gn-topbar-social .social-links__icon svg,
.gn-topbar-social .social-links__img {
    display: block;
    width: 16px;
    height: 16px;
}

/* ── Header main ── */
.gn-header-main {
    background: #fff;
    border-bottom: 1px solid var(--gn-border);
    padding: 12px 0;
}

.gn-header-main--map {
    position: relative;
    overflow: hidden;
    overflow-x: clip;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%, rgba(45, 110, 200, 0.4), transparent 68%),
        linear-gradient(180deg, #061533 0%, #0c2a66 48%, #0a2254 100%);
    border-bottom: none;
    padding: 0;
    text-align: center;
    height: 120px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gn-header-main__map {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image: url("../images/world-map.webp");
    background-size: min(720px, 78%) auto;
    background-position: center 48%;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    pointer-events: none;
}

.gn-header-main__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gn-header-main--map .site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    order: 1;
}

.gn-header-ad {
    display: block;
    flex: 0 1 auto;
    max-width: min(468px, 48%);
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    order: 2;
    margin-inline-end: 0;
}

.gn-header-ad__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: center;
}

.gn-header-main--map .site-branding .custom-logo,
.gn-header-main--map .site-branding .site-logo-fallback {
    max-height: 70px;
    width: auto;
    max-width: min(280px, 42vw);
    filter: none;
}

.gn-header-main--map .menu-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 991px) {
    .gn-header-main__inner {
        padding-inline-start: 52px;
    }
}

@media (max-width: 767px) {
    .gn-header-main--map {
        height: auto;
        min-height: 0;
        padding: 12px 0;
        align-items: stretch;
    }

    .gn-header-main__map {
        opacity: 0.6;
        background-size: 130% auto;
        background-position: center 35%;
    }

    .gn-header-main__inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        max-width: none;
        padding-inline-start: 10px;
        padding-inline-end: 52px;
        padding-bottom: 0;
    }

    .gn-header-main--map .site-branding {
        align-items: flex-start;
        justify-content: flex-start;
        order: 1;
        width: 100%;
    }

    .gn-header-main--map .site-branding .custom-logo,
    .gn-header-main--map .site-branding .site-logo-fallback {
        max-height: 52px;
        max-width: min(220px, 70vw);
    }

    .gn-header-ad,
    .gn-uads--header.gn-header-ad,
    .gn-header-ad.gn-uads {
        order: 2;
        display: block;
        width: calc(100% + 10px + 52px);
        max-width: none;
        position: relative;
        inset: auto;
        left: auto;
        transform: none;
        margin: 0;
        margin-inline-start: -10px;
        margin-inline-end: -52px;
        padding-block: 0 4px;
        padding-inline-start: 10px;
        padding-inline-end: 10px;
        border-radius: 0;
        overflow: visible;
        box-sizing: border-box;
        background: transparent;
    }

    .gn-header-ad__img,
    .gn-header-ad .gn-uads__img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
        margin: 0 auto;
    }

    .gn-header-main--map .menu-toggle {
        top: 12px;
        left: 10px;
        right: auto;
        transform: none;
    }
}

.gn-ad-banner {
    display: block;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.gn-ad-banner:hover { opacity: 0.92; }

.gn-ad-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

.gn-ad-banner--mid {
    margin-bottom: 12px;
    border: 1px solid var(--gn-border);
}

.gn-uads--header.gn-header-ad,
.gn-header-ad.gn-uads {
    display: block;
    max-width: min(468px, 100%);
}
@media (max-width: 767px) {
    .gn-uads--header.gn-header-ad,
    .gn-header-ad.gn-uads {
        width: calc(100% + 10px + 52px);
        max-width: none;
        margin-inline-start: -10px;
        margin-inline-end: -52px;
        padding-block: 0 4px;
        padding-inline-start: 10px;
        padding-inline-end: 10px;
    }
}
.gn-uads--banner,
.gn-uads__link {
    max-width: 100%;
}
.gn-uads__link {
    display: block;
}
.gn-uads--below-hero {
    margin: 12px 0 16px;
    text-align: center;
}
.gn-uads--incontent {
    margin: 16px auto;
    text-align: center;
}
.gn-uads__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}
.gn-uads__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
}
.gn-uads__badge {
    color: #1a5f8a;
    font-size: 12px;
    transform: rotate(-45deg);
}
.gn-uads--sidebar .gn-uads__img {
    width: 100%;
    border-radius: 8px;
}
.gn-uads--pair {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 16px;
}
.gn-uads-pair__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 280px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 8px;
}
.gn-uads-pair__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.gn-uads-pair__title {
    font-size: 13px;
    line-height: 1.7;
    color: inherit;
    text-decoration: none;
}
.gn-related__item--ad {
    position: relative;
}
.gn-related__item--ad .gn-uads__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,.9);
    padding: 2px 6px;
    transform: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: var(--gn-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    z-index: 10;
}

.menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    margin: 0 auto;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav drawer */
.gn-nav-drawer__overlay,
.gn-nav-drawer__head,
.gn-nav-drawer__foot {
    display: none;
}

html.gn-nav-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .menu-toggle { display: flex; }

    .gn-nav-drawer__overlay,
    .gn-nav-drawer__head,
    .gn-nav-drawer__foot {
        display: block;
    }

    .gn-nav-drawer__overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .gn-nav-drawer.is-open .gn-nav-drawer__overlay {
        opacity: 1;
        visibility: visible;
    }

    .gn-nav-drawer__panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        height: 100dvh;
        background: #fff;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    }

    .gn-nav-drawer.is-open .gn-nav-drawer__panel {
        transform: translateX(0);
    }

    .gn-nav-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        background: var(--gn-primary);
        color: #fff;
        flex-shrink: 0;
    }

    .gn-nav-drawer__title {
        font-size: 15px;
        font-weight: 700;
    }

    .gn-nav-drawer__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255,255,255,0.35);
        border-radius: 50%;
        background: transparent;
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        padding: 0;
    }

    .gn-nav-drawer__close:hover {
        background: rgba(255,255,255,0.12);
    }

    .gn-nav-drawer .gn-primary-nav {
        flex: 1;
        overflow-y: auto;
        background: #fff;
        border: none;
    }

    .gn-nav-drawer .gn-primary-nav__inner {
        display: block;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .gn-nav-drawer .gn-primary-nav__list {
        flex-direction: column;
        padding: 8px 0;
    }

    .gn-nav-drawer .gn-primary-nav__list > li {
        width: 100%;
    }

    .gn-nav-drawer .gn-primary-nav__list > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        color: var(--gn-text);
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid var(--gn-border);
        background: #fff;
    }

    .gn-nav-drawer .gn-primary-nav__list > li > a:hover,
    .gn-nav-drawer .gn-primary-nav__list > li.current-menu-item > a {
        background: var(--gn-bg-soft);
        color: var(--gn-primary);
    }

    .gn-nav-drawer .gn-primary-nav__list > li.current-menu-item > a {
        border-right: 3px solid var(--gn-primary);
    }

    .gn-nav-drawer .gn-primary-nav__search--desktop {
        display: none;
    }

    .gn-nav-drawer .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: var(--gn-bg-soft);
        display: none;
    }

    .gn-nav-drawer .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .gn-nav-drawer .sub-menu a {
        display: block;
        padding: 12px 18px 12px 28px;
        font-size: 14px;
        font-weight: 500;
        color: var(--gn-muted);
        border-bottom: 1px solid var(--gn-border);
    }

    .gn-nav-drawer .sub-menu a:hover {
        color: var(--gn-primary);
        background: #fff;
    }

    .gn-nav-drawer .menu-item-has-children {
        position: relative;
    }

    .gn-nav-drawer .submenu-toggle {
        position: absolute;
        top: 8px;
        left: 10px;
        width: 36px;
        height: 36px;
        border: 1px solid var(--gn-border);
        border-radius: 6px;
        background: #fff;
        color: var(--gn-primary);
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .gn-nav-drawer .menu-item-has-children.is-open > .submenu-toggle {
        background: var(--gn-primary);
        color: #fff;
        border-color: var(--gn-primary);
    }

    .gn-nav-drawer__foot {
        padding: 14px 18px 18px;
        border-top: 1px solid var(--gn-border);
        background: var(--gn-bg-soft);
        flex-shrink: 0;
    }

    .gn-nav-drawer__search {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        background: var(--gn-primary);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .gn-nav-drawer__search:hover {
        background: var(--gn-primary-dark);
    }

    .site-header { position: relative; }
}

@media (min-width: 992px) {
    .gn-nav-drawer__panel {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        display: block;
    }

    .gn-nav-drawer .gn-primary-nav {
        background: var(--gn-primary);
        border-bottom: 3px solid var(--gn-primary-dark);
    }

    .gn-nav-drawer .submenu-toggle {
        display: none;
    }

    .gn-nav-drawer .menu-item-has-children {
        position: relative;
    }

    .gn-nav-drawer .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 200px;
        background: #fff;
        border: 1px solid var(--gn-border);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        z-index: 50;
        padding: 0;
    }

    .gn-nav-drawer .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .gn-nav-drawer .sub-menu a {
        color: var(--gn-text);
        padding: 10px 14px;
        border-bottom: 1px solid var(--gn-border);
        white-space: nowrap;
    }
}

/* ── Primary nav ── */
.gn-primary-nav {
    background: var(--gn-primary);
    border-bottom: 3px solid var(--gn-primary-dark);
}

.gn-primary-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gn-primary-nav__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-primary-nav__list > li > a {
    display: block;
    padding: 12px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gn-primary-nav__list > li > a:hover,
.gn-primary-nav__list > li.current-menu-item > a {
    background: rgba(0,0,0,0.15);
    color: #fff;
}

.gn-primary-nav__search {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 12px;
    cursor: pointer;
}

.header-search-panel {
    background:
        radial-gradient(ellipse 70% 120% at 50% 0%, rgba(29, 78, 158, 0.1), transparent 60%),
        linear-gradient(180deg, #f4f7fc 0%, #e8eef8 100%);
    border-bottom: 1px solid #c9d6e8;
    padding: 18px 0;
    box-shadow: none;
}

.header-search-panel[hidden] { display: none; }

.header-search-panel .search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #c5d4e8;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(18, 58, 122, 0.04),
        0 10px 28px rgba(18, 58, 122, 0.08);
}

.header-search-panel .search-form__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 0 4px;
}

.header-search-panel .search-form__hint-icon {
    display: inline-flex;
    color: #7b8ba3;
    flex-shrink: 0;
    margin-inline-start: 8px;
}

.header-search-panel .search-form__input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 11px 4px 11px 8px;
    font-family: var(--gn-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gn-text);
    background: transparent;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.header-search-panel .search-form__input::placeholder {
    color: #8a97ab;
    font-weight: 500;
}

.header-search-panel .search-form__input:focus {
    box-shadow: none;
}

.header-search-panel .search-form__submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    margin: 0;
    padding: 0 20px;
    min-height: 42px;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #2a63b8 0%, var(--gn-primary) 55%, #163f88 100%) !important;
    color: #fff !important;
    font-family: var(--gn-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 12px rgba(29, 78, 158, 0.28);
}

.header-search-panel .search-form__submit:hover,
.header-search-panel .search-form__submit:focus-visible {
    filter: brightness(1.05);
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 78, 158, 0.34);
}

.header-search-panel .search-form__submit svg {
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .header-search-panel .search-form {
        border-radius: 16px;
        max-width: none;
        margin-inline: 4px;
    }

    .header-search-panel .search-form__label {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .header-search-panel .search-form__submit {
        padding: 0 14px;
        min-width: 44px;
    }
}

/* ── 2-column layout ── */
.legacy-layout {
    display: grid;
    gap: 16px;
    padding: 16px 0 24px;
}

@media (min-width: 992px) {
    .legacy-layout,
    .legacy-layout--two-col {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }

    .legacy-main {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .legacy-mid-sidebar {
        grid-column: 2;
        grid-row: 1;
    }

    .legacy-left-rail {
        display: none;
    }
}

@media (max-width: 991px) {
    .legacy-layout {
        grid-template-columns: 1fr;
    }
    .legacy-main { order: 1; }
    .legacy-mid-sidebar { order: 2; }
    .legacy-left-rail { display: none; }
}

.legacy-main {
    min-width: 0;
}

/* ── Breaking strip ── */
.breaking-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gn-accent);
    color: #fff;
    padding: 6px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    overflow: hidden;
    max-width: 100%;
}

.breaking-strip__label {
    background: #fff;
    color: var(--gn-accent);
    padding: 2px 8px;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.breaking-strip__track { overflow: hidden; flex: 1; }

.breaking-strip__marquee {
    display: flex;
    width: max-content;
    animation: gn-marquee 30s linear infinite;
}

@keyframes gn-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.breaking-strip__list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
}

.breaking-strip__link { color: #fff; }

/* ── Live category ticker (header) ── */
.gn-live-ticker {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
    border-bottom: 2px solid var(--gn-accent);
    font-size: 13px;
}

.gn-live-ticker__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    overflow: hidden;
}

.gn-live-ticker__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: var(--gn-accent);
    color: #fff;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
}

.gn-live-ticker__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: gn-live-pulse 1.4s ease-in-out infinite;
}

@keyframes gn-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.gn-live-ticker__track {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.gn-live-ticker__marquee {
    display: flex;
    width: max-content;
    animation: gn-marquee 30s linear infinite;
}

.gn-live-ticker__list {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0 14px;
    white-space: nowrap;
}

.gn-live-ticker__link {
    color: #fff;
    text-decoration: none;
}

.gn-live-ticker__link:hover {
    color: #fde68a;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .gn-live-ticker__marquee { animation: none; }
    .gn-live-ticker__dot { animation: none; }
}

/* ── Hero slider ── */
.hero-grid--legacy { margin-bottom: 12px; }

.hero-slider { position: relative; border: 1px solid var(--gn-border); }

.hero-slider__viewport { position: relative; overflow: hidden; }

.hero-slider__track { position: relative; }

.hero-slider__slide {
    display: none;
    position: relative;
}

.hero-slider__slide.is-active { display: block; }

.hero-slider__media { position: relative; aspect-ratio: 16/9; }

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

.hero-slider__placeholder {
    width: 100%;
    height: 100%;
    background: var(--gn-bg-soft);
    min-height: 280px;
}

.hero-slider__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.hero-slider__title {
    font-size: 18px;
    color: #fff;
    margin: 0 0 4px;
}

.hero-slider__meta { font-size: 12px; color: #ddd; }

.hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
}

.hero-slider__nav--prev { left: 8px; }
.hero-slider__nav--next { right: 8px; }

.hero-slider__dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hero-slider__dot.is-active { background: #fff; }

/* ── Tag pills ── */
.gn-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid var(--gn-border);
    border-bottom: 1px solid var(--gn-border);
}

.gn-tag-pills__item {
    padding: 4px 12px;
    border: 1px solid var(--gn-primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gn-primary);
}

.gn-tag-pills__item:hover {
    background: var(--gn-primary);
    color: #fff;
}

/* ── Telegram CTA ── */
.gn-telegram-cta {
    margin: 14px 0 10px;
}

.gn-telegram-cta__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(42, 171, 238, 0.4);
    background: #eef8fd;
    color: #0b4a6f;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gn-telegram-cta__link:hover {
    border-color: #2AABEE;
    background: #e5f5fc;
    color: #0b4a6f;
}

.gn-telegram-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #2AABEE;
    color: #fff;
}

.gn-telegram-cta__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.gn-telegram-cta__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #2AABEE;
}

.gn-telegram-cta__text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: #16324f;
}

.gn-telegram-cta__action {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    background: #2AABEE;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 560px) {
    .gn-telegram-cta__link {
        flex-wrap: wrap;
    }

    .gn-telegram-cta__action {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }
}

/* ── Home category sections ── */
.home-sections--legacy {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 0 16px;
}

@media (min-width: 640px) {
    .home-sections--legacy {
        grid-template-columns: 1fr 1fr;
    }
}

.home-section--legacy {
    border: 1px solid var(--gn-border);
    background: #fff;
}

.home-section__header--legacy {
    background: var(--gn-primary);
    padding: 8px 12px;
}

.home-section__header--legacy .home-section__title {
    margin: 0;
    font-size: 14px;
}

.home-section__header--legacy .home-section__title a {
    color: #fff;
}

.home-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--gn-border);
}

.home-section__cell {
    background: #fff;
    margin: 0;
}

.home-section__cell-link {
    display: block;
    color: var(--gn-text);
    padding: 8px;
}

.home-section__cell-link:hover { color: var(--gn-primary); }

.home-section__cell-media { margin-bottom: 6px; }

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

.home-section__cell-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* ── Sidebars ── */
.legacy-mid-sidebar,
.legacy-left-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legacy-mid-sidebar__widgets .gn-widget--wp:first-child {
    margin-top: 0;
}

/* ── Widgets (legacy sidebar) ── */
.gn-widget {
    border: 1px solid #e6ebf2;
    margin-bottom: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.gn-widget > .gn-widget__body:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0;
    overflow: hidden;
    border: 0;
}

.gn-widget-bare {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.gn-widget__head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 10px 14px 0;
    border-bottom: 0;
}

.gn-widget__head--market {
    background: transparent;
    border-bottom: 0;
}

.gn-widget__title {
    margin: 0;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--gn-text, #222);
    font-weight: 800;
    line-height: 1.4;
    position: static;
    padding-bottom: 0;
}

.gn-widget__title::after {
    display: none;
}

.gn-widget__rule {
    display: block;
    flex: 1;
    height: 2px;
    min-width: 24px;
    background: linear-gradient(90deg, var(--gn-accent, #c0272d), transparent);
    border-radius: 1px;
}

.gn-widget__body {
    padding: 10px 14px 12px;
    background: #fff;
}

.gn-widget__head + .gn-widget__body {
    padding-top: 10px;
}

.gn-widget__body--flush {
    padding: 0;
}

.gn-widget__body--editor {
    padding: 0;
    background: #fff;
}

/* Tabbed news widget */
.gn-widget--tabs {
    border-color: #c8d0dc;
}

.gn-widget--tabs .gn-tabs__nav {
    display: flex;
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f6 100%);
    border-bottom: 1px solid #d5dbe5;
}

.gn-widget--tabs .gn-tabs__btn {
    flex: 1;
    padding: 10px 6px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #667085;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gn-widget--tabs .gn-tabs__btn:hover {
    color: var(--gn-primary);
    background: rgba(29, 78, 158, 0.04);
}

.gn-widget--tabs .gn-tabs__btn.is-active {
    color: var(--gn-primary);
    border-bottom-color: var(--gn-primary);
    background: #fff;
}

.gn-tabs__panel { display: block; }
.gn-tabs__panel[hidden] { display: none; }

.gn-text-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-text-list__item {
    border-bottom: 1px dotted #d8dde6;
    transition: background 0.15s ease;
}

.gn-text-list__item:last-child {
    border-bottom: none;
}

.gn-text-list__item:hover {
    background: #f8faff;
}

.gn-text-list__link {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 9px 14px;
    color: #333;
    font-size: 12px;
    line-height: 1.75;
}

.gn-text-list__link:hover {
    color: var(--gn-primary);
}

.gn-text-list__bullet {
    color: var(--gn-accent);
    flex-shrink: 0;
    font-size: 10px;
    margin-top: 4px;
}

.gn-text-list--media .gn-text-list__icon {
    color: var(--gn-primary);
    flex-shrink: 0;
    font-size: 10px;
    margin-top: 3px;
}

/* Editor pick */
.gn-editor-pick {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--gn-primary);
    background: linear-gradient(135deg, #fffef8 0%, #fff9e6 100%);
    border-top: 1px solid #f0e6c8;
}

.gn-editor-pick:hover {
    background: #fff9e6;
    color: var(--gn-accent);
}

.gn-editor-pick__icon {
    color: #e6a800;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Text ads grid */
.gn-text-ads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gn-text-ads__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #b8c4d8;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    color: var(--gn-primary);
    background: #fff;
    transition: all 0.15s ease;
}

.gn-text-ads__item:hover {
    background: var(--gn-primary);
    border-color: var(--gn-primary);
    color: #fff;
}

/* Market widget */
.gn-market {
    padding: 12px 14px;
    background: #fafbfc;
}

.gn-market__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dotted #d8dde6;
    font-size: 12px;
}

.gn-market__row:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.gn-market__label {
    color: var(--gn-muted);
    font-weight: 600;
}

.gn-market__value {
    font-weight: 700;
    color: var(--gn-text);
    direction: ltr;
    text-align: left;
}

.gn-market__change {
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
    min-width: 42px;
    text-align: left;
}

.gn-market__change--up { color: #2e7d32; }
.gn-market__change--down { color: var(--gn-accent); }

.gn-market__chart {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e4e8ef;
    height: 54px;
}

.gn-market__chart svg {
    width: 100%;
    height: 100%;
}

/* Left rail banners */
.gn-left-rail__banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gn-area-banners-wrap,
.gn-ad-banner-wrap {
    display: block;
}

.gn-area-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f4f7fb;
    border: 1px solid #e2e8f0;
    border-right: 3px solid var(--gn-primary, #1D4E9E);
    border-radius: 8px;
    color: var(--gn-text, #222);
    text-align: right;
    min-height: 44px;
    font-size: 12px;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gn-area-banner:hover {
    background: #fff;
    border-color: #cfd9e8;
    border-right-color: var(--gn-accent, #c0272d);
    color: var(--gn-primary, #1D4E9E);
}

.gn-area-banner__name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 800;
    font-size: 13px;
    color: #1a2332;
    line-height: 1.35;
}

.gn-area-banner:hover .gn-area-banner__name {
    color: var(--gn-primary, #1D4E9E);
}

.gn-area-banner__cta {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.gn-area-banner:hover .gn-area-banner__cta {
    color: var(--gn-accent, #c0272d);
}

.gn-ad-slot--vertical {
    height: 250px;
    background: linear-gradient(180deg, #f8f9fb 0%, #eef1f6 100%);
    border: 1px dashed #c8ced8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* WordPress sidebar widgets */
.gn-widget--wp .gn-widget__head {
    position: relative;
}

.gn-widget--wp.widget_block .gn-widget__body .wp-block-heading {
    margin: -10px -14px 10px;
    padding: 10px 14px 0;
    background: transparent;
    color: var(--gn-text, #222);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    border-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gn-widget--wp.widget_block .gn-widget__body .wp-block-heading::after {
    content: "";
    flex: 1;
    height: 2px;
    min-width: 24px;
    background: linear-gradient(90deg, var(--gn-accent, #c0272d), transparent);
    border-radius: 1px;
    position: static;
    width: auto;
    right: auto;
    bottom: auto;
}

.gn-widget--wp.widget_block .gn-widget__body .wp-block-search {
    margin: 0;
}

.gn-widget--wp.widget_block .wp-block-latest-posts__list,
.gn-widget--wp.widget_block .wp-block-archives-list,
.gn-widget--wp.widget_block .wp-block-categories-list,
.gn-widget--wp.widget_block .wp-block-latest-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-widget--wp.widget_block .wp-block-latest-posts__list li,
.gn-widget--wp.widget_block .wp-block-archives-list li,
.gn-widget--wp.widget_block .wp-block-categories-list li,
.gn-widget--wp.widget_block .wp-block-latest-comments li {
    border-bottom: 1px dotted #d8dde6;
}

.gn-widget--wp.widget_block .wp-block-latest-posts__list li:last-child,
.gn-widget--wp.widget_block .wp-block-archives-list li:last-child,
.gn-widget--wp.widget_block .wp-block-categories-list li:last-child,
.gn-widget--wp.widget_block .wp-block-latest-comments li:last-child {
    border-bottom: none;
}

.gn-widget--wp.widget_block .wp-block-latest-posts__post-title,
.gn-widget--wp.widget_block .wp-block-archives-list a,
.gn-widget--wp.widget_block .wp-block-categories-list a,
.gn-widget--wp.widget_block .wp-block-latest-comments__comment-link {
    display: block;
    padding: 9px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

.gn-widget--wp.widget_block .wp-block-latest-posts__post-title:hover,
.gn-widget--wp.widget_block .wp-block-archives-list a:hover,
.gn-widget--wp.widget_block .wp-block-categories-list a:hover,
.gn-widget--wp.widget_block .wp-block-latest-comments__comment-link:hover {
    color: var(--gn-primary);
}

.gn-widget--wp.widget_block .wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
}

.gn-widget--wp.widget_block .wp-block-search__input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #c8ced8;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
}

.gn-widget--wp.widget_block .wp-block-search__button {
    padding: 8px 14px;
    background: var(--gn-primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gn-widget--wp .gn-widget__head::after {
    display: none;
}

.gn-widget--wp .gn-widget__body > ul,
.gn-widget--wp .gn-widget__body > ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-widget--wp .gn-widget__body li {
    border-bottom: 1px dotted #d8dde6;
}

.gn-widget--wp .gn-widget__body li:last-child {
    border-bottom: none;
}

.gn-widget--wp .gn-widget__body a {
    display: block;
    padding: 9px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

.gn-widget--wp .gn-widget__body a:hover {
    color: var(--gn-primary);
}

/* Editor picks must beat generic widget link styles */
.gn-widget--wp .gn-widget__body .gn-editor-picks a,
.gn-widget--wp .gn-widget__body a.gn-editor-picks__card-link {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-decoration: none;
}

.gn-widget--wp .gn-widget__body a.gn-editor-picks__card-link:hover {
    color: inherit;
}

/* Recent posts widget */
.widget-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-recent-posts__item {
    border-bottom: 1px dotted #d8dde6;
}

.widget-recent-posts__item:last-child {
    border-bottom: none;
}

.widget-recent-posts__link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    color: inherit;
}

.widget-recent-posts__link:hover .widget-recent-posts__title {
    color: var(--gn-primary);
}

.widget-recent-posts__thumb {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e4e8ef;
    aspect-ratio: 16/10;
    background: #eef1f6;
}

.widget-recent-posts__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-recent-posts__thumb--empty {
    background: linear-gradient(135deg, #eef1f6, #e4e9f2);
}

.widget-recent-posts__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.widget-recent-posts__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
}

.widget-recent-posts__date {
    font-size: 10px;
    color: var(--gn-muted);
}

/* Category / tag / search widgets in sidebar */
.gn-widget--wp.widget_categories .gn-widget__body,
.gn-widget--wp.widget_archive .gn-widget__body,
.gn-widget--wp.widget_meta .gn-widget__body {
    padding: 0 14px 8px;
}

.gn-widget--wp.widget_categories li a,
.gn-widget--wp .widget-cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.gn-widget--wp.widget_categories li a::before,
.gn-widget--wp .widget-cat-item a::before {
    content: "◂";
    color: var(--gn-accent);
    font-size: 10px;
    margin-left: 8px;
    order: 2;
}

.gn-widget--wp.widget_categories .children {
    margin: 0 14px 0 0;
    padding-right: 10px;
    border-right: 2px solid #eef1f6;
}

.gn-widget--wp .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gn-widget--wp .tagcloud a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #b8c4d8;
    border-radius: 4px;
    font-size: 11px !important;
    line-height: 1.4;
    color: var(--gn-primary);
    background: #fff;
}

.gn-widget--wp .tagcloud a:hover {
    background: var(--gn-primary);
    color: #fff;
    border-color: var(--gn-primary);
}

.gn-widget--wp .search-form {
    flex-direction: column;
    gap: 8px;
}

.gn-widget--wp .search-form input[type="search"] {
    border-radius: 4px;
}

.gn-widget--wp .search-form input[type="submit"] {
    border-radius: 4px;
    font-weight: 600;
}

.gn-widget--wp select,
.gn-widget--wp input[type="text"],
.gn-widget--wp input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c8ced8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
}

.gn-widget--wp .calendar_wrap table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.gn-widget--wp .calendar_wrap th,
.gn-widget--wp .calendar_wrap td {
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #eef1f6;
}

.gn-widget--wp .calendar_wrap a {
    padding: 0;
    font-weight: 700;
}

/* ── Most visited ── */
.gn-most-visited {
    border: 1px solid var(--gn-border);
    margin-top: 16px;
}

.gn-most-visited .gn-text-list { padding: 0 10px 8px; }

/* ── Archive ── */
.gn-archive-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gn-primary);
}

.gn-archive-header:not(.gn-archive-header--category) .gn-archive-header__title {
    font-size: 22px;
    color: var(--gn-primary);
    margin: 8px 0 0;
}

.gn-archive-header--search .gn-archive-header__title {
    margin-bottom: 14px;
}

.gn-search-page-form {
    max-width: 560px;
}

.gn-search-page-form .search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border: 1px solid #c9d4e3;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.gn-search-page-form .search-form__field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
    padding: 0 12px;
}

.gn-search-page-form .search-form__hint-icon {
    color: var(--gn-muted);
    flex-shrink: 0;
}

.gn-search-page-form .search-form__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 12px 0;
    font-family: var(--gn-font);
    font-size: 14px;
    color: var(--gn-text);
}

.gn-search-page-form .search-form__submit {
    border: 0;
    border-right: 1px solid #c9d4e3;
    background: var(--gn-primary);
    color: #fff;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--gn-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.gn-search-page-form .search-form__submit:hover {
    background: var(--gn-primary-dark, #163a7a);
    color: #fff;
}

.gn-breadcrumbs,
.breadcrumb {
    font-size: 12px;
    color: var(--gn-muted);
    margin-bottom: 8px;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__item:not(:last-child)::after {
    content: "›";
    margin-inline-start: 4px;
    color: var(--gn-muted);
}

.breadcrumb a { color: var(--gn-muted); }

.gn-archive-list { border-top: 1px solid var(--gn-border); }

.gn-archive-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gn-border);
}

@media (max-width: 480px) {
    .gn-archive-item { grid-template-columns: 1fr; }
}

.gn-archive-item__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border: 1px solid var(--gn-border);
}

.gn-archive-item__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--gn-bg-soft);
}

.gn-archive-item__title {
    font-size: 15px;
    margin: 0 0 6px;
}

.gn-archive-item__title a { color: var(--gn-primary); }

.gn-archive-item__meta {
    font-size: 11px;
    color: var(--gn-muted);
    margin-bottom: 6px;
}

.gn-archive-item__excerpt {
    font-size: 13px;
    color: var(--gn-muted);
    margin: 0;
    line-height: 1.7;
}

/* ── Single post ── */
.gn-single-post { margin-bottom: 20px; }

.gn-single-post__title {
    font-size: 24px;
    color: var(--gn-text);
    margin: 8px 0 10px;
    line-height: 1.4;
}

.gn-single-post__meta {
    font-size: 12px;
    color: var(--gn-muted);
    margin-bottom: 12px;
}

.gn-single-post__lead {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.8;
    margin: 0 0 16px;
    padding: 10px;
    background: var(--gn-bg-soft);
    border-right: 3px solid var(--gn-primary);
}

.gn-single-post__hero { margin: 0 0 16px; }

.gn-single-post__img {
    width: 100%;
    border: 1px solid var(--gn-border);
}

.gn-single-post__caption {
    font-size: 11px;
    color: var(--gn-muted);
    text-align: center;
    margin-top: 4px;
}

.gn-single-post__content {
    font-size: 15px;
    line-height: 2;
}

.gn-single-post__content p { margin: 0 0 1em; }

.gn-single-post__content img {
    margin: 12px auto;
    border: 1px solid var(--gn-border);
}

.gn-post-tags,
.gn-keywords {
    margin: 20px 0 0;
    border: 1px solid var(--gn-border);
    background: #fff;
}

.gn-keywords__head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gn-border);
    background: var(--gn-bg-soft);
}

.gn-keywords__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--gn-text);
}

.gn-keywords__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 12px;
}

@media (min-width: 560px) {
    .gn-keywords__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .gn-keywords__grid { grid-template-columns: repeat(4, 1fr); }
}

.gn-keywords__item { margin: 0; }

.gn-keywords__link {
    padding: 8px 10px;
    border: 1px solid #d0d5de;
    border-radius: 4px;
    background: #fff;
    color: var(--gn-text);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gn-keywords__link:hover {
    border-color: var(--gn-primary);
    color: var(--gn-primary);
    background: #f8faff;
}

/* ── Post meta bar (code + share) ── */
.gn-post-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
    padding: 10px 0;
    border-top: 1px solid var(--gn-border);
    border-bottom: 1px solid var(--gn-border);
    font-size: 12px;
    color: var(--gn-muted);
}

.gn-post-meta-bar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gn-post-meta-bar__code { font-weight: 600; color: var(--gn-text); }

.gn-post-meta-bar__sep { color: #ccc; }

.gn-share-links {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-share-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--gn-border);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gn-muted);
    background: #fff;
}

.gn-share-links__item:hover {
    border-color: var(--gn-primary);
    color: var(--gn-primary);
}

/* ── Related posts ── */
.gn-related {
    border-top: 2px solid var(--gn-primary);
    margin: 20px 0;
    padding-top: 16px;
}

.gn-related__title {
    font-size: 16px;
    color: var(--gn-primary);
    margin-bottom: 12px;
}

.gn-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .gn-related__grid { grid-template-columns: repeat(4, 1fr); }
}

.gn-related__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.gn-related__item-title {
    font-size: 12px;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* ── Pagination ── */
.nav-links, .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 20px 0;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--gn-primary);
    color: var(--gn-primary);
    font-size: 13px;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--gn-primary);
    color: #fff;
}

/* ── Footer ── */
.gn-footer {
    background: #1a1a2e;
    color: #ccc;
    margin-top: 24px;
}

/* Footer news columns */
.gn-footer-news {
    background: #22283a;
    padding: 28px 0 8px;
    border-top: none;
}

.gn-footer-news--extra {
    padding-top: 0;
    padding-bottom: 24px;
    background: #1e2433;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.gn-footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
}

@media (min-width: 640px) {
    .gn-footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .gn-footer-columns { grid-template-columns: repeat(4, 1fr); }
}

.gn-footer-columns--second {
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

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

@media (min-width: 768px) {
    .gn-footer-columns--extra { grid-template-columns: repeat(2, 1fr); }
}

.gn-footer-col__title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    line-height: 1.4;
    display: inline-block;
}

.gn-footer-col__title::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 8px;
    background: var(--gn-accent, #c0272d);
    border-radius: 1px;
}

.gn-footer-col__title-link {
    color: #fff;
    text-decoration: none;
}

.gn-footer-col__title-link:hover {
    color: #fff;
}

.gn-footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-footer-col__list--two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 560px) {
    .gn-footer-col__list--two-col { grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
}

.gn-footer-col__item {
    padding: 7px 0;
    border-bottom: 1px dotted rgba(255,255,255,0.12);
}

.gn-footer-col__link {
    color: #b8c0d0;
    font-size: 12px;
    line-height: 1.7;
    display: block;
}

.gn-footer-col__link:hover {
    color: #fff;
}

.gn-footer-col__link::before {
    content: "◂";
    color: var(--gn-accent);
    margin-left: 6px;
    font-size: 10px;
}

.gn-footer-col__empty {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.gn-footer-cta {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid var(--gn-border);
}

.gn-footer-cta__inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .gn-footer-cta__inner { grid-template-columns: 220px 1fr auto; }
}

.gn-footer-cta__brand { text-align: center; }

@media (min-width: 768px) {
    .gn-footer-cta__brand { text-align: right; }
}

.gn-footer-cta__logo .custom-logo,
.gn-footer-cta__logo .site-logo-fallback {
    max-height: 48px;
    width: auto;
    margin: 0 auto 8px;
}

@media (min-width: 768px) {
    .gn-footer-cta__logo .custom-logo,
    .gn-footer-cta__logo .site-logo-fallback { margin: 0 0 8px; }
}

.gn-footer-cta__tagline {
    margin: 0;
    font-size: 12px;
    color: var(--gn-muted);
}

.gn-footer-cta__map { max-width: 100%; }
.gn-footer-cta__map svg { width: 100%; max-height: 100px; }

.gn-footer-cta__btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6a3de8, #4a28b0);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.gn-footer-cta__btn:hover { color: #fff; opacity: 0.9; }

.gn-footer-nav-band {
    background: #0a0a0a;
    padding: 18px 0 22px;
    border-top: none;
}

.gn-footer-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.gn-footer-nav__list a {
    color: #ddd;
    font-size: 13px;
}

.gn-footer-nav__list a:hover {
    color: #fff;
}

.gn-footer-map-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 80, 160, 0.35), transparent 65%),
        linear-gradient(180deg, #0b1e46 0%, #102a5c 100%);
    color: #fff;
    padding: 28px 0 20px;
}

.gn-footer-map-band__map {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: url("../images/world-map.webp");
    background-size: min(780px, 72%) auto;
    background-position: center 38%;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    pointer-events: none;
}

@media (max-width: 767px) {
    .gn-footer-map-band__map {
        opacity: 0.55;
        background-size: 145% auto;
        background-position: center 28%;
    }
}

.gn-footer-map-band > .container {
    position: relative;
    z-index: 1;
}

.gn-footer-map-band .gn-footer-news {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.gn-footer-map-band .gn-footer-col__title,
.gn-footer-map-band .gn-footer-col__title-link,
.gn-footer-map-band .gn-footer-col__link {
    color: #e8eef8;
}

.gn-footer-map-band .gn-footer-col__title {
    border: 0;
}

.gn-footer-map-band .gn-footer-col__link:hover {
    color: #fff;
}

.gn-footer-social-block {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    text-align: center;
}

.gn-footer-social-block__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.gn-footer-social-band {
    display: none;
}

.gn-footer-copy {
    font-size: 12px;
    color: #888;
    margin: 0;
    text-align: center;
}

.gn-footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    line-height: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gn-footer-social a:hover {
    background: var(--gn-accent, #c0272d);
    color: #fff;
    transform: translateY(-2px);
}

.gn-footer-social .social-links__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    line-height: 0;
}

.gn-footer-social .social-links__icon svg,
.gn-footer-social .social-links__img,
.social-links__img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Comments (legacy) ── */
.gn-comments {
    margin-top: 24px;
    border: 1px solid var(--gn-border);
    background: #fff;
}

.gn-comments__head {
    background: var(--gn-primary);
    padding: 10px 14px;
}

.gn-comments__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.gn-comments__closed {
    margin: 0;
    padding: 14px;
    font-size: 13px;
    color: var(--gn-muted);
    border-top: 1px solid var(--gn-border);
}

.gn-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-comment-list .gn-comment-list {
    margin-right: 20px;
    border-right: 2px solid var(--gn-bg-soft);
}

.gn-comment {
    margin: 0;
    border-bottom: 1px solid var(--gn-border);
}

.gn-comment:last-child { border-bottom: none; }

.gn-comment__article { padding: 0; }

.gn-comment__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 14px;
    background: #f0f2f5;
    border-bottom: 1px solid #e4e7ec;
    font-size: 12px;
}

.gn-comment__author {
    font-weight: 700;
    color: var(--gn-text);
    order: 1;
}

.gn-comment__date {
    color: var(--gn-muted);
    order: 2;
}

.gn-comment__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    order: 3;
}

.gn-comment__action {
    color: var(--gn-primary);
    font-size: 11px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.gn-comment__action:hover { color: var(--gn-accent); }

.gn-comment__moderation {
    margin: 0;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--gn-accent);
    background: #fff8f8;
}

.gn-comment__body {
    padding: 12px 14px 14px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--gn-text);
}

.gn-comment__body p { margin: 0 0 0.75em; }
.gn-comment__body p:last-child { margin-bottom: 0; }

.gn-comments .comment-navigation {
    padding: 10px 14px;
    border-top: 1px solid var(--gn-border);
    font-size: 12px;
}

.gn-comments .comment-navigation a { color: var(--gn-primary); }

/* ── Comment form ── */
.gn-comment-form-wrap {
    border-top: 2px solid var(--gn-primary);
    padding: 14px;
    background: var(--gn-bg-soft);
}

.gn-comment-form__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gn-primary);
}

.gn-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gn-comment-form__field {
    margin: 0;
}

.gn-comment-form__field--comment {
    grid-column: 1 / -1;
}

.gn-comment-form__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gn-text);
}

.gn-comment-form__field input[type="text"],
.gn-comment-form__field input[type="email"],
.gn-comment-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8ced8;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    color: var(--gn-text);
    resize: vertical;
}

.gn-comment-form__field textarea {
    min-height: 120px;
    line-height: 1.7;
}

.gn-comment-form__field input:focus,
.gn-comment-form__field textarea:focus {
    outline: none;
    border-color: var(--gn-primary);
    box-shadow: 0 0 0 2px rgba(29, 78, 158, 0.12);
}

.gn-comment-form__submit-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin: 4px 0 0;
}

.gn-comment-form__submit {
    padding: 10px 32px;
    background: var(--gn-primary);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gn-comment-form__submit:hover {
    background: var(--gn-primary-dark);
    color: #fff;
}

.gn-comment-form__login {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    color: var(--gn-muted);
}

.gn-comment-form .comment-form-cookies-consent {
    grid-column: 1 / -1;
    font-size: 11px;
    color: var(--gn-muted);
}

.gn-comment-form .comment-form-cookies-consent input { margin-left: 6px; }

.gn-comment-form .comment-reply-title,
.gn-comment-form .logged-in-as {
    grid-column: 1 / -1;
    font-size: 13px;
    margin: 0 0 8px;
}

.gn-comment-form .form-submit { margin: 0; }

@media (max-width: 560px) {
    .gn-comment-form { grid-template-columns: 1fr; }
    .gn-comment-form__field--author,
    .gn-comment-form__field--email { grid-column: 1 / -1; }
}

/* ── Search form ── */
.search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 4px;
    border: 1px solid #c5d4e8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 58, 122, 0.06);
}

.search-form__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form__hint-icon {
    display: inline-flex;
    color: #7b8ba3;
    flex-shrink: 0;
    margin-inline-start: 10px;
}

.search-form__input,
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    border: none;
    border-radius: 0;
    font-family: var(--gn-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gn-text);
    background: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.search-form__input:focus,
.search-form input[type="search"]:focus {
    border-color: transparent;
    box-shadow: none;
}

.search-form__submit,
.search-form input[type="submit"],
.search-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    min-height: 40px;
    background: linear-gradient(135deg, #2a63b8 0%, var(--gn-primary) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--gn-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 158, 0.22);
}

.search-form__submit:hover,
.search-form__submit:focus-visible,
.search-form input[type="submit"]:hover,
.search-form button[type="submit"]:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* ── Categories ── */
.gn-categories {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.gn-categories__link {
    color: var(--gn-primary);
    font-weight: 700;
}

.gn-categories__link:hover {
    color: var(--gn-accent);
}

.gn-categories__sep {
    color: #aaa;
    font-weight: 400;
    user-select: none;
}

.gn-categories__pill {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gn-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1.4;
}

.gn-categories__pill:hover {
    background: var(--gn-primary-dark);
    color: #fff;
}

.gn-single-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 12px;
}

.gn-single-post__meta-cats { flex: 1 1 auto; }

.gn-single-post__meta-aside {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--gn-muted);
    white-space: nowrap;
    line-height: 1;
}

.gn-author-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gn-muted);
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
}

.gn-author-inline:hover {
    color: var(--gn-primary);
}

.gn-author-avatar {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}

.gn-author-inline__name {
    display: inline-flex;
    align-items: center;
    line-height: 22px;
    height: 22px;
}

.gn-single-post__meta-author,
.gn-single-post__meta-author .byline,
.gn-single-post__meta-author .author {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.gn-single-post__meta-author .byline,
.gn-single-post__meta-author .author,
.gn-single-post__meta-author a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.gn-single-post__meta-author a:hover {
    color: var(--gn-primary);
}

.gn-single-post__meta-dot {
    display: inline-flex;
    align-items: center;
    height: 22px;
    line-height: 22px;
    color: #c5ccd6;
    font-weight: 700;
}

.gn-single-post__meta-date,
.gn-single-post__meta-date .entry-date {
    display: inline-flex;
    align-items: center;
    height: 22px;
    line-height: 22px;
    color: var(--gn-muted);
}

.gn-archive-item__cats { margin-bottom: 6px; }

.hero-slider__overlay .gn-categories__pill {
    margin-bottom: 6px;
    background: rgba(29, 78, 158, 0.92);
}

/* Category archive header */
.gn-archive-header--category {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gn-primary);
}

.gn-archive-header__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.gn-archive-header__parent {
    font-size: 14px;
    font-weight: 600;
    color: var(--gn-primary);
}

.gn-archive-header__title-sep {
    color: #aaa;
    font-size: 18px;
}

.gn-archive-header__title {
    font-size: 22px;
    color: var(--gn-text);
    margin: 0;
    font-weight: 800;
}

.gn-archive-header__desc {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--gn-muted);
    line-height: 1.8;
}

.gn-category-nav {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gn-border);
}

.gn-category-nav__label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gn-muted);
}

.gn-category-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-category-nav__item {
    margin: 0;
}

.gn-category-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid var(--gn-border);
    background: linear-gradient(180deg, #fff 0%, var(--gn-bg-soft) 100%);
    color: var(--gn-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gn-category-nav__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gn-category-nav__count {
    flex: 0 0 auto;
    min-width: 1.6em;
    padding: 1px 6px;
    border: 1px solid var(--gn-border);
    background: #fff;
    color: var(--gn-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.gn-category-nav__link:hover,
.gn-category-nav__link:focus-visible {
    border-color: var(--gn-primary);
    color: var(--gn-primary);
    background: #fff;
    box-shadow: inset 0 -2px 0 var(--gn-primary);
}

.gn-category-nav__link.is-active {
    border-color: var(--gn-primary);
    background: var(--gn-primary);
    color: #fff;
    box-shadow: none;
}

.gn-category-nav__link.is-active .gn-category-nav__count {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@media (max-width: 640px) {
    .gn-category-nav__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .gn-category-nav__link {
        white-space: nowrap;
    }
}


/* Legacy compat */
.post-categories {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gn-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

.entry-categories { margin-bottom: 8px; }

/* ── Misc legacy compat ── */
.meta-sep { margin: 0 4px; color: var(--gn-muted); }

.gn-empty {
    padding: 10px;
    color: var(--gn-muted);
    font-size: 12px;
    margin: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.post-card {
    border: 1px solid var(--gn-border);
}

.post-card__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.post-card__body { padding: 10px; }

.post-card__title { font-size: 14px; margin: 0 0 6px; }

.post-card__excerpt { font-size: 12px; color: var(--gn-muted); margin: 0 0 6px; }

.post-card__meta { font-size: 11px; color: var(--gn-muted); }

/* ── Widgets: ad 4x3, editor picks, calendar, tgju ── */
.gn-ad-4x3 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #e8eef8;
    border: 1px solid var(--gn-border);
}

.gn-ad-4x3__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gn-ad-4x3--placeholder {
    display: grid;
    place-items: center;
    color: var(--gn-muted);
    font-size: 13px;
}

.gn-editor-picks {
    margin: 0;
    padding: 0;
    background: transparent;
}

.gn-widget.gn_editor_picks .gn-widget__head,
.gn-widget.widget_gn_editor_picks .gn-widget__head {
    display: none;
}

.gn-editor-picks__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.gn-editor-picks__heading {
    margin: 0;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--gn-text, #1a1a1a);
}

.gn-editor-picks__rule {
    display: block;
    flex: 1;
    height: 2px;
    min-width: 24px;
    background: linear-gradient(90deg, var(--gn-accent, #c0272d), transparent);
    border-radius: 1px;
}

.gn-editor-picks__stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gn-editor-picks__card {
    margin: 0;
    border-bottom: 1px solid #eef2f7;
}

.gn-editor-picks__card:last-child {
    border-bottom: 0;
}

.gn-editor-picks__card-link {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    color: inherit;
    text-decoration: none;
}

.gn-editor-picks__media {
    display: block;
    width: 40px;
    height: 40px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #eef2f7;
    flex-shrink: 0;
}

.gn-editor-picks__img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.gn-editor-picks__img--empty {
    background: #e2e8f0;
}

.gn-editor-picks__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 0;
}

.gn-editor-picks__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gn-text, #1a1a1a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-editor-picks__date {
    font-size: 10px;
    color: var(--gn-muted, #6b7280);
}

.gn-editor-picks__card-link:hover .gn-editor-picks__img {
    opacity: 0.9;
}

.gn-editor-picks__card-link:hover .gn-editor-picks__title {
    color: var(--gn-primary, #1D4E9E);
}

.gn-tgju {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    min-height: 120px;
}

.gn-tgju tgju {
    display: block;
    width: 100%;
}

.gn-gold-price-header__lead {
    margin: 0.35rem 0 0;
    color: #5a6b82;
    font-size: 0.95rem;
    line-height: 1.7;
}

.gn-gold-price-widgets {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.gn-tgju--ticker {
    min-height: 48px;
}

.gn-tgju--market {
    min-height: 160px;
}

.gn-gold-price-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #d7e0ec;
}

.gn-gold-price-news-head__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b2348;
}

.gn-gold-price-news-head__more {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--gn-primary, #1d4e9e);
    text-decoration: none;
}

.gn-gold-price-news-head__more:hover {
    text-decoration: underline;
}

.gn-memory-cal {
    --gn-cal-ink: #0b2348;
    --gn-cal-mute: #4a6285;
    --gn-cal-line: #b8cce6;
    --gn-cal-soft: #dce8f7;
    --gn-cal-cell: #ffffff;
    --gn-cal-l1: #c5ddf8;
    --gn-cal-l2: #6ea8e8;
    --gn-cal-l3: #2f72c4;
    --gn-cal-l4: #123a7a;
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(192, 39, 45, 0.08), transparent 50%),
        radial-gradient(ellipse 90% 70% at 100% 100%, rgba(29, 78, 158, 0.14), transparent 55%),
        linear-gradient(165deg, #dce8f6 0%, #cfdff2 48%, #c4d6ee 100%);
    color: var(--gn-cal-ink);
    border: 1px solid #9eb6d6;
    border-radius: 10px;
    padding: 12px 10px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.gn-memory-cal.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.gn-memory-cal__nav {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(18, 58, 122, 0.18);
}

.gn-memory-cal__nav-btn {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #8fb0d8;
    background: #fff;
    color: #123a7a;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.gn-memory-cal__nav-btn:hover {
    background: var(--gn-primary, #1D4E9E);
    border-color: var(--gn-primary, #1D4E9E);
    color: #fff;
}

.gn-memory-cal__heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.gn-memory-cal__month {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #0b2348;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}

.gn-memory-cal__month:hover {
    color: var(--gn-primary, #1D4E9E);
}

.gn-memory-cal__year-num {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--gn-primary, #1D4E9E);
}

.gn-memory-cal__year {
    color: #3d5a80;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.gn-memory-cal__year:hover {
    color: var(--gn-accent, #c0272d);
}

.gn-memory-cal__weekdays,
.gn-memory-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.gn-memory-cal__weekdays {
    margin-bottom: 4px;
}

.gn-memory-cal__wd {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 11px;
    font-weight: 800;
    color: #3d5a80;
    line-height: 1;
}

.gn-memory-cal__wd--fri {
    color: var(--gn-accent, #c0272d);
}

.gn-memory-cal__day {
    aspect-ratio: 1;
    width: 100%;
    max-width: 34px;
    min-height: 0;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    background: var(--gn-cal-cell);
    border: 1px solid rgba(18, 58, 122, 0.12);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    padding: 0 !important;
    box-sizing: border-box;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(11, 35, 72, 0.06);
}

.gn-memory-cal a.gn-memory-cal__day {
    display: grid;
    padding: 0 !important;
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

.gn-memory-cal__day--empty {
    visibility: hidden;
    pointer-events: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.gn-memory-cal__num {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "ss01" 0;
    color: #0b2348;
    letter-spacing: 0;
    transform: translateY(0.06em);
}

.gn-memory-cal__day.is-empty .gn-memory-cal__num {
    color: #5a7191;
    font-weight: 700;
}

.gn-memory-cal__day.is-friday .gn-memory-cal__num {
    color: #c0272d;
}

.gn-memory-cal__day.is-friday.is-empty .gn-memory-cal__num {
    color: #d45358;
}

.gn-memory-cal__day.level-1 {
    background: var(--gn-cal-l1);
    border-color: #9ec4ef;
}
.gn-memory-cal__day.level-1 .gn-memory-cal__num { color: #0b2348; }

.gn-memory-cal__day.level-2 {
    background: var(--gn-cal-l2);
    border-color: #4a8fd6;
}
.gn-memory-cal__day.level-2 .gn-memory-cal__num { color: #fff; }

.gn-memory-cal__day.level-3 {
    background: var(--gn-cal-l3);
    border-color: #1f5fa8;
}
.gn-memory-cal__day.level-3 .gn-memory-cal__num { color: #fff; }

.gn-memory-cal__day.level-4 {
    background: var(--gn-cal-l4);
    border-color: #0a2858;
    box-shadow: 0 2px 6px rgba(18, 58, 122, 0.35);
}
.gn-memory-cal__day.level-4 .gn-memory-cal__num {
    color: #fff;
    font-weight: 800;
}

.gn-memory-cal__day.level-4.is-friday .gn-memory-cal__num,
.gn-memory-cal__day.level-3.is-friday .gn-memory-cal__num,
.gn-memory-cal__day.level-2.is-friday .gn-memory-cal__num {
    color: #fff;
}

.gn-memory-cal__day.is-today {
    border-color: var(--gn-accent, #c0272d);
    box-shadow: 0 0 0 2px rgba(192, 39, 45, 0.35);
}

.gn-memory-cal__day.is-today .gn-memory-cal__num {
    color: var(--gn-accent, #c0272d);
}

.gn-memory-cal__day.level-4.is-today .gn-memory-cal__num,
.gn-memory-cal__day.level-3.is-today .gn-memory-cal__num,
.gn-memory-cal__day.level-2.is-today .gn-memory-cal__num {
    color: #fff;
}

.gn-memory-cal__day:not(.is-empty):hover {
    border-color: var(--gn-primary, #1D4E9E);
    color: inherit;
    transform: none;
}

.gn-memory-cal__day:not(.is-empty):hover .gn-memory-cal__num {
    color: var(--gn-primary, #1D4E9E);
}

.gn-memory-cal__day.level-2:hover .gn-memory-cal__num,
.gn-memory-cal__day.level-3:hover .gn-memory-cal__num,
.gn-memory-cal__day.level-4:hover .gn-memory-cal__num {
    color: #fff;
}

.gn-memory-cal__legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(18, 58, 122, 0.16);
}

.gn-memory-cal__legend-label {
    font-size: 11px;
    color: #3d5a80;
    font-weight: 700;
}

.gn-memory-cal__swatches {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gn-memory-cal__swatches i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    font-style: normal;
}

.gn-memory-cal__swatches .level-0 { background: #fff; border: 1px solid #9eb6d6; }
.gn-memory-cal__swatches .level-1 { background: var(--gn-cal-l1); border: 1px solid #9ec4ef; }
.gn-memory-cal__swatches .level-2 { background: var(--gn-cal-l2); }
.gn-memory-cal__swatches .level-3 { background: var(--gn-cal-l3); }
.gn-memory-cal__swatches .level-4 { background: var(--gn-cal-l4); }

/* ── Single: source (legacy page_text style) ── */
.gn-news-source {
    margin: 12px 0 4px;
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.gn-news-source__label {
    color: #333;
    margin-left: 4px;
    font-weight: 400;
}

.gn-news-source__link {
    font-weight: 600;
    color: var(--gn-primary, #1d4e9e);
    text-decoration: none;
}

.gn-news-source__link:hover {
    text-decoration: underline;
}

.gn-author-box {
    display: none;
}

.gn-author-box__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
}

.gn-author-box__label {
    display: block;
    font-size: 11px;
    color: var(--gn-muted);
    margin-bottom: 2px;
}

.gn-author-box__name {
    font-weight: 700;
    font-size: 15px;
    color: var(--gn-text, #222);
}

.gn-tags { margin: 20px 0; }

.gn-tags__title {
    margin: 0 0 10px;
    font-size: 15px;
}

.gn-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-tags__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef3fa;
    color: var(--gn-primary);
    font-size: 13px;
    border: 1px solid transparent;
}

.gn-tags__chip:hover {
    border-color: var(--gn-primary);
    background: #fff;
}

.gn-vote-box {
    margin: 24px 0;
    padding: 22px 18px 18px;
    border-radius: 10px;
    background: #f5f8fc;
    border: 1px solid #d5e0ef;
    text-align: center;
    font-family: var(--gn-font);
}

.gn-vote-box__title {
    margin: 0 0 16px;
    font-family: var(--gn-font);
    font-size: 16px;
    font-weight: 800;
    color: #0b2348;
    line-height: 1.5;
}

.gn-vote-box__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gn-vote-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--gn-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    color: #222;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gn-vote-box__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.22);
}

.gn-vote-box__btn--disagree .gn-vote-box__count {
    background: #eef2f7;
    color: #334155;
}

.gn-vote-box__btn--agree .gn-vote-box__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.gn-vote-box__icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gn-vote-box__btn--agree {
    background: var(--gn-primary);
    color: #fff;
}

.gn-vote-box__btn--disagree {
    background: #fff;
    border-color: #d5dde8;
    color: #334155;
}

.gn-vote-box__btn--comment {
    background: var(--gn-accent, #c0272d);
    color: #fff;
}

.gn-vote-box__btn:hover {
    opacity: 1;
    color: inherit;
    transform: translateY(-1px);
}

.gn-vote-box__btn--agree:hover,
.gn-vote-box__btn--comment:hover {
    color: #fff;
}

.gn-vote-box__btn--disagree:hover {
    border-color: var(--gn-accent, #c0272d);
    color: var(--gn-accent, #c0272d);
}

.gn-vote-box__btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.gn-vote-box__rating {
    margin: 14px 0 0;
    font-family: var(--gn-font);
    font-size: 12px;
    font-weight: 600;
    color: #5b6b82;
}

.gn-vote-box__feedback {
    margin: 10px 0 0;
    font-family: var(--gn-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--gn-primary);
}

.gn-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--gn-border);
    border-bottom: 1px solid var(--gn-border);
    margin: 16px 0 24px;
}

.gn-post-meta-bar__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gn-post-meta-bar__share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gn-muted);
}

.gn-share-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-share-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef3fa;
    color: #334;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.gn-share-links__item:hover {
    transform: translateY(-2px);
    background: var(--gn-primary);
    color: #fff;
}

.gn-share-links__item--telegram:hover { background: #2AABEE; }
.gn-share-links__item--whatsapp:hover { background: #25D366; }
.gn-share-links__item--x:hover { background: #111; }

.gn-post-meta-bar__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gn-muted);
}

.gn-post-meta-bar__code {
    font-weight: 700;
    color: var(--gn-text);
}

.gn-post-meta-bar__sep {
    color: #c5ced9;
}

.gn-post-meta-bar__short {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gn-post-meta-bar__short-label {
    color: var(--gn-muted);
    font-weight: 600;
}

.gn-post-meta-bar__short-field {
    display: inline-flex;
    align-items: stretch;
    max-width: min(420px, 100%);
    border: 1px solid #c9d4e3;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.gn-post-meta-bar__short-input {
    flex: 1;
    min-width: 0;
    width: 220px;
    max-width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 7px 10px;
    font-family: var(--gn-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--gn-text);
    direction: ltr;
    text-align: left;
    cursor: text;
}

.gn-post-meta-bar__short-copy {
    border: 0;
    border-right: 1px solid #c9d4e3;
    background: #eef3fa;
    color: var(--gn-primary);
    padding: 0 12px;
    font-family: var(--gn-font);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.gn-post-meta-bar__short-copy:hover,
.gn-post-meta-bar__short-copy.is-copied {
    background: var(--gn-primary);
    color: #fff;
}

/* Flat UI — no decorative box shadows */
.site-content [class*="gn-"],
.gn-header-main,
.gn-footer-map-band,
.gn-telegram-cta__link,
.gn-telegram-cta__icon,
.gn-telegram-cta__action,
.gn-vote-box,
.gn-vote-box__btn,
.gn-share-links__item,
.gn-search-form,
.gn-search-form__submit,
.menu-toggle,
.gn-calendar,
.gn-widget,
.home-section,
.gn-404 {
    box-shadow: none !important;
}

/* ── 404 ── */
.gn-404 {
    position: relative;
    overflow: hidden;
    margin: 24px 0 40px;
    border-radius: 16px;
    background: linear-gradient(180deg, #0a1f4d, #123a7a);
    color: #fff;
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 20px;
}

.gn-404__map {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: radial-gradient(circle at 20% 40%, rgba(168, 196, 239, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 50% 30%, rgba(168, 196, 239, 0.3) 0 1px, transparent 2px),
        radial-gradient(circle at 75% 55%, rgba(168, 196, 239, 0.35) 0 1px, transparent 2px);
    background-size: 48px 48px, 64px 64px, 56px 56px;
    pointer-events: none;
}

.gn-404__inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.gn-404__code {
    margin: 0;
    font-size: clamp(72px, 18vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.9;
}

.gn-404__title {
    margin: 8px 0 10px;
    font-size: 28px;
}

.gn-404__text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.gn-404__search {
    margin: 0 auto 16px;
    max-width: 420px;
}

.gn-404__search .search-form,
.gn-404__search form {
    display: flex;
    gap: 8px;
}

.gn-404__btn {
    display: inline-flex;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--gn-accent, #c0272d);
    color: #fff;
    font-weight: 700;
}

.gn-404__btn:hover {
    color: #fff;
    opacity: 0.92;
}

.gn-404__cats {
    margin-top: 28px;
}

.gn-404__cats-title {
    margin: 0 0 10px;
    font-size: 13px;
    opacity: 0.8;
}

.gn-404__cats-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gn-404__cats-list a {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
}

.gn-404__cats-list a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.site-branding .custom-logo,
.site-branding .site-logo-fallback {
    max-height: 70px;
    width: auto;
}

