:root {
    --tag-launches: #007BFF;
    --tag-missions: #17A2B8;
    --tag-breaking: #800000;
    --tag-science: #4B0082;
    --tag-tech: #6C757D;
    --tag-politics: #28A745;
    --tag-explained: #B8860B;
    --tag-speculation: #E83E8C;

    /* Scrollbar palette — same as launches */
    --sb-track: #0a0f12;
    --sb-thumb: #2a3a42;
    --sb-thumb-hover: #3c525e;
}


html {
    scroll-behavior: smooth;
}
/* --- Base type defaults & smoothing --- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Inter','Manrope','Space Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


body.star-bg {
    background: #000;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px),radial-gradient(rgba(255,255,255,.03) 1px,transparent 1px);
    background-size: 3px 3px,150px 150px;
}

.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Space Grotesk',sans-serif;
    font-size: .75rem;
    color: #fff;
}

    .tag[data-tag="launches"] {
        background: var(--tag-launches);
    }

    .tag[data-tag="missions"] {
        background: var(--tag-missions);
    }

    .tag[data-tag="breaking"] {
        background: var(--tag-breaking);
    }

    .tag[data-tag="science"] {
        background: var(--tag-science);
    }

    .tag[data-tag="tech"] {
        background: var(--tag-tech);
    }

    .tag[data-tag="explained"] {
        background: var(--tag-explained);
    }

    .tag[data-tag="speculation"] {
        background: var(--tag-speculation);
    }

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease,transform .6s ease;
}

    .fade-up.visible {
        opacity: 1;
        transform: none;
    }

@media(min-width:1200px) {
    .hero-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 100vh;
        padding-top: 80px;
    }
}

@media(max-width:1199px) {
    .hero-inner {
        display: block;
        padding-top: 120px;
        text-align: center;
    }
}

@media(max-width:767px) {
.hero-card { width: 100%; }
  .hero-right { align-items: stretch; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-subtitle { font-size: .95rem; }

    .news-feed {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-column: span 1;
        flex-direction: column;
        gap: 1rem;
        padding: 20px;
    }

        .news-card .media {
            flex: none;
            width: 100%;
        }

            .news-card .media img {
                width: 100%;
                height: auto;
                border-radius: 8px;
            }

    .fast-block {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        background: rgba(255,255,255,.04);
        border: 2px solid rgba(255,255,255,.15);
        border-radius: 8px;
        padding: 1.2rem;
        grid-column: span 1;
        overflow: visible;
    }

    .news-card .content p, .news-card .content .tag:not(:first-child) {
        display: none;
    }
}

@media(max-width:1199px) {
    .hero-right .hero-card:nth-child(n+2) {
        display: none;
    }
}

#show-more-btn {
    display: inline-block;
    margin-top: 1rem;
}

.breaking-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--tag-breaking);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease,transform .4s ease;
    z-index: 1100;
}

    .breaking-badge.visible {
        opacity: 1;
        transform: none;
    }

    .breaking-badge.hidden {
        display: none;
    }
/* --- HERO & CARD STYLES --- */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* pull section up so background starts behind header */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('news-bg.jpg') center/cover no-repeat;
    filter: brightness(.35);
}
    /* bottom gradient fade */
    .hero-bg::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100px;
        background: linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.9) 100%);
        pointer-events: none;
    }
/* JS will swap url */
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-card {
    width: 380px;
    padding: 14px 1.5rem 1.5rem;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    border: 3px solid transparent;
    transition: transform .3s ease;
    position: relative;
}

    .hero-card:hover {
        transform: translateY(-4px);
    }

    .hero-card.breaking {
        border-color: var(--tag-breaking);
    }

    .hero-card .card-title {
        font-family: 'Manrope',sans-serif;
        font-size: 1.35rem;
        font-weight: 600;
        margin-top: 10px;
        line-height: 1.3;
        color: #fff;
        text-shadow: 0 3px 9px rgba(0,0,0,.85);
    }

.news-card {
    padding-top: 14px;
}

    .news-card .content h3 {
        margin: 0 0 10px;
        color: #fff;
    }

    .news-card .meta {
        margin-top: .5rem;
        font-size: .75rem;
        color: #aaa;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .news-card .meta svg {
            opacity: .6;
        }

.news-feed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(500px,1fr));
    gap: 2rem;
}

.news-card {
    display: flex;
    position: relative;
    gap: 2rem;
    background: rgba(255,255,255,.05);
    border: 3px solid rgba(255,255,255,.18);
    border-image: none;
    transition: border-image .8s ease,border-color .8s ease;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    grid-column: span 2;
    padding: 25px;
}

    .news-card.no-img {
        grid-column: span 1;
    }

    .news-card.reverse {
        flex-direction: row-reverse;
    }

    .news-card .media {
        flex: 0 0 45%;
    }

        .news-card .media img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            display: block;
        }

    .news-card .content {
        flex: 1;
        color: #ddd;
    }

        .news-card .content h3 {
            font-family: 'Manrope',sans-serif;
            font-size: 1.5rem;
            margin: 0 0 .5rem;
            color: #fff;
        }

    .news-card .btn {
        display: inline-block;
        margin-top: 1rem;
        padding: .4rem .9rem;
        border: 1px solid #fff;
        border-radius: 4px;
        text-decoration: none;
        font-size: .8rem;
        transition: background .3s ease;
    }

        .news-card .btn:hover {
            background: #fff;
            color: #000;
        }

