/*
Theme Name: GlobalNews
Theme URI: https://globalnews.lt
Author: GlobalNews Team
Author URI: https://globalnews.lt
Description: A modern, performance-first Lithuanian news portal theme.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: globalnews
*/


/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* 2026 Typography: Inter for news body, Lora for editorial headlines */
    --gn-font-heading: 'Playfair Display', 'Lora', Georgia, 'Times New Roman', serif;
    --gn-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Warm, eye-friendly palette — less harsh than pure white/black */
    --gn-primary: #1a1a2e;
    --gn-accent: #c8102e;
    --gn-accent-hover: #a50d24;
    --gn-accent-light: rgba(200, 16, 46, 0.06);
    --gn-secondary: #16213e;
    --gn-surface: #ffffff;
    --gn-bg: #f8f6f2;
    --gn-text: #2d2d2d;
    --gn-text-light: #555555;
    --gn-text-muted: #6b7280;
    --gn-border: #e8e4df;

    /* Refined shadows */
    --gn-shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.03);
    --gn-shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 8px 16px rgba(0,0,0,0.04);
    --gn-shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.06);

    --gn-radius: 10px;
    --gn-radius-sm: 6px;
    --gn-radius-lg: 14px;

    --gn-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --gn-container: 1240px;
    --gn-header-height: 64px;
    --gn-gradient-accent: linear-gradient(135deg, #c8102e 0%, #e94560 100%);
}


/* ==========================================================================
   2. Global Reset & Base
   ========================================================================== */

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

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

body {
    background-color: var(--gn-bg);
    font-family: var(--gn-font-body);
    font-size: 16px;
    color: var(--gn-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gn-font-heading);
    font-weight: 800;
    line-height: 1.25;
    color: var(--gn-text);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a {
    color: var(--gn-accent);
    text-decoration: none;
    transition: color var(--gn-transition);
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

.gn-container {
    max-width: var(--gn-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* ==========================================================================
   3. Header (.gn-header)
   ========================================================================== */

.gn-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--gn-primary);
}

.gn-header__inner {
    height: var(--gn-header-height);
}

/* Offset for WordPress admin bar when logged in */
.admin-bar .gn-header {
    top: 32px;
}

.admin-bar .gn-site-main {
    padding-top: calc(136px + 32px);
}

.admin-bar .gn-reading-progress {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .gn-header {
        top: 46px;
    }
    .admin-bar .gn-site-main {
        padding-top: calc(var(--gn-header-height) + 46px);
    }
    .admin-bar .gn-reading-progress {
        top: 46px;
    }
}

.gn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gn-gradient-accent);
    z-index: 1;
}

.gn-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--gn-container);
    margin: 0 auto;
    padding: 0 20px;
}

.gn-header__brand {
    flex-shrink: 0;
}

/* Logo */
.gn-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--gn-transition);
}

.gn-logo__svg {
    height: 36px;
    width: auto;
    display: block;
}

@media (max-width: 480px) {
    .gn-logo__svg {
        height: 28px;
    }
}

.gn-logo:hover {
    opacity: 0.92;
    color: #ffffff;
}

.gn-logo__icon {
    display: flex;
    flex-shrink: 0;
}

.gn-logo__text {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.gn-logo__name {
    font-family: var(--gn-font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.gn-logo__name strong {
    font-weight: 900;
}

.gn-logo__tagline {
    font-family: var(--gn-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gn-accent);
    opacity: 0.9;
}

/* Fallback plain text title */
.gn-site-title {
    color: #ffffff;
    font-family: var(--gn-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: opacity var(--gn-transition);
}

.gn-site-title:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Navigation */
.gn-nav {
    display: none;
}

/* Mobile menu open state */
.gn-nav.is-open {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--gn-primary);
    z-index: 1500;
    padding: 80px 24px 24px;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.gn-nav.is-open ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gn-nav.is-open ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gn-nav.is-open a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
}

.gn-nav.is-open a::after {
    display: none;
}

/* FB follow link inside mobile nav */
.gn-nav__fb-follow {
    display: none;
}

.gn-nav.is-open .gn-nav__fb-follow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.gn-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.gn-nav a {
    color: #ffffff;
    opacity: 0.85;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: opacity var(--gn-transition);
}

.gn-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gn-accent);
    transition: width var(--gn-transition);
}

.gn-nav a:hover {
    opacity: 1;
    color: #ffffff;
}

.gn-nav a:hover::after {
    width: 100%;
}

/* Header actions */
.gn-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search toggle */
.gn-search-toggle {
    color: #ffffff;
    opacity: 0.85;
    font-size: 1.1rem;
    padding: 6px;
    transition: opacity var(--gn-transition);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gn-search-toggle:hover {
    opacity: 1;
}

/* Hamburger */
.gn-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.gn-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform var(--gn-transition), opacity var(--gn-transition);
}

.gn-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gn-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.gn-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Dateline */
.gn-header-dateline {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gn-header-dateline__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Header weather with city picker */
.gn-header-weather-wrap {
    position: relative;
}

.gn-header-weather-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    padding: 2px 0;
    transition: color var(--gn-transition);
}

.gn-header-weather-btn:hover {
    color: #ffffff;
}

.gn-header-weather-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--gn-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--gn-radius-sm);
    padding: 4px;
    z-index: 100;
    box-shadow: var(--gn-shadow-lg);
    min-width: 130px;
}

.gn-header-weather-dropdown.is-open {
    display: block;
}

.gn-header-weather-city {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background var(--gn-transition);
}

.gn-header-weather-city:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.gn-header-weather-city.is-active {
    color: var(--gn-accent);
    font-weight: 700;
}

.gn-header-dateline__weather {
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}

/* Facebook follow CTA in dateline */
.gn-fb-follow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 2px 9px 2px 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    vertical-align: middle;
}

.gn-fb-follow:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.gn-fb-follow svg { flex-shrink: 0; }

/* Date format: full on desktop, short on mobile */
.gn-date-short { display: none; }

@media (max-width: 768px) {
    .gn-fb-follow { display: none; }
    .gn-ticker { display: none; }
    .gn-date-full { display: none; }
    .gn-date-short { display: inline; }
    .gn-header-dateline {
        height: 32px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }
    .gn-site-main { padding-top: 92px; } /* header 56 + dateline 32, no ticker on mobile */
}

@media (min-width: 769px) {
    .gn-nav__fb-follow { display: none; }
}


/* ==========================================================================
   4. Breaking News Ticker (.gn-ticker)
   ========================================================================== */

.gn-ticker {
    background: var(--gn-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gn-ticker__label {
    background: var(--gn-accent);
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    z-index: 1;
}

.gn-ticker__track {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    /* Duplicate items for seamless loop — JS not needed, CSS handles it */
}

.gn-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    flex-shrink: 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
}

.gn-ticker__item:hover {
    text-decoration: underline;
    color: #ffffff;
}

.gn-ticker__cat {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ==========================================================================
   5. Main Content Area
   ========================================================================== */

.gn-site-main {
    padding-top: 136px; /* header 64 + dateline ~30 + ticker ~42 */
    min-height: 60vh;
}

.gn-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}


/* ==========================================================================
   6. Featured Section (.gn-featured)
   ========================================================================== */

.gn-featured {
    margin-bottom: 40px;
}

.gn-featured__hero {
    position: relative;
    border-radius: var(--gn-radius-lg);
    overflow: hidden;
    background: var(--gn-primary);
}

.gn-featured__link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.gn-featured__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gn-featured__hero:hover .gn-featured__image {
    transform: scale(1.03);
}

.gn-featured__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px 32px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
}

.gn-featured__title {
    font-family: var(--gn-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.gn-featured__meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

/* Sub-featured row */
.gn-featured__sub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.gn-featured__sub-card {
    position: relative;
    border-radius: var(--gn-radius);
    overflow: hidden;
    background: var(--gn-primary);
}

.gn-featured__sub-card .gn-featured__image {
    aspect-ratio: 16 / 10;
}

.gn-featured__sub-title {
    font-family: var(--gn-font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}


/* ==========================================================================
   7. Category Strips (.gn-category-strip)
   ========================================================================== */

.gn-category-strip {
    padding: 32px 0;
}

.gn-category-strip:nth-child(even) {
    background: var(--gn-surface);
}

.gn-category-strip:nth-child(odd) {
    background: var(--gn-bg);
}

.gn-category-strip__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gn-category-strip__title {
    font-family: var(--gn-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gn-text);
    padding-left: 14px;
    border-left: 4px solid var(--gn-accent);
}

.gn-category-strip__more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gn-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--gn-transition);
}

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

.gn-category-strip__cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.gn-category-strip__cards > * {
    scroll-snap-align: start;
    min-width: 220px;
    flex: 0 0 85%;
}


/* ==========================================================================
   8. News Grid (.gn-news-grid)
   ========================================================================== */

.gn-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}


/* ==========================================================================
   9. Cards (.gn-card)
   ========================================================================== */

.gn-card {
    background: var(--gn-surface);
    border-radius: var(--gn-radius);
    overflow: hidden;
    box-shadow: var(--gn-shadow-sm);
    transition: transform var(--gn-transition), box-shadow var(--gn-transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.gn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gn-gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--gn-transition);
    z-index: 2;
}

.gn-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gn-shadow-lg);
}

.gn-card:hover::before {
    transform: scaleX(1);
}

.gn-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gn-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.gn-card__image-wrap .gn-card__category {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.gn-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gn-card:hover .gn-card__image {
    transform: scale(1.05);
}

.gn-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gn-bg);
    color: var(--gn-border);
}

.gn-card__body {
    padding: 20px;
    position: relative;
}

