/* =========================================
   BASE
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f5f6f8;
    color: #171717;
}


/* =========================================
   HEADER
========================================= */

header {
    background: #111827;
    color: white;

    padding: 28px 24px;
}

.header-inner {
    max-width: 1050px;

    margin: auto;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

header h1 {
    margin: 0;

    font-size: 32px;

    letter-spacing: -0.5px;
}

header p {
    margin: 6px 0 0;

    color: #b8c0cc;
}

.ai-badge {
    background: #263244;

    padding: 9px 14px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;
}

.back-link {
    color: white;

    text-decoration: none;

    font-weight: 600;

    padding: 10px 14px;

    border-radius: 10px;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================
   MAIN
========================================= */

main {
    max-width: 1050px;

    margin: auto;

    padding: 28px 24px 70px;
}


/* =========================================
   NAVIGATION
========================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 10px;

    overflow-x: auto;

    padding-bottom: 20px;
}

.main-nav a {
    display: inline-block;

    background: white;

    padding: 10px 18px;

    border-radius: 20px;

    font-weight: 600;

    text-decoration: none;

    color: #171717;

    white-space: nowrap;

    transition: 0.15s ease;
}

.main-nav a:hover {
    background: #e8ebef;
}

.main-nav a.active {
    background: #111827;

    color: white;
}

.main-nav a.active:hover {
    background: #111827;
}

.main-nav .interests-link {
    margin-left: auto;

    background: transparent;

    border: 1px solid #d7dce2;
}

.main-nav .interests-link:hover {
    background: white;
}


/* =========================================
   SEARCH
========================================= */

.search-section {
    margin-top: 5px;
    margin-bottom: 30px;
}

.search-form {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;

    width: 100%;

    background: white;

    border: 1px solid #dbe1e8;
    border-radius: 14px;

    padding: 7px;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.04);

    transition: 0.15s ease;
}

.search-box:focus-within {
    border-color: #94a3b8;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, 0.10);
}

.search-icon {
    margin-left: 10px;
    margin-right: 3px;

    font-size: 17px;
}

.search-box input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    padding: 12px 10px;

    font-family: inherit;
    font-size: 16px;

    color: #171717;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    border: 0;

    background: #111827;
    color: white;

    padding: 12px 20px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.15s ease;
}

.search-box button:hover {
    background: #202b3c;
}


/* =========================================
   INTRO
========================================= */

.intro {
    margin: 25px 0 30px;
}

.eyebrow {
    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #64748b;
}

.intro h2 {
    font-size: 32px;

    margin: 7px 0;

    letter-spacing: -0.5px;
}

.intro p {
    color: #64748b;
}


/* =========================================
   ARTICLES
========================================= */

.articles {
    display: grid;

    gap: 22px;
}

.news-card {
    background: white;

    padding: 28px;

    border-radius: 14px;

    border: 1px solid #e5e7eb;
}

.meta {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #64748b;

    font-size: 13px;
}

.category {
    background: #e8eef8;

    color: #334155;

    padding: 5px 10px;

    border-radius: 12px;

    font-weight: 700;
}

.news-card h2 {
    font-size: 24px;

    line-height: 1.25;

    margin: 15px 0;

    letter-spacing: -0.3px;
}

.summary {
    font-size: 16px;

    line-height: 1.7;

    color: #374151;
}


/* =========================================
   KEY POINTS
========================================= */

.key-points {
    margin-top: 22px;

    background: #f8fafc;

    padding: 18px 22px;

    border-radius: 10px;
}

.key-points h3 {
    margin: 0 0 10px;

    font-size: 14px;
}

.key-points ul {
    margin: 0;

    padding-left: 20px;
}

.key-points li {
    margin: 7px 0;

    line-height: 1.5;
}


/* =========================================
   TOPICS
========================================= */

.topics {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;
}

.topics span {
    background: #f1f5f9;

    padding: 6px 10px;

    border-radius: 8px;

    font-size: 12px;

    color: #475569;
}


/* =========================================
   CARD FOOTER
========================================= */

.card-footer {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px solid #eee;
}

.published {
    color: #94a3b8;

    font-size: 12px;
}

.card-footer a {
    color: #2563eb;

    font-weight: 700;

    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}


/* =========================================
   EMPTY STATE
========================================= */

