/* =========================================================
   BritainPost Homepage V2
   Dedicated authoritative homepage presentation layer

   HP5.7A scope:
   - Top Story / Most Read equal-height layout
   - No other homepage components migrated yet

   Loaded after britainpost-live.css so these rules become
   the final homepage authority while legacy CSS is cleaned
   incrementally and safely.
   ========================================================= */


/* =========================================================
   HERO + MOST READ — DESKTOP EQUAL HEIGHT
   ========================================================= */

@media (min-width:1121px) {

    html body section.bp-v3-hero
    .bp-v3-hero__layout {
        display:grid !important;
        align-items:stretch !important;
        grid-template-columns:minmax(0,1fr) 285px !important;
    }

    /*
     * The legacy stylesheet contains several historical
     * !important height declarations. These targeted rules
     * therefore also require !important until those legacy
     * declarations are removed in a later cleanup sprint.
     */

    html body section.bp-v3-hero
    article.bp-v3-lead {
        height:420px !important;
        min-height:420px !important;
        max-height:420px !important;
        box-sizing:border-box !important;
        align-self:stretch !important;
        overflow:hidden !important;
    }

    html body section.bp-v3-hero
    article.bp-v3-lead
    .bp-v3-lead__content {
        height:420px !important;
        min-height:0 !important;
        max-height:420px !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
    }

    html body section.bp-v3-hero
    article.bp-v3-lead
    .bp-v3-lead__image {
        height:420px !important;
        min-height:420px !important;
        max-height:420px !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
    }

    html body section.bp-v3-hero
    article.bp-v3-lead
    .bp-v3-lead__image img {
        display:block !important;
        width:100% !important;
        height:420px !important;
        min-height:420px !important;
        max-height:420px !important;
        object-fit:cover !important;
    }


    /* Most Read canonical card */

    html body section.bp-v3-hero
    aside.bp-most-read-clean {
        position:relative !important;
        display:flex !important;
        height:420px !important;
        min-height:420px !important;
        max-height:420px !important;
        align-self:stretch !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
        padding:17px 21px 16px !important;
        flex-direction:column !important;
        border:1px solid rgba(7,26,51,.075) !important;
        border-radius:28px !important;
        background:
            radial-gradient(
                circle at 100% 0%,
                rgba(215,25,63,.105),
                transparent 42%
            ),
            linear-gradient(
                155deg,
                rgba(255,255,255,.95),
                rgba(246,248,253,.90)
            ) !important;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.94),
            0 20px 52px rgba(7,26,51,.085) !important;
        backdrop-filter:blur(24px) !important;
        -webkit-backdrop-filter:blur(24px) !important;
    }

    html body section.bp-v3-hero
    aside.bp-most-read-clean::before,
    html body section.bp-v3-hero
    aside.bp-most-read-clean::after {
        display:none !important;
        content:none !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__heading {
        flex:0 0 auto !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__heading h2 {
        margin:0 0 12px !important;
        padding:0 !important;
        color:#071a33 !important;
        font-size:1.02rem !important;
        font-weight:700 !important;
        letter-spacing:-.025em !important;
        line-height:1.15 !important;
        text-transform:none !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__list {
        display:flex !important;
        min-height:0 !important;
        flex:1 1 auto !important;
        margin:0 !important;
        padding:0 !important;
        flex-direction:column !important;
        list-style:none !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__item {
        position:relative !important;
        display:grid !important;
        min-height:0 !important;
        box-sizing:border-box !important;
        align-items:start !important;
        column-gap:13px !important;
        margin:0 0 7px !important;
        padding:0 0 7px !important;
        border-bottom:1px solid rgba(7,26,51,.075) !important;
        grid-template-columns:37px minmax(0,1fr) !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__item:last-child {
        margin-bottom:0 !important;
        padding-bottom:0 !important;
        border-bottom:0 !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__item::before,
    html body section.bp-v3-hero
    .bp-most-read-clean__item::after {
        display:none !important;
        content:none !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__number {
        display:flex !important;
        width:33px !important;
        height:33px !important;
        grid-column:1 !important;
        grid-row:1 / span 2 !important;
        align-items:center !important;
        justify-content:center !important;
        align-self:start !important;
        border:1px solid rgba(215,25,63,.27) !important;
        border-radius:50% !important;
        background:rgba(255,255,255,.84) !important;
        color:#d7193f !important;
        font-size:.7rem !important;
        font-weight:700 !important;
        line-height:1 !important;
        font-variant-numeric:tabular-nums !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__link {
        display:-webkit-box !important;
        min-width:0 !important;
        overflow:hidden !important;
        grid-column:2 !important;
        margin:0 !important;
        padding:0 !important;
        color:#071a33 !important;
        font-size:.7rem !important;
        font-weight:700 !important;
        letter-spacing:-.01em !important;
        line-height:1.18 !important;
        text-decoration:none !important;
        -webkit-box-orient:vertical !important;
        -webkit-line-clamp:3 !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__link:hover {
        color:#d7193f !important;
    }

    html body section.bp-v3-hero
    .bp-most-read-clean__time {
        display:block !important;
        grid-column:2 !important;
        margin-top:4px !important;
        color:#d7193f !important;
        font-size:.44rem !important;
        font-weight:750 !important;
        letter-spacing:.12em !important;
        line-height:1 !important;
        text-transform:uppercase !important;
    }

    html body section.bp-v3-hero
    aside.bp-most-read-clean
    > .bp-v3-module-link {
        position:static !important;
        display:flex !important;
        width:100% !important;
        min-height:18px !important;
        flex:0 0 auto !important;
        box-sizing:border-box !important;
        align-items:center !important;
        justify-content:space-between !important;
        margin:auto 0 0 !important;
        padding:8px 0 0 !important;
        border-top:1px solid rgba(7,26,51,.07) !important;
        color:#d7193f !important;
        font-size:.65rem !important;
        font-weight:750 !important;
        line-height:1.2 !important;
        transform:none !important;
    }
}


/* =========================================================
   TABLET + MOBILE — NATURAL STACKED HEIGHT
   ========================================================= */

@media (max-width:1120px) {

    html body section.bp-v3-hero
    article.bp-v3-lead,
    html body section.bp-v3-hero
    aside.bp-most-read-clean {
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
    }

    html body section.bp-v3-hero
    article.bp-v3-lead
    .bp-v3-lead__content,
    html body section.bp-v3-hero
    article.bp-v3-lead
    .bp-v3-lead__image,
    html body section.bp-v3-hero
    article.bp-v3-lead
    .bp-v3-lead__image img {
        height:auto !important;
        max-height:none !important;
    }
}


/* =========================================================
   BP5.8D — Live Breaking News Ticker Motion
   ========================================================= */

html body .bp-breaking__headline,
html body .bp-breaking__time {
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    will-change:opacity, transform;
}

html body .bp-breaking__headline.is-leaving,
html body .bp-breaking__time.is-leaving {
    opacity:0;
    transform:translateY(-4px);
}

html body .bp-breaking__headline.is-entering,
html body .bp-breaking__time.is-entering {
    opacity:0;
    transform:translateY(4px);
}

html body .bp-breaking[data-bp-breaking-ready="true"]
.bp-breaking__story {
    cursor:pointer;
}

@media (prefers-reduced-motion: reduce) {
    html body .bp-breaking__headline,
    html body .bp-breaking__time {
        transition:none !important;
        transform:none !important;
    }
}


/* =========================================================
   HP6.1A — Compact Trending Bar
   Scope: desktop height and vertical alignment only
   ========================================================= */

@media (min-width: 1121px) {
    html body section.bp-v3-trending {
        margin: 0 !important;
        padding: 0 !important;
    }

    html body section.bp-v3-trending
    .bp-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__inner {
        display: grid !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        box-sizing: border-box !important;
        align-items: center !important;
        gap: 18px !important;
        padding: 0 24px !important;
        overflow: hidden !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__heading {
        display: flex !important;
        height: 70px !important;
        min-height: 70px !important;
        align-items: center !important;
        align-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items {
        display: grid !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items > a {
        display: flex !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        box-sizing: border-box !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 18px !important;
        overflow: hidden !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items > a > strong {
        flex: 0 0 auto !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items > a > span {
        display: block !important;
        min-width: 0 !important;
        margin: 0 !important;
        line-height: 1.18 !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items > a > strong {
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items > a > span {
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
        font-size:.62rem !important;
        font-weight:700 !important;
        line-height:1.18 !important;
    }

    html body section.bp-v3-trending
    .bp-v3-trending__items small {
        display:block !important;
        margin-top:3px !important;
        font-size:.52rem !important;
        font-weight:500 !important;
        line-height:1 !important;
    }
}


/* =========================================================
   HP7.2A.5 — Weekly Highlights Apple-Inspired Styling

   Scope:
   - Weekly Highlights section only
   - Four compact desktop columns
   - Two-column tablet layout
   - Single-column mobile layout
   - Apple-style editorial panels
   - Small consistent thumbnails
   - Typography token integration
   - Restrained hover interaction

   Explicitly untouched:
   - Hero
   - Trending bar
   - Featured Stories
   - Latest News
   - Britain Shorts
   - Featured Partners
   - Technology section
   ========================================================= */

html body .bp-weekly-highlights {
    position:relative;
    width:100%;
    margin:0;
    padding:54px 0 58px;
    overflow:hidden;
    font-family:var(--bp-font-ui);
}

html body .bp-weekly-highlights::before {
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:0;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(215,25,63,.045),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 5%,
            rgba(7,26,51,.045),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(248,250,253,.82),
            rgba(255,255,255,.96)
        );
    content:"";
    pointer-events:none;
}

html body .bp-weekly-highlights > .bp-container {
    position:relative;
    z-index:1;
}

html body .bp-weekly-highlights__header {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:32px;
    margin:0 0 24px;
}

html body .bp-weekly-highlights__heading {
    min-width:0;
}

html body .bp-weekly-highlights__heading .bp-kicker {
    margin:0 0 8px;
    color:#d7193f;
    font-family:var(--bp-font-ui);
    font-size:var(--bp-type-caption);
    font-weight:var(--bp-weight-section);
    letter-spacing:.15em;
    line-height:1.1;
    text-transform:uppercase;
}

html body .bp-weekly-highlights__heading h2 {
    margin:0;
    color:#071a33;
}

html body .bp-weekly-highlights__intro {
    max-width:390px;
    margin:0 0 3px;
    color:rgba(7,26,51,.64);
    font-family:var(--bp-font-editorial);
    font-size:.9rem;
    font-weight:var(--bp-weight-body);
    letter-spacing:0;
    line-height:1.48;
    text-align:right;
}

html body .bp-weekly-highlights__grid {
    display:grid;
    align-items:stretch;
    gap:14px;
    grid-template-columns:repeat(4,minmax(0,1fr));
}

html body .bp-weekly-highlights__column {
    position:relative;
    min-width:0;
    overflow:hidden;
    border:1px solid rgba(7,26,51,.085);
    border-radius:24px;
    background:rgba(255,255,255,.88);
    box-shadow:
        0 1px 1px rgba(7,26,51,.025),
        0 10px 30px rgba(7,26,51,.055);
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);
}

html body .bp-weekly-highlights__column::before {
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:3px;
    background:linear-gradient(
        90deg,
        #d7193f,
        rgba(215,25,63,.34)
    );
    content:"";
}

html body
.bp-weekly-highlights__column--world::before {
    background:linear-gradient(
        90deg,
        #0b5cad,
        rgba(11,92,173,.28)
    );
}

html body
.bp-weekly-highlights__column--politics::before {
    background:linear-gradient(
        90deg,
        #071a33,
        rgba(7,26,51,.28)
    );
}

html body
.bp-weekly-highlights__column--trending::before {
    background:linear-gradient(
        90deg,
        #b86b00,
        rgba(184,107,0,.25)
    );
}

html body .bp-weekly-highlights__column-header {
    display:flex;
    min-height:78px;
    box-sizing:border-box;
    align-items:center;
    gap:12px;
    padding:17px 17px 14px;
    border-bottom:1px solid rgba(7,26,51,.07);
}

html body .bp-weekly-highlights__column-icon {
    display:flex;
    width:38px;
    height:38px;
    flex:0 0 38px;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(215,25,63,.14);
    border-radius:12px;
    background:rgba(215,25,63,.055);
    color:#d7193f;
}

html body
.bp-weekly-highlights__column--world
.bp-weekly-highlights__column-icon {
    border-color:rgba(11,92,173,.14);
    background:rgba(11,92,173,.055);
    color:#0b5cad;
}

html body
.bp-weekly-highlights__column--politics
.bp-weekly-highlights__column-icon {
    border-color:rgba(7,26,51,.14);
    background:rgba(7,26,51,.055);
    color:#071a33;
}

html body
.bp-weekly-highlights__column--trending
.bp-weekly-highlights__column-icon {
    border-color:rgba(184,107,0,.15);
    background:rgba(184,107,0,.06);
    color:#a45f00;
}

html body .bp-weekly-highlights__column-icon svg {
    display:block;
    width:20px;
    height:20px;
}

html body .bp-weekly-highlights__column-eyebrow {
    display:block;
    margin:0 0 3px;
    color:rgba(7,26,51,.5);
    font-family:var(--bp-font-ui);
    font-size:.59rem;
    font-weight:var(--bp-weight-meta);
    letter-spacing:.12em;
    line-height:1;
    text-transform:uppercase;
}

html body .bp-weekly-highlights__column-header h3 {
    margin:0;
    color:#071a33;
    font-family:var(--bp-font-display);
    font-size:1rem;
    font-weight:var(--bp-weight-headline);
    letter-spacing:-.018em;
    line-height:1.15;
}

html body .bp-weekly-highlights__stories {
    margin:0;
    padding:0 14px;
    list-style:none;
}

html body .bp-weekly-highlights__story {
    margin:0;
    padding:0;
    border-bottom:1px solid rgba(7,26,51,.065);
}

html body .bp-weekly-highlights__story:last-child {
    border-bottom:0;
}

html body .bp-weekly-highlights__story > article {
    margin:0;
    padding:0;
}

html body .bp-weekly-highlights__story-link {
    display:grid;
    min-width:0;
    align-items:center;
    gap:11px;
    padding:12px 2px;
    color:inherit;
    text-decoration:none;
    grid-template-columns:64px minmax(0,1fr);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

html body .bp-weekly-highlights__story-link:hover {
    transform:translateY(-1px);
}

html body .bp-weekly-highlights__story-media {
    position:relative;
    display:block;
    width:64px;
    height:64px;
    overflow:hidden;
    border-radius:13px;
    background:#eef2f6;
}

html body .bp-weekly-highlights__story-media img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transform:scale(1.001);
    transition:transform 240ms ease;
}

html body
.bp-weekly-highlights__story-link:hover
.bp-weekly-highlights__story-media img {
    transform:scale(1.045);
}

html body .bp-weekly-highlights__story-content {
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
}

html body .bp-weekly-highlights__story-category {
    display:block;
    max-width:100%;
    margin:0 0 4px;
    overflow:hidden;
    color:#d7193f;
    font-family:var(--bp-font-ui);
    font-size:.54rem;
    font-weight:var(--bp-weight-section);
    letter-spacing:.09em;
    line-height:1;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
}

html body
.bp-weekly-highlights__column--world
.bp-weekly-highlights__story-category {
    color:#0b5cad;
}

html body
.bp-weekly-highlights__column--politics
.bp-weekly-highlights__story-category {
    color:#40506a;
}

html body
.bp-weekly-highlights__column--trending
.bp-weekly-highlights__story-category {
    color:#a45f00;
}

html body .bp-weekly-highlights__story-title {
    display:-webkit-box;
    min-width:0;
    overflow:hidden;
    color:#071a33;
    font-family:var(--bp-card-title-font);
    font-size:.78rem;
    font-weight:var(--bp-card-title-weight);
    letter-spacing:-.012em;
    line-height:1.25;
    text-wrap:pretty;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}

html body
.bp-weekly-highlights__story-link:hover
.bp-weekly-highlights__story-title {
    color:#d7193f;
}

html body .bp-weekly-highlights__story-meta {
    display:flex;
    max-width:100%;
    align-items:center;
    gap:5px;
    margin-top:6px;
    overflow:hidden;
    color:rgba(7,26,51,.48);
    font-family:var(--bp-meta-font);
    font-size:.54rem;
    font-weight:var(--bp-meta-weight);
    letter-spacing:.012em;
    line-height:1.2;
    white-space:nowrap;
}

html body .bp-weekly-highlights__empty {
    padding:24px 4px;
    color:rgba(7,26,51,.52);
    font-family:var(--bp-font-editorial);
    font-size:.78rem;
    line-height:1.5;
}


/* =========================================================
   HP7.2A.5 — Tablet
   ========================================================= */

@media (max-width:1120px) {

    html body .bp-weekly-highlights {
        padding:46px 0 50px;
    }

    html body .bp-weekly-highlights__grid {
        gap:16px;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    html body .bp-weekly-highlights__story-title {
        -webkit-line-clamp:2;
    }
}


/* =========================================================
   HP7.2A.5 — Small Tablet
   ========================================================= */

@media (max-width:760px) {

    html body .bp-weekly-highlights {
        padding:38px 0 42px;
    }

    html body .bp-weekly-highlights__header {
        display:block;
        margin-bottom:20px;
    }

    html body .bp-weekly-highlights__intro {
        max-width:520px;
        margin-top:10px;
        text-align:left;
    }

    html body .bp-weekly-highlights__grid {
        grid-template-columns:minmax(0,1fr);
    }

    html body .bp-weekly-highlights__column {
        border-radius:21px;
    }

    html body .bp-weekly-highlights__column-header {
        min-height:72px;
        padding:15px 16px 13px;
    }

    html body .bp-weekly-highlights__stories {
        padding:0 13px;
    }

    html body .bp-weekly-highlights__story-link {
        grid-template-columns:72px minmax(0,1fr);
        padding:12px 2px;
    }

    html body .bp-weekly-highlights__story-media {
        width:72px;
        height:66px;
    }

    html body .bp-weekly-highlights__story-title {
        display:block;
        overflow:visible;
        font-size:.82rem;
        line-height:1.3;
        -webkit-line-clamp:unset;
    }
}


/* =========================================================
   HP7.2A.5 — Mobile
   ========================================================= */

@media (max-width:520px) {

    html body .bp-weekly-highlights {
        padding:32px 0 36px;
    }

    html body .bp-weekly-highlights__heading .bp-kicker {
        margin-bottom:7px;
    }

    html body .bp-weekly-highlights__intro {
        font-size:.84rem;
        line-height:1.45;
    }

    html body .bp-weekly-highlights__grid {
        gap:13px;
    }

    html body .bp-weekly-highlights__column {
        border-radius:18px;
    }

    html body .bp-weekly-highlights__column-header {
        gap:10px;
        padding:14px;
    }

    html body .bp-weekly-highlights__column-icon {
        width:35px;
        height:35px;
        flex-basis:35px;
        border-radius:11px;
    }

    html body .bp-weekly-highlights__stories {
        padding:0 11px;
    }

    html body .bp-weekly-highlights__story-link {
        gap:10px;
        padding:11px 1px;
        grid-template-columns:68px minmax(0,1fr);
    }

    html body .bp-weekly-highlights__story-media {
        width:68px;
        height:62px;
        border-radius:11px;
    }

    html body .bp-weekly-highlights__story-category {
        font-size:.52rem;
    }

    html body .bp-weekly-highlights__story-title {
        font-size:.78rem;
        line-height:1.28;
    }

    html body .bp-weekly-highlights__story-meta {
        margin-top:5px;
        font-size:.51rem;
    }
}


/* =========================================================
   HP7.2A.5 — Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion:reduce) {

    html body .bp-weekly-highlights__story-link,
    html body .bp-weekly-highlights__story-media img {
        transition:none;
    }

    html body .bp-weekly-highlights__story-link:hover,
    html body
    .bp-weekly-highlights__story-link:hover
    .bp-weekly-highlights__story-media img {
        transform:none;
    }
}


/* =========================================================
   HP7.2A.5A — British Identity and Row Alignment

   Corrections:
   - BritainPost red, navy and white only
   - British-flavoured main section container
   - Uniform desktop column heights
   - Identical story-row heights
   - One-line desktop headlines
   - Consistent image, category and metadata alignment

   Explicitly untouched:
   - Blade markup
   - Article allocation
   - Images and article data
   - Other homepage sections
   ========================================================= */


/* =========================================================
   MAIN BRITISH-FLAVOURED CONTAINER
   ========================================================= */

html body .bp-weekly-highlights {
    padding:42px 0 48px;
    background:
        linear-gradient(
            180deg,
            rgba(247,248,252,.96),
            rgba(251,251,253,.98)
        );
}

html body .bp-weekly-highlights::before {
    background:
        radial-gradient(
            circle at 4% 4%,
            rgba(215,25,63,.07),
            transparent 25%
        ),
        radial-gradient(
            circle at 96% 3%,
            rgba(7,26,51,.075),
            transparent 26%
        );
}

html body .bp-weekly-highlights > .bp-container {
    position:relative;
    box-sizing:border-box;
    padding:30px 28px 28px;
    overflow:hidden;
    border:1px solid rgba(7,26,51,.09);
    border-radius:30px;
    background:
        linear-gradient(
            135deg,
            rgba(215,25,63,.025) 0%,
            rgba(255,255,255,.97) 24%,
            rgba(255,255,255,.98) 72%,
            rgba(7,26,51,.035) 100%
        );
    box-shadow:
        0 1px 2px rgba(7,26,51,.025),
        0 18px 55px rgba(7,26,51,.07);
}

html body .bp-weekly-highlights > .bp-container::before {
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:4px;
    background:
        linear-gradient(
            90deg,
            #d7193f 0%,
            #d7193f 33.333%,
            #ffffff 33.333%,
            #ffffff 66.666%,
            #071a33 66.666%,
            #071a33 100%
        );
    content:"";
    pointer-events:none;
}

html body .bp-weekly-highlights__header {
    margin-bottom:22px;
}

html body .bp-weekly-highlights__intro {
    color:rgba(7,26,51,.63);
}


/* =========================================================
   FOUR MATCHING BRITAINPOST COLUMNS
   ========================================================= */

html body .bp-weekly-highlights__grid {
    align-items:stretch;
    gap:14px;
}

html body .bp-weekly-highlights__column {
    display:flex;
    min-height:0;
    flex-direction:column;
    border-color:rgba(7,26,51,.095);
    background:rgba(255,255,255,.94);
    box-shadow:
        0 1px 1px rgba(7,26,51,.02),
        0 9px 28px rgba(7,26,51,.055);
}

html body .bp-weekly-highlights__column::before,
html body .bp-weekly-highlights__column--world::before,
html body .bp-weekly-highlights__column--politics::before,
html body .bp-weekly-highlights__column--trending::before {
    height:3px;
    background:
        linear-gradient(
            90deg,
            #d7193f 0%,
            #d7193f 42%,
            #ffffff 42%,
            #ffffff 58%,
            #071a33 58%,
            #071a33 100%
        );
}

html body .bp-weekly-highlights__column-header {
    width:100%;
    min-height:78px;
    flex:0 0 78px;
    padding:16px 17px 14px;
    border-bottom-color:rgba(7,26,51,.075);
}

html body .bp-weekly-highlights__column-icon,
html body
.bp-weekly-highlights__column--world
.bp-weekly-highlights__column-icon,
html body
.bp-weekly-highlights__column--politics
.bp-weekly-highlights__column-icon,
html body
.bp-weekly-highlights__column--trending
.bp-weekly-highlights__column-icon {
    border-color:rgba(7,26,51,.12);
    background:
        linear-gradient(
            145deg,
            rgba(215,25,63,.065),
            rgba(7,26,51,.045)
        );
    color:#071a33;
}

html body .bp-weekly-highlights__column-icon::after {
    position:absolute;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#d7193f;
    content:"";
    transform:translate(13px,-13px);
}

html body .bp-weekly-highlights__column-icon {
    position:relative;
}

html body .bp-weekly-highlights__column-eyebrow {
    color:rgba(7,26,51,.52);
}

html body .bp-weekly-highlights__column-header h3 {
    color:#071a33;
}


/* =========================================================
   IDENTICAL FIVE-ROW STRUCTURE
   ========================================================= */

@media (min-width:1121px) {

    html body .bp-weekly-highlights__stories {
        display:grid;
        flex:1 1 auto;
        padding:0 14px;
        grid-template-rows:repeat(5,92px);
    }

    html body .bp-weekly-highlights__story {
        display:block;
        width:100%;
        height:92px;
        min-height:92px;
        max-height:92px;
        box-sizing:border-box;
        overflow:hidden;
    }

    html body .bp-weekly-highlights__story > article {
        width:100%;
        height:100%;
    }

    html body .bp-weekly-highlights__story-link {
        display:grid;
        width:100%;
        height:100%;
        min-height:0;
        max-height:none;
        box-sizing:border-box;
        align-items:center;
        gap:10px;
        padding:10px 1px;
        grid-template-columns:56px minmax(0,1fr);
    }

    html body .bp-weekly-highlights__story-media {
        width:56px;
        height:56px;
        align-self:center;
        border-radius:12px;
    }

    html body .bp-weekly-highlights__story-content {
        width:100%;
        min-width:0;
        align-self:center;
        justify-content:center;
    }

    html body .bp-weekly-highlights__story-category {
        width:100%;
        margin:0 0 4px;
        color:#d7193f;
        font-size:.5rem;
        letter-spacing:.095em;
        line-height:1;
    }

    html body
    .bp-weekly-highlights__column--world
    .bp-weekly-highlights__story-category,
    html body
    .bp-weekly-highlights__column--politics
    .bp-weekly-highlights__story-category,
    html body
    .bp-weekly-highlights__column--trending
    .bp-weekly-highlights__story-category {
        color:#d7193f;
    }

    html body .bp-weekly-highlights__story-title {
        display:block;
        width:100%;
        min-width:0;
        overflow:hidden;
        color:#071a33;
        font-family:var(--bp-card-title-font);
        font-size:.68rem;
        font-weight:var(--bp-card-title-weight);
        letter-spacing:-.008em;
        line-height:1.2;
        text-overflow:ellipsis;
        white-space:nowrap;
        -webkit-box-orient:initial;
        -webkit-line-clamp:unset;
    }

    html body .bp-weekly-highlights__story-meta {
        width:100%;
        min-width:0;
        margin-top:5px;
        gap:4px;
        overflow:hidden;
        font-size:.49rem;
        line-height:1;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
}


/* =========================================================
   BRITAINPOST-ONLY INTERACTIONS
   ========================================================= */

html body
.bp-weekly-highlights__story-link:hover
.bp-weekly-highlights__story-title {
    color:#d7193f;
}

html body .bp-weekly-highlights__story-link:focus-visible {
    border-radius:12px;
    outline:2px solid rgba(215,25,63,.65);
    outline-offset:2px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1120px) {

    html body .bp-weekly-highlights > .bp-container {
        padding:26px 24px 25px;
        border-radius:26px;
    }

    html body .bp-weekly-highlights__column::before,
    html body .bp-weekly-highlights__column--world::before,
    html body .bp-weekly-highlights__column--politics::before,
    html body .bp-weekly-highlights__column--trending::before {
        background:
            linear-gradient(
                90deg,
                #d7193f 0%,
                #d7193f 48%,
                #071a33 48%,
                #071a33 100%
            );
    }

    html body .bp-weekly-highlights__story-category,
    html body
    .bp-weekly-highlights__column--world
    .bp-weekly-highlights__story-category,
    html body
    .bp-weekly-highlights__column--politics
    .bp-weekly-highlights__story-category,
    html body
    .bp-weekly-highlights__column--trending
    .bp-weekly-highlights__story-category {
        color:#d7193f;
    }
}


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

@media (max-width:760px) {

    html body .bp-weekly-highlights {
        padding:30px 0 34px;
    }

    html body .bp-weekly-highlights > .bp-container {
        padding:22px 17px 20px;
        border-radius:22px;
    }

    html body .bp-weekly-highlights__grid {
        gap:14px;
    }

    html body .bp-weekly-highlights__column-header {
        min-height:70px;
        flex-basis:70px;
    }
}

@media (max-width:520px) {

    html body .bp-weekly-highlights > .bp-container {
        padding:20px 13px 17px;
        border-radius:19px;
    }

    html body .bp-weekly-highlights__story-title {
        font-size:.76rem;
    }
}
/* =========================================================
   HP7.2A.8 — Consolidated Homepage Canvas

   Authoritative rule:
   - .bp-homepage-gradient owns the complete homepage canvas.
   - Top-level homepage sections do not paint separate canvases.
   - Featured Stories and Technology retain only layout spacing.
   - Internal story, category and technology cards are untouched.

   BritainPost palette:
   - Red:   #d7193f
   - White: #fbfbfd
   - Navy:  #071a33
   ========================================================= */


/* =========================================================
   AUTHORITATIVE HOMEPAGE CANVAS
   ========================================================= */

html body .bp-homepage-gradient {
    position:relative !important;
    isolation:isolate !important;
    min-height:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:
        radial-gradient(
            circle at 4% 7%,
            rgba(215,25,63,.072) 0,
            rgba(215,25,63,.035) 18%,
            rgba(215,25,63,.012) 35%,
            transparent 52%
        ),
        radial-gradient(
            circle at 96% 12%,
            rgba(7,26,51,.075) 0,
            rgba(7,26,51,.034) 20%,
            rgba(7,26,51,.012) 38%,
            transparent 56%
        ),
        radial-gradient(
            circle at 8% 58%,
            rgba(215,25,63,.035) 0,
            transparent 37%
        ),
        radial-gradient(
            circle at 94% 72%,
            rgba(7,26,51,.038) 0,
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #fbfbfd 0%,
            #f9fafc 34%,
            #fafafd 68%,
            #fbfbfd 100%
        ) !important;
    background-color:#fbfbfd !important;
    background-repeat:no-repeat !important;
    background-size:100% 100% !important;
    box-shadow:none !important;
}

html body .bp-homepage-gradient
> .bp-homepage-rhythm {
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
}


/* =========================================================
   TOP-LEVEL HOMEPAGE SECTION CANVASES
   ========================================================= */

html body .bp-homepage-gradient
> section,

html body .bp-homepage-gradient
> .bp-homepage-rhythm
> section {
    margin-top:0 !important;
    margin-bottom:0 !important;
    border-top:0 !important;
    border-bottom:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
    outline:0 !important;
}

html body .bp-homepage-gradient
> section::before,

html body .bp-homepage-gradient
> section::after,

html body .bp-homepage-gradient
> .bp-homepage-rhythm
> section::before,

html body .bp-homepage-gradient
> .bp-homepage-rhythm
> section::after {
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
}


/* =========================================================
   FEATURED STORIES OUTER SHELL
   ========================================================= */

html body .bp-homepage-gradient
section.bp-v4-compact-showcase {
    position:relative !important;
    overflow:visible !important;
    padding-top:8px !important;
    padding-bottom:8px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
}

html body .bp-homepage-gradient
section.bp-v4-compact-showcase::before,

html body .bp-homepage-gradient
section.bp-v4-compact-showcase::after {
    display:none !important;
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
    content:none !important;
}

html body .bp-homepage-gradient
section.bp-v4-compact-showcase
> .bp-container {
    position:relative !important;
    box-sizing:border-box !important;
    padding:30px 28px 28px !important;
    overflow:hidden !important;
    border:1px solid rgba(7,26,51,.085) !important;
    border-radius:30px !important;
    background:
        linear-gradient(
            135deg,
            rgba(215,25,63,.024) 0%,
            rgba(255,255,255,.965) 24%,
            rgba(255,255,255,.975) 72%,
            rgba(7,26,51,.031) 100%
        ) !important;
    box-shadow:
        0 1px 2px rgba(7,26,51,.025),
        0 18px 55px rgba(7,26,51,.065) !important;
    outline:0 !important;
}

html body .bp-homepage-gradient
section.bp-v4-compact-showcase
> .bp-container::before {
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:4px;
    z-index:2;
    background:
        linear-gradient(
            90deg,
            #d7193f 0%,
            #d7193f 33.333%,
            #ffffff 33.333%,
            #ffffff 66.666%,
            #071a33 66.666%,
            #071a33 100%
        );
    content:"";
    pointer-events:none;
}


/* =========================================================
   TECHNOLOGY OUTER SHELL
   ========================================================= */

html body .bp-homepage-gradient
section.bp-tech-showcase {
    position:relative !important;
    overflow:visible !important;
    margin:0 !important;
    padding-top:clamp(34px,3.2vw,48px) !important;
    padding-bottom:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
}

html body .bp-homepage-gradient
section.bp-tech-showcase::before,

html body .bp-homepage-gradient
section.bp-tech-showcase::after {
    display:none !important;
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
    content:none !important;
}

html body .bp-homepage-gradient
section.bp-tech-showcase
> .bp-container {
    position:relative !important;
    box-sizing:border-box !important;
    padding:30px 28px 28px !important;
    overflow:hidden !important;
    border:1px solid rgba(7,26,51,.085) !important;
    border-radius:30px !important;
    background:
        linear-gradient(
            135deg,
            rgba(215,25,63,.024) 0%,
            rgba(255,255,255,.965) 24%,
            rgba(255,255,255,.975) 72%,
            rgba(7,26,51,.031) 100%
        ) !important;
    box-shadow:
        0 1px 2px rgba(7,26,51,.025),
        0 18px 55px rgba(7,26,51,.065) !important;
    outline:0 !important;
}

html body .bp-homepage-gradient
section.bp-tech-showcase
> .bp-container::before {
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:4px;
    z-index:2;
    background:
        linear-gradient(
            90deg,
            #d7193f 0%,
            #d7193f 33.333%,
            #ffffff 33.333%,
            #ffffff 66.666%,
            #071a33 66.666%,
            #071a33 100%
        );
    content:"";
    pointer-events:none;
}


/* =========================================================
   RESPONSIVE OUTER SPACING
   ========================================================= */

@media (max-width:1120px) {

    html body .bp-homepage-gradient
    section.bp-v4-compact-showcase
    > .bp-container,
    html body .bp-homepage-gradient
    section.bp-tech-showcase
    > .bp-container {
        padding:26px 24px 25px !important;
        border-radius:26px !important;
    }

    html body .bp-homepage-gradient
    section.bp-tech-showcase {
        padding-bottom:0 !important;
    }
}

@media (max-width:760px) {

    html body .bp-homepage-gradient
    section.bp-v4-compact-showcase {
        padding-top:32px !important;
        padding-bottom:38px !important;
    }

    html body .bp-homepage-gradient
    section.bp-v4-compact-showcase
    > .bp-container,
    html body .bp-homepage-gradient
    section.bp-tech-showcase
    > .bp-container {
        padding:22px 17px 20px !important;
        border-radius:22px !important;
    }

    html body .bp-homepage-gradient
    section.bp-tech-showcase {
        padding-top:30px !important;
        padding-bottom:0 !important;
    }
}


/* =========================================================
   HP7.2A.8A — Unified Section Panels

   Featured Stories, Weekly Highlights and Technology use
   matching British red, white and navy inner panels while
   the outer homepage canvas remains continuous.
   ========================================================= */

html body .bp-homepage-gradient
.bp-weekly-highlights
> .bp-container {
    border-color:rgba(7,26,51,.085) !important;
    background:
        linear-gradient(
            135deg,
            rgba(215,25,63,.024) 0%,
            rgba(255,255,255,.965) 24%,
            rgba(255,255,255,.975) 72%,
            rgba(7,26,51,.031) 100%
        ) !important;
    box-shadow:
        0 1px 2px rgba(7,26,51,.025),
        0 18px 55px rgba(7,26,51,.065) !important;
}

html body .bp-homepage-gradient
section.bp-tech-showcase {
    margin-bottom:0 !important;
}

html body .bp-homepage-gradient
> .bp-homepage-rhythm {
    padding-bottom:0 !important;
}

html body .bp-homepage-gradient {
    border-bottom:0 !important;
}

html body .bp-homepage-gradient + .bp-footer,
html body .bp-homepage-gradient + footer,
html body main + .bp-footer,
html body main + footer {
    margin-top:0 !important;
    border-top:0 !important;
}


/* =========================================================
   HP7.2A.11.3 — Weekly Highlights Canvas Continuity

   Preserve:
   - existing section spacing
   - Weekly Highlights inner panel
   - column cards
   - typography and colours

   Remove only the section-owned outer canvas so the main
   BritainPost homepage gradient remains continuous.
   ========================================================= */

html body .bp-homepage-gradient
section.bp-weekly-highlights {
    border-top:0 !important;
    border-bottom:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
    outline:0 !important;
}

html body .bp-homepage-gradient
section.bp-weekly-highlights::before,

html body .bp-homepage-gradient
section.bp-weekly-highlights::after {
    display:none !important;
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
    content:none !important;
}

/* RL1.3 — Weekly Highlights working bookmark visibility */
html body .bp-weekly-highlights__story > article {
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 4px !important;
    grid-template-columns: minmax(0, 1fr) 32px !important;
}

html body .bp-weekly-highlights__story-link {
    width: auto !important;
    min-width: 0 !important;
}

html body .bp-weekly-highlights__save {
    position: relative !important;
    z-index: 8 !important;
    display: flex !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 100% !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

html body
.bp-weekly-highlights__save
.bp-save-action--icon {
    display: inline-flex !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

html body
.bp-weekly-highlights__save
.bp-save-action--icon:hover,
html body
.bp-weekly-highlights__save
.bp-save-action--icon:focus-visible {
    background: rgba(11, 74, 162, 0.07) !important;
}

html body
.bp-weekly-highlights__save
.bp-save-action--saved {
    color: #c8102e !important;
    background: rgba(200, 16, 46, 0.07) !important;
}

html body
.bp-weekly-highlights__save
.bp-save-action__icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 760px) {
    html body .bp-weekly-highlights__story > article {
        grid-template-columns: minmax(0, 1fr) 34px !important;
    }
}