@media(max-width:1399px) {
    .news-card, .news-card.reverse {
        flex-direction: column;
    }

        .news-card .media {
            width: 100%;
        }
}

@media(max-width:767px) {
    .news-card .content p, .news-card .content .tag:not(:first-child) {
        display: none;
    }
}

/* --- SIDEBAR TAGS --- */
.tags-sidebar {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    z-index: 900;
}

    .tags-sidebar .tag-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        transition: transform .2s ease;
    }

        .tags-sidebar .tag-icon:hover {
            transform: scale(1.1);
        }

@media(max-width:1023px) {
    .tags-sidebar {
        display: none;
    }
}
/* --- SHOW MORE BTN --- */

.show-more:hover {
    color: #fff;
}
/* --- HERO IMPROVEMENTS --- */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.hero-card {
    width: 380px;
    padding: 14px 1.5rem 1.5rem;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    border: 3px solid transparent;
    transition: transform .3s ease;
    position: relative;
}

    .hero-card .card-title {
        font-size: 1.15rem;
    }

.hero-title {
    font-family: 'Manrope',sans-serif;
    font-size: clamp(2rem,5vw,3rem);
    color: #fff;
    margin: 0;
}

.hero-subtitle {
    color: #ccc;
    font-size: 1rem;
    max-width: 40ch;
    margin-top: .75rem;
}