.empty-state {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 60px 30px;

    text-align: center;
}

.empty-icon {
    font-size: 42px;

    margin-bottom: 15px;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    color: #64748b;

    margin-bottom: 25px;
}

.empty-state a {
    display: inline-block;

    background: #111827;

    color: white;

    padding: 11px 18px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 700;
}


/* =========================================
   SETTINGS
========================================= */

.settings-card {
    max-width: 800px;

    margin: 25px auto;

    background: white;

    padding: 36px;

    border-radius: 14px;

    border: 1px solid #e5e7eb;
}

.settings-card > h2 {
    font-size: 32px;

    margin: 8px 0;

    letter-spacing: -0.5px;
}

.settings-description {
    color: #64748b;

    line-height: 1.6;

    margin-bottom: 38px;
}

.settings-section {
    margin-top: 30px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h3 {
    margin: 0;

    font-size: 18px;
}

.section-heading p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 14px;
}


/* =========================================
   CATEGORY SELECTOR
========================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.category-option {
    position: relative;
}

.category-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.category-option span {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 58px;

    background: #f8fafc;

    border: 2px solid #e5e7eb;

    border-radius: 12px;

    padding: 14px;

    cursor: pointer;

    font-weight: 650;

    text-align: center;

    transition: 0.15s ease;
}

.category-option span:hover {
    border-color: #94a3b8;
}

.category-option input:checked + span {
    background: #111827;

    color: white;

    border-color: #111827;
}


/* =========================================
   TOPIC SETTINGS
========================================= */

.topic-section {
    margin-top: 42px;

    padding-top: 30px;

    border-top: 1px solid #e5e7eb;
}

.input-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;
}

.topic-input {
    width: 100%;

    padding: 15px 16px;

    font-family: inherit;

    font-size: 16px;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    outline: none;

    transition: 0.15s ease;
}

.topic-input:focus {
    border-color: #64748b;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, 0.1);
}

