/*
 * Third Flow Stage 1 — Signal & Soul homepage frame
 * Design intent: Capital red signal moments, warm paper editorial fields, ink framing,
 * compressed display hierarchy, and geometric rule details. Existing content flow and
 * interaction systems remain untouched.
 */

 :root {
    --cfm-flow-red: #e8192c;
    --cfm-flow-ink: #171116;
    --cfm-flow-paper: #f7f4ed;
    --cfm-flow-yellow: #f5c518;
    --cfm-flow-rule: rgba(23, 17, 22, .2);
}

body.home {
    background: var(--cfm-flow-paper);
}

/* Keep the familiar red navigation anchor; add only a campaign-grade ink edge. */
body.home .site-header,
body.home .main-header {
    box-shadow: inset 0 -3px 0 var(--cfm-flow-ink);
}

body.home .site-header .main-navigation a,
body.home .main-header .main-navigation a {
    font-weight: 800;
    letter-spacing: .02em;
}

/* The established hero remains intact; the new frame reinforces its campaign status. */
body.home .cfm-live-hero--campaign {
    box-shadow: inset 0 4px 0 var(--cfm-flow-red), inset 0 -4px 0 var(--cfm-flow-red);
}

body.home .cfm-live-hero__copy .cfm-label {
    color: var(--cfm-flow-yellow);
    letter-spacing: .16em;
}

body.home .cfm-live-hero__copy h1,
body.home .cfm-live-hero__copy h1 strong {
    font-family: 'Barlow Condensed', 'Arial Narrow', 'Plus Jakarta Sans', sans-serif;
    font-stretch: condensed;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .92;
    text-transform: uppercase;
}

body.home .cfm-live-hero__copy h1 em,
body.home .cfm-live-hero__copy h1 .cfm-campaign-title__accent {
    color: var(--cfm-flow-yellow);
    font-style: normal;
}

body.home .cfm-live-hero__featured {
    border-left: 3px solid var(--cfm-flow-red);
    padding-left: 15px;
}