.gn-card__category {
    display: inline-block;
    background: var(--gn-gradient-accent);
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.gn-card__category a {
    color: #ffffff !important;
    text-decoration: none;
}

.gn-card__category:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

.gn-card__title {
    font-family: var(--gn-font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-card__title a {
    color: var(--gn-text);
    text-decoration: none;
    transition: color var(--gn-transition);
}

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

.gn-card__excerpt {
    color: var(--gn-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gn-text-muted);
    font-size: 0.75rem;
    margin-top: 12px;
}

.gn-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gn-card__sentiment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.gn-card__sentiment-dot--positive {
    background: #38a169;
}

.gn-card__sentiment-dot--neutral {
    background: #718096;
}

.gn-card__sentiment-dot--negative {
    background: #e53e3e;
}

.gn-card__sentiment-dot--mixed {
    background: #d69e2e;
}


/* ==========================================================================
   10. Horizontal Card (.gn-card-horizontal)
   ========================================================================== */

.gn-card-horizontal {
    display: flex;
    background: var(--gn-surface);
    border-radius: var(--gn-radius);
    overflow: hidden;
    box-shadow: var(--gn-shadow-sm);
    transition: box-shadow var(--gn-transition);
}

.gn-card-horizontal:hover {
    box-shadow: var(--gn-shadow-md);
}

.gn-card-horizontal__image {
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.gn-card-horizontal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gn-card-horizontal:hover .gn-card-horizontal__image img {
    transform: scale(1.05);
}

.gn-card-horizontal__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.gn-card-horizontal__title {
    font-family: var(--gn-font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-card-horizontal__title a {
    color: var(--gn-text);
    text-decoration: none;
}

.gn-card-horizontal__title a:hover {
    color: var(--gn-accent);
}

.gn-card-horizontal__meta {
    color: var(--gn-text-muted);
    font-size: 0.72rem;
    margin-top: 6px;
}


/* ==========================================================================
   11. Mini Card (.gn-card-mini)
   ========================================================================== */

.gn-card-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gn-border);
    text-decoration: none;
    color: inherit;
}

.gn-card-mini:hover {
    color: inherit;
}

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

.gn-card-mini__rank {
    font-family: var(--gn-font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gn-accent);
    min-width: 24px;
    text-align: center;
}

.gn-card-mini__image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--gn-radius-sm);
    object-fit: cover;
}

.gn-card-mini__body {
    flex: 1;
    min-width: 0;
}

.gn-card-mini__title {
    font-family: var(--gn-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-card-mini__title a {
    color: var(--gn-text);
    text-decoration: none;
}

.gn-card-mini__title a:hover {
    color: var(--gn-accent);
}

.gn-card-mini__date {
    color: var(--gn-text-muted);
    font-size: 0.7rem;
    margin-top: 4px;
}


/* ==========================================================================
   12. Single Post (.gn-single)
   ========================================================================== */

/* Reading progress bar */
.gn-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gn-gradient-accent);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* Hero image */
.gn-single-hero {
    width: 100%;
    max-height: 560px;
    overflow: hidden;
    position: relative;
    background: var(--gn-primary);
}

.gn-single-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
    pointer-events: none;
}

.gn-single-hero__image,
.gn-single-hero img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

@media (min-width: 768px) {
    .gn-single-hero__image,
    .gn-single-hero img {
        transform: scale(1.05);
        transform-origin: center 30%;
    }
}

/* Single header */
.gn-single-header {
    max-width: 780px;
    margin: -60px auto 0;
    padding: 32px 20px 0;
    position: relative;
    z-index: 2;
}

.gn-single-category {
    display: inline-block;
    margin-bottom: 16px;
}

.gn-single-category a {
    display: inline-block;
    background: var(--gn-gradient-accent);
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity var(--gn-transition);
}

.gn-single-category a:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

.gn-single-title {
    font-family: var(--gn-font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--gn-text);
}

.gn-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--gn-text-muted);
    font-size: 0.82rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gn-border);
}

.gn-single-meta__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Single content */
.gn-single-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.gn-single-content .entry-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--gn-text);
    letter-spacing: -0.01em;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
}

.gn-single-content .entry-content p {
    margin-bottom: 1.5em;
}

/* Drop cap */
.gn-single-content .entry-content > p:first-of-type::first-letter {
    font-family: var(--gn-font-heading);
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--gn-accent);
    font-weight: 800;
}

/* Blockquotes */
.gn-single-content .entry-content blockquote {
    border-left: 4px solid var(--gn-accent);
    margin: 2em 0;
    padding: 20px 24px;
    font-style: italic;
    color: var(--gn-text-light);
    background: var(--gn-accent-light);
    border-radius: 0 var(--gn-radius) var(--gn-radius) 0;
    position: relative;
}

.gn-single-content .entry-content blockquote::before {
    content: '\201C';
    font-family: var(--gn-font-heading);
    font-size: 4rem;
    color: var(--gn-accent);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 12px;
    line-height: 1;
}

/* Headings inside content */
.gn-single-content .entry-content h2 {
    font-family: var(--gn-font-heading);
    font-size: 1.5rem;
    margin: 2em 0 0.8em;
    padding-left: 14px;
    border-left: 4px solid var(--gn-accent);
}

.gn-single-content .entry-content h3 {
    font-family: var(--gn-font-heading);
    font-size: 1.25rem;
    margin: 1.8em 0 0.6em;
}

/* Images in content */
.gn-single-content .entry-content img {
    border-radius: var(--gn-radius);
    margin: 2em 0;
}

.gn-single-content .entry-content .full-bleed {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    border-radius: 0;
}

/* Lists */
.gn-single-content .entry-content ul,
.gn-single-content .entry-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.gn-single-content .entry-content ul {
    list-style: disc;
}

.gn-single-content .entry-content ol {
    list-style: decimal;
}

.gn-single-content .entry-content li {
    margin-bottom: 0.4em;
}

/* Info / Contact page cards */
.gn-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

@media (max-width: 600px) {
    .gn-info-cards { grid-template-columns: 1fr; }
}