.topic-examples {
    margin-top: 9px;

    color: #94a3b8;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   SETTINGS FOOTER
========================================= */

.settings-footer {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 12px;

    margin-top: 40px;

    padding-top: 25px;

    border-top: 1px solid #e5e7eb;
}

.save-button {
    border: 0;

    background: #111827;

    color: white;

    padding: 13px 22px;

    border-radius: 10px;

    font-family: inherit;

    font-weight: 700;

    font-size: 15px;

    cursor: pointer;
}

.save-button:hover {
    background: #202b3c;
}

.cancel-button {
    color: #475569;

    text-decoration: none;

    padding: 12px 16px;

    font-weight: 600;
}

.cancel-button:hover {
    color: #111827;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    header {
        padding: 24px 18px;
    }

    main {
        padding:
            22px 16px
            60px;
    }

    .ai-badge {
        display: none;
    }

    .main-nav {
        align-items: flex-start;
    }

    .main-nav .interests-link {
        margin-left: 0;
    }

    .search-box {
        padding: 5px;
    }

    .search-box input {
        font-size: 15px;
    }

    .search-box button {
        padding: 11px 15px;
    }

    .intro h2 {
        font-size: 27px;
    }

    .news-card {
        padding: 20px;
    }

    .news-card h2 {
        font-size: 20px;
    }

    .card-footer {
        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .settings-card {
        margin-top: 10px;

        padding: 24px;
    }

    .settings-card > h2 {
        font-size: 27px;
    }

}


@media (max-width: 450px) {

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

    .header-inner {
        align-items: flex-start;
    }

    .back-link {
        font-size: 13px;
    }

    .search-icon {
        display: none;
    }

    .search-box input {
        padding-left: 10px;
    }

}
/* =========================================
   BRAND / ACCOUNT NAV
========================================= */

.brand {
    color: inherit;
    text-decoration: none;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-nav a,
.account-nav button {
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.account-nav a {
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 9px;
}

.account-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.account-nav form {
    margin: 0;
}

.account-nav button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    padding: 9px 13px;
    border-radius: 9px;
    cursor: pointer;
}

.account-nav button:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================
   LANDING PAGE
========================================= */

.landing-body {
    background: #f5f6f8;
}

.landing-header {
    padding-top: 24px;
    padding-bottom: 24px;
}

.landing-login {
    display: inline-block;
    background: white;
    color: #111827;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
}

.landing-login:hover {
    background: #e8ebef;
}

.landing-main {
    max-width: 1100px;
}

.hero {
    padding: 90px 0 100px;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h2 {
    margin: 0;
    max-width: 750px;
    font-size: clamp(48px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.hero-copy {
    max-width: 680px;
    margin: 30px 0 0;
    color: #475569;
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 35px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
}

.primary-button {
    background: #111827;
    color: white;
}

.primary-button:hover {
    background: #202b3c;
}

.secondary-button {
    background: #eef1f5;
    color: #334155;
}

.secondary-button:hover {
    background: #e2e6eb;
}

.invite-note {
    margin-top: 20px;
    color: #64748b;
    font-size: 13px;
}

.landing-section {
    padding: 75px 0;
    border-top: 1px solid #dfe3e8;
}

.landing-section > h2 {
    margin: 8px 0 35px;
    font-size: 38px;
    letter-spacing: -1px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.process-card {
    min-height: 245px;
    padding: 25px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.process-number {
    margin-bottom: 45px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.process-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.process-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.landing-callout {
    margin: 50px 0;
    padding: 55px;
    background: #111827;
    color: white;
    border-radius: 18px;
}

.landing-callout .eyebrow {
    color: #94a3b8;
}

.landing-callout h2 {
    margin: 10px 0;
    font-size: 38px;
    letter-spacing: -1px;
}

.landing-callout p {
    max-width: 650px;
    color: #b8c0cc;
    line-height: 1.7;
}

.landing-disclaimer {
    max-width: 700px;
    margin: 70px auto 30px;
    text-align: center;
    color: #64748b;
    line-height: 1.7;
}

.landing-disclaimer strong {
    color: #334155;
}

.landing-footer {
    max-width: 1050px;
    margin: auto;
    padding: 30px 24px;
    border-top: 1px solid #dfe3e8;
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 13px;
}


/* =========================================
   LOGIN
========================================= */

.auth-main {
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 38px;
}

.auth-card h2 {
    margin: 8px 0;
    font-size: 34px;
    letter-spacing: -0.7px;
}

.auth-description {
    margin: 0 0 30px;
    color: #64748b;
    line-height: 1.6;
}

.auth-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
}

.auth-input:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.auth-password-label {
    margin-top: 20px;
}

.auth-button {
    width: 100%;
    margin-top: 28px;
    border: 0;
    background: #111827;
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}

.auth-button:hover {
    background: #202b3c;
}

.auth-private {
    margin: 25px 0 0;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.form-error {
    margin-bottom: 22px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #991b1b;
    font-size: 14px;
}


/* =========================================
   ACCOUNT
========================================= */

.account-details {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.account-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #eef0f2;
}

.account-detail:last-child {
    border-bottom: 0;
}

.account-detail span {
    color: #64748b;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}


/* =========================================
   FLASH MESSAGES
========================================= */

.flash-container {
    max-width: 1050px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.flash-message {
    padding: 13px 16px;
    border-radius: 10px;
}

.flash-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}


/* =========================================
   NEW MOBILE RULES
========================================= */

@media (max-width: 850px) {

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .hero {
        padding: 60px 0 70px;
    }

    .hero h2 {
        letter-spacing: -2px;
    }

    .hero-copy {
        font-size: 17px;
    }

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

    .process-card {
        min-height: 0;
    }

    .process-number {
        margin-bottom: 25px;
    }

    .landing-callout {
        padding: 35px 25px;
    }

    .landing-callout h2,
    .landing-section > h2 {
        font-size: 30px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 4px;
    }

    .auth-main {
        padding-top: 35px;
    }

    .auth-card {
        padding: 26px;
    }

    .account-detail {
        flex-direction: column;
        gap: 5px;
    }

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

    .account-actions a {
        text-align: center;
    }

}


/* ============================================================
   YOUR NEWS V2 - HOMEPAGE
   ============================================================ */

.news-home {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 70px;
}


/* ------------------------------------------------------------
   HOMEPAGE SECTIONS
   ------------------------------------------------------------ */

.home-section {
    padding: 38px 0 42px;
    border-bottom: 1px solid #dfe3e8;
}

.home-section-first {
    padding-top: 12px;
}

.home-section:last-child {
    border-bottom: 0;
}


/* ------------------------------------------------------------
   SECTION HEADINGS
   ------------------------------------------------------------ */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading > div {
    min-width: 0;
}

.section-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.section-link {
    flex-shrink: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.section-link:hover {
    color: #111827;
    transform: translateX(2px);
}


/* ------------------------------------------------------------
   LEADING STORY GRID
   ------------------------------------------------------------ */

.headline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.headline-story {
    min-width: 0;
    padding: 2px 25px 2px 0;
}

.headline-story + .headline-story {
    padding-left: 25px;
    border-left: 1px solid #dfe3e8;
}

.headline-story:last-child {
    padding-right: 0;
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.story-category {
    color: #111827;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-meta span + span::before {
    content: "•";
    margin-right: 7px;
    color: #c0c5cc;
}

.headline-story h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.headline-story h3 a {
    color: #111827;
    text-decoration: none;
}

.headline-story h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.story-summary {
    margin: 13px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.62;

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

.story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: #8a919d;
    font-size: 11px;
}

.story-footer a {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.story-footer a:hover {
    color: #111827;
}


/* ------------------------------------------------------------
   PERSONALISED STORIES
   ------------------------------------------------------------ */

.personalised-grid {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.035);
}

.personalised-grid .headline-story {
    padding-top: 2px;
    padding-bottom: 2px;
}


/* ------------------------------------------------------------
   COMPACT NEWS SECTIONS
   ------------------------------------------------------------ */

.compact-section {
    padding-top: 34px;
    padding-bottom: 36px;
}

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

.compact-story {
    min-width: 0;
    padding-right: 25px;
}

.compact-story + .compact-story {
    padding-left: 25px;
    border-left: 1px solid #dfe3e8;
}

.compact-story:last-child {
    padding-right: 0;
}

.compact-source {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.compact-story h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.28;
}

.compact-story h3 a {
    color: #111827;
    text-decoration: none;
}

.compact-story h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.compact-story p {
    margin: 10px 0 0;
    color: #59616d;
    font-size: 13px;
    line-height: 1.55;

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

.compact-date {
    display: block;
    margin-top: 12px;
    color: #9299a3;
    font-size: 11px;
}


/* ------------------------------------------------------------
   EMPTY PERSONALISED STATE
   ------------------------------------------------------------ */

.home-empty {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e5e9;
    border-radius: 10px;
    text-align: center;
}

.home-empty h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
}

.home-empty p {
    max-width: 500px;
    margin: 0 auto 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.home-empty a {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}


/* ------------------------------------------------------------
   STANDARD LIST PAGE WIDTH
   ------------------------------------------------------------ */

.news-list-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px 60px;
}


/* ============================================================
   YOUR NEWS V2 - TABLET
   ============================================================ */

@media (max-width: 850px) {

    .news-home {
        padding-left: 20px;
        padding-right: 20px;
    }

    .headline-story {
        padding-right: 18px;
    }

    .headline-story + .headline-story {
        padding-left: 18px;
    }

    .headline-story h3 {
        font-size: 20px;
    }

    .compact-story {
        padding-right: 18px;
    }

    .compact-story + .compact-story {
        padding-left: 18px;
    }

    .compact-story h3 {
        font-size: 18px;
    }

}


/* ============================================================
   YOUR NEWS V2 - MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .news-home {
        padding: 18px 18px 50px;
    }

    .home-section {
        padding: 30px 0 32px;
    }

    .home-section-first {
        padding-top: 8px;
    }

    .section-heading {
        align-items: flex-end;
        gap: 12px;
        margin-bottom: 17px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .section-link {
        font-size: 12px;
    }


    /* Main stories become a vertical news list */

    .headline-grid {
        display: block;
    }

    .headline-story {
        padding: 0 0 22px;
    }

    .headline-story + .headline-story {
        padding: 22px 0;
        border-left: 0;
        border-top: 1px solid #dfe3e8;
    }

    .headline-story:last-child {
        padding-right: 0;
        padding-bottom: 0;
    }

    .headline-story h3 {
        font-size: 21px;
    }

    .story-summary {
        margin-top: 10px;
        -webkit-line-clamp: 3;
    }

    .story-footer {
        margin-top: 13px;
    }


    /* Personalised section */

    .personalised-grid {
        padding: 18px;
    }

    .personalised-grid .headline-story + .headline-story {
        padding-top: 18px;
    }


    /* UK / World / interest sections */

    .compact-story-grid {
        display: block;
    }

    .compact-story {
        padding: 0 0 19px;
    }

    .compact-story + .compact-story {
        padding: 19px 0;
        border-left: 0;
        border-top: 1px solid #dfe3e8;
    }

    .compact-story:last-child {
        padding-right: 0;
        padding-bottom: 0;
    }

    .compact-story h3 {
        font-size: 18px;
    }

    .compact-story p {
        -webkit-line-clamp: 2;
    }

}


/* ============================================================
   YOUR NEWS V2 - SMALL MOBILE
   ============================================================ */

@media (max-width: 450px) {

    .news-home {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .section-eyebrow {
        font-size: 10px;
    }

    .headline-story h3 {
        font-size: 20px;
    }

    .story-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

}


/* ============================================================
   YOUR NEWS V2 - ARTICLE READER
   ============================================================ */

/* Make homepage stories feel clickable */

.reader-story {
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.reader-story:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 5px;
    border-radius: 4px;
}

.headline-story.reader-story:hover h3,
.compact-story.reader-story:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* ------------------------------------------------------------
   COMPACT STORY FOOTER
   ------------------------------------------------------------ */

.compact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.compact-footer .compact-date {
    margin-top: 0;
}

.compact-original {
    flex-shrink: 0;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.compact-original:hover {
    color: #111827;
}


/* ------------------------------------------------------------
   READER OVERLAY
   ------------------------------------------------------------ */

.article-reader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.article-reader.open {
    visibility: visible;
    opacity: 1;
}

.reader-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(17, 24, 39, 0.62);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* Prevent page behind reader from scrolling */

body.reader-open {
    overflow: hidden;
}


/* ------------------------------------------------------------
   READER WINDOW
   ------------------------------------------------------------ */

.reader-panel {
    position: relative;
    z-index: 1;

    width: min(760px, 100%);
    max-height: min(820px, calc(100vh - 64px));

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.28),
        0 8px 24px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    transform: translateY(10px) scale(0.985);

    transition:
        transform 0.18s ease;
}

.article-reader.open .reader-panel {
    transform: translateY(0) scale(1);
}


/* ------------------------------------------------------------
   CLOSE BUTTON
   ------------------------------------------------------------ */

.reader-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #f1f3f5;
    color: #111827;

    border: 0;
    border-radius: 50%;

    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.reader-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.reader-close:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   SCROLLABLE READER CONTENT
   ------------------------------------------------------------ */

.reader-scroll {
    max-height: min(820px, calc(100vh - 64px));
    overflow-y: auto;

    padding: 48px 54px 44px;

    scrollbar-width: thin;
    scrollbar-color: #c8cdd4 transparent;
}


/* ------------------------------------------------------------
   ARTICLE META
   ------------------------------------------------------------ */

.reader-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    padding-right: 48px;
    margin-bottom: 14px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#reader-category {
    color: #111827;
    font-weight: 800;
}

#reader-source::before {
    content: "•";
    margin-right: 8px;
    color: #b9bec6;
}


/* ------------------------------------------------------------
   ARTICLE TITLE
   ------------------------------------------------------------ */

.reader-panel #reader-title {
    max-width: 650px;

    margin: 0;

    color: #111827;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.16;

    letter-spacing: -0.025em;
}

.reader-date {
    margin-top: 13px;
    padding-bottom: 25px;

    border-bottom: 1px solid #e2e5e9;

    color: #8a919d;

    font-size: 12px;
}


/* ------------------------------------------------------------
   READER CONTENT
   ------------------------------------------------------------ */

.reader-section {
    margin-top: 27px;
}

.reader-label {
    display: block;

    margin-bottom: 10px;

    color: #6b7280;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#reader-summary {
    margin: 0;

    color: #303743;

    font-size: 16px;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   KEY POINTS
   ------------------------------------------------------------ */

#reader-points {
    margin: 0;
    padding: 0;

    list-style: none;
}

#reader-points li {
    position: relative;

    margin: 0;
    padding: 14px 0 14px 27px;

    border-top: 1px solid #eceef1;

    color: #303743;

    font-size: 15px;
    line-height: 1.6;
}

#reader-points li:last-child {
    border-bottom: 1px solid #eceef1;
}

#reader-points li::before {
    content: "";

    position: absolute;
    top: 22px;
    left: 4px;

    width: 7px;
    height: 7px;

    background: #111827;

    border-radius: 50%;
}


/* ------------------------------------------------------------
   TOPICS
   ------------------------------------------------------------ */

.reader-topics {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 27px;
}

.reader-topics:empty {
    display: none;
}

.reader-topics span {
    padding: 6px 10px;

    background: #f1f3f5;
    color: #4b5563;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}


/* ------------------------------------------------------------
   READ ORIGINAL
   ------------------------------------------------------------ */

.reader-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid #e2e5e9;
}

.reader-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

    background: #111827;
    color: #ffffff;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.reader-actions a:hover {
    background: #1f2937;
    transform: translateY(-1px);
}


/* ============================================================
   ARTICLE READER - TABLET
   ============================================================ */

@media (max-width: 850px) {

    .article-reader {
        padding: 24px;
    }

    .reader-panel {
        max-height: calc(100vh - 48px);
    }

    .reader-scroll {
        max-height: calc(100vh - 48px);
        padding: 44px 42px 40px;
    }

    .reader-panel #reader-title {
        font-size: 30px;
    }

}


/* ============================================================
   ARTICLE READER - MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .article-reader {
        align-items: stretch;

        padding:
            max(10px, env(safe-area-inset-top))
            0
            0;
    }

    .reader-backdrop {
        background: rgba(17, 24, 39, 0.72);
    }

    .reader-panel {
        width: 100%;
        max-height: none;
        height: 100%;

        border: 0;
        border-radius: 16px 16px 0 0;

        transform: translateY(30px);
    }

    .article-reader.open .reader-panel {
        transform: translateY(0);
    }

    .reader-scroll {
        height: 100%;
        max-height: none;

        padding:
            52px
            22px
            calc(32px + env(safe-area-inset-bottom));
    }

    .reader-close {
        position: fixed;

        top: calc(
            max(10px, env(safe-area-inset-top))
            + 13px
        );

        right: 15px;

        width: 36px;
        height: 36px;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .reader-meta {
        padding-right: 44px;
        margin-bottom: 12px;
    }

    .reader-panel #reader-title {
        font-size: 28px;
        line-height: 1.17;
    }

    .reader-date {
        padding-bottom: 21px;
    }

    #reader-summary {
        font-size: 15px;
        line-height: 1.7;
    }

    #reader-points li {
        padding-top: 13px;
        padding-bottom: 13px;

        font-size: 14px;
    }

    .reader-actions {
        justify-content: stretch;
    }

    .reader-actions a {
        width: 100%;
    }


    /* Compact homepage footer */

    .compact-footer {
        align-items: flex-end;
    }

}


/* ============================================================
   ARTICLE READER - SMALL MOBILE
   ============================================================ */

@media (max-width: 450px) {

    .reader-scroll {
        padding-left: 18px;
        padding-right: 18px;
    }

    .reader-panel #reader-title {
        font-size: 25px;
    }

    .reader-section {
        margin-top: 23px;
    }

}


/* ============================================================
   YOUR NEWS V2 - HOMEPAGE HEADER
   ============================================================ */

.v2-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #dfe3e8;
}


