:root {
    --page: #ffffff;
    --page-soft: #f6f8fb;
    --ink: #101318;
    --ink-soft: #4f5966;
    --muted: #7d8793;
    --line: #e7ebf0;

    --blue: #5d9df4;
    --blue-dark: #2f6fca;
    --blue-soft: #eef5ff;

    --header: #0a0d12;
    --header-soft: #11161e;

    --card: #ffffff;

    --max: 1180px;

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow:
        0 10px 30px rgba(16, 24, 40, 0.07);
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Inter", sans-serif;
    line-height: 1.5;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.content-shell,
.header-shell {
    width: min(
        calc(100% - 36px),
        var(--max)
    );

    margin-inline: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(10, 13, 18, 0.97);
    color: white;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(16px);
}

.header-shell {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: baseline;

    gap: 7px;

    white-space: nowrap;
}

.brand-main {
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.brand-sub {
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 28px;
}

.main-nav a {
    color: #b6bec8;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: white;
}


/* ==========================================================
   MOBILE NAV
   ========================================================== */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 10px;

    background: #11161e;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;

    border-radius: 10px;

    background: white;
}

.mobile-nav {
    display: none;
}


/* ==========================================================
   NEWS INTRO
   ========================================================== */

.news-intro {
    padding:
        64px 0
        34px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );

    border-bottom:
        1px solid var(--line);
}

.news-intro-copy {
    max-width: 850px;
}

.eyebrow {
    margin:
        0 0
        11px;

    color: var(--blue-dark);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-intro h1 {
    margin: 0;

    max-width: 850px;

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(
            2.8rem,
            7vw,
            5.8rem
        );

    line-height: 0.98;

    letter-spacing: -0.06em;

    color: var(--ink);
}

.news-intro h1 span {
    color: var(--blue);
}

.intro-text {
    max-width: 690px;

    margin:
        24px 0
        0;

    color: var(--ink-soft);

    font-size:
        clamp(
            1rem,
            2vw,
            1.15rem
        );

    line-height: 1.7;
}


/* ==========================================================
   CATEGORY NAV
   ========================================================== */

.category-strip {
    padding: 18px 0;

    background: white;

    border-bottom:
        1px solid var(--line);

    position: sticky;

    top: 72px;

    z-index: 900;
}

.category-scroll {
    display: flex;

    gap: 7px;

    overflow-x: auto;

    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;

    padding:
        8px 13px;

    border-radius: 999px;

    color: var(--ink-soft);

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.category-pill:hover {
    background: var(--page-soft);
    color: var(--ink);
}

.category-pill.is-active {
    background: var(--blue-soft);
    color: var(--blue-dark);
}


/* ==========================================================
   FEATURED STORY
   ========================================================== */

.featured-section {
    padding:
        42px 0
        58px;
}

.featured-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.8fr);

    overflow: hidden;

    background: white;

    border:
        1px solid var(--line);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.featured-media {
    min-height: 480px;

    overflow: hidden;

    background: var(--page-soft);
}

.featured-media img {
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.featured-card:hover
.featured-media img {
    transform: scale(1.02);
}

.featured-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        clamp(
            30px,
            5vw,
            52px
        );
}

.story-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 700;
}

.story-category {
    color: var(--blue-dark);
}

.meta-dot {
    opacity: 0.45;
}

.featured-content h2 {
    margin:
        16px 0
        18px;

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(
            2rem,
            4vw,
            3.7rem
        );

    line-height: 1.04;

    letter-spacing: -0.055em;

    color: var(--ink);
}

.featured-content h2 a:hover {
    color: var(--blue-dark);
}

.featured-excerpt {
    margin: 0;

    color: var(--ink-soft);

    font-size: 1rem;

    line-height: 1.75;
}

.story-footer {
    margin-top: 20px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    color: var(--muted);

    font-size: 0.78rem;
}

.read-feature-button,
.primary-button {
    width: fit-content;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 26px;

    padding:
        12px 17px;

    border-radius: 999px;

    background: var(--header);

    color: white;

    font-size: 0.86rem;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.read-feature-button:hover,
.primary-button:hover {
    background: var(--blue-dark);

    transform:
        translateY(-1px);
}


/* ==========================================================
   PLACEHOLDER IMAGES
   ========================================================== */

.image-placeholder {
    min-height: 300px;

    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #f1f5fb,
            #e8f1ff
        );
}