.gn-info-card {
    background: var(--gn-surface, #ffffff);
    border: 1px solid var(--gn-border, #e2e8f0);
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.gn-info-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--gn-accent, #c8102e);
}

.gn-info-card__icon {
    color: var(--gn-accent, #c8102e);
    margin-bottom: 12px;
}

.gn-info-card h2 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.gn-info-card p {
    font-size: 0.92rem;
    color: var(--gn-text-secondary, #64748b);
    line-height: 1.6;
    margin: 0 0 16px;
}

.gn-info-card__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gn-accent, #c8102e);
    text-decoration: none;
    padding: 8px 18px;
    border: 1.5px solid var(--gn-accent, #c8102e);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.gn-info-card__link:hover {
    background: var(--gn-accent, #c8102e);
    color: #fff;
}

.gn-info-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.gn-info-social__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gn-surface, #ffffff);
    border: 1px solid var(--gn-border, #e2e8f0);
    border-radius: 8px;
    color: var(--gn-text, #2d2d2d);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gn-info-social__link:hover {
    border-color: var(--gn-accent, #c8102e);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Related posts (legacy — kept for backwards compat) */
.gn-related {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    border-top: 1px solid var(--gn-border);
}

.gn-related .gn-news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Section title */
.gn-section-title {
    position: relative;
    font-family: var(--gn-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    padding-left: 14px;
    border-left: 4px solid var(--gn-accent);
    margin-bottom: 24px;
}

/* Breadcrumbs */
.gn-breadcrumb {
    padding: 12px 20px;
    font-size: 0.75rem;
    color: var(--gn-text-muted);
}
.gn-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.gn-breadcrumb__list li::after {
    content: '›';
    margin-left: 4px;
    color: var(--gn-text-muted);
}
.gn-breadcrumb__list li:last-child::after {
    content: none;
}
.gn-breadcrumb__list a {
    color: var(--gn-text-muted);
    text-decoration: none;
}
.gn-breadcrumb__list a:hover {
    color: var(--gn-accent);
}
.gn-breadcrumb__list li[aria-current="page"] {
    color: var(--gn-text-light);
    font-weight: 500;
}


/* ==========================================================================
   13. AI Meta (.gn-ai-meta)
   ========================================================================== */

.gn-ai-meta {
    max-width: 780px;
    margin: 24px auto;
    background: var(--gn-surface);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius-lg);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--gn-shadow-sm);
}

/* Summary box */
.gn-ai-summary {
    background: var(--gn-accent-light);
    border-left: 4px solid var(--gn-accent);
    padding: 18px 22px;
    border-radius: 0 var(--gn-radius) var(--gn-radius) 0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.gn-ai-summary__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gn-accent);
    margin-bottom: 8px;
}

.gn-ai-summary__label svg {
    flex-shrink: 0;
}

.gn-ai-summary__text {
    color: var(--gn-text);
}

/* Source link */
.gn-ai-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gn-text-light);
    text-decoration: none;
    padding: 12px 16px;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    transition: border-color var(--gn-transition), box-shadow var(--gn-transition), color var(--gn-transition);
}

.gn-ai-source:hover {
    border-color: var(--gn-accent);
    box-shadow: var(--gn-shadow-sm);
    color: var(--gn-text);
}

.gn-ai-source svg {
    flex-shrink: 0;
    color: var(--gn-text-muted);
}

.gn-ai-source strong {
    color: var(--gn-text);
    font-weight: 600;
}

/* AI Indicators wrapper */
.gn-ai-indicators {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gn-border);
}

/* Row layout for sentiment, geo, labels */
.gn-ai-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.gn-ai-row__label {
    font-weight: 600;
    color: var(--gn-text);
    font-size: 0.82rem;
}

/* Sentiment badge */
.gn-ai-sentiment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.gn-ai-sentiment__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gn-ai-sentiment--positive {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.gn-ai-sentiment--positive .gn-ai-sentiment__dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.gn-ai-sentiment--neutral {
    background: rgba(156, 163, 175, 0.12);
    color: #6b7280;
}

.gn-ai-sentiment--neutral .gn-ai-sentiment__dot {
    background: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.gn-ai-sentiment--negative {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.gn-ai-sentiment--negative .gn-ai-sentiment__dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Info icon with tooltip */
.gn-ai-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: var(--gn-text-muted);
    opacity: 0.6;
    transition: opacity var(--gn-transition), color var(--gn-transition);
    flex-shrink: 0;
    margin-left: auto;
}

.gn-ai-info:hover {
    opacity: 1;
    color: var(--gn-accent);
}

.gn-ai-info-icon {
    display: block;
}

/* Tooltip via data-tooltip */
.gn-tooltip {
    position: relative;
}

.gn-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: var(--gn-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: var(--gn-radius);
    white-space: normal;
    width: 260px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: var(--gn-shadow-lg);
}

.gn-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    right: 4px;
    border: 6px solid transparent;
    border-top-color: var(--gn-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 101;
}

.gn-tooltip:hover::after,
.gn-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Bias scale — track with marker */
.gn-ai-bias-scale {
    margin-top: 4px;
    margin-bottom: 8px;
}

.gn-ai-bias-scale__track {
    position: relative;
    height: 6px;
    background: linear-gradient(to right, #3b82f6, #94a3b8, #94a3b8, #ef4444);
    border-radius: 3px;
    opacity: 0.3;
}

.gn-ai-bias-scale__marker {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--gn-accent);
    border: 3px solid var(--gn-surface);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px var(--gn-accent), var(--gn-shadow-sm);
    transition: left var(--gn-transition);
}

.gn-ai-bias-scale__marker.bias-left { left: 0%; }
.gn-ai-bias-scale__marker.bias-center-left { left: 25%; }
.gn-ai-bias-scale__marker.bias-center { left: 50%; }
.gn-ai-bias-scale__marker.bias-center-right { left: 75%; }
.gn-ai-bias-scale__marker.bias-right { left: 100%; }

.gn-ai-bias-scale__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.6rem;
    color: var(--gn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gn-ai-bias-scale__labels span {
    text-align: center;
    flex: 1;
    line-height: 1.2;
}

.gn-ai-bias-scale__labels span.is-active {
    color: var(--gn-accent);
    font-weight: 700;
}

/* Geo bias badge */
.gn-ai-geo-badge {
    display: inline-block;
    background: var(--gn-bg);
    color: var(--gn-text-light);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}


/* ==========================================================================
   14. Sidebar (.gn-sidebar)
   ========================================================================== */

.gn-sidebar {
    display: none;
}

.gn-widget {
    margin-bottom: 32px;
}

.gn-widget__title {
    font-family: var(--gn-font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    padding-left: 12px;
    border-left: 3px solid var(--gn-accent);
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Categories widget (legacy) */
.gn-widget-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gn-widget-categories a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--gn-bg);
    color: var(--gn-text-light);
    text-decoration: none;
    transition: background var(--gn-transition), color var(--gn-transition);
}

.gn-widget-categories a:hover {
    background: var(--gn-accent);
    color: #ffffff;
}

/* Category pills */
.gn-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gn-category-pill {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--gn-bg);
    color: var(--gn-text-light);
    text-decoration: none;
    transition: background var(--gn-transition), color var(--gn-transition);
}

.gn-category-pill:hover {
    background: var(--gn-accent);
    color: #ffffff;
}

.gn-category-pill__count {
    font-size: 0.68rem;
    color: var(--gn-text-muted);
    margin-left: 2px;
}

.gn-category-pill:hover .gn-category-pill__count {
    color: rgba(255, 255, 255, 0.8);
}

/* Search widget */
.gn-widget-search {
    position: relative;
}

.gn-widget-search input[type="search"],
.gn-widget-search input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    padding-right: 40px;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    font-size: 0.88rem;
    background: var(--gn-surface);
    color: var(--gn-text);
    transition: border-color var(--gn-transition);
}

.gn-widget-search input:focus {
    outline: none;
    border-color: var(--gn-accent);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.gn-widget-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gn-text-muted);
    background: none;
    border: none;
}

/* Recent posts widget */
.gn-widget-recent .gn-card-mini + .gn-card-mini {
    margin-top: 0;
}


/* ==========================================================================
   14b. Post Navigation (.gn-post-nav)
   ========================================================================== */

.gn-post-nav {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .gn-post-nav { grid-template-columns: 1fr; }
}

.gn-post-nav__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--gn-surface, #fff);
    border: 1px solid var(--gn-border, #e2e8f0);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gn-post-nav__card:hover {
    border-color: var(--gn-accent, #c8102e);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.gn-post-nav__thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.gn-post-nav__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gn-post-nav__text {
    flex: 1;
    min-width: 0;
}

.gn-post-nav__label {
    display: block;
    font-size: 0.68rem;
    color: var(--gn-accent, #c8102e);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gn-post-nav__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--gn-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--gn-text);
}

.gn-post-nav__card:hover .gn-post-nav__title {
    color: var(--gn-accent);
}


/* ==========================================================================
   15. Footer (.gn-footer)
   ========================================================================== */

.gn-footer {
    background: var(--gn-primary);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 60px;
    position: relative;
}

.gn-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gn-gradient-accent);
}

.gn-footer__col {
    min-width: 0;
    overflow: hidden;
}

.gn-footer__widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
    overflow: hidden;
}

.gn-footer .gn-widget__title {
    color: #ffffff;
    font-family: var(--gn-font-heading);
    border-left-color: var(--gn-accent);
}

.gn-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--gn-transition), opacity var(--gn-transition);
}

.gn-footer a:hover {
    color: #ffffff;
    opacity: 1;
}

/* Footer column navigation menu */
.gn-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gn-footer-menu li {
    margin-bottom: 8px;
}

.gn-footer-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.gn-footer-menu a:hover {
    color: #ffffff;
}

.gn-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.gn-footer__copyright {
    color: rgba(255, 255, 255, 0.5);
}

.gn-footer__links {
    display: flex;
    gap: 20px;
}

.gn-footer__links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.gn-footer__links a:hover {
    color: #ffffff;
}

/* Social icons */
.gn-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.gn-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: background var(--gn-transition), color var(--gn-transition);
}

.gn-social-icons a:hover {
    background: var(--gn-accent);
    color: #ffffff;
}


/* ==========================================================================
   16. Search Overlay (.gn-search-overlay)
   ========================================================================== */

/* Overlay backdrop */
.gn-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gn-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Close button */
.gn-search-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--gn-transition), color var(--gn-transition);
}

.gn-search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Inner container */
.gn-search-overlay__inner {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.gn-search-overlay.is-active .gn-search-overlay__inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Label */
.gn-search-overlay__label {
    font-family: var(--gn-font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

/* Input wrapper */
.gn-search-overlay__form {
    margin: 0;
}

.gn-search-overlay__input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 22px;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.gn-search-overlay__input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12), 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gn-search-overlay__icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.gn-search-overlay__input-wrap:focus-within .gn-search-overlay__icon {
    color: var(--gn-accent);
}

/* Input */
.gn-search-overlay__input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--gn-font-heading, Georgia, 'Times New Roman', serif);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    outline: none;
    min-width: 0;
    letter-spacing: -0.3px;
}

.gn-search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
}

/* ESC badge */
.gn-search-overlay__kbd {
    display: none;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-family: var(--gn-font-body);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

/* Live search results */
.gn-search-overlay__results {
    margin-top: 12px;
    max-height: 45vh;
    overflow-y: auto;
}

.gn-search-overlay__results:empty {
    display: none;
}

.gn-search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--gn-radius);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background var(--gn-transition);
}

.gn-search-result:hover,
.gn-search-result.is-selected {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.gn-search-result__image {
    width: 48px;
    height: 48px;
    border-radius: var(--gn-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.gn-search-result__body {
    flex: 1;
    min-width: 0;
}

.gn-search-result__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-search-result__meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.gn-search-result__category {
    color: var(--gn-accent);
    font-weight: 600;
}

.gn-search-overlay__loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.gn-search-overlay__no-results {
    text-align: center;
    padding: 32px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
}

/* Popular tags / hints */
.gn-search-overlay__hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gn-search-overlay__hint span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.gn-search-overlay__hint a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--gn-transition);
}

.gn-search-overlay__hint a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .gn-search-overlay__input {
        font-size: 1.8rem;
    }
    .gn-search-overlay__kbd {
        display: inline-block;
    }
    .gn-search-overlay__input-wrap {
        padding: 20px 28px;
    }
}


/* ==========================================================================
   17. Load More Button (.gn-load-more)
   ========================================================================== */

/* Archive header */
.gn-archive-header {
    padding: 32px 0 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--gn-border);
}

.gn-archive-header__title {
    font-family: var(--gn-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gn-text);
    margin-bottom: 8px;
}

.gn-archive-header__desc {
    color: var(--gn-text-light);
    font-size: 0.95rem;
    max-width: 600px;
}

/* Filters bar */
.gn-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--gn-border);
    margin-bottom: 24px;
}

.gn-filters__group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gn-filters__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
    white-space: nowrap;
}

.gn-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid var(--gn-border);
    background: var(--gn-surface);
    color: var(--gn-text-light);
    cursor: pointer;
    transition: all var(--gn-transition);
    white-space: nowrap;
}

.gn-filter-btn:hover {
    border-color: var(--gn-text-muted);
    color: var(--gn-text);
}

.gn-filter-btn.is-active {
    background: var(--gn-primary);
    color: #ffffff;
    border-color: var(--gn-primary);
}