/* === TAG BADGE TWEAKS === */
.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Space Grotesk',sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
}
    /* High‑contrast gradients */
    .tag[data-tag="launches"] {
        background: linear-gradient(135deg,#0034FF 0%,#6BD4FF 100%);
    }

    .tag[data-tag="missions"] {
        background: linear-gradient(135deg,#00817A 0%,#6AFF9E 100%);
    }

    .tag[data-tag="breaking"] {
        background: linear-gradient(135deg,#B00000 0%,#FF4B4B 100%);
    }

    .tag[data-tag="science"] {
        background: linear-gradient(135deg,#320067 0%,#B366FF 100%);
    }

    .tag[data-tag="tech"], .tag[data-tag="technology"] {
        background: linear-gradient(135deg,#42474F 0%,#C0C5CC 100%);
    }

    .tag[data-tag="politics"] {
        background: linear-gradient(135deg,#004D00 0%,#5AFF5A 100%);
    }

    .tag[data-tag="explained"] {
        background: linear-gradient(135deg,#5C4500 0%,#FFD86F 100%);
    }

    .tag[data-tag="speculation"] {
        background: linear-gradient(135deg,#A8007A 0%,#FF7BDE 100%);
    }
/* === HERO CARD SIZE & TYPO === */
.hero-card {
    width: 380px;
}

    .hero-card .card-title {
        font-size: 1.35rem;
        font-weight: 600;
    }
/* === TAG TEXT IMPROVEMENTS === */
.tag {
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    text-transform: capitalize;
}

.hero-card .card-title, .news-card .content h3 {
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
/* === SHOW MORE RESTYLE === */
.show-more {
    color: #ccc;
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    cursor: pointer;
    background: none;
    border: none;
    margin-top: 1rem;
    padding: 0;
    align-self: flex-end;
    text-align: right;
    transition: color .2s ease;
}

    .show-more:hover {
        color: #fff;
    }
/* === SHOW MORE RESTYLE (final) === */
.show-more {
    display: inline-block;
    margin-top: 1rem;
    color: #ccc;
    font-family: 'Inter',sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    align-self: flex-end;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    transition: color .2s ease;
}

    .show-more:hover {
        color: #fff;
    }
/* === SPECIAL HERO BADGES === */
.tag.special-breaking {
    background: linear-gradient(135deg,#900000 0%,#FF4B4B 100%);
}

.tag.special-latest {
    background: linear-gradient(135deg,#17A2B8 0%,#8A63D2 100%);
}
/* Bigger Breaking border + subtle glow */
.hero-card.breaking {
    border: 3px solid #800000;
    box-shadow: 0 0 6px rgba(128,0,0,.6);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 4px rgba(128,0,0,.4);
    }

    to {
        box-shadow: 0 0 12px rgba(255,0,0,.9);
    }
}
/* === HERO BADGE SPACING & CARD PADDING === */
.hero-card {
    padding: 1.5rem 1.5rem;
}

    .hero-card .tag {
        margin-right: .8rem;
        margin-bottom: .6rem;
        display: inline-block;
    }

    .hero-card .card-title {
        margin-top: .3rem;
    }
/* === DARKER CARD BACKGROUND & EXTRA TEXT SHADOW === */
.hero-card {
    background: rgba(255,255,255,.06);
}
/* slightly darker than .04 */
.news-card {
    background: rgba(255,255,255,.05); /* lighter backdrop */
    backdrop-filter: blur(3px);
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,.15); /* more visible frame */
}

.hero-title, .hero-subtitle {
    text-shadow: 0 2px 6px rgba(0,0,0,.65);
}
/* tag shadows already present via .tag rule */


/* === IMAGE CREDIT STYLE === */
.image-credit {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: .85rem;
    color: #ccc;
    font-family: 'Inter',sans-serif;
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
    pointer-events: none;
}
/* === STRONGER SHADOW FOR NEWS CARD TITLES === */
.news-card .content h3 {
    text-shadow: 0 3px 8px rgba(0,0,0,.8);
}
/* === ENHANCED TEXT SHADOWS (cards + buttons) === */
.hero-card .card-title {
    text-shadow: 0 3px 9px rgba(0,0,0,.85);
}

.news-card .content h3 {
    text-shadow: 0 4px 12px rgba(0,0,0,.9);
}

.show-more {
    text-shadow: 0 2px 6px rgba(0,0,0,.75);
}
/* === HERO META POSITION & STYLE === */
.hero-card {
    padding: 14px 1.5rem 1.5rem;
}

    .hero-card .meta {
        position: absolute;
        left: 1.5rem;
        right: 1.5rem;
        bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: .8rem;
        pointer-events: none;
    }

        .hero-card .meta .date {
            color: #ccc;
            font-weight: 600;
        }

        .hero-card .meta .views {
            color: #ccc;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .hero-card .meta svg {
            stroke: #ccc;
            opacity: .8;
        }
/* --- LIST CARD FINISHING TOUCHES --- */
/* gradient border via pseudo-element for smooth fade */
.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 3px;
    background: var(--cat-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s ease;
    z-index: 1;
    z-index: 1;
    background: var(--cat-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .8s ease;
    z-index: 1;
}

.news-card:hover::after {
    opacity: 1;
}

.news-card:hover::after {
    opacity: 1;
}

.news-card {
    padding-top: 14px;
}

    .news-card .content h3 {
        margin: 0 0 10px;
        color: #fff;
        font-weight: 700;
        text-shadow: 0 3px 8px rgba(0,0,0,.85);
    }

    .news-card .content p {
        font-weight: 500;
    }

    .news-card .meta {
        margin-top: .75rem;
        font-size: .8rem;
        color: #ccc;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .news-card .meta .date {
            font-weight: 600;
        }

        .news-card .meta .views {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .news-card .meta svg {
            stroke: #ccc;
            opacity: .8;
        }

    .news-card .btn {
        display: inline-block;
        margin-top: 35px;
        padding: .6rem 1.4rem;
        border: 2px solid #aaa;
        border-radius: 10px;
        font-size: .95rem;
        font-family: 'Inter',sans-serif;
        font-weight: 600;
        color: #fff;
        background: none;
        cursor: pointer;
        transition: background .3s ease,border-color .3s ease,box-shadow .3s ease;
        padding: .6rem 1.4rem;
        border: 2px solid #aaa;
        border-radius: 10px;
        font-size: .95rem;
        font-family: 'Inter',sans-serif;
        font-weight: 600;
        color: #fff;
        background: none;
        cursor: pointer;
        transition: background .3s ease,border-color .3s ease,box-shadow .3s ease;
    }

        .news-card .btn:hover {
            background: linear-gradient(135deg,#b4b4b4 0%,#e7e7e7 50%,#9f9f9f 100%);
            border-color: #d0d0d0;
            color: #000;
            box-shadow: 0 0 6px rgba(200,200,200,.6);
        }
    /* --- HASHTAGS STYLE --- */
    .news-card .hashtags {
        margin-top: .4rem;
        font-size: .85rem;
        color: #bbb;
        font-weight: 500;
        display: flex;
        flex-wrap: wrap;
        gap: .6rem;
    }
    /* --- HASHTAGS STYLE --- */
    .news-card .hashtags {
        margin-top: .4rem;
        font-size: .85rem;
        color: #bbb;
        font-weight: 500;
        display: flex;
        flex-wrap: wrap;
        gap: .6rem;
    }

        .news-card .hashtags span {
            margin-right: .6rem;
        }
/* --- NEWS CARD EXTRA PADDING --- */
.news-card {
    padding: 25px;
}
/* --- FAST NEWS BLOCKS --- */
.fast-feed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fast-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255,255,255,.04);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 1.2rem;
    grid-column: span 1;
    overflow: visible;
}
    /* pink‑orange gradient corner highlight */
    .fast-block::before, .fast-block::after {
        content: none;
    }

    .fast-block::before {
        content: "";
        position: absolute;
        left: -2px;
        top: 5%;
        width: 2px;
        height: 90%;
        border-radius: 2px;
        background: linear-gradient(180deg,#723800 0%,#9c3c00 45%,#701254 100%);
        pointer-events: none;
        z-index: 2;
    }

    .fast-block::after {
        content: none;
    }

.fast-item h4 {
    margin: .25rem 0 .25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.fast-item p {
    margin: 0;
    font-size: .92rem;
    color: #bbb;
}

.fast-meta {
    font-size: .78rem;
    color: #888;
    font-weight: 500;
}
/* FAST watermark */
.fast-block .watermark {
    position: absolute;
    bottom: 14px;
    right: 0;
    font-size: 3.1rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg,#522600 0%,#773000 45%,#4a0d3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
}

/* === MOBILE ONE‑COLUMN LAYOUT === */
@media(max-width:767px) {
    .news-feed {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-column: span 1;
        flex-direction: column;
    }

    .fast-block {
        grid-column: span 1;
    }
}
/* === BREAKING NEWS HIGHLIGHT === */
.breaking-news {
    position: relative;
    overflow: visible;
}

    .breaking-news::before {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 8px;
        pointer-events: none;
        z-index: 3;
        background:
        /* top-left */
        linear-gradient(90deg,#ff2e2e 0%,#c00000 60%,transparent 100%) top left/68px 4px no-repeat, linear-gradient(180deg,#ff2e2e 0%,#c00000 60%,transparent 100%) top left/4px 68px no-repeat,
        /* bottom-right (fixed directions) */
        linear-gradient(270deg,#ff2e2e 0%,#c00000 60%,transparent 100%) bottom right/68px 4px no-repeat, linear-gradient(0deg,#ff2e2e 0%,#c00000 60%,transparent 100%) bottom right/4px 68px no-repeat;
    }

    /* full gradient border on hover */
    .breaking-news:hover {
        border: 3px solid transparent !important;
    }

        .breaking-news:hover::after, .breaking-news:hover::before {
            z-index: 3;
        }

    .breaking-news .watermark {
        position: absolute;
        bottom: 14px;
        right: 14px;
        font-size: 2.5rem;
        font-weight: 800;
        color: #e30720;
        pointer-events: none;
        letter-spacing: 1px;
    }
/* Mobile media fix */
@media(max-width:767px) {
    .news-card .media {
        flex: none !important;
        width: 100%;
    }
}

.news-card {
    border: 3px solid rgba(255,255,255,.18) !important;
    border-radius: 8px;
    transition: border-image .8s ease,border-color .8s ease;
}

    .news-card:hover {
        border: 3px solid transparent !important;
    }

        .news-card:hover::after {
            opacity: 1;
        }

/* === FILTERS SIDEBAR === */
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .19s ease;
    z-index: 1090;
}

    .filters-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

.filters-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    width: 320px;
    background: #171a1d;
    border-right: 1px solid rgba(255,255,255,.08);
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(0.22,1,0.36,1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

    .filters-sidebar.open {
        transform: translateX(0);
    }

.fs-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #171a1d;
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 1;
}

.fs-title {
    font-family: 'Manrope',sans-serif;
    font-weight: 700;
    color: #fff
}

.fs-badge {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #222;
    color: #ddd;
    font-size: .75rem;
    font-weight: 700
}

.fs-actions {
    display: flex;
    align-items: center;
    gap: .5rem
}

.fs-icon {
    background: #1b1f23;
    border: 1px solid rgba(255,255,255,.2);
    color: #ddd;
    border-radius: 8px;
    padding: .35rem .55rem;
    cursor: pointer;
    transition: all .2s ease
}

    .fs-icon:hover {
        border-color: rgba(255,255,255,.35);
        box-shadow: 0 0 0 2px rgba(155,188,255,.12) inset
    }

.fs-link {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    padding: .45rem .75rem;
    color: #ddd;
    cursor: pointer;
    transition: all .2s ease
}

    .fs-link:hover {
        border-color: rgba(255,255,255,.4);
        box-shadow: 0 0 0 2px rgba(155,188,255,.12) inset;
        color: #fff
    }

.fs-divider {
    border: 0;
    border-top: 1px dashed rgba(255,255,255,.18);
    margin: .6rem 0
}

.fs-body {
    overflow: auto;
    padding: 1rem
}

.fs-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #171a1d;
    border-top: 1px solid rgba(255,255,255,.08)
}

.fs-primary {
    flex: 1;
    background: linear-gradient(135deg,#5C4500,#FFD86F);
    border: none;
    border-radius: 8px;
    padding: .6rem 1rem;
    font-weight: 700;
    color: #000;
    cursor: pointer
}

.fs-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: .6rem 1rem;
    color: #ddd;
    cursor: pointer
}

.fs-group {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    margin-bottom: 1rem
}

.fs-acc {
    width: 100%;
    text-align: left;
    background: #1b1f23;
    border: none;
    color: #fff;
    padding: .7rem 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Manrope',sans-serif
}

.fs-acc-panel {
    padding: .6rem 1rem .9rem
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: .25rem .4rem .25rem 0;
    padding: .35rem .6rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #ddd;
    cursor: pointer
}

.dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    display: inline-block
}

.dot-breaking {
    background: #e30720
}

.dot-science {
    background: #4B0082
}

.dot-explained {
    background: #B8860B
}

.dot-launches {
    background: #007BFF
}

.dot-missions {
    background: #17A2B8
}

.dot-tech {
    background: #6C757D
}

.dot-politics {
    background: #28A745
}

.dot-speculation {
    background: #E83E8C
}

.dot-fast {
    background: linear-gradient(135deg,#ff9a00,#ff7bde)
}

.switch {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .35rem 0;
    color: #ddd
}

.fs-search {
    width: 100%;
    height: var(--ctl-h,38px);
    padding: 0 .75rem;
    border-radius: var(--radius,10px);
    border: 1px solid rgba(255,255,255,.2);
    background: #14171a;
    color: #fff
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.chip {
    position: relative;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: .35rem .7rem;
    background: #14171a;
    color: #ddd;
    cursor: pointer;
    transition: all .2s ease
}

.preset-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .6rem
}

.preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--ctl-h,38px);
    padding: 0 .75rem;
    border: 1px solid rgba(255,255,255,.25);
    background: #161a1d;
    border-radius: var(--radius,10px);
    color: #ddd;
    cursor: pointer;
    transition: all .2s ease
}

    .preset:hover {
        border-color: rgba(255,255,255,.4)
    }

    .preset:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(155,188,255,.18)
    }

.range-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: #14171a;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius,10px);
    padding: 4px
}

    .range-row:focus-within {
        border-color: transparent
    }

    .range-row::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: calc(var(--radius,10px) + 1px);
        padding: 1px;
        background: linear-gradient(135deg,#00817A 0%,#6AFF9E 100%);
        opacity: 0;
        transition: opacity .2s ease;
        -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none
    }

    .range-row:focus-within::after {
        opacity: 1
    }

.fs-found {
    margin-top: .4rem;
    color: #bbb;
    font-size: .85rem
}

/* desktop expanded */
@media(min-width:1280px) {
    body.with-sidebar #news-page {
        padding-left: 320px
    }

    .filters-overlay {
        display: none !important
    }

    .filters-sidebar {
        transform: translateX(-100%);
    }

    .filters-sidebar.open {
        transform: translateX(0);
    }

    #fs-close {
        display: none
    }
}
/* tablet */
@media(min-width:768px) and (max-width:1279px) {
    .filters-sidebar {
        width: 288px
    }
}
/* mobile drawer */
@media(max-width:767px) {
    .filters-sidebar {
        top: 0;
        height: 100vh;
        width: 100vw;
        border-right: none;
        border-left: 1px solid rgba(255,255,255,.08)
    }
}

/* header buttons injected next to site header */
.filters-toggle, .filters-hamburger {
    position: fixed;
    top: 88px;
    left: 12px;
    z-index: 1200;
    background: #171a1d;
    border: 1px solid rgba(255,255,255,.2);
    color: #ddd;
    border-radius: 10px;
    padding: .45rem .7rem;
    cursor: pointer
}

.filters-hamburger {
    display: none
}

@media(min-width:1280px) {
    .filters-toggle, .filters-hamburger {
        display: none
    }
}

@media(max-width:767px) {
    .filters-toggle {
        display: none
    }

    .filters-hamburger {
        display: block
    }
}
/* Pills: nicer checkboxes */
.pill input {
    appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute
}

.pill {
    position: relative;
    user-select: none;
    opacity: .7;
    filter: grayscale(1) contrast(.95);
    transition: all .2s ease
}

    .pill:hover {
        opacity: .9;
        filter: grayscale(.6)
    }

    .pill:has(input:checked) {
        opacity: 1;
        filter: none;
        border-color: transparent;
        background: rgba(255,255,255,.06);
        position: relative
    }

        .pill:has(input:checked)::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 999px;
            padding: 1px;
            background: var(--grad);
            -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none
        }

    .pill .dot {
        filter: grayscale(1);
        opacity: .6;
        transition: all .2s ease
    }

    .pill:has(input:checked) .dot {
        filter: none;
        opacity: 1
    }

/* desktop collapsible */
@media(min-width:1280px) {
    .filters-sidebar.collapsed {
        transform: translateX(-100%)
    }
}

.range-row input[type="date"] {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0
}

    .range-row input[type="date"]:focus {
        outline: none;
        box-shadow: none
    }

@media(min-width:1280px) {
    .filters-toggle {
        display: block
    }
}
/* Selected pill gradient mapping (incl. Breaking) */
.pill:has(input[value="science"]:checked) {
    --grad: linear-gradient(135deg,#320067 0%,#B366FF 100%)
}

.pill:has(input[value="explained"]:checked) {
    --grad: linear-gradient(135deg,#5C4500 0%,#FFD86F 100%)
}

.pill:has(input[value="launches"]:checked) {
    --grad: linear-gradient(135deg,#0034FF 0%,#6BD4FF 100%)
}

.pill:has(input[value="missions"]:checked) {
    --grad: linear-gradient(135deg,#00817A 0%,#6AFF9E 100%)
}

.pill:has(input[value="tech"]:checked) {
    --grad: linear-gradient(135deg,#42474F 0%,#C0C5CC 100%)
}

.pill:has(input[value="politics"]:checked) {
    --grad: linear-gradient(135deg,#004D00 0%,#5AFF5A 100%)
}

.pill:has(input[value="speculation"]:checked) {
    --grad: linear-gradient(135deg,#A8007A 0%,#FF7BDE 100%)
}

.pill:has(input[value="fast"]:checked) {
    --grad: linear-gradient(135deg,#ff9a00 0%,#ff7bde 100%)
}

.pill:has(input[value="breaking"]:checked) {
    --grad: linear-gradient(135deg,#ff2e2e 0%,#c00000 100%)
}
/* Selected tag chip */
.chip.sel {
    border-color: transparent;
    background: rgba(255,255,255,.06);
    color: #fff
}

    .chip.sel::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 999px;
        padding: 1px;
        background: linear-gradient(135deg,#00817A 0%,#6AFF9E 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none
    }

.fs-period {
    --ctl-h: 38px;
    --radius: 10px;
    background: #15181b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .75rem;
    color: #fff
}
/* Date inputs dark + chevron */
.date-wrap {
    position: relative;
    flex: 1 1 180px
}

.date-input {
    flex: 1 1 180px;
    height: var(--ctl-h,38px);
    background: transparent;
    border: none;
    border-radius: var(--radius,10px);
    color: #fff;
    padding: 0 .75rem;
    appearance: none;
    -webkit-appearance: none
}

    .date-input:focus {
        outline: none
    }

    .date-input::-webkit-calendar-picker-indicator {
        opacity: 0
    }

.dash {
    display: inline-block;
    width: 1px;
    height: calc(var(--ctl-h,38px) - 10px);
    background: rgba(255,255,255,.2);
    margin: 0 8px;
    font-size: 0
}
/* Tags box */
.fs-tagsbox {
    background: #15181b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .6rem
}

.fs-empty {
    margin-top: .5rem;
    color: #aaa;
    font-size: .9rem
}

.fs-link.fs-small {
    padding: .35rem .6rem;
    border-radius: 8px;
    font-size: .9rem
}

.chip {
    font-size: .93rem;
    padding: .38rem .75rem
}

    .chip:hover, .chip:focus-visible {
        border-color: rgba(255,255,255,.4);
        outline: none
    }

    .chip.sel {
        border-color: transparent;
        background: rgba(255,255,255,.08);
        color: #fff
    }

        .chip.sel::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 999px;
            padding: 1px;
            background: linear-gradient(135deg,#00817A 0%,#6AFF9E 100%);
            -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none
        }

/* Custom Datepicker */
.dp {
    position: absolute;
    z-index: 1300;
    width: 296px;
    background: #111418;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    color: #fff;
    overflow: hidden
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #15181b;
    padding: .5rem .6rem;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

.dp-nav {
    display: inline-flex;
    gap: .25rem
}

.dp-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #1b1f23;
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

    .dp-btn::before {
        content: "";
        width: 14px;
        height: 14px;
        background: #ddd
    }

.dp-prev::before {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"15 18 9 12 15 6\"/></svg>') no-repeat center/contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"15 18 9 12 15 6\"/></svg>') no-repeat center/contain
}

.dp-next::before {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"9 18 15 12 9 6\"/></svg>') no-repeat center/contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"9 18 15 12 9 6\"/></svg>') no-repeat center/contain
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 2px;
    padding: .5rem
}

.dp-cell {
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

    .dp-cell:hover {
        background: #1b1f23
    }

    .dp-cell.muted {
        color: #888
    }

    .dp-cell.sel {
        background: linear-gradient(135deg,#00817A,#6AFF9E);
        color: #000;
        font-weight: 700
    }

@media(max-width:767px) {
    .dp {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%,-50%);
        width: min(92vw,320px)
    }
}
/* fonts for sidebar */
.filters-sidebar, .filters-sidebar * {
    font-family: 'Inter',sans-serif
}

.fs-title {
    font-family: 'Manrope',sans-serif
}
/* tags UI tweaks */
#fs-tags-clear {
    height: var(--ctl-h,38px);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0 .8rem
}

.chips-presets {
    margin-bottom: .6rem
}

.tag-suggest {
    margin-top: .4rem;
    background: #14171a;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    max-height: 220px;
    overflow: auto;
    display: none
}

    .tag-suggest.show {
        display: block
    }

    .tag-suggest button {
        display: block;
        width: 100%;
        text-align: left;
        padding: .45rem .6rem;
        background: transparent;
        border: none;
        color: #ddd;
        cursor: pointer
    }

        .tag-suggest button:hover {
            background: #1b1f23;
            color: #fff
        }
/* fonts for sidebar */
.filters-sidebar, .filters-sidebar * {
    font-family: 'Inter',sans-serif
}

.fs-title {
    font-family: 'Manrope',sans-serif
}
/* tags UI tweaks */
#fs-tags-clear {
    height: var(--ctl-h,38px);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0 .8rem
}

.chips-presets {
    margin-bottom: .6rem
}

.tag-suggest {
    margin-top: .4rem;
    background: #14171a;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    max-height: 220px;
    overflow: auto;
    display: none
}

    .tag-suggest.show {
        display: block
    }

    .tag-suggest button {
        display: block;
        width: 100%;
        text-align: left;
        padding: .45rem .6rem;
        background: transparent;
        border: none;
        color: #ddd;
        cursor: pointer
    }

        .tag-suggest button:hover {
            background: #1b1f23;
            color: #fff
        }
/* toggle buttons font */
.filters-toggle, .filters-hamburger {
    font-family: 'Inter',sans-serif
}

/* fix date range overflow + divider */
.fs-period .range-row .date-wrap {
    min-width: 0;
}

.fs-period .range-row .date-input {
    width: 100%;
}

.fs-period .range-row .split {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,.2);
    margin: 0 8px;
    border-radius: 1px;
}

.fs-period .range-row .dash {
    display: none;
}

/* no horizontal scroll */
.filters-sidebar {
    overflow-x: hidden;
}

.fs-body {
    overflow-y: auto;
    overflow-x: hidden;
}

.filters-sidebar, .filters-sidebar * {
    box-sizing: border-box;
}

/* pretty vertical scrollbar (desktop browsers) */
.filters-sidebar,
.fs-body {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}
/* --- Page-specific header fixes --- */
/* 1) Make TZ dropdown panel render above the Filters toggle */
.tz-panel {
    z-index: 4000 !important;
}

/* 2) Fix label color in TZ panel on this page */
.tz-save span {
    color: #ddd !important;
}
/* Remove inner box borders inside Date & Tags sections */
.fs-period {
    background: transparent !important;
    border: none !important;
    padding: .6rem 1rem .9rem !important;
}

.fs-tagsbox {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.fs-period .range-row {
    margin-top: .5rem;
}
/* tighter padding inside date inputs (12px -> 5px) */
.date-input {
    padding: 0 5px !important;
}
/* — Tags layout polish — */
.fs-tagsbox .tags-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem
}

    .fs-tagsbox .tags-top .fs-search {
        flex: 1
    }

    .fs-tagsbox .tags-top #fs-tags-clear {
        height: var(--ctl-h,38px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 .9rem;
        border-radius: 10px
    }
/* Keep presets under the search in a tidy row */
#fs-tag-presets {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .4rem
}
/* Popular tags list spacing */
#fs-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem
}
/* Recent queries row */
#fs-recent {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .4rem
}
/* Hide the empty-state text unless really no tags */
#fs-tags-empty {
    margin-top: .4rem
}
/* hide built-in clear “x” in search input (we have our own Reset btn) */
.fs-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}


/* === MOBILE HOTFIX (screenshot issues) === */
@media (max-width: 767px) {
  /* Full-height hero (compensate -80px margin-top pull) */
  .hero { min-height: calc(100svh + 80px); }

  /* Plaque fits screen edges and is centered */
  .hero-right { align-items: center; }
  .hero-right .hero-card {
    width: calc(100vw - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  /* Badges under the title (hero only) */
  .hero-card { display: flex !important; flex-direction: column !important; }
  .hero-card > .card-title { order: 1 !important; }
  .hero-card > .tag,
  .hero-card > .hero-category { order: 2 !important; align-self: flex-start; }
  .hero-card > .tag + .tag { margin-top: 6px; }

  /* Keep watermark of breaking list cards subtle & inside on phones */
  .news-card.breaking-news { overflow: hidden; position: relative; }
  .news-card.breaking-news .watermark {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    opacity: .15;
    z-index: 0;
    pointer-events: none;
  }
  .news-card.breaking-news .content,
  .news-card.breaking-news .meta,
  .news-card.breaking-news .btn { position: relative; z-index: 1; }
}


/* === MOBILE: compact badges & keep only main one === */
@media (max-width: 767px) {
  /* shrink badges inside hero + list cards */
  .hero-card .tag,
  .news-card .tags .tag {
    padding: 2px 8px;
    font-size: .8rem;
    border-radius: 6px;
  }
  .hero-card .tag { margin-right: .5rem; margin-bottom: .35rem; }

  /* list: keep only first tag just in case */
  .news-card .content .tags .tag:not(:first-child) { display: none !important; }

  /* hero: hide secondary category badge, show only the main/special one */
  .hero-card .hero-category { display: none !important; }
}


/* === MOBILE FIX: top offset, single badge, side padding === */
@media (max-width: 767px) {
  /* top offset for fixed header */
  .hero { margin-top: 0 !important; padding-top: 100px !important; }

  /* show only the first badge */
  .hero-card .tag:not(:first-child) { display: none !important; }
  .news-card .content .tags .tag:not(:first-child) { display: none !important; }

  /* side padding so cards don't touch device edges */
  .hero-inner { padding-left: 12px !important; padding-right: 12px !important; }
  .news-feed { padding-left: 12px !important; padding-right: 12px !important; }
}


/* === MOBILE TWEAK v2: 50px header offset + single badge enforcement === */
@media (max-width: 767px) {
  /* header overlap fix */
  .hero { padding-top: 50px !important; }

  /* show only the first badge in HERO */
  .hero-card .hero-category { display: none !important; }
  .hero-card .tag:not(:first-child) { display: none !important; }

  /* and only the first badge in LIST cards (extra safety) */
  .news-card .content .tag ~ .tag { display: none !important; }
  .news-card .special-latest,
  .news-card .special-breaking { display: none !important; }

  /* side gutters for mobile */
  .hero-inner { padding-left: 12px !important; padding-right: 12px !important; }
  .news-feed { padding-left: 12px !important; padding-right: 12px !important; }
}


/* === MOBILE FIX v3: show only Breaking card, single badge, margins === */
@media (max-width: 767px) {
  /* header offset */
  .hero { padding-top: 50px !important; }

  /* show ONLY the Breaking hero card */
  #card-latest,
  #card-explained { display: none !important; }

  /* keep plaque inside screen edges */
  .hero-right { align-items: center; }
  .hero-right .hero-card {
    width: calc(100vw - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }

  /* inside hero: leave only the first tag (robust to text nodes) */
  .hero-card .tag ~ .tag { display: none !important; }

  /* list cards: keep only first tag too */
  .news-card .tags .tag ~ .tag { display: none !important; }

  /* side gutters for feed */
  .news-feed { padding-left: 12px !important; padding-right: 12px !important; }
}


/* === MOBILE POLISH: spaced hero card, gutters, separation === */
@media (max-width: 767px) {
  /* breathing room under header */
  .hero { padding-top: 50px !important; }

  /* keep hero content away from edges */
  .hero-inner { padding-left: 12px !important; padding-right: 12px !important; }

  /* separate text and plaque + from list below */
  .hero-right { margin-top: 10px !important; margin-bottom: 12px !important; }

  /* hero plaque fills container WITH gutters, not the whole screen */
  .hero-right .hero-card {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
}


/* === MOBILE POLISH v2: hero card spacing & tone === */
@media (max-width: 767px) {
  /* Gutters for the card area */
  .hero-right { padding-left: 12px !important; padding-right: 12px !important; }

  /* Single, centered card with breathing room and softer border */
  .hero-right .hero-card {
    max-width: 560px;
    width: 100%;
    margin: 12px auto 14px auto;
    border-width: 2px !important;
    border-color: rgba(128,0,0,.65) !important;
    border-radius: 10px !important;
    background-clip: padding-box;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
  }
  .hero-right .hero-card.breaking { animation: none !important; }

  /* Hide secondary hero cards explicitly */
  #card-latest, #card-explained { display: none !important; }
}



/* Header positioning like index */
#site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
}


/* === HEADER: fix TZ label color on news page === */
#site-header #tz-toggle,
#site-header #tz-toggle .tz-label { color: #fff !important; }
#site-header #tz-toggle svg { stroke: #fff !important; }

/* === NEWS HERO: remove intermediate layout (1200→768), use desktop layout === */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding-top: 80px !important;
    text-align: left !important;
  }
}


/* === SCROLLBARS (copied 1:1 from launches.css) === */
/* Chrome/Edge/Safari */
*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--sb-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--sb-thumb);
    border-radius: 10px;
    border: 3px solid var(--sb-track);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--sb-thumb-hover);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}

#launches-grid .section-header {
            position: relative
        }

            #launches-grid .section-header .btn {
                position: relative;
                z-index: 5;
                pointer-events: auto
            }

        /* ---- Staggered fade-in for launch cards ---- */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(8px)
            }

            to {
                opacity: 1;
                transform: none
            }
        }

        .launch-section .launch-card {
            opacity: 0;
            animation: fadeUp .55s ease forwards;
            animation-delay: var(--d,0ms)
        }

        /* --- Mobile modal: natural flow, image on top (no height cap) --- */
        @media (max-width: 900px) {
            #launch-modal {
                padding: 0;
            }

                #launch-modal .modal-box {
                    width: 100vw;
                    height: auto;
                    max-height: none;
                    border-radius: 0;
                    border: none;
                    overflow-y: auto;
                }

                #launch-modal .modal-img {
                    display: block;
                    width: 100%;
                    height: auto;
                    max-height: none;
                    object-fit: contain;
                    position: static !important;
                }

                #launch-modal .modal-content {
                    padding: 14px;
                }

                #launch-modal .modal-overlay {
                    width: 100% !important;
                }
        }

        #launch-modal {
            overflow-y: auto
        }