.image-placeholder span {
    color: #8ba6c9;

    font-size: 0.78rem;
    font-weight: 900;

    letter-spacing: 0.16em;
}

.image-placeholder.small {
    min-height: 220px;
}


/* ==========================================================
   LATEST STORIES
   ========================================================== */

.latest-section {
    padding:
        8px 0
        78px;
}

.section-heading-row {
    margin-bottom: 24px;

    padding-bottom: 17px;

    border-bottom:
        2px solid var(--ink);

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 20px;
}

.section-heading-row h2 {
    margin: 0;

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(
            1.9rem,
            4vw,
            2.8rem
        );

    letter-spacing: -0.045em;
}

.clear-filter {
    color: var(--blue-dark);

    font-size: 0.85rem;
    font-weight: 700;
}


/* ==========================================================
   STORY GRID
   ========================================================== */

.story-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    column-gap: 28px;

    row-gap: 42px;
}

.story-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    background: transparent;

    border: 0;

    border-radius: 0;

    overflow: visible;
}

.story-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: var(--radius-md);

    background: var(--page-soft);
}

.story-image img {
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}

.story-card:hover
.story-image img {
    transform: scale(1.025);
}

.story-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding:
        16px 0 0;
}

.story-content h3 {
    margin:
        10px 0
        9px;

    font-family: "Manrope", sans-serif;

    font-size: 1.28rem;

    line-height: 1.23;

    letter-spacing: -0.035em;

    color: var(--ink);
}

.story-content h3 a:hover {
    color: var(--blue-dark);
}

.story-excerpt {
    margin: 0;

    color: var(--ink-soft);

    font-size: 0.9rem;

    line-height: 1.62;
}

.story-content
.story-footer {
    margin-top: auto;

    padding-top: 17px;

    justify-content: space-between;
}

.story-content
.story-footer a {
    color: var(--blue-dark);

    font-weight: 700;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.empty-state {
    padding:
        68px 28px;

    text-align: center;

    border:
        1px solid var(--line);

    border-radius: var(--radius-lg);

    background: var(--page-soft);
}

.empty-icon {
    width: 60px;
    height: 60px;

    margin:
        0 auto
        18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--blue-soft);

    color: var(--blue-dark);

    font-weight: 900;
}

.empty-state h3 {
    margin: 0;

    font-family: "Manrope", sans-serif;

    font-size: 1.55rem;
}

.empty-state p {
    margin:
        11px auto
        0;

    max-width: 470px;

    color: var(--ink-soft);
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.pagination {
    margin-top: 48px;

    padding-top: 28px;

    border-top:
        1px solid var(--line);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

.page-button {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 15px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background: white;

    color: var(--ink-soft);

    font-size: 0.82rem;
    font-weight: 700;
}

.page-button:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.page-button.is-disabled {
    opacity: 0.35;

    pointer-events: none;
}

.page-status {
    color: var(--muted);

    font-size: 0.8rem;
}


/* ==========================================================
   FOOTER CTA
   ========================================================== */

.news-footer-cta {
    padding:
        0 0
        70px;
}

.footer-cta-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 32px;

    padding:
        clamp(
            28px,
            5vw,
            48px
        );

    border-radius: var(--radius-lg);

    background: var(--header);

    color: white;
}

.footer-cta-card .eyebrow {
    color: #8ebdfb;
}

.footer-cta-card h2 {
    margin: 0;

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(
            1.9rem,
            4vw,
            2.8rem
        );

    letter-spacing: -0.045em;
}

.footer-cta-card p:not(.eyebrow) {
    margin:
        12px 0
        0;

    max-width: 600px;

    color: #b8c1ce;

    line-height: 1.7;
}

.footer-cta-card
.primary-button {
    margin-top: 0;

    background: white;

    color: var(--ink);
}

.footer-cta-card
.primary-button:hover {
    background: var(--blue);

    color: white;
}


/* ==========================================================
   SITE FOOTER
   ========================================================== */

.site-footer {
    background: #f7f8fa;

    border-top:
        1px solid var(--line);
}

.footer-inner {
    min-height: 140px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-inner strong {
    font-family: "Manrope", sans-serif;
}

.footer-inner p {
    margin:
        7px 0
        0;

    color: var(--muted);

    font-size: 0.8rem;
}

.footer-links {
    display: flex;

    gap: 20px;
}

.footer-links a {
    color: var(--ink-soft);

    font-size: 0.82rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--blue-dark);
}


/* ==========================================================
   ARTICLE PAGE
   ========================================================== */

.article-shell {
    width: min(
        calc(100% - 36px),
        760px
    );

    margin-inline: auto;
}

.article-header {
    padding:
        58px 0
        34px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );

    border-bottom:
        1px solid var(--line);
}