.gn-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gn-filter-dot--positive { background: #22c55e; }
.gn-filter-dot--neutral { background: #9ca3af; }
.gn-filter-dot--negative { background: #ef4444; }

/* Filter count badge */
.gn-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--gn-text-muted);
    margin-left: 2px;
}

.gn-filter-btn.is-active .gn-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

/* Filter button SVG icons */
.gn-filter-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.gn-filter-btn.is-active svg {
    opacity: 1;
}

/* Home page filter bar */
.gn-home-filters {
    display: flex;
    gap: 6px;
    padding: 12px 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gn-home-filters::-webkit-scrollbar { display: none; }

.gn-home-filter { flex-shrink: 0; }

.gn-home-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    border-radius: var(--gn-radius);
    background: var(--gn-surface);
    color: var(--gn-text-light);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--gn-shadow-sm);
    transition: all var(--gn-transition);
}

@media (min-width: 768px) {
    .gn-home-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 0 20px;
        overflow-x: visible;
    }
    .gn-home-filter {
        padding: 8px 18px;
        font-size: 0.82rem;
        justify-content: flex-start;
    }
}

.gn-home-filter svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--gn-transition);
}

.gn-home-filter:hover {
    color: var(--gn-text);
    box-shadow: var(--gn-shadow-md);
    transform: translateY(-1px);
}

.gn-home-filter:hover svg {
    opacity: 0.8;
}

.gn-home-filter.is-active {
    background: var(--gn-primary);
    color: #ffffff;
    box-shadow: var(--gn-shadow-md);
}

.gn-home-filter.is-active svg {
    opacity: 1;
    stroke: #ffffff;
}

.gn-home-filter:active {
    transform: scale(0.97);
}

/* Hidden card/article (filtered out) */
.gn-card.is-filtered-out,
.gn-filterable.is-filtered-out {
    display: none !important;
}

/* Empty filter state */
.gn-filter-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--gn-text-muted);
}

@media (min-width: 768px) {
    .gn-filters {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}

/* No posts fallback */
.gn-no-posts {
    text-align: center;
    padding: 80px 20px;
}

.gn-no-posts h2 {
    font-family: var(--gn-font-heading);
    margin-bottom: 12px;
}

.gn-no-posts p {
    color: var(--gn-text-muted);
    margin-bottom: 24px;
}

/* 404 Page */
.gn-404 {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.gn-404__inner {
    text-align: center;
    padding-bottom: 48px;
}

.gn-404__code {
    font-family: var(--gn-font-heading);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gn-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0.8;
}

.gn-404__title {
    font-family: var(--gn-font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.gn-404__text {
    color: var(--gn-text-light);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.gn-404__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gn-primary);
    color: #ffffff;
    border-radius: var(--gn-radius);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--gn-transition);
}

.gn-404__btn:hover {
    background: var(--gn-accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--gn-shadow-md);
}

.gn-404__suggested {
    border-top: 1px solid var(--gn-border);
    padding-top: 40px;
}

.gn-404__suggested-title {
    font-family: var(--gn-font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid var(--gn-accent);
}

.gn-404__suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gn-404__card {
    display: block;
    background: var(--gn-surface);
    border-radius: var(--gn-radius);
    overflow: hidden;
    box-shadow: var(--gn-shadow-sm);
    text-decoration: none;
    transition: all var(--gn-transition);
}

.gn-404__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gn-shadow-md);
}

.gn-404__card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.gn-404__card-title {
    padding: 12px 14px;
    font-family: var(--gn-font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gn-404__card:hover .gn-404__card-title {
    color: var(--gn-accent);
}

@media (max-width: 480px) {
    .gn-404__code { font-size: 5rem; }
    .gn-404__title { font-size: 1.3rem; }
}

.gn-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.gn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 2px solid var(--gn-accent);
    background: transparent;
    color: var(--gn-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--gn-radius);
    cursor: pointer;
    transition: background var(--gn-transition), color var(--gn-transition);
}

.gn-load-more:hover {
    background: var(--gn-accent);
    color: #ffffff;
}

.gn-load-more.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   18. Back to Top (.gn-back-to-top)
   ========================================================================== */

.gn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--gn-accent);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--gn-shadow-md);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--gn-transition),
                visibility var(--gn-transition),
                transform var(--gn-transition),
                background var(--gn-transition);
}

.gn-back-to-top:hover {
    background: var(--gn-accent-hover);
    transform: translateY(-2px);
}

.gn-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ==========================================================================
   19. Mobile Menu (.gn-mobile-menu)
   ========================================================================== */

.gn-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--gn-primary);
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 80px 24px 24px;
}

.gn-mobile-menu.is-active {
    transform: translateX(0);
}

.gn-mobile-menu__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1499;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gn-mobile-menu__backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.gn-mobile-menu nav a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: color var(--gn-transition), padding-left var(--gn-transition);
}

.gn-mobile-menu nav a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.gn-mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}


/* ==========================================================================
   20. Skeleton / Placeholder Loading
   ========================================================================== */

.gn-skeleton {
    background: linear-gradient(
        90deg,
        var(--gn-border) 25%,
        rgba(226, 232, 240, 0.5) 50%,
        var(--gn-border) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--gn-radius-sm);
}

.gn-skeleton--text {
    height: 14px;
    margin-bottom: 8px;
}

.gn-skeleton--title {
    height: 20px;
    margin-bottom: 10px;
    width: 80%;
}

.gn-skeleton--image {
    aspect-ratio: 16 / 10;
    border-radius: var(--gn-radius) var(--gn-radius) 0 0;
}


/* ==========================================================================
   21. Utility Classes
   ========================================================================== */

.gn-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gn-text-center { text-align: center; }
.gn-text-muted { color: var(--gn-text-muted); }
.gn-mt-0 { margin-top: 0; }
.gn-mb-0 { margin-bottom: 0; }
.gn-mb-1 { margin-bottom: 8px; }
.gn-mb-2 { margin-bottom: 16px; }
.gn-mb-3 { margin-bottom: 24px; }
.gn-mb-4 { margin-bottom: 32px; }


/* ==========================================================================
   22. Keyframe Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   Mobile fixes (< 480px base styles)
   ========================================================================== */

/* Global mobile heading sizes */
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.15rem; }

/* Mobile ONLY: featured cards matching gn-card style */
@media (max-width: 767px) {
    /* Hero — vertical card with image, title, excerpt */
    .gn-featured__hero {
        min-height: auto !important;
        background: var(--gn-surface) !important;
        overflow: hidden;
        border-radius: var(--gn-radius);
        box-shadow: var(--gn-shadow-sm);
    }
    .gn-featured__hero .gn-featured__link {
        display: flex !important;
        flex-direction: column;
        position: static !important;
    }
    .gn-featured__hero .gn-featured__image {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
    }
    .gn-featured__overlay {
        position: static !important;
        padding: 14px 16px;
        background: var(--gn-surface) !important;
    }
    .gn-featured__overlay .gn-card__category {
        align-self: flex-start;
        width: fit-content;
    }
    .gn-featured__title {
        font-size: 1.15rem;
        line-height: 1.35;
        color: var(--gn-text) !important;
        text-shadow: none !important;
        margin-bottom: 6px;
    }
    .gn-featured__excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--gn-text-muted) !important;
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 6px;
    }
    .gn-featured__meta {
        display: flex !important;
        color: var(--gn-text-muted);
        font-size: 0.75rem;
    }

    /* Sub-cards — horizontal layout like mini cards */
    .gn-featured__sub {
        gap: 10px;
    }
    .gn-featured__sub-card {
        background: var(--gn-surface) !important;
        min-height: auto !important;
        overflow: hidden;
        border-radius: var(--gn-radius);
        box-shadow: var(--gn-shadow-sm);
    }
    .gn-featured__sub-card .gn-featured__link {
        display: flex !important;
        flex-direction: row;
        position: static !important;
        height: auto !important;
    }
    .gn-featured__sub-card .gn-featured__image {
        position: static !important;
        width: 120px !important;
        height: auto !important;
        min-height: 90px;
        aspect-ratio: auto;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
        border-radius: var(--gn-radius) 0 0 var(--gn-radius);
    }
    .gn-featured__sub-card .gn-featured__overlay {
        position: static !important;
        padding: 10px 12px;
        background: var(--gn-surface) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .gn-featured__sub-card .gn-card__category {
        align-self: flex-start;
    }
    .gn-featured__sub-title {
        font-size: 0.92rem;
        line-height: 1.35;
        color: var(--gn-text) !important;
        text-shadow: none !important;
    }
}

.gn-featured__sub-card {
    min-height: 160px;
}

/* Card readability on mobile */
.gn-card__title {
    font-size: 1.05rem;
    line-height: 1.35;
}

.gn-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-line-clamp: 3;
}

.gn-card__meta {
    font-size: 0.78rem;
}

/* Single post title */
.gn-single-title {
    font-size: 1.4rem;
}

/* Archive header */
.gn-archive-header__title {
    font-size: 1.5rem;
}

/* Share bar stacks on mobile */
.gn-share {
    flex-wrap: wrap;
}