@media (max-width: 900px) {
    #launch-modal .modal-overlay {
        pointer-events: none;
    }

    /* только внутри модалки, чтобы не трогать карточки в ленте */
    #launch-modal .vehicle-card {
        display: flex;
        align-items: center;
    }

        #launch-modal .vehicle-card img {
            /* «урезанная» мобильная версия — около 1/3 ширины */
            width: 34%;
            min-width: 34%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            object-position: center 42%;
            border-radius: 12px;
        }

        #launch-modal .vehicle-card .details {
            flex: 1;
            margin-left: .8rem;
        }

    /* подпись часового пояса: меньше, темнее, без подчёркивания и как верхний индекс */
    .digital-time .tz-sup {
        font-size: .65em;
        color: #aaa;
        vertical-align: super;
        margin-left: .25rem;
        text-decoration: none;
    }
}

/* Ensure these containers use the same scroll look */
.filters-sidebar,.fs-body,.filters-overlay,.dp,body,html,#news-page,.tags-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}



/* === WATERMARK sizing & stacking fixes === */
/* Ensure text/content sits above the watermark overlay */
.news-card .content{ position: relative; z-index: 2; }
.fast-block .fast-item, .fast-block .fast-meta{ position: relative; z-index: 2; }
.breaking-news .watermark, .fast-block .watermark{ z-index: 1; pointer-events: none; }