.article-header .eyebrow {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    margin-bottom: 13px;

    padding:
        6px 10px;

    border-radius: 999px;

    background: var(--blue-soft);

    color: var(--blue-dark);

    font-size: 0.68rem;
    font-weight: 850;

    letter-spacing: 0.12em;
}

.article-header h1 {
    margin: 0;

    max-width: 760px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(
            2.55rem,
            6vw,
            4.75rem
        );

    line-height: 1.01;

    letter-spacing: -0.055em;

    text-wrap: balance;

    color: var(--ink);
}

.article-dek {
    max-width: 720px;

    margin:
        20px 0
        0;

    color: var(--ink-soft);

    font-size:
        clamp(
            1.02rem,
            2vw,
            1.15rem
        );

    line-height: 1.68;
}

.article-meta-row {
    margin-top: 22px;

    padding-top: 17px;

    border-top:
        1px solid var(--line);

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap:
        7px 9px;

    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 600;
}

.article-meta-row strong {
    color: var(--ink);
    font-weight: 800;
}


/* ==========================================================
   ARTICLE HERO
   ========================================================== */

.article-hero {
    width: min(
        calc(100% - 36px),
        1080px
    );

    aspect-ratio: 16 / 9;

    margin:
        30px auto
        42px;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: 20px;

    background: var(--page-soft);

    box-shadow:
        0 14px 38px
        rgba(16, 24, 40, 0.08);
}

.article-hero img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================
   ARTICLE READING
   ========================================================== */

.article-body {
    padding:
        0 0
        78px;
}

.article-body-content {
    color: #20252c;

    font-family:
        "Inter",
        sans-serif;

    font-size:
        clamp(
            1.04rem,
            1.8vw,
            1.12rem
        );

    line-height: 1.78;

    letter-spacing: -0.005em;

    overflow-wrap: anywhere;
}

.article-body-content p {
    margin:
        0 0
        1.38em;
}

.article-body-content p:last-child {
    margin-bottom: 0;
}

/*
 * Telegram **bold text** becomes <strong>.
 * Make key points stand out without looking like giant headings.
 */
.article-body-content strong {
    color: var(--ink);

    font-weight: 800;
}

/*
 * When the author intentionally places a bold line at the beginning
 * of a paragraph, it reads like a small visual anchor.
 */
.article-body-content p > strong:first-child {
    color: #0d1117;
}

.article-body-content br {
    content: "";

    display: block;

    margin-top: 0.3em;
}

.article-body-content h2,
.article-body-content h3 {
    font-family:
        "Manrope",
        sans-serif;

    color: var(--ink);

    text-wrap: balance;
}

.article-body-content h2 {
    margin:
        1.75em 0
        0.62em;

    font-size:
        clamp(
            1.55rem,
            4vw,
            2rem
        );

    line-height: 1.15;

    letter-spacing: -0.04em;
}

.article-body-content h3 {
    margin:
        1.55em 0
        0.55em;

    font-size:
        clamp(
            1.25rem,
            3vw,
            1.5rem
        );

    line-height: 1.2;

    letter-spacing: -0.035em;
}

.article-body-content blockquote {
    margin:
        2em 0;

    padding:
        18px 20px;

    border-left:
        4px solid var(--blue);

    border-radius:
        0 12px 12px 0;

    background: var(--blue-soft);

    color: var(--ink);

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        1.15rem;

    font-weight: 700;

    line-height: 1.55;
}

.article-body-content a {
    color: var(--blue-dark);

    font-weight: 650;

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;
}

.article-body-content a:hover {
    color: #1e5fb8;
}


/* ==========================================================
   COMPLETION MARKER
   ========================================================== */

#articleCompletionMarker {
    margin-top: 8px;
}


/* ==========================================================
   ARTICLE SHARE
   ========================================================== */

.article-share {
    margin-top: 38px;

    padding:
        24px;

    border:
        1px solid var(--line);

    border-radius: 16px;

    background: #fbfcfe;
}