/* ---------- Mobile-only overrides (max-width: 480px) ---------- */
@media (max-width: 480px) {
    /* Header height */
    .gn-header__inner { height: 56px; }
    .gn-site-main { padding-top: 124px; } /* 56 + dateline + ticker */

    /* Newsletter popup: full-width on small screens */
    .gn-subscribe-popup__card {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    /* Footer horoscope grid */
    .gn-footer .gn-horoscope__signs {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Share bar compact */
    .gn-share { padding: 16px 12px; }
    .gn-share__btn { width: 36px; height: 36px; }

    /* Font controls compact */
    .gn-font-controls { gap: 3px; }
    .gn-font-controls__sep { margin: 0 4px; }
    .gn-tts-btn { padding: 5px 10px; font-size: 0.72rem; }
    .gn-font-control { width: 30px; height: 30px; font-size: 0.7rem; }
}

/* ==========================================================================
   23. Responsive — 480px
   ========================================================================== */

@media (min-width: 480px) {
    .gn-featured__title {
        font-size: 1.3rem;
    }

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

    .gn-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .gn-category-strip__cards > * {
        flex: 0 0 45%;
    }

    .gn-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ==========================================================================
   24. Responsive — 768px
   ========================================================================== */

@media (min-width: 768px) {
    .gn-nav {
        display: block;
    }

    .gn-hamburger {
        display: none;
    }

    .gn-main-grid {
        grid-template-columns: 1fr 340px;
    }

    .gn-sidebar {
        display: block;
        position: sticky;
        top: calc(var(--gn-header-height) + 24px);
        align-self: start;
    }

    /* Restore overlay-on-image layout for featured cards on tablet+ */
    .gn-featured__hero {
        min-height: 400px;
        background: var(--gn-primary);
        position: relative;
        overflow: hidden;
    }
    .gn-featured__hero .gn-featured__link {
        display: block;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
    .gn-featured__hero .gn-featured__image {
        width: 100%; height: 100%;
        object-fit: cover;
        border-radius: var(--gn-radius-lg);
    }
    .gn-featured__overlay {
        position: absolute; bottom: 0; left: 0; right: 0;
        z-index: 2;
        padding: 40px 32px 32px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    }
    .gn-featured__title {
        color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    .gn-featured__excerpt { display: -webkit-box; color: rgba(255,255,255,0.85); }
    .gn-featured__meta { display: flex; color: rgba(255,255,255,0.6); }

    .gn-featured__sub-card {
        background: var(--gn-primary); min-height: 200px;
        position: relative; overflow: hidden;
    }
    .gn-featured__sub-card .gn-featured__link {
        display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    }
    .gn-featured__sub-card .gn-featured__image {
        position: absolute; width: 100%; height: 100%; top: 0; left: 0;
        border-radius: var(--gn-radius);
    }
    .gn-featured__sub-card .gn-featured__overlay {
        position: absolute; bottom: 0; left: 0; right: 0;
        padding: 16px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    }
    .gn-featured__sub-title { color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

    .gn-featured__title {
        font-size: 2rem;
    }

    .gn-featured__sub {
        grid-template-columns: repeat(3, 1fr);
    }

    .gn-category-strip__cards {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .gn-category-strip__cards > * {
        min-width: 0;
        flex: initial;
    }

    .gn-footer__widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .gn-single-title {
        font-size: 2rem;
    }

    .gn-search-overlay__input {
        font-size: 2.5rem;
    }
}


/* ==========================================================================
   25. Responsive — 1024px
   ========================================================================== */

@media (min-width: 1024px) {
    .gn-featured__title {
        font-size: 2.5rem;
    }

    .gn-featured__overlay {
        padding: 60px 48px 40px;
    }

    .gn-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .gn-category-strip__cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .gn-footer__widgets {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .gn-single-header {
        margin-top: -80px;
        padding: 40px 20px 0;
    }

    .gn-single-title {
        font-size: 2.2rem;
    }
}


/* ==========================================================================
   26. Responsive — 1280px
   ========================================================================== */

@media (min-width: 1280px) {
    .gn-container {
        padding-left: 0;
        padding-right: 0;
    }

    .gn-featured__title {
        font-size: 2.8rem;
    }

    .gn-nav ul {
        gap: 32px;
    }
}


/* ==========================================================================
   CRO & Scroll Experience Enhancements
   ========================================================================== */

/* Newsletter Widget */
.gn-widget-newsletter {
    background: var(--gn-gradient-accent);
    padding: 24px;
    border-radius: var(--gn-radius-lg);
    color: #ffffff;
}
.gn-widget-newsletter .gn-widget__title {
    color: #ffffff;
    border-left-color: rgba(255,255,255,0.4);
}
.gn-newsletter__text {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.5;
}
.gn-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gn-newsletter__input {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--gn-radius);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 0.88rem;
    backdrop-filter: blur(4px);
}
.gn-newsletter__input::placeholder {
    color: rgba(255,255,255,0.6);
}
.gn-newsletter__input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255,255,255,0.25);
}
.gn-newsletter__btn {
    padding: 10px 14px;
    background: #ffffff;
    color: var(--gn-accent);
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: var(--gn-radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity var(--gn-transition), transform var(--gn-transition);
}
.gn-newsletter__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.gn-newsletter__msg {
    display: none;
    font-size: 0.82rem;
    margin-top: 8px;
    font-weight: 500;
}

/* Featured excerpt */
.gn-featured__excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Share bar */
.gn-share {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--gn-border);
    border-bottom: 1px solid var(--gn-border);
}
.gn-share__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gn-text-light);
    white-space: nowrap;
}
.gn-share__buttons {
    display: flex;
    gap: 8px;
}
.gn-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gn-border);
    background: var(--gn-surface);
    color: var(--gn-text-light);
    text-decoration: none;
    transition: all var(--gn-transition);
    cursor: pointer;
}
.gn-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gn-shadow-sm);
}
.gn-share__btn--facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}
.gn-share__btn--twitter:hover {
    background: #0f1419;
    color: #ffffff;
    border-color: #0f1419;
}
.gn-share__btn--linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}
.gn-share__btn--copy:hover {
    background: var(--gn-accent);
    color: #ffffff;
    border-color: var(--gn-accent);
}
.gn-share__btn--copy.is-copied {
    background: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
}


/* GDPR Cookie Banner */
.gn-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--gn-primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gn-cookie-banner.is-visible {
    transform: translateY(0);
}

.gn-cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gn-cookie-banner__text {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.5;
    min-width: 280px;
}

.gn-cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gn-cookie-banner__btn {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--gn-radius);
    cursor: pointer;
    transition: all var(--gn-transition);
    border: none;
}

.gn-cookie-banner__btn--accept {
    background: var(--gn-accent);
    color: #ffffff;
    padding: 10px 28px;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
}

.gn-cookie-banner__btn--accept:hover {
    background: var(--gn-accent-hover);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.5);
    transform: translateY(-1px);
}

.gn-cookie-banner__btn--decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 0.78rem;
    padding: 8px 12px;
}

.gn-cookie-banner__btn--decline:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Theme toggle button */
/* Mood filter buttons */
.gn-mood-filters {
    display: flex;
    gap: 2px;
    margin-right: 4px;
}

.gn-mood-btn {
    color: #ffffff;
    opacity: 0.45;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
}

.gn-mood-btn.is-active { opacity: 0.9; }
.gn-mood-btn:hover { opacity: 1; }

#gn-mood-positive.is-active { color: #4ade80; }
#gn-mood-negative.is-active { color: #f87171; }

.gn-mood-btn::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--gn-primary, #1a1a2e);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 100;
    margin-top: 4px;
}

.gn-mood-btn:hover::after { opacity: 1; }

/* Global mood hiding */
body.gn-hide-positive .gn-card[data-sentiment="positive"],
body.gn-hide-positive .gn-filterable[data-sentiment="positive"],
body.gn-hide-positive .gn-ticker__item[data-sentiment="positive"] { display: none !important; }

body.gn-hide-negative .gn-card[data-sentiment="negative"],
body.gn-hide-negative .gn-filterable[data-sentiment="negative"],
body.gn-hide-negative .gn-ticker__item[data-sentiment="negative"] { display: none !important; }

.gn-theme-toggle {
    color: #ffffff;
    opacity: 0.85;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--gn-transition);
    background: none;
    border: none;
    cursor: pointer;
}

.gn-theme-toggle:hover { opacity: 1; }

.gn-theme-toggle__moon { display: none; }

/* Dark mode */
body.dark-mode .gn-theme-toggle__sun { display: none; }
body.dark-mode .gn-theme-toggle__moon { display: block; }

body.dark-mode {
    --gn-bg: #111116;
    --gn-surface: #1a1a24;
    --gn-text: #f2f0ec;
    --gn-text-light: #c8c5be;
    --gn-text-muted: #9e9b94;
    --gn-text-secondary: #b0ada6;
    --gn-border: #2a2a36;
    --gn-accent-light: rgba(200, 16, 46, 0.12);
    --gn-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --gn-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --gn-shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

body.dark-mode .gn-header {
    background: linear-gradient(to right, #010409, #0d1117);
}

body.dark-mode .gn-card__title a,
body.dark-mode .gn-card-horizontal__title a,
body.dark-mode .gn-card-mini__title,
body.dark-mode .gn-card-mini__title a {
    color: var(--gn-text);
}

body.dark-mode .gn-card__excerpt {
    color: var(--gn-text-light);
}

body.dark-mode .gn-card__meta,
body.dark-mode .gn-card__meta span {
    color: var(--gn-text-muted);
}

body.dark-mode .gn-single-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
    color: var(--gn-text);
}

body.dark-mode .gn-home-filter {
    background: var(--gn-surface);
    color: var(--gn-text-light);
}

body.dark-mode .gn-footer {
    background: #010409;
}

body.dark-mode img {
    opacity: 0.9;
}

/* Font size controls — positioned above article text */
.gn-font-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gn-border);
    flex-wrap: wrap;
}

.gn-font-controls__sep {
    width: 1px;
    height: 20px;
    background: var(--gn-border);
    margin: 0 8px;
}

/* Text-to-speech button */
.gn-tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    background: var(--gn-surface);
    color: var(--gn-text-light);
    cursor: pointer;
    transition: all var(--gn-transition);
    white-space: nowrap;
}

.gn-tts-btn:hover {
    border-color: var(--gn-accent);
    color: var(--gn-accent);
}

.gn-tts-btn.is-playing {
    background: var(--gn-accent);
    color: #ffffff;
    border-color: var(--gn-accent);
}

