:root {
            --background: #f4f4f2;
            --surface: #ffffff;
            --text: #151515;
            --muted: #686868;
            --border: #ddddda;
            --accent: #bf1e2e;
            --accent-dark: #991522;
            --container-width: 1240px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: "Inter", sans-serif;
            background: var(--background);
            color: var(--text);
            line-height: 1.5;
        }

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

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





        .nav {
            display: flex;
            align-items: center;
            gap: 26px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: #4c4c4c;
        }

        .nav a {
            transition: color 0.2s ease;
        }

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



        .live-aircraft-link {
           white-space: nowrap;
}


        .page-container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 40px 28px 70px;
        }

        .featured-story {
            position: relative;
            min-height: 320px;
            overflow: hidden;
            background: #222;
            border-radius: 4px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
        }

        .featured-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-overlay {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(
                    90deg,
                    rgba(0, 0, 0, 0.88) 0%,
                    rgba(0, 0, 0, 0.67) 44%,
                    rgba(0, 0, 0, 0.12) 82%
                ),
                linear-gradient(
                    0deg,
                    rgba(0, 0, 0, 0.72) 0%,
                    rgba(0, 0, 0, 0) 48%
                );
        }

        .featured-content {
            position: relative;
            z-index: 2;
            max-width: 730px;
            min-height: 320px;
            padding: 32px 40px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            color: #ffffff;
        }

        .category-badge {
            display: inline-flex;
            width: fit-content;
            margin-bottom: 18px;
            padding: 7px 11px;
            background: var(--accent);
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.2px;
            text-transform: uppercase;
        }

        .featured-title {
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: clamp(26px, 3vw, 42px);
            line-height: 1.08;
            letter-spacing: -1.3px;
        }

        .featured-title a:hover {
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 5px;
        }

        .featured-summary {
            max-width: 670px;
            color: rgba(255, 255, 255, 0.88);
            margin-top: 12px;
            max-width: 600px;
            font-size: 15px;
            line-height: 1.5;

            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
           
        }

        .featured-meta {
            margin-top: 14px;
            font-size: 10px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            color: rgba(255, 255, 255, 0.72);
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .featured-actions {
            margin-top: 28px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .button {
            min-height:38px;
            padding:10px 16px;
            font-size:11px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid transparent;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            transition:
                background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
        }

        .button:hover {
            transform: translateY(-2px);
        }

        .button-primary {
            background: var(--accent);
            color: #ffffff;
        }

        .button-primary:hover {
            background: var(--accent-dark);
        }

        .button-secondary {
            border-color: rgba(255, 255, 255, 0.62);
            color: #ffffff;
            background: rgba(0, 0, 0, 0.15);
        }

        .button-secondary:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .section-header {
            margin: 54px 0 25px;
            padding-bottom: 14px;
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 20px;
            border-bottom: 1px solid var(--border);
        }

        .section-header h2 {
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: 34px;
            line-height: 1;
        }

        .section-header p {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
        }

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

        .article-card {
            min-width: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: var(--surface);
            border: 1px solid var(--border);
            transition:
                transform 0.22s ease,
                box-shadow 0.22s ease;
        }

        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 18px 34px rgba(0, 0, 0, 0.09);
        }

        .card-image-link {
            display: block;
            overflow: hidden;
            background: #dededb;
            aspect-ratio: 16 / 9;
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.35s ease;
        }

        .article-card:hover .card-image {
            transform: scale(1.035);
        }

        .image-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                linear-gradient(135deg, #222 0%, #444 100%);
            color: rgba(255, 255, 255, 0.78);
            font-family: "Playfair Display", serif;
            font-size: 21px;
            letter-spacing: 1px;
        }

        .card-body {
            flex: 1;
            padding: 25px 24px 24px;
            display: flex;
            flex-direction: column;
        }

        .card-category {
            margin-bottom: 13px;
            color: var(--accent);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.3px;
            text-transform: uppercase;
        }

        .card-title {
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: 26px;
            line-height: 1.15;
            letter-spacing: -0.35px;
        }

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

        .card-summary {
            margin: 15px 0 0;
            color: #555;
            font-size: 14px;
            line-height: 1.68;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-footer {
            margin-top: auto;
            padding-top: 23px;
        }

        .card-meta {
            margin-bottom: 15px;
            color: #888;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.9px;
            text-transform: uppercase;
        }

        .read-story {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: var(--text);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.6px;
            text-transform: uppercase;
        }

        .read-story::after {
            content: "→";
            color: var(--accent);
            font-size: 17px;
            line-height: 1;
            transition: transform 0.2s ease;
        }

        .read-story:hover::after {
            transform: translateX(4px);
        }

        .empty-state {
            padding: 70px 30px;
            text-align: center;
            background: var(--surface);
            border: 1px solid var(--border);
        }

        .empty-state h2 {
            margin: 0 0 10px;
            font-family: "Playfair Display", serif;
            font-size: 32px;
        }

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

        .site-footer {
            background: #181818;
            color: rgba(255, 255, 255, 0.75);
        }

        .footer-inner {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 36px 28px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 25px;
        }

        .footer-logo {
            color: #ffffff;
            font-family: "Playfair Display", serif;
            font-size: 23px;
            font-weight: 700;
        }

        .footer-copy {
            font-size: 12px;
        }

                /* --------------------------------------------------
        COMPACT PREMIUM PUBLICATION HEADER
        -------------------------------------------------- */

        .header-container {
            width: min(calc(100% - 48px), var(--container-width));
            margin: 0 auto;
        }

        .site-header {
            position: relative;
            z-index: 100;
            background: #ffffff;
            border-bottom: 1px solid #d8d8d8;
        }

        .utility-bar {
            background: #171717;
            color: #d8d8d8;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }

        .utility-inner {
            min-height: 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .utility-date { color: #9a9a9a; }
        .masthead { border-bottom: 1px solid #dedede; }

        .masthead-inner {
            min-height: 92px;
            padding: 14px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 34px;
        }

        .site-brand {
            display: inline-flex;
            flex-direction: column;
            flex-shrink: 0;
            color: #111111;
        }

        .brand-name {
            font-family: "Playfair Display", Georgia, serif;
            font-size: clamp(36px, 4vw, 52px);
            font-weight: 800;
            line-height: 0.92;
            letter-spacing: -0.045em;
        }

        .brand-name::after {
            content: "";
            display: block;
            width: 56px;
            height: 3px;
            margin-top: 10px;
            background: var(--accent);
        }

        .brand-tagline {
            margin-top: 8px;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.17em;
            text-transform: uppercase;
            color: #626262;
        }

        .header-newsletter {
            width: min(100%, 520px);
            display: grid;
            grid-template-columns: minmax(145px, 185px) minmax(250px, 1fr);
            align-items: center;
            gap: 14px;
            padding: 12px 14px;
            background: #f2f2f0;
            border-top: 2px solid var(--accent);
        }

        .header-newsletter-copy { display: flex; flex-direction: column; gap: 2px; }
        .header-newsletter-copy strong { font-family: "Playfair Display", Georgia, serif; font-size: 15px; line-height: 1.15; color: #181818; }
        .header-newsletter-copy span { font-size: 11px; line-height: 1.35; color: #666666; }
        .header-newsletter-fields { display: flex; min-width: 0; }

        .header-newsletter-fields input {
            width: 100%;
            min-width: 0;
            height: 40px;
            padding: 0 12px;
            border: 1px solid #c7c7c7;
            border-right: 0;
            border-radius: 0;
            background: #ffffff;
            color: #171717;
            font: inherit;
            outline: none;
        }

        .header-newsletter-fields button {
            height: 40px;
            padding: 0 16px;
            border: 1px solid var(--accent);
            border-radius: 0;
            background: var(--accent);
            color: #ffffff;
            font-family: "Inter", Arial, sans-serif;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            cursor: pointer;
        }

        .header-newsletter-fields button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
        .header-newsletter-fields button:disabled { cursor: wait; opacity: 0.7; }

        .header-newsletter-message {
            grid-column: 2;
            min-height: 14px;
            margin: -8px 0 0;
            font-size: 10px;
            line-height: 1.3;
            color: #555555;
        }
        .header-newsletter-message.success { color: #24723a; }
        .header-newsletter-message.error { color: #a31823; }

        .navigation-bar { background: #ffffff; border-bottom: 1px solid #d7d7d7; }
        .navigation-inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
        .nav { min-height: 44px; display: flex; align-items: stretch; gap: 30px; }

        .nav a {
            position: relative;
            display: inline-flex;
            align-items: center;
            color: #333333;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.09em;
            text-transform: uppercase;
        }

        .nav a::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -1px;
            left: 0;
            height: 2px;
            background: transparent;
        }
        .nav a:hover, .nav a.active { color: var(--accent); }
        .nav a.active::after { background: var(--accent); }

        .navigation-edition {
            color: #777777;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.11em;
            text-transform: uppercase;
        }

        .header-intro {
            padding: 28px 0 30px;
            background: #f5f5f3;
            border-bottom: 2px solid var(--accent);
        }

        .header-kicker {
            margin: 0 0 8px;
            color: var(--accent);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
        }

        .header-intro h1 {
            max-width: 760px;
            margin: 0;
            font-family: "Playfair Display", Georgia, serif;
            font-size: clamp(32px, 4vw, 48px);
            font-weight: 700;
            line-height: 1.02;
            letter-spacing: -0.03em;
            color: #161616;
        }

        .header-description {
            max-width: 720px;
            margin: 12px 0 0;
            font-size: 14px;
            line-height: 1.5;
            color: #555555;
        }

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

        @media (max-width: 950px) {
            .masthead-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
            .header-newsletter { width: 100%; }
        }

        @media (max-width: 700px) {
            .header-container { width: min(calc(100% - 32px), var(--container-width)); }
            .utility-inner { min-height: 26px; }
            .utility-date, .navigation-edition { display: none; }
            .masthead-inner { padding: 16px 0; }
            .brand-name { font-size: 40px; }
            .header-newsletter { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
            .header-newsletter-message { grid-column: 1; margin-top: -4px; }
            .navigation-inner { overflow-x: auto; }
            .nav { gap: 24px; min-width: max-content; }
            .header-intro { padding: 24px 0 26px; }
            .header-intro h1 { font-size: 36px; }
            .header-description { font-size: 14px; }
        }

        @media (max-width: 480px) {
            .header-newsletter-fields { flex-direction: column; gap: 7px; }
            .header-newsletter-fields input { border-right: 1px solid #c7c7c7; }
            .header-newsletter-fields button { width: 100%; }
            .header-intro h1 { font-size: 32px; }
        }

        @media (max-width: 980px) {
            .article-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .featured-story,
            .featured-content {
                min-height: 540px;
            }

            .featured-content {
                padding: 42px;
            }

            .featured-overlay {
                background:
                    linear-gradient(
                        90deg,
                        rgba(0, 0, 0, 0.88) 0%,
                        rgba(0, 0, 0, 0.62) 67%,
                        rgba(0, 0, 0, 0.28) 100%
                    ),
                    linear-gradient(
                        0deg,
                        rgba(0, 0, 0, 0.78) 0%,
                        rgba(0, 0, 0, 0.04) 55%
                    );
            }
        }

        @media (max-width: 760px) {

            .page-container {
                padding: 25px 20px 55px;
            }

            .featured-story,
            .featured-content {
                min-height: 560px;
            }

            .featured-content {
                padding: 30px 24px;
            }

            .featured-title {
                font-size: 39px;
            }

            .featured-summary {
                font-size: 15px;
            }

            .section-header {
                margin-top: 42px;
            }

            .section-header h2 {
                font-size: 30px;
            }

            .section-header p {
                display: none;
            }

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

            .footer-inner {
                padding: 30px 20px;
                flex-direction: column;
                align-items: flex-start;
            }
        }

        @media (max-width: 420px) {
            .featured-title {
                font-size: 34px;
            }

            .featured-content {
                padding: 27px 21px;
            }

            .featured-actions {
                flex-direction: column;
            }

            .button {
                width: 100%;
            }
        }
        .pagination {
    margin-top: 48px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
}

    .pagination-button {
        width: fit-content;
        min-height: 44px;
        padding: 11px 17px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        background: var(--surface);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        transition:
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }

    .pagination-button:last-child {
        justify-self: end;
    }

    .pagination-button:hover {
        color: var(--accent);
        border-color: var(--accent);
        transform: translateY(-1px);
    }

    .pagination-button.disabled {
        color: #aaaaaa;
        cursor: default;
        background: transparent;
    }

    .pagination-status {
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
    }


    /* ==================================================
    LIVE AVIATION TICKER
    ================================================== */

    .live-aviation-bar {
        width: 100%;
        overflow: hidden;
        background: #17191d;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .live-aviation-inner {
        width: min(1180px, calc(100% - 40px));
        min-height: 50px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 22px;
    }

    .live-aviation-label {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 9px;
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }
   
    .live-status-link {
        color: inherit;
        text-decoration: none;
        transition:
            color 0.2s ease,
            opacity 0.2s ease;
    }

    .live-status-link:hover {
        color: #8fd3ff;
    }

    .live-aircraft-link {
        color: inherit;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.32);
        transition:
            border-color 0.2s ease,
            opacity 0.2s ease;
    }

    .live-aircraft-link:hover {
        border-bottom-color: currentColor;
    }

    .live-status-link:focus-visible,
    .live-aircraft-link:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }


    .live-status-dot {
        width: 8px;
        height: 8px;
        display: inline-block;
        flex: 0 0 auto;
        border-radius: 50%;
        background: #2ac769;
        box-shadow: 0 0 0 4px rgba(42, 199, 105, 0.14);
        animation: live-status-pulse 2.2s infinite;
    }

    .live-status-dot.delayed {
        background: #f2a900;
        box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.14);
        animation: none;
    }

    .live-status-dot.offline {
        background: #d64b4b;
        box-shadow: 0 0 0 4px rgba(214, 75, 75, 0.14);
        animation: none;
    }

    .live-ticker-window {
        position: relative;
        min-width: 0;
        overflow: hidden;
        mask-image: linear-gradient(
            to right,
            transparent,
            #000 3%,
            #000 97%,
            transparent
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            #000 3%,
            #000 97%,
            transparent
        );
    }

    .live-ticker-track {
        width: max-content;
        display: flex;
        align-items: center;
        gap: 13px;
        color: #dfe2e6;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
        will-change: transform;
        animation: live-ticker-scroll 70s linear infinite;
    }

    .live-ticker-window:hover .live-ticker-track {
        animation-play-state: paused;
    }
    .live-aviation-bar:focus-within .live-ticker-track {
        animation-play-state: paused;
    }
    .live-ticker-item:hover {
    opacity: 0.92;
    }
    .live-ticker-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    .live-ticker-item strong {
        color: #ffffff;
        font-weight: 800;
    }

    .live-ticker-icon {
        font-size: 0.88rem;
        line-height: 1;
    }

    .live-ticker-separator {
        color: rgba(255, 255, 255, 0.28);
    }

    .live-emergency-clear {
        color: #b9c1c9;
    }

    .live-emergency-active {
        color: #ff8b8b;
        font-weight: 700;
    }

    .live-aviation-updated {
        position: relative;
        z-index: 2;
        color: #949ba4;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    /* Statistic-specific ticker colors */
    .live-stat-airborne {
        color: #ffffff;
    }

    .live-stat-countries {
        color: #b8e1ff;
    }

    .live-stat-fastest {
        color: #73c7ff;
    }

    .live-stat-highest {
        color: #ffd166;
    }

    .live-stat-fl300 {
        color: #79e0e8;
    }

    .live-stat-climbing {
        color: #86e39a;
    }

    .live-stat-descending {
        color: #ffb86b;
    }

    .live-stat-emergency {
        color: #ff6b6b;
    }

    .live-stat-emergency.is-clear {
        color: #b8bec7;
    }

    .live-ticker-item strong {
        color: inherit;
    }

    @keyframes live-status-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(42, 199, 105, 0.38);
        }

        65% {
            box-shadow: 0 0 0 7px rgba(42, 199, 105, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(42, 199, 105, 0);
        }
    }

    @keyframes live-ticker-scroll {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-50%);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .live-ticker-track {
            animation: none;
            width: auto;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .live-ticker-track::-webkit-scrollbar {
            display: none;
        }

        .live-status-dot {
            animation: none;
        }
    }

    @media (max-width: 820px) {
        .live-aviation-inner {
            width: min(100% - 28px, 1180px);
            min-height: 66px;
            grid-template-columns: auto 1fr;
            gap: 4px 14px;
            padding: 7px 0;
        }

        .live-ticker-window {
            grid-column: 1 / -1;
            grid-row: 2;
        }

        .live-aviation-updated {
            justify-self: end;
        }

        .live-ticker-track {
        font-size: 0.78rem;
        animation-duration: 60s;
    }
    }

    @media (max-width: 520px) {
        .live-aviation-inner {
            width: min(100% - 22px, 1180px);
        }

        .live-aviation-label,
        .live-aviation-updated {
            font-size: 0.65rem;
        }

        .live-ticker-track {
            animation-duration: 55s;
        }
    }

/* Shared corrections for article and live templates */
.article-page .site-header,
.live-page .site-header {
    position: relative;
}

.article-page .site-footer,
.live-page .site-footer {
    margin-top: 0;
}

@media (max-width: 700px) {
    .article-page .navigation-inner,
    .live-page .navigation-inner {
        overflow-x: auto;
    }

    .article-page .nav,
    .live-page .nav {
        min-width: max-content;
    }
}