.article-share h3 {
    margin:
        0 0
        14px;

    color: var(--ink);

    font-size: 0.76rem;
    font-weight: 850;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.share-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.share-button {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 16px;

    border:
        1px solid #dce2ea;

    border-radius: 999px;

    background: white;

    color: #2e3742;

    font-size: 0.79rem;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 2px 7px
        rgba(16, 24, 40, 0.04);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        background 0.15s ease;
}

.share-button:hover {
    transform:
        translateY(-1px);

    border-color: var(--blue);

    background: var(--blue-soft);

    color: var(--blue-dark);
}

.share-button:active {
    transform:
        translateY(0);
}


/* ==========================================================
   RELATED STORIES ON ARTICLE PAGE
   ========================================================== */

.article-body + .latest-section {
    padding-top: 54px;

    border-top:
        1px solid var(--line);

    background: #fbfcfe;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-media {
        min-height: auto;

        aspect-ratio: 16 / 9;
    }

    .story-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .footer-cta-card {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .mobile-nav {
        display: none;

        width: min(
            calc(100% - 36px),
            var(--max)
        );

        margin: auto;

        padding-bottom: 14px;

        border-top:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav.is-open {
        display: grid;
    }

    .mobile-nav a {
        padding:
            13px 2px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);

        color: #c6ced8;

        font-weight: 700;
    }

    .category-strip {
        top: 72px;
    }

    .news-intro {
        padding:
            44px 0
            28px;
    }

    .featured-section {
        padding:
            30px 0
            48px;
    }

    .featured-content {
        padding: 25px;
    }

    .story-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }

    /*
     * On mobile the site becomes
     * much more like a modern
     * news feed.
     */

    .story-card {
        display: grid;

        grid-template-columns:
            132px
            minmax(0, 1fr);

        gap: 16px;

        padding:
            18px 0;

        border-bottom:
            1px solid var(--line);
    }

    .story-image {
        aspect-ratio: 1.15 / 1;

        border-radius: 10px;
    }

    .story-content {
        padding: 0;
    }

    .story-content h3 {
        margin:
            7px 0
            7px;

        font-size: 1.08rem;
    }

    .story-excerpt {
        display: none;
    }

    .story-content
    .story-footer {
        padding-top: 7px;
    }

    .footer-inner {
        padding:
            30px 0;

        flex-direction: column;

        align-items: flex-start;
    }

    .article-header {
        padding:
            40px 0
            26px;
    }

    .article-header h1 {
        font-size:
            clamp(
                2.15rem,
                10vw,
                3.1rem
            );

        line-height: 1.03;
    }

    .article-dek {
        font-size: 1rem;

        line-height: 1.62;
    }

    .article-meta-row {
        margin-top: 18px;

        padding-top: 14px;

        font-size: 0.72rem;
    }

    .article-hero {
        width:
            calc(100% - 24px);

        aspect-ratio: 16 / 10;

        margin:
            22px auto
            30px;

        border-radius: 14px;
    }

    .article-body {
        padding-bottom: 58px;
    }

    .article-body-content {
        font-size: 1.03rem;

        line-height: 1.72;
    }

    .article-body-content p {
        margin-bottom: 1.28em;
    }

    .article-share {
        margin-top: 32px;

        padding: 18px;
    }

    .share-buttons {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .share-button {
        width: 100%;

        min-height: 44px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 520px) {

    .content-shell,
    .header-shell,
    .article-shell {
        width:
            calc(100% - 24px);
    }

    .news-intro h1 {
        font-size: 2.85rem;
    }

    .featured-card {
        border-radius: 16px;
    }

    .featured-content {
        padding: 21px;
    }

    .featured-content h2 {
        font-size: 1.95rem;
    }

    .story-card {
        grid-template-columns:
            105px
            minmax(0, 1fr);

        gap: 13px;
    }

    .story-content h3 {
        font-size: 0.98rem;

        line-height: 1.22;
    }

    .story-meta {
        font-size: 0.65rem;
    }

    .story-content
    .story-footer {
        font-size: 0.68rem;
    }

    .read-feature-button,
    .primary-button {
        width: 100%;
    }

    .article-header h1 {
        font-size: 2.3rem;
    }

    .article-body-content {
        font-size: 1rem;

        line-height: 1.7;
    }

    .article-share {
        padding: 16px;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================
   ARTICLE AUTHOR BYLINE
   ========================================================== */

.article-byline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.article-author-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;

    color: inherit;

    text-decoration: none;

    border-radius: 8px;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.article-author-link strong {
    color: var(--ink);

    font-weight: 800;
}

.article-author-role {
    color: var(--muted);

    font-weight: 600;
}

.article-author-link:hover strong {
    color: var(--blue-dark);
}

.article-author-link:hover .article-author-role {
    color: var(--blue-dark);
}

.article-author-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}


/* ==========================================================
   AUTHOR PROFILE PAGE
   ========================================================== */

.author-profile-header {
    padding:
        56px 0
        36px;

    border-bottom:
        1px solid var(--line);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
}

.author-profile-card {
    width: min(
        100%,
        760px
    );

    display: flex;
    align-items: flex-start;

    gap: 20px;
}

.author-profile-copy {
    min-width: 0;
}

.author-profile-name {
    margin: 0;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(
            2.3rem,
            5vw,
            4rem
        );

    line-height: 1;

    letter-spacing: -0.05em;

    color: var(--ink);
}

.author-profile-role {
    margin:
        12px 0
        0;

    color: var(--blue-dark);

    font-size: 0.9rem;

    font-weight: 800;
}

.author-profile-bio {
    max-width: 700px;

    margin:
        16px 0
        0;

    color: var(--ink-soft);

    font-size: 1rem;

    line-height: 1.7;
}

.author-article-count {
    display: inline-flex;

    align-items: center;

    min-height: 34px;

    margin-top: 18px;

    padding:
        7px 11px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background: #ffffff;

    color: var(--muted);

    font-size: 0.75rem;

    font-weight: 750;
}


@media (max-width: 760px) {

    .article-byline {
        width: 100%;

        gap: 3px;
    }

    .article-author-link {
        gap: 3px;
    }

    .article-author-role {
        font-size: 0.96em;
    }

    .author-profile-header {
        padding:
            40px 0
            28px;
    }

    .author-profile-card {
        display: block;
    }

    .author-profile-name {
        font-size:
            clamp(
                2.2rem,
                11vw,
                3rem
            );
    }

}



/* ==========================================================
   USER-FRIENDLY AUTHOR PAGE
   ========================================================== */

.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;

    color: var(--muted);

    font-size: 0.76rem;
    font-weight: 650;
}

.article-breadcrumbs a {
    color: var(--blue-dark);

    text-decoration: none;
}

.article-breadcrumbs a:hover {
    text-decoration: underline;

    text-underline-offset: 3px;
}

.author-profile-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
}

.secondary-button {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border:
        1px solid #d9e0e8;

    border-radius: 999px;

    background: #ffffff;

    color: var(--ink);

    font-size: 0.8rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.secondary-button:hover {
    border-color: var(--blue);

    background: var(--blue-soft);

    color: var(--blue-dark);

    transform: translateY(-1px);
}

.section-subtext {
    margin:
        7px 0
        0;

    color: var(--muted);

    font-size: 0.86rem;
}

.story-footer-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;
}

@media (max-width: 760px) {

    .article-breadcrumbs {
        margin-bottom: 18px;
    }

    .author-profile-actions {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        width: 100%;
    }

    .author-profile-actions .primary-button,
    .author-profile-actions .secondary-button {
        width: 100%;

        min-height: 46px;
    }

    .story-footer {
        align-items: flex-end;

        gap: 10px;
    }

    .story-footer-meta {
        gap: 6px;
    }

}

@media (max-width: 480px) {

    .author-profile-actions {
        grid-template-columns: 1fr;
    }

    .article-author-role {
        display: inline;
    }

}



/* ==========================================================
   USER-FRIENDLY ARTICLE NAVIGATION
   ========================================================== */

.article-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 22px;
}