.gn-tts-btn__icon-stop { display: none; }
.gn-tts-btn.is-playing .gn-tts-btn__icon-play { display: none; }
.gn-tts-btn.is-playing .gn-tts-btn__icon-stop { display: block; }

.gn-font-controls__label {
    font-size: 0.75rem;
    color: var(--gn-text-muted);
    margin-right: 6px;
    white-space: nowrap;
}

.gn-font-control {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius-sm);
    background: var(--gn-surface);
    color: var(--gn-text-light);
    cursor: pointer;
    transition: all var(--gn-transition);
}

.gn-font-control:hover {
    border-color: var(--gn-accent);
    color: var(--gn-accent);
}

#gn-font-reset {
    font-weight: 800;
    color: var(--gn-text);
}


/* Floating share buttons (desktop only) */
.gn-share-floating {
    position: fixed;
    left: calc(50% - 440px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gn-share-floating.is-visible {
    opacity: 1;
    visibility: visible;
}

.gn-share-floating__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gn-surface);
    color: var(--gn-text-light);
    box-shadow: var(--gn-shadow-md);
    border: 1px solid var(--gn-border);
    transition: all 0.25s ease;
    text-decoration: none;
}

.gn-share-floating__btn:hover {
    color: var(--gn-accent);
    border-color: var(--gn-accent);
    transform: scale(1.1);
}

@media (max-width: 1100px) {
    .gn-share-floating { display: none !important; }
}

/* Newsletter popup */
.gn-subscribe-popup__backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.gn-subscribe-popup__card {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: auto;
    max-width: 360px;
    background: var(--gn-surface);
    border-radius: var(--gn-radius-lg);
    box-shadow: var(--gn-shadow-lg);
    padding: 28px;
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
}
.gn-subscribe-popup__close {
    position: absolute;
    top: 12px; right: 12px;
    background: none; border: none;
    font-size: 1.3rem; color: var(--gn-text-muted);
    cursor: pointer; padding: 4px;
}
.gn-subscribe-popup__close:hover { color: var(--gn-text); }
.gn-subscribe-popup__title {
    font-family: var(--gn-font-heading);
    font-size: 1.2rem; margin-bottom: 8px;
}
.gn-subscribe-popup__text {
    font-size: 0.88rem; color: var(--gn-text-light);
    margin-bottom: 16px; line-height: 1.5;
}
.gn-subscribe-popup__form { display: flex; flex-direction: column; gap: 8px; }
.gn-subscribe-popup__btn { width: 100%; text-align: center; }
@media (min-width: 480px) {
    .gn-subscribe-popup__form { flex-direction: row; }
    .gn-subscribe-popup__btn { width: auto; flex-shrink: 0; }
}
.gn-subscribe-popup__input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius); font-size: 0.88rem;
    background: var(--gn-bg); color: var(--gn-text);
}
.gn-subscribe-popup__input:focus { outline: none; border-color: var(--gn-accent); }
.gn-subscribe-popup__btn {
    padding: 10px 18px; background: var(--gn-accent); color: #fff;
    border: none; border-radius: var(--gn-radius);
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    white-space: nowrap;
}
.gn-subscribe-popup__btn:hover { background: var(--gn-accent-hover); }
.gn-subscribe-popup__msg { font-size: 0.82rem; margin-top: 8px; }

/* Inline related posts */
.gn-inline-related {
    background: var(--gn-accent-light);
    border-left: 4px solid var(--gn-accent);
    border-radius: 0 var(--gn-radius) var(--gn-radius) 0;
    padding: 16px 20px;
    margin: 24px 0;
}
.gn-inline-related__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gn-accent);
    margin: 0 0 8px !important;
}
.gn-inline-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gn-inline-related li {
    margin-bottom: 6px;
}
.gn-inline-related a {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gn-text);
    text-decoration: none;
}
.gn-inline-related a:hover {
    color: var(--gn-accent);
}

/* Reactions */
.gn-reactions {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 20px 24px;
    text-align: center;
}
.gn-reactions__label {
    font-size: 0.88rem;
    color: var(--gn-text-light);
    display: block;
    margin-bottom: 12px;
}
.gn-reactions__buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.gn-reaction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    background: var(--gn-surface);
    cursor: pointer;
    transition: all 0.25s ease;
}
.gn-reaction:hover {
    border-color: var(--gn-accent);
    transform: translateY(-2px);
    box-shadow: var(--gn-shadow-sm);
}
.gn-reaction.is-active {
    border-color: var(--gn-accent);
    background: var(--gn-accent-light);
}
.gn-reaction__emoji { font-size: 1.3rem; }
.gn-reaction__count { font-size: 0.72rem; color: var(--gn-text-muted); font-weight: 600; }
.gn-reaction.is-active .gn-reaction__count { color: var(--gn-accent); }

/* ==========================================================================
   27a. Weather Widget (footer)
   ========================================================================== */

.gn-weather { color: rgba(255,255,255,0.85); }
.gn-weather__current {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.gn-weather__emoji { font-size: 2.2rem; line-height: 1; }
.gn-weather__temp { font-size: 1.8rem; font-weight: 700; font-family: var(--gn-font-heading); }
.gn-weather__temp span { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.5); }
.gn-weather__desc { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.gn-weather__details {
    display: flex; gap: 16px; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.gn-weather__forecast {
    display: flex; gap: 8px;
}
.gn-weather__day {
    text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05); padding: 8px 10px; border-radius: 6px; flex: 1;
}
.gn-weather__day-emoji { font-size: 1.1rem; display: block; margin: 4px 0; }
.gn-weather__day-temps { font-size: 0.7rem; }
.gn-weather__day-temps strong { color: rgba(255,255,255,0.85); }
.gn-weather__loading { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   27b. Horoscope Widget (footer)
   ========================================================================== */

.gn-horoscope__signs {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 12px;
}
.gn-horoscope__sign {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; padding: 6px; font-size: 1.1rem; cursor: pointer;
    transition: all 0.2s ease; text-align: center;
}
.gn-horoscope__sign:hover {
    background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2);
}
.gn-horoscope__sign.is-active {
    background: var(--gn-accent); border-color: var(--gn-accent);
}
.gn-horoscope__text {
    font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.7);
    min-height: 60px;
}
.gn-horoscope__name {
    font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 4px; display: block;
}

/* Namedays widget */
.gn-widget-namedays {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    padding: 16px 20px;
    border-radius: var(--gn-radius-lg);
    border: none;
}
.gn-widget-namedays .gn-widget__title {
    border-left-color: #7c3aed;
    color: #5b21b6;
}
.gn-namedays {
    font-size: 0.92rem;
    font-weight: 600;
    color: #4c1d95;
    line-height: 1.5;
}
body.dark-mode .gn-widget-namedays {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 100%);
}
body.dark-mode .gn-widget-namedays .gn-widget__title { color: #c4b5fd; }
body.dark-mode .gn-namedays { color: #ddd6fe; }

.gn-footer__col--namedays .gn-namedays {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}

/* Daily Fact widget */
.gn-widget-fact {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: var(--gn-radius-lg);
    border: none;
}
.gn-widget-fact .gn-widget__title {
    border-left-color: #d97706;
    color: #92400e;
}
.gn-daily-fact {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #78350f;
}
.gn-daily-fact__loading {
    color: #b45309;
    font-size: 0.82rem;
}
body.dark-mode .gn-widget-fact {
    background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
}
body.dark-mode .gn-widget-fact .gn-widget__title { color: #fbbf24; }
body.dark-mode .gn-daily-fact { color: #fde68a; }

/* Sidebar weather/horoscope (light theme) */
.gn-sidebar .gn-weather-sidebar { color: var(--gn-text); }
.gn-sidebar .gn-weather__temp { color: var(--gn-text); }
.gn-sidebar .gn-weather__temp span { color: var(--gn-text-light); }
.gn-sidebar .gn-weather__desc { color: var(--gn-text-light); }
.gn-sidebar .gn-weather__details { color: var(--gn-text-light); }
.gn-sidebar .gn-weather__day { color: var(--gn-text-light); background: var(--gn-bg); }
.gn-sidebar .gn-weather__day-temps strong { color: var(--gn-text); }
.gn-sidebar .gn-weather__loading { color: var(--gn-text-muted); }

.gn-weather-city-select {
    margin-top: 10px;
}
.gn-weather-city-select select {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.78rem;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius-sm);
    background: var(--gn-surface);
    color: var(--gn-text);
    cursor: pointer;
}

/* Sidebar horoscope signs (light theme) */
.gn-sidebar .gn-horoscope__signs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px;
}
.gn-sidebar .gn-horoscope__sign {
    background: var(--gn-bg);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius-sm);
    padding: 6px 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}
.gn-sidebar .gn-horoscope__sign:hover {
    background: var(--gn-accent-light);
    border-color: var(--gn-accent);
}
.gn-sidebar .gn-horoscope__sign.is-active {
    background: var(--gn-accent);
    border-color: var(--gn-accent);
    color: #ffffff;
}
/* Sign name tooltip */
.gn-horoscope__sign[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gn-primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}
.gn-sidebar .gn-horoscope__text {
    font-size: 0.82rem; line-height: 1.6; color: var(--gn-text-light);
    min-height: 50px;
}
.gn-sidebar .gn-horoscope__name {
    font-weight: 700; color: var(--gn-text); margin-bottom: 4px; display: block;
}

/* ==========================================================================
   Social Hub Page
   ========================================================================== */

.gn-social-hub__search {
    margin-bottom: 24px;
}

.gn-social-hub__input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.gn-social-hub__input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gn-border);
    border-radius: var(--gn-radius);
    font-size: 0.95rem;
    background: var(--gn-surface);
    color: var(--gn-text);
    transition: border-color var(--gn-transition);
}