/* ------------------------------------------------------------
   TOP ROW
   ------------------------------------------------------------ */

.v2-header-top {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.v2-brand {
    color: #111827;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.035em;

    text-decoration: none;
}


.v2-header-actions {
    display: flex;
    align-items: center;

    gap: 28px;
}


.v2-search-toggle {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 0;

    background: transparent;
    color: #4b5563;

    border: 0;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


.v2-search-toggle:hover {
    color: #111827;
}


.v2-search-symbol {
    font-size: 19px;
    font-weight: 400;

    line-height: 1;
}


.v2-account-link {
    position: relative;

    color: #111827;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}


.v2-account-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -5px;

    height: 1px;

    background: #111827;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.15s ease;
}


.v2-account-link:hover::after {
    transform: scaleX(1);
}


/* ------------------------------------------------------------
   SEARCH
   ------------------------------------------------------------ */

.v2-search-panel {
    background: #f5f6f7;

    border-top: 1px solid #e4e7eb;
}


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


.v2-search-form {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;
    padding: 18px 0;

    display: flex;

    gap: 10px;
}


.v2-search-form input {
    flex: 1;

    min-width: 0;
    height: 46px;

    padding: 0 16px;

    background: #ffffff;
    color: #111827;

    border: 1px solid #cfd4da;
    border-radius: 5px;

    font: inherit;
    font-size: 14px;

    outline: none;
}


.v2-search-form input:focus {
    border-color: #6b7280;

    box-shadow:
        0 0 0 2px rgba(17, 24, 39, 0.08);
}


.v2-search-form button {
    height: 46px;

    padding: 0 21px;

    background: #111827;
    color: #ffffff;

    border: 0;
    border-radius: 5px;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}


.v2-search-form button:hover {
    background: #252d3a;
}


/* ------------------------------------------------------------
   NAVIGATION ROW
   ------------------------------------------------------------ */

.v2-nav {
    border-top: 1px solid #eceef1;

    background: #ffffff;
}


.v2-nav-scroll {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 29px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
}


.v2-nav-scroll::-webkit-scrollbar {
    display: none;
}


.v2-nav a {
    position: relative;

    display: flex;
    align-items: center;

    height: 49px;

    flex-shrink: 0;

    color: #606773;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


.v2-nav a:hover {
    color: #111827;
}


.v2-nav a.active {
    color: #111827;
}


.v2-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: #111827;
}


.v2-nav .v2-edit-interests {
    margin-left: auto;

    color: #7a818c;
}


/* ------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------ */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* ============================================================
   V2 HEADER - TABLET
   ============================================================ */

@media (max-width: 850px) {

    .v2-header-top,
    .v2-search-form,
    .v2-nav-scroll {
        width: min(100% - 32px, 1180px);
    }


    .v2-header-top {
        min-height: 72px;
    }


    .v2-nav-scroll {
        gap: 24px;
    }


    .v2-nav .v2-edit-interests {
        margin-left: 0;
    }

}


/* ============================================================
   V2 HEADER - MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .v2-header-top {
        width: calc(100% - 30px);

        min-height: 64px;

        gap: 15px;
    }


    .v2-brand {
        font-size: 22px;
    }


    .v2-header-actions {
        gap: 18px;
    }


    .v2-search-toggle {
        font-size: 0;

        padding: 9px;
    }


    .v2-search-symbol {
        font-size: 22px;
    }


    .v2-account-link {
        font-size: 12px;
    }


    .v2-search-form {
        width: calc(100% - 30px);

        padding: 13px 0;
    }


    .v2-search-form input {
        height: 43px;

        padding: 0 13px;

        font-size: 13px;
    }


    .v2-search-form button {
        height: 43px;

        padding: 0 15px;

        font-size: 12px;
    }


    .v2-nav-scroll {
        width: 100%;

        padding: 0 15px;

        gap: 23px;
    }


    .v2-nav a {
        height: 45px;

        font-size: 11px;
    }

}


/* ============================================================
   YOUR NEWS - SUBTLE ACCENT COLOUR
   ============================================================ */

:root {
    --yn-accent: #486f8c;
    --yn-accent-hover: #31566f;
}


/* RIGHT NOW / PERSONALISED / NEWS */
.news-home .section-eyebrow {
    color: var(--yn-accent);
}


/* GAMING / SPORT / UK / WORLD etc. */
.news-home .story-category {
    color: var(--yn-accent);
}


/* Read original */
.news-home .original-link {
    color: var(--yn-accent);
}

.news-home .original-link:hover {
    color: var(--yn-accent-hover);
}


/* View latest / View all / Edit interests */
.news-home .section-link:hover {
    color: var(--yn-accent);
}


/* Active navigation marker */
.v2-nav a.active::after {
    background: var(--yn-accent);
}


/* Reader's small labels only */
.article-reader .reader-label {
    color: var(--yn-accent);
}


/* YOUR NEWS brand accent */
.v2-brand-accent {
    color: var(--yn-accent);
}


/* Explicit YOUR NEWS brand colour */
.v2-brand .v2-brand-accent {
    color: #486f8c;
}