.article-back-link,
.article-author-mini-link {
    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 750;

    text-decoration: none;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.article-back-link:hover,
.article-author-mini-link:hover {
    color: var(--blue-dark);
}

.article-back-link:hover {
    transform: translateX(-2px);
}

.article-author-mini-link:hover {
    transform: translateX(2px);
}


/* ==========================================================
   END-OF-ARTICLE CARD
   ========================================================== */

.article-end-card {
    margin-top: 34px;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border:
        1px solid var(--line);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.article-end-copy {
    min-width: 0;
}

.article-end-copy h2 {
    margin:
        4px 0
        8px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(
            1.35rem,
            3vw,
            1.8rem
        );

    line-height: 1.15;

    letter-spacing: -0.035em;

    color: var(--ink);
}

.article-end-copy p:last-child {
    margin: 0;

    color: var(--muted);

    font-size: 0.92rem;

    line-height: 1.55;
}

.article-end-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    flex-shrink: 0;
}


/* ==========================================================
   MOBILE STICKY ARTICLE ACTIONS
   ========================================================== */

.mobile-share-bar {
    display: none;
}

@media (max-width: 760px) {

    body {
        padding-bottom: 74px;
    }

    .article-top-nav {
        margin-bottom: 18px;
    }

    .article-author-mini-link {
        display: none;
    }

    .article-end-card {
        display: block;

        margin-top: 28px;

        padding: 20px;
    }

    .article-end-actions {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        margin-top: 18px;
    }

    .article-end-actions .primary-button,
    .article-end-actions .secondary-button {
        width: 100%;
    }

    .mobile-share-bar {
        position: fixed;

        left: 12px;
        right: 12px;
        bottom: 12px;

        z-index: 999;

        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 8px;

        padding: 8px;

        border:
            1px solid
            rgba(210, 219, 230, 0.95);

        border-radius: 16px;

        background:
            rgba(
                255,
                255,
                255,
                0.94
            );

        box-shadow:
            0 12px 34px
            rgba(16, 24, 40, 0.16);

        backdrop-filter:
            blur(16px);
    }

    .mobile-share-action {
        min-height: 44px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 0;
        border-radius: 12px;

        background: #f4f7fa;

        color: var(--ink);

        font: inherit;

        font-size: 0.78rem;
        font-weight: 800;

        text-decoration: none;

        cursor: pointer;
    }

    .mobile-share-action:active {
        transform: scale(0.98);
    }

    .mobile-share-bar.is-copied
    .mobile-share-action:nth-child(2) {
        background: var(--blue-soft);

        color: var(--blue-dark);
    }

}

@media (max-width: 480px) {

    .article-end-actions {
        grid-template-columns: 1fr;
    }

}



/* ==========================================================
   NEWS HOMEPAGE — USER-FRIENDLY OVERRIDES V13
   ========================================================== */

/*
 * The featured image should be fully visible.
 * No aggressive crop and no zoom-on-hover.
 */
.featured-card {
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.8fr);

    align-items: stretch;
}