.gn-social-hub__input:focus {
    outline: none;
    border-color: var(--gn-accent);
}

.gn-social-hub__search-btn {
    padding: 10px 20px;
    background: var(--gn-accent);
    color: #fff;
    border: none;
    border-radius: var(--gn-radius);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--gn-transition);
}

.gn-social-hub__search-btn:hover {
    background: var(--gn-accent-hover);
}

.gn-social-hub__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gn-social-hub__tag {
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--gn-border);
    border-radius: 20px;
    background: var(--gn-surface);
    color: var(--gn-text-light);
    cursor: pointer;
    transition: all var(--gn-transition);
}

.gn-social-hub__tag:hover {
    border-color: var(--gn-accent);
    color: var(--gn-accent);
}

.gn-social-hub__tag.is-active {
    background: var(--gn-accent);
    color: #fff;
    border-color: var(--gn-accent);
}

.gn-social-hub__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .gn-social-hub__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .gn-social-hub__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.gn-social-hub__col {
    min-width: 0;
}

.gn-social-hub__col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--gn-font-heading);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gn-border);
}

.gn-social-hub__embed {
    background: var(--gn-surface);
    border-radius: var(--gn-radius);
    overflow: hidden;
    border: 1px solid var(--gn-border);
    min-height: 300px;
}

.gn-social-hub__placeholder {
    padding: 40px 20px;
    text-align: center;
    color: var(--gn-text-muted);
    font-size: 0.85rem;
}

.gn-social-hub__link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gn-social-hub__link-item {
    display: block;
    padding: 14px 16px;
    background: var(--gn-surface);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    text-decoration: none;
    color: var(--gn-text);
    transition: all var(--gn-transition);
}

.gn-social-hub__link-item:hover {
    border-color: var(--gn-accent);
    box-shadow: var(--gn-shadow-sm);
    transform: translateY(-1px);
}

.gn-social-hub__link-item strong {
    font-size: 0.88rem;
}

.gn-social-hub__link-item span {
    font-size: 0.75rem;
    color: var(--gn-text-muted);
}

.gn-social-hub__links-hint {
    padding: 40px 20px;
    text-align: center;
    color: var(--gn-text-muted);
    font-size: 0.85rem;
}

.gn-social-hub__quick-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gn-border);
}

.gn-social-hub__platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gn-social-hub__platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gn-surface);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    text-decoration: none;
    color: var(--gn-text);
    transition: all var(--gn-transition);
}

.gn-social-hub__platform-card:hover {
    border-color: var(--gn-accent);
    box-shadow: var(--gn-shadow-md);
    transform: translateY(-2px);
}

.gn-social-hub__platform-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.gn-social-hub__platform-card strong {
    font-size: 0.88rem;
}

.gn-social-hub__platform-card span {
    font-size: 0.75rem;
    color: var(--gn-text-muted);
}

.gn-social-hub__embed iframe {
    width: 100%;
    border: none;
}

.gn-social-hub__section {
    margin-bottom: 32px;
}

.gn-social-hub__video-main {
    border-radius: var(--gn-radius-lg);
    overflow: hidden;
    box-shadow: var(--gn-shadow-md);
    background: #000;
}

.gn-social-hub__video-main iframe {
    width: 100%;
    display: block;
    min-height: 300px;
}

@media (min-width: 768px) {
    .gn-social-hub__video-main iframe {
        min-height: 450px;
    }
}

.gn-social-hub__fb-wrap {
    display: flex;
    justify-content: center;
}

.gn-social-hub__fb-wrap iframe {
    border-radius: var(--gn-radius);
    box-shadow: var(--gn-shadow-sm);
}