body.home .cfm-live-hero__featured span {
    color: var(--cfm-flow-yellow);
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* Longer rotating headlines earn more vertical space instead of hiding the story action behind the rail. */
body.home .cfm-live-hero--campaign.cfm-live-hero--long-story,
body.home .cfm-live-hero--campaign.cfm-live-hero--long-story .cfm-live-hero__grid {
    min-height: 820px;
}

body.home .cfm-live-hero--campaign.cfm-live-hero--long-story .cfm-live-hero__copy {
    padding: 104px 0 150px;
}

body.home .cfm-live-hero--campaign.cfm-live-hero--long-story .cfm-live-hero__featured {
    margin-top: 30px;
}

body.home .cfm-campaign-story-controls {
    border-top: 1px solid rgba(255, 255, 255, .35);
    padding-top: 12px;
}

body.home .cfm-campaign-story-controls [data-cfm-campaign-dot].is-active {
    background: var(--cfm-flow-red);
}

/* Editorial chapter openings: the visual upgrade begins before content cards, not inside them. */
body.home .cfm-section-heading,
body.home .cfm-home-event-feature__header,
body.home .cfm-voices__heading,
body.home .cfm-schedule__heading {
    border-top: 2px solid var(--cfm-flow-red);
    padding-top: 17px;
    position: relative;
}

body.home .cfm-section-heading::before,
body.home .cfm-home-event-feature__header::before,
body.home .cfm-voices__heading::before,
body.home .cfm-schedule__heading::before {
    background: repeating-linear-gradient(135deg, var(--cfm-flow-red) 0 5px, transparent 5px 10px);
    content: '';
    height: 7px;
    position: absolute;
    right: 0;
    top: -5px;
    width: 56px;
}

body.home .cfm-section-heading .cfm-label,
body.home .cfm-home-event-feature__header .cfm-label,
body.home .cfm-voices__heading .cfm-label,
body.home .cfm-schedule__heading .cfm-label {
    color: var(--cfm-flow-red);
    font-weight: 800;
    letter-spacing: .14em;
}

body.home .cfm-section-heading h2,
body.home .cfm-home-event-feature__header h2,
body.home .cfm-voices__heading h2,
body.home .cfm-schedule__heading h2 {
    color: var(--cfm-flow-ink);
    font-family: 'Barlow Condensed', 'Arial Narrow', 'Plus Jakarta Sans', sans-serif;
    font-stretch: condensed;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: .94;
    text-transform: uppercase;
}

body.home .cfm-section-heading h2 em,
body.home .cfm-home-event-feature__header h2 em,
body.home .cfm-voices__heading h2 em,
body.home .cfm-schedule__heading h2 em {
    color: var(--cfm-flow-red);
    font-style: normal;
}

/* Stories Moving Right Now becomes a cream editorial field while retaining its original cards and links. */
body.home .cfm-story-signal {
    background: var(--cfm-flow-paper);
}

/* Keep Stories Moving in the quieter Signal & Soul halfway treatment selected by the team. */
body.home .cfm-story-signal .cfm-section-heading {
    border-top: 0;
    padding-top: 0;
}

body.home .cfm-story-signal .cfm-section-heading::before {
    display: none;
}

body.home .cfm-story-signal .cfm-section-heading h2 {
    color: var(--cfm-ink);
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-stretch: normal;
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: .9;
    text-transform: none;
}

body.home .cfm-story-signal .cfm-section-heading h2 em {
    color: var(--cfm-yellow);
    font-style: normal;
}

body.home .cfm-story-signal__board {
    border: 0;
    border-top: 1px solid var(--cfm-ink);
    box-shadow: none;
}

body.home .cfm-story-signal__lead > span,
body.home .cfm-story-signal__list > article > span,
body.home .cfm-story-signal__topics > span {
    color: var(--cfm-flow-red);
    font-family: 'Barlow Condensed', 'Arial Narrow', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

body.home .cfm-story-signal__topics {
    border-top-color: var(--cfm-flow-red);
}

body.home .cfm-story-signal__topics a:hover,
body.home .cfm-home-event-feature__guide:hover {
    color: var(--cfm-flow-red);
}

/* Signal-focused details; no player geometry, player controls, or video behaviour are changed here. */
body.home .cfm-live-card__top > span:first-child,
body.home .cfm-live-card__bottom > span:first-child {
    color: var(--cfm-flow-yellow);
    letter-spacing: .1em;
}

body.home .cfm-live-video-window {
    border-left: 3px solid var(--cfm-flow-yellow);
}

/* The schedule’s named Capital identity remains white against its plum programme field. */
body.home .cfm-programme-guide .cfm-section-heading h2 {
    color: #fff;
}

body.home .cfm-programme-guide .cfm-section-heading h2 em {
    color: var(--cfm-yellow);
}

@media (max-width: 760px) {
    body.home .cfm-section-heading,
    body.home .cfm-home-event-feature__header,
    body.home .cfm-voices__heading,
    body.home .cfm-schedule__heading {
        padding-top: 13px;
    }

    body.home .cfm-section-heading::before,
    body.home .cfm-home-event-feature__header::before,
    body.home .cfm-voices__heading::before,
    body.home .cfm-schedule__heading::before {
        width: 42px;
    }

    body.home .cfm-story-signal__board {
        box-shadow: none;
    }

    body.home .cfm-live-hero--campaign.cfm-live-hero--long-story,
    body.home .cfm-live-hero--campaign.cfm-live-hero--long-story .cfm-live-hero__grid {
        min-height: 860px;
    }

    body.home .cfm-live-hero--campaign.cfm-live-hero--long-story .cfm-live-hero__copy {
        padding: 78px 0 130px;
    }

    body.home .cfm-live-hero--campaign.cfm-live-hero--long-story .cfm-live-hero__copy h1 {
        font-size: clamp(46px, 13vw, 64px);
    }
}