.featured-media {
    min-height: 0;

    aspect-ratio: 16 / 10;

    display: grid;

    place-items: center;

    overflow: hidden;

    background: #f3f6fa;
}

.featured-media img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #f3f6fa;

    transform: none !important;
}

.featured-card:hover .featured-media img {
    transform: none !important;
}


/*
 * Make Latest Stories clearly visible and separated from Featured.
 */
.latest-section {
    padding:
        42px 0
        82px;

    background: #ffffff;
}

.featured-section + .latest-section {
    border-top:
        1px solid var(--line);
}

.section-heading-row {
    align-items: flex-end;
}

.section-subtext {
    margin:
        7px 0
        0;

    color: var(--muted);

    font-size: 0.86rem;

    line-height: 1.5;
}

.latest-count {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    min-height: 34px;

    padding:
        6px 11px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background: var(--page-soft);

    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 750;
}


/*
 * Stronger, more readable story cards.
 */
.story-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 34px 26px;
}

.story-card {
    display: flex !important;

    flex-direction: column !important;

    gap: 0 !important;

    min-width: 0;

    padding: 0 0 20px;

    border-bottom:
        1px solid var(--line);
}

.story-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    border-radius: 16px;

    overflow: hidden;

    background: #f3f6fa;
}

.story-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.story-content {
    padding-top: 15px;
}

.story-content h3 {
    margin:
        9px 0
        9px;

    font-size:
        clamp(
            1.08rem,
            2vw,
            1.3rem
        );

    line-height: 1.24;
}

.story-excerpt {
    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    min-height: 4.35em;
}

.story-content .story-footer {
    margin-top: 15px;

    padding-top: 0;
}


/*
 * Empty state should look intentional if a filter truly has no stories.
 */
.empty-state {
    padding:
        52px 24px;

    text-align: center;

    border:
        1px solid var(--line);

    border-radius: 18px;

    background: var(--page-soft);
}