/* News Digest — "Svarbiausia dabar" list */
.gn-digest {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--gn-surface);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
}
.gn-digest__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.gn-digest__title {
    font-family: var(--gn-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gn-accent);
    margin: 0;
}
.gn-digest__time {
    font-size: 0.65rem;
    color: var(--gn-text-muted);
}
.gn-digest__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gn-digest__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gn-border);
}
.gn-digest__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.gn-digest__badge {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--gn-accent-light);
    color: var(--gn-accent);
    white-space: nowrap;
    margin-top: 3px;
}
.gn-digest__badge[data-cat="Sportas"] { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.gn-digest__badge[data-cat="Technologijos"] { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.gn-digest__badge[data-cat="Mokslas"] { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.gn-digest__badge[data-cat="Sveikata"] { background: rgba(236, 72, 153, 0.1); color: #db2777; }
.gn-digest__badge[data-cat="Įdomybės"] { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.gn-digest__link {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gn-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gn-digest__link:hover {
    color: var(--gn-accent);
}
.gn-digest__headline {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 480px) {
    .gn-digest { padding: 12px 14px; }
    .gn-digest__link { font-size: 0.82rem; }
}

/* Key Takeaways — enhanced TL;DR block */
.gn-key-takeaways {
    background: linear-gradient(135deg, var(--gn-accent-light) 0%, rgba(200, 16, 46, 0.03) 100%);
    border-left: 4px solid var(--gn-accent);
    border-radius: 0 var(--gn-radius-lg) var(--gn-radius-lg) 0;
    padding: 20px 24px;
    position: relative;
}
.gn-key-takeaways .gn-ai-summary__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.gn-key-takeaways .gn-ai-summary__text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
}

/* Lithuanian context block */
.gn-lt-context {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--gn-radius);
}

.gn-lt-context .gn-ai-summary__label {
    color: #92400e;
}

.gn-lt-context .gn-ai-summary__text {
    color: #78350f;
    font-style: italic;
}

[data-theme="dark"] .gn-lt-context,
body.dark-mode .gn-lt-context {
    background: linear-gradient(135deg, #422006 0%, #451a03 100%);
    border-color: #92400e;
}

[data-theme="dark"] .gn-lt-context .gn-ai-summary__label,
body.dark-mode .gn-lt-context .gn-ai-summary__label { color: #fbbf24; }
[data-theme="dark"] .gn-lt-context .gn-ai-summary__text,
body.dark-mode .gn-lt-context .gn-ai-summary__text { color: #fde68a; }

/* TL;DR block inside generated articles */
.gn-tldr {
    background: var(--gn-accent-light);
    border-left: 4px solid var(--gn-accent);
    border-radius: 0 var(--gn-radius) var(--gn-radius) 0;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.gn-tldr h3 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gn-accent);
    margin-bottom: 8px;
}
.gn-tldr ul {
    list-style: disc;
    margin: 0 0 0 16px;
    padding: 0;
}
.gn-tldr li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 4px;
    color: var(--gn-text);
    font-weight: 500;
}

/* Poll */

/* Social Feed page */
.gn-social-feed__controls { margin-bottom: 24px; }
.gn-social-feed__network-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.gn-sf-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; background: var(--gn-surface); border: 1.5px solid var(--gn-border);
    border-radius: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 600;
    color: var(--gn-text); transition: all 0.2s;
}
.gn-sf-tab:hover { border-color: var(--gn-accent); }
.gn-sf-tab.is-active { background: var(--gn-primary); color: #fff; border-color: var(--gn-primary); }

.gn-social-feed__search { display: flex; gap: 8px; margin-bottom: 12px; }
.gn-social-feed__input {
    flex: 1; padding: 12px 16px; border: 1.5px solid var(--gn-border); border-radius: 10px;
    font-size: 1rem; font-family: var(--gn-font-body); background: var(--gn-surface);
    color: var(--gn-text); outline: none;
}
.gn-social-feed__input:focus { border-color: var(--gn-accent); }
.gn-social-feed__btn {
    padding: 12px 24px; background: var(--gn-accent); color: #fff; border: none;
    border-radius: 10px; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
}

.gn-social-feed__suggestions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--gn-text-muted); }
.gn-sf-suggest {
    padding: 4px 12px; background: var(--gn-surface); border: 1px solid var(--gn-border);
    border-radius: 20px; cursor: pointer; font-size: 0.78rem; color: var(--gn-text); transition: border-color 0.2s;
}
.gn-sf-suggest:hover { border-color: var(--gn-accent); color: var(--gn-accent); }

.gn-social-feed__results { min-height: 300px; }
.gn-social-feed__placeholder { text-align: center; padding: 60px 20px; color: var(--gn-text-muted); }
.gn-social-feed__loading { text-align: center; padding: 40px; color: var(--gn-text-muted); }
.gn-sf-embed-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--gn-border); }
.gn-sf-embed-wrap--yt iframe { display: block; width: 100%; min-height: 450px; }
.gn-sf-tiktok-link { display: inline-block; text-decoration: none; color: var(--gn-text); padding: 20px; }
.gn-sf-tiktok-link:hover { color: var(--gn-accent); }

@media (max-width: 480px) {
    .gn-social-feed__search { flex-direction: column; }
    .gn-sf-tab { flex: 1; justify-content: center; }
}

/* Meme / Humor cards (legacy) */
.gn-meme-card {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.gn-meme-card__emoji {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}

.gn-meme-card__text {
    font-family: var(--gn-font-heading, Georgia, serif);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gn-meme-card__tag {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.gn-meme-share-cta {
    text-align: center;
    color: var(--gn-text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .gn-meme-card { padding: 32px 24px; }
    .gn-meme-card__text { font-size: 1.15rem; }
    .gn-meme-card__emoji { font-size: 2.5rem; }
}

/* Interactive Games & Quizzes */
.gn-game-intro {
    font-size: 1.1rem;
    color: var(--gn-text-secondary, #64748b);
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--gn-surface, #fff);
    border-left: 4px solid var(--gn-accent, #c8102e);
    border-radius: 0 8px 8px 0;
}

.gn-game-question {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gn-border, #e2e8f0);
}

.gn-game-question:last-of-type { border-bottom: none; }

.gn-game-question h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    line-height: 1.5;
    border: none;
    padding: 0;
}

.gn-game-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.gn-game-option {
    padding: 10px 14px;
    background: var(--gn-surface, #fff);
    border: 1.5px solid var(--gn-border, #e2e8f0);
    border-radius: 8px;
    cursor: default;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}

.gn-game-option__label {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: var(--gn-border, #e2e8f0);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 8px;
    vertical-align: middle;
}

/* Score tracker */
.gn-game-score {
    background: var(--gn-surface, #fff);
    border: 2px solid var(--gn-accent, #c8102e);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 1rem;
    text-align: center;
    position: sticky;
    top: 70px;
    z-index: 10;
}

/* Option interactive states */
.gn-game-option { cursor: pointer; }
.gn-game-option:hover { border-color: var(--gn-accent, #c8102e); background: rgba(200,16,46,0.04); }

.gn-game-answered .gn-game-option:hover { border-color: var(--gn-border, #e2e8f0); background: var(--gn-surface, #fff); }

.gn-game-option--correct {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}

.gn-game-option--correct .gn-game-option__label {
    background: #22c55e;
    color: #fff;
}

.gn-game-option--wrong {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.gn-game-option--wrong .gn-game-option__label {
    background: #ef4444;
    color: #fff;
}

[data-theme="dark"] .gn-game-option--correct,
body.dark-mode .gn-game-option--correct { background: rgba(34,197,94,0.15) !important; }
[data-theme="dark"] .gn-game-option--wrong,
body.dark-mode .gn-game-option--wrong { background: rgba(239,68,68,0.15) !important; }

/* Share buttons in outro */
.gn-game-share {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.gn-game-share a,
.gn-game-share button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s;
}

.gn-game-share a:hover,
.gn-game-share button:hover { opacity: 0.85; }

.gn-game-share__fb { background: rgba(255,255,255,0.18); }
.gn-game-share__msg { background: rgba(255,255,255,0.18); }
.gn-game-share__copy { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3) !important; }

.gn-game-share a:hover,
.gn-game-share button:hover { background: rgba(255,255,255,0.3); opacity: 1; }

.gn-game-reveal {
    margin-top: 8px;
}

.gn-game-reveal summary {
    cursor: pointer;
    color: var(--gn-accent, #c8102e);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 0;
    user-select: none;
    list-style: none;
}

.gn-game-reveal summary::before {
    content: '👁 ';
}

.gn-game-reveal[open] summary {
    margin-bottom: 8px;
}

.gn-game-answer {
    padding: 12px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-theme="dark"] .gn-game-answer,
body.dark-mode .gn-game-answer {
    background: #064e3b;
    border-color: #065f46;
    color: #d1fae5;
}

.gn-game-outro {
    margin-top: 32px;
    padding: 20px;
    background: linear-gradient(135deg, var(--gn-accent, #c8102e), #e11d48);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
}

.gn-game-outro p { margin: 0; color: #fff; }

.gn-poll {
    max-width: 720px;
    margin: 24px auto;
    padding: 24px;
    background: var(--gn-surface);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius-lg);
}
.gn-poll__question {
    font-family: var(--gn-font-heading);
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-align: center;
}
.gn-poll__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gn-poll__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    background: var(--gn-surface);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--gn-transition);
    text-align: left;
}
.gn-poll__option:hover {
    border-color: var(--gn-accent);
}
.gn-poll__option.is-voted {
    pointer-events: none;
}
.gn-poll__option.is-selected {
    border-color: var(--gn-accent);
    font-weight: 600;
}
.gn-poll__option-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gn-accent-light);
    border-radius: var(--gn-radius);
    transition: width 0.5s ease;
    z-index: 0;
}
.gn-poll__option-text {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
}
.gn-poll__option-pct {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gn-text-muted);
    opacity: 0;
    transition: opacity 0.3s;
}
.gn-poll__option.is-voted .gn-poll__option-pct {
    opacity: 1;
}
.gn-poll__total {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gn-text-muted);
    margin-top: 8px;
}

/* Next Reads — attractive related posts */
.gn-next-reads {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.gn-next-reads__title {
    font-family: var(--gn-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 4px solid var(--gn-accent);
}
.gn-next-reads__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gn-next-card {
    display: flex;
    flex-direction: column;
    background: var(--gn-surface);
    border-radius: var(--gn-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--gn-shadow-sm);
    transition: all var(--gn-transition);
}
.gn-next-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gn-shadow-lg);
}
.gn-next-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.gn-next-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gn-next-card:hover .gn-next-card__image img {
    transform: scale(1.05);
}
.gn-next-card__body {
    padding: 14px 16px 18px;
}
.gn-next-card__cat {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gn-accent);
    margin-bottom: 6px;
}
.gn-next-card__title {
    font-family: var(--gn-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gn-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.gn-next-card:hover .gn-next-card__title { color: var(--gn-accent); }
.gn-next-card__meta {
    font-size: 0.7rem;
    color: var(--gn-text-muted);
}

/* Sticky "Next Article" bar */
.gn-next-article {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: var(--gn-primary);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gn-next-article.is-visible {
    transform: translateY(0);
}
.gn-next-article__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    max-width: var(--gn-container);
    margin: 0 auto;
}
.gn-next-article__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gn-accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.gn-next-article__title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gn-next-article__link:hover {
    color: #ffffff;
    opacity: 0.9;
}
@media (max-width: 480px) {
    .gn-next-reads__grid { grid-template-columns: 1fr; gap: 12px; }
    .gn-next-card { flex-direction: row; }
    .gn-next-card__image { width: 120px; flex-shrink: 0; aspect-ratio: 4/3; }
    .gn-next-card__body { padding: 10px 12px 14px; }
    .gn-next-card__title { font-size: 0.9rem; }
}

/* Ad slots — hidden by default, shown only when ad fills */
.gn-ad-slot {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    display: none;
}
.gn-ad-slot.gn-ad-loaded {
    display: block;
    padding: 0 20px;
    margin: 24px auto;
}

/* Ask AI module */
.gn-ask-ai {
    max-width: 720px;
    margin: 32px auto;
    padding: 24px;
    background: var(--gn-surface, #fff);
    border: 1px solid var(--gn-border, #e2e8f0);
    border-radius: 12px;
}

.gn-ask-ai__title {
    font-size: 1rem;
    margin: 0 0 14px;
    border: none;
    padding: 0;
}

.gn-ask-ai__input-wrap {
    display: flex;
    gap: 8px;
}

.gn-ask-ai__input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gn-border, #e2e8f0);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--gn-font-body, Inter, sans-serif);
    background: var(--gn-bg, #f8f6f2);
    color: var(--gn-text);
    outline: none;
}

.gn-ask-ai__input:focus { border-color: var(--gn-accent); }

.gn-ask-ai__btn {
    padding: 10px 20px;
    background: var(--gn-accent, #c8102e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.gn-ask-ai__btn:disabled { opacity: 0.6; cursor: wait; }

.gn-ask-ai__answer {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
}

[data-theme="dark"] .gn-ask-ai__answer { background: #064e3b; border-color: #065f46; }

/* Mystery/curiosity block */
.gn-mystery-block {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.gn-mystery-block__title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--gn-accent);
}

.gn-mystery-block__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .gn-mystery-block__grid { grid-template-columns: 1fr; }
    .gn-mystery-card { flex-direction: row; }
    .gn-mystery-card__image { width: 100px; flex-shrink: 0; aspect-ratio: 1; }
}

.gn-mystery-card {
    display: flex;
    flex-direction: column;
    background: var(--gn-surface);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gn-border);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gn-mystery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.gn-mystery-card__image { aspect-ratio: 16/10; overflow: hidden; }
.gn-mystery-card__image img { width: 100%; height: 100%; object-fit: cover; }

.gn-mystery-card__title {
    padding: 12px 14px;
    font-family: var(--gn-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gn-text);
}

.gn-mystery-card:hover .gn-mystery-card__title { color: var(--gn-accent); }

/* Mid-article ad slot */
.gn-ad-slot--mid.gn-ad-loaded {
    margin: 20px auto;
}

/* ==========================================================================
   27. Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.6;
    }

    .gn-header,
    .gn-footer,
    .gn-sidebar,
    .gn-nav,
    .gn-hamburger,
    .gn-mobile-menu,
    .gn-mobile-menu__backdrop,
    .gn-search-overlay,
    .gn-search-toggle,
    .gn-back-to-top,
    .gn-load-more,
    .gn-ticker,
    .gn-header-dateline,
    .gn-reading-progress,
    .gn-header__actions {
        display: none !important;
    }

    .gn-site-main {
        padding-top: 0 !important;
    }

    .gn-main-grid {
        display: block !important;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.85em;
        color: #555 !important;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: '';
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip Link */
.gn-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gn-accent);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0 0 var(--gn-radius) var(--gn-radius);
    z-index: 9999;
    transition: top 0.2s ease;
    text-decoration: none;
}
.gn-skip-link:focus {
    top: 0;
    color: #ffffff;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

/* Focus visible — keyboard users get visible outlines */
*:focus-visible {
    outline: 2px solid var(--gn-accent);
    outline-offset: 2px;
}

/* Remove outline for mouse clicks */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .gn-card {
        opacity: 1 !important;
        transform: none !important;
    }
    .gn-ticker__track {
        animation: none !important;
    }
}

/* Social links in footer */
.gn-social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.gn-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
    text-decoration: none;
}
.gn-social-link:hover {
    background: var(--gn-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gn-card__category,
    .gn-single-category a,
    .gn-ai-sentiment {
        border: 1px solid currentColor;
    }
    .gn-card__sentiment-dot {
        border: 2px solid currentColor;
    }
}