/* Mobile: BREAKING a bit bigger, FAST smaller; keep both near the bottom-right */
@media (max-width: 767px){
  .breaking-news .watermark{
    font-size: 2.9rem;   /* was ~2.5rem, make it more noticeable */
    right: 10px;
    bottom: 10px;
    opacity: .22;
  }
  .fast-block .watermark{
    font-size: 2.1rem;   /* was 3.1rem, make it subtler */
    right: 6px;
    bottom: 10px;
    opacity: .22;
  }
}


/* === WATERMARK tone adjustments (desktop vs mobile) === */
/* Desktop: make BREAKING a bit subtler */
.news-card.breaking-news .watermark{
  opacity: .20; /* was full color; slightly dimmer on desktop */
}

/* Mobile: lighten both watermarks so they are readable on phones */
@media (max-width: 767px){
  .news-card.breaking-news .watermark{
    opacity: .30;          /* brighter on phones */
  }
  .fast-block .watermark{
    opacity: .26;          /* a bit brighter on phones */
  }
}


/* === TONE MICRO-TWEAK === */
/* Desktop: Breaking a bit brighter */
.news-card.breaking-news .watermark { opacity: .24; }

@media (max-width: 767px){
  /* Phones: FAST a touch brighter */
  .fast-block .watermark { opacity: .30; }
}