/* TABLET */
@media (max-width: 980px) {

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-media {
        aspect-ratio: 16 / 9;
    }

    .story-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* MOBILE */
@media (max-width: 760px) {

    .featured-section {
        padding:
            26px 0
            38px;
    }

    .featured-media {
        aspect-ratio: auto;

        min-height: 260px;

        max-height: 520px;
    }

    .featured-media img {
        height: auto;

        max-height: 520px;

        object-fit: contain;
    }

    .featured-content {
        padding: 22px;
    }

    .featured-content h2 {
        font-size:
            clamp(
                1.8rem,
                8vw,
                2.5rem
            );
    }

    .latest-section {
        padding:
            34px 0
            62px;
    }

    .section-heading-row {
        align-items: flex-start;

        gap: 12px;
    }

    .latest-count {
        margin-top: 2px;
    }

    .story-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .story-card {
        display: flex !important;

        flex-direction: column !important;

        grid-template-columns: none !important;

        gap: 0 !important;
    }

    .story-image {
        aspect-ratio: 16 / 9;
    }

    .story-content h3 {
        font-size: 1.16rem;
    }

    .story-excerpt {
        min-height: 0;
    }

}


/* SMALL MOBILE */
@media (max-width: 520px) {

    .featured-media {
        min-height: 220px;
    }

    .section-heading-row {
        display: block;
    }

    .latest-count {
        margin-top: 12px;
    }

    .story-card {
        display: flex !important;

        flex-direction: column !important;

        grid-template-columns: none !important;
    }

}



/* ==========================================================
   FEATURED STORY LAYOUT FIX V14
   ========================================================== */

.featured-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, 0.65fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
    isolation: isolate;
}

.featured-media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 20px 0 0 20px !important;
    background: #f3f6fa !important;
}

.featured-media img {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    opacity: 1 !important;
}

.featured-content {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 34px 34px !important;
    border-radius: 0 20px 20px 0 !important;
    background: #ffffff !important;
    color: var(--ink) !important;
    opacity: 1 !important;
    transform: none !important;
}

.featured-content h2,
.featured-content h2 a {
    color: var(--ink) !important;
}

.featured-excerpt {
    color: var(--ink-soft) !important;
}

.featured-content .story-meta,
.featured-content .story-footer {
    color: var(--muted) !important;
}

.featured-content .read-feature-button {
    align-self: flex-start;
    margin-top: 20px;
    background: var(--ink) !important;
    color: #ffffff !important;
}

@media (max-width: 980px) {
    .featured-card {
        grid-template-columns: 1fr !important;
    }

    .featured-media {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 18px 18px 0 0 !important;
    }

    .featured-media img {
        height: 100% !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }

    .featured-content {
        border-radius: 0 0 18px 18px !important;
    }
}

@media (max-width: 760px) {
    .featured-card {
        display: block !important;
    }

    .featured-media {
        width: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .featured-media img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .featured-content {
        padding: 22px 20px 24px !important;
        border-radius: 0 0 16px 16px !important;
    }
}



/* ==========================================================
   ARTICLE IMAGE DISPLAY FIX V15
   ========================================================== */

/*
 * Article cover images should always be fully visible.
 * Never crop important text or artwork from a cover.
 */
.article-hero {
    width: min(
        calc(100% - 36px),
        1180px
    ) !important;

    height: auto !important;

    aspect-ratio: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin:
        30px auto
        42px !important;

    overflow: hidden !important;

    background: #f3f6fa !important;
}

.article-hero img {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
}


/*
 * Any images that are later inserted inside an article body
 * also stay responsive and fully visible.
 */
.article-body-content img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;

    margin:
        28px auto;

    object-fit: contain;

    border-radius: 14px;
}


/* TABLET */
@media (max-width: 980px) {

    .article-hero {
        width:
            calc(100% - 28px) !important;

        margin:
            24px auto
            34px !important;

        border-radius:
            16px !important;
    }

}


/* MOBILE */
@media (max-width: 760px) {

    .article-hero {
        width:
            calc(100% - 20px) !important;

        margin:
            18px auto
            28px !important;

        border-radius:
            14px !important;
    }

    .article-hero img {
        width: 100% !important;
        height: auto !important;

        object-fit: contain !important;
    }

    .article-body-content img {
        width: 100%;
        height: auto;

        margin:
            22px auto;

        border-radius: 12px;
    }

}
