/* F1 hub editorial-commerce layer.
 * Loaded after guides.css so the existing guide system remains the fallback.
 * This file deliberately uses scale, photography and spacing instead of more UI boxes.
 */

.guide-page--f1-hub {
    --guide-editorial-max: 1160px;
    --guide-editorial-black: #0d0d0d;
    --guide-editorial-paper: #ffffff;
    --guide-editorial-soft: #f3f0ea;
    --guide-editorial-line: #d9d5ce;
    --guide-editorial-accent: #e4ff43;
    overflow: hidden;
}

.guide-page--f1-hub .guide-shell {
    max-width: var(--guide-editorial-max);
}

/* Hero: the photograph is the surface, not an illustration beside the copy. */
.guide-page--f1-hub .guide-hero-editorial {
    position: relative;
    min-height: min(82vh, 760px);
    margin: 0 auto;
    max-width: 1600px;
    background: var(--guide-editorial-black);
    isolation: isolate;
}

.guide-page--f1-hub .guide-hero-editorial__media {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: -3;
    background: #111;
}

.guide-page--f1-hub .guide-hero-editorial__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
    display: block;
}

.guide-page--f1-hub .guide-hero-editorial__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7,7,7,.92) 0%, rgba(7,7,7,.72) 38%, rgba(7,7,7,.15) 72%, rgba(7,7,7,.08) 100%),
        linear-gradient(0deg, rgba(7,7,7,.58) 0%, rgba(7,7,7,0) 46%);
}

.guide-page--f1-hub .guide-hero-editorial__copy {
    min-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: clamp(72px, 9vw, 128px);
    padding-bottom: clamp(72px, 9vw, 128px);
}

.guide-page--f1-hub .guide-hero-editorial .guide-eyebrow {
    color: var(--guide-editorial-accent);
    opacity: 1;
}

.guide-page--f1-hub .guide-hero-editorial h1 {
    max-width: 820px;
    margin: 18px 0 22px;
    font-size: clamp(3rem, 6.1vw, 6.25rem);
    line-height: .92;
    letter-spacing: -.055em;
    font-weight: 900;
    text-wrap: balance;
}

.guide-page--f1-hub .guide-hero-editorial .guide-lede {
    max-width: 680px;
    font-size: clamp(1.06rem, 1.55vw, 1.28rem);
    line-height: 1.58;
    color: rgba(255,255,255,.92);
}

.guide-page--f1-hub .guide-hero-paths {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid rgba(255,255,255,.34);
}

.guide-page--f1-hub .guide-hero-paths a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 180px;
    padding: 14px 24px 13px 0;
    margin-right: 22px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.guide-page--f1-hub .guide-hero-paths a:hover {
    color: var(--guide-editorial-accent);
}

.guide-page--f1-hub .guide-hero-paths span {
    color: var(--guide-editorial-accent);
    font-size: .72rem;
    letter-spacing: .08em;
}

.guide-page--f1-hub .guide-hero-meta {
    margin-top: 18px;
    color: rgba(255,255,255,.68);
    font-size: .78rem;
}

.guide-page--f1-hub .guide-hero-editorial .guide-photo-credit {
    left: auto;
    right: 14px;
    max-width: min(480px, calc(100% - 28px));
}

/* First interaction: three photographic failures, not a taxonomy of audience types. */
.guide-page--f1-hub .guide-problem-picker {
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.6fr);
    gap: clamp(34px, 5vw, 72px);
    padding: clamp(56px, 7vw, 94px) 0;
}

.guide-page--f1-hub .guide-problem-picker__intro h2 {
    margin: 7px 0 14px;
    font-size: clamp(2rem, 3.5vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.guide-page--f1-hub .guide-problem-picker__intro p {
    margin: 0;
    color: #555;
    line-height: 1.65;
}

.guide-page--f1-hub .guide-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 2px solid #111;
}

.guide-page--f1-hub .guide-problem-link {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px 20px;
    border-right: 1px solid var(--guide-editorial-line);
    color: #111;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.guide-page--f1-hub .guide-problem-link:last-child {
    border-right: 0;
}

.guide-page--f1-hub .guide-problem-link:hover {
    background: var(--guide-editorial-accent);
    transform: translateY(-3px);
}

.guide-page--f1-hub .guide-problem-link__number {
    font-size: .72rem;
    letter-spacing: .1em;
    font-weight: 850;
    color: #777;
}

.guide-page--f1-hub .guide-problem-link strong {
    max-width: 220px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.guide-page--f1-hub .guide-problem-link > span:last-child {
    font-size: .86rem;
    font-weight: 800;
}

/* Commerce stories: diagnosis first, merchandise immediately after. */
.guide-page--f1-hub .guide-commerce-story {
    padding: clamp(62px, 8vw, 104px) 0;
    border-top: 1px solid var(--guide-editorial-line);
}

.guide-page--f1-hub .guide-commerce-story__index {
    margin-bottom: 17px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
    color: #777;
}

.guide-page--f1-hub .guide-commerce-story__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: start;
}

.guide-page--f1-hub .guide-commerce-story__intro h2 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(2.35rem, 4.5vw, 4.65rem);
    line-height: .98;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.guide-page--f1-hub .guide-commerce-story__intro p {
    margin: 2px 0 18px;
    font-size: 1.05rem;
    line-height: 1.72;
    color: #454545;
}

.guide-page--f1-hub .guide-outcome-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 13px;
    padding-top: 16px;
    border-top: 1px solid var(--guide-editorial-line);
}

.guide-page--f1-hub .guide-outcome-line span {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #777;
}

.guide-page--f1-hub .guide-outcome-line strong {
    font-size: .94rem;
}

/* Opt-in editorial version of the live catalogue component. */
.guide-page--f1-hub .guide-live-products--editorial {
    margin: 44px 0 28px;
    padding: clamp(24px, 4vw, 46px);
    border: 0;
    background: var(--guide-editorial-soft);
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-products__head {
    max-width: 820px;
    margin-bottom: 26px;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-products__head h3 {
    margin: 6px 0 8px;
    font-size: clamp(1.65rem, 2.7vw, 2.5rem);
    letter-spacing: -.025em;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card {
    grid-column: span 6;
    border: 0;
    background: #fff;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card:nth-child(1) {
    grid-column: span 7;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card:nth-child(2) {
    grid-column: span 5;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-media {
    background: #fff;
    border-bottom: 1px solid #ece9e3;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-media img,
.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-noimage {
    height: 270px;
}

.guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-media img,
.guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-noimage {
    height: 390px;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-body {
    padding: 17px 18px 20px;
}

.guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-body {
    padding: 20px 22px 24px;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-role {
    margin-bottom: 7px;
    color: #777;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-body h4 {
    min-height: 0;
    margin: 5px 0 11px;
    font-size: 1.05rem;
}

.guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-body h4 {
    max-width: 520px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.15;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-price {
    font-size: 1.35rem;
}

.guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-price {
    font-size: 1.65rem;
}

.guide-page--f1-hub .guide-live-products--editorial .guide-live-product-footnote {
    margin-top: 15px;
}

.guide-page--f1-hub .guide-value-strip {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(300px, 1.35fr) auto;
    gap: 26px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--guide-editorial-line);
    border-bottom: 1px solid var(--guide-editorial-line);
}

.guide-page--f1-hub .guide-value-strip strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
}

.guide-page--f1-hub .guide-value-strip p {
    margin: 0;
    color: #555;
    line-height: 1.55;
}

.guide-page--f1-hub .guide-value-strip > a,
.guide-page--f1-hub .guide-text-cta {
    color: #111;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Technique is shown as a photograph with diagnosis beside it. */
.guide-page--f1-hub .guide-photo-story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    margin: clamp(38px, 6vw, 82px) 0 clamp(70px, 9vw, 120px);
    background: #111;
    color: #fff;
}

.guide-page--f1-hub .guide-photo-story__media {
    margin: 0;
    min-height: 620px;
    background: #090909;
}

.guide-page--f1-hub .guide-photo-story__media img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    display: block;
}

.guide-page--f1-hub .guide-photo-story__media figcaption {
    padding: 9px 12px;
    background: #0b0b0b;
    color: #aaa;
    font-size: .73rem;
    line-height: 1.4;
}

.guide-page--f1-hub .guide-photo-story__media a {
    color: #ddd;
}

.guide-page--f1-hub .guide-photo-story__copy {
    padding: clamp(34px, 5vw, 66px);
    align-self: center;
}

.guide-page--f1-hub .guide-photo-story__copy .guide-commerce-story__index {
    color: #8f8f8f;
}

.guide-page--f1-hub .guide-photo-story__copy h2 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.guide-page--f1-hub .guide-photo-story__copy > p {
    color: #d5d5d5;
    line-height: 1.65;
}

.guide-page--f1-hub .guide-diagnosis-list {
    margin: 24px 0 28px;
    border-top: 1px solid #383838;
}

.guide-page--f1-hub .guide-diagnosis-list > div {
    padding: 14px 0;
    border-bottom: 1px solid #383838;
}

.guide-page--f1-hub .guide-diagnosis-list strong,
.guide-page--f1-hub .guide-diagnosis-list span {
    display: block;
}

.guide-page--f1-hub .guide-diagnosis-list strong {
    font-size: .94rem;
}

.guide-page--f1-hub .guide-diagnosis-list span {
    margin-top: 3px;
    color: #aaa;
    font-size: .84rem;
}

.guide-page--f1-hub .guide-photo-story .guide-text-cta {
    color: #fff;
}

/* Singapore rule becomes a visual constraint instead of another answer box. */
.guide-page--f1-hub .guide-rule-story {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
    margin: clamp(70px, 9vw, 118px) 0;
    padding: clamp(40px, 6vw, 72px);
    background: #111;
    color: #fff;
}

.guide-page--f1-hub .guide-rule-story__number {
    font-size: clamp(6rem, 13vw, 10.8rem);
    line-height: .8;
    font-weight: 950;
    letter-spacing: -.07em;
    color: var(--guide-editorial-accent);
}

.guide-page--f1-hub .guide-rule-story__number span {
    display: block;
    margin-top: 18px;
    font-size: .18em;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.guide-page--f1-hub .guide-rule-story__copy .guide-commerce-story__index,
.guide-page--f1-hub .guide-rule-story__copy .guide-source {
    color: #aaa;
}

.guide-page--f1-hub .guide-rule-story__copy h2 {
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.guide-page--f1-hub .guide-rule-story__copy > p:not(.guide-source) {
    max-width: 680px;
    color: #ddd;
    line-height: 1.65;
}

.guide-page--f1-hub .guide-rule-story__copy a {
    color: #fff;
}

.guide-page--f1-hub .guide-rule-story__copy .guide-text-cta--light {
    display: inline-block;
    margin-top: 12px;
    color: var(--guide-editorial-accent);
}

/* Upgrade is a consequence of diagnosis, not a generic conversion block. */
.guide-page--f1-hub .guide-upgrade-rail {
    margin: clamp(50px, 7vw, 92px) 0;
    padding: clamp(34px, 5vw, 58px);
    background: var(--guide-editorial-soft);
}

.guide-page--f1-hub .guide-upgrade-rail__head {
    max-width: 760px;
}

.guide-page--f1-hub .guide-upgrade-rail__head h2 {
    margin: 6px 0 12px;
    font-size: clamp(2.1rem, 3.7vw, 3.7rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.guide-page--f1-hub .guide-upgrade-rail__head p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.guide-page--f1-hub .guide-upgrade-rail__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 34px 0 22px;
    border-top: 2px solid #111;
}

.guide-page--f1-hub .guide-upgrade-rail__steps > div {
    min-height: 130px;
    padding: 18px 20px 16px 0;
    border-right: 1px solid var(--guide-editorial-line);
}

.guide-page--f1-hub .guide-upgrade-rail__steps > div:not(:first-child) {
    padding-left: 20px;
}

.guide-page--f1-hub .guide-upgrade-rail__steps > div:last-child {
    border-right: 0;
}

.guide-page--f1-hub .guide-upgrade-rail__steps span,
.guide-page--f1-hub .guide-upgrade-rail__steps strong {
    display: block;
}

.guide-page--f1-hub .guide-upgrade-rail__steps span {
    margin-bottom: 20px;
    color: #777;
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.guide-page--f1-hub .guide-upgrade-rail__steps strong {
    font-size: 1.15rem;
    line-height: 1.25;
}

/* Specialist guides are supporting evidence, not the first thing competing for attention. */
.guide-page--f1-hub .guide-deep-links {
    display: grid;
    grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr);
    gap: clamp(34px, 6vw, 84px);
    padding: clamp(56px, 7vw, 88px) 0;
    border-top: 1px solid var(--guide-editorial-line);
}

.guide-page--f1-hub .guide-deep-links h2 {
    margin: 7px 0 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.guide-page--f1-hub .guide-deep-links__list {
    border-top: 2px solid #111;
}

.guide-page--f1-hub .guide-deep-links__list a {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) 1fr;
    gap: 22px;
    padding: 17px 0;
    border-bottom: 1px solid var(--guide-editorial-line);
    color: #111;
    text-decoration: none;
}

.guide-page--f1-hub .guide-deep-links__list a:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.guide-page--f1-hub .guide-deep-links__list span {
    color: #666;
    font-size: .9rem;
}

.guide-page--f1-hub .guide-evidence-footer {
    max-width: 820px;
    padding: 28px 0 64px;
    color: #666;
}

.guide-page--f1-hub .guide-evidence-footer p {
    margin: 7px 0 0;
    font-size: .88rem;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .guide-page--f1-hub .guide-hero-editorial,
    .guide-page--f1-hub .guide-hero-editorial__copy {
        min-height: 680px;
    }

    .guide-page--f1-hub .guide-hero-editorial__shade {
        background:
            linear-gradient(90deg, rgba(7,7,7,.88) 0%, rgba(7,7,7,.58) 68%, rgba(7,7,7,.28) 100%),
            linear-gradient(0deg, rgba(7,7,7,.65) 0%, rgba(7,7,7,0) 48%);
    }

    .guide-page--f1-hub .guide-problem-picker,
    .guide-page--f1-hub .guide-commerce-story__intro,
    .guide-page--f1-hub .guide-deep-links {
        grid-template-columns: 1fr;
    }

    .guide-page--f1-hub .guide-problem-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card,
    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card:nth-child(1),
    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card:nth-child(2) {
        grid-column: span 6;
    }

    .guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-media img,
    .guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-noimage {
        height: 300px;
    }

    .guide-page--f1-hub .guide-value-strip {
        grid-template-columns: 1fr 1.4fr;
    }

    .guide-page--f1-hub .guide-value-strip > a {
        grid-column: 2;
    }

    .guide-page--f1-hub .guide-photo-story {
        grid-template-columns: 1fr;
    }

    .guide-page--f1-hub .guide-photo-story__media,
    .guide-page--f1-hub .guide-photo-story__media img {
        min-height: 440px;
    }
}

@media (max-width: 767px) {
    .guide-page--f1-hub .guide-hero-editorial,
    .guide-page--f1-hub .guide-hero-editorial__copy {
        min-height: 620px;
    }

    .guide-page--f1-hub .guide-hero-editorial__media img {
        object-position: 62% center;
    }

    .guide-page--f1-hub .guide-hero-editorial__shade {
        background:
            linear-gradient(90deg, rgba(7,7,7,.82), rgba(7,7,7,.28)),
            linear-gradient(0deg, rgba(7,7,7,.8) 0%, rgba(7,7,7,.08) 70%);
    }

    .guide-page--f1-hub .guide-hero-editorial__copy {
        justify-content: flex-end;
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .guide-page--f1-hub .guide-hero-editorial h1 {
        font-size: clamp(2.85rem, 13vw, 4.7rem);
    }

    .guide-page--f1-hub .guide-hero-paths {
        display: grid;
        width: 100%;
    }

    .guide-page--f1-hub .guide-hero-paths a {
        width: 100%;
        min-width: 0;
        padding: 10px 0;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .guide-page--f1-hub .guide-hero-meta {
        font-size: .7rem;
    }

    .guide-page--f1-hub .guide-problem-grid,
    .guide-page--f1-hub .guide-upgrade-rail__steps {
        grid-template-columns: 1fr;
    }

    .guide-page--f1-hub .guide-problem-link {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid var(--guide-editorial-line);
    }

    .guide-page--f1-hub .guide-live-products--editorial {
        margin-left: -20px;
        margin-right: -20px;
        padding: 28px 20px;
    }

    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card,
    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card:nth-child(1),
    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-card:nth-child(2) {
        grid-column: span 12;
    }

    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-media img,
    .guide-page--f1-hub .guide-live-products--editorial .guide-live-product-noimage,
    .guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-media img,
    .guide-page--f1-hub .guide-live-products--editorial .is-featured .guide-live-product-noimage {
        height: 290px;
    }

    .guide-page--f1-hub .guide-value-strip {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .guide-page--f1-hub .guide-value-strip > a {
        grid-column: auto;
    }

    .guide-page--f1-hub .guide-photo-story {
        margin-left: -20px;
        margin-right: -20px;
    }

    .guide-page--f1-hub .guide-photo-story__media,
    .guide-page--f1-hub .guide-photo-story__media img {
        min-height: 340px;
    }

    .guide-page--f1-hub .guide-photo-story__copy {
        padding: 34px 20px 42px;
    }

    .guide-page--f1-hub .guide-rule-story {
        grid-template-columns: 1fr;
        margin-left: -20px;
        margin-right: -20px;
        padding: 42px 20px;
    }

    .guide-page--f1-hub .guide-rule-story__number {
        font-size: clamp(5.7rem, 28vw, 8rem);
    }

    .guide-page--f1-hub .guide-upgrade-rail {
        margin-left: -20px;
        margin-right: -20px;
        padding: 38px 20px;
    }

    .guide-page--f1-hub .guide-upgrade-rail__steps > div,
    .guide-page--f1-hub .guide-upgrade-rail__steps > div:not(:first-child) {
        min-height: 0;
        padding: 17px 0;
        border-right: 0;
        border-bottom: 1px solid var(--guide-editorial-line);
    }

    .guide-page--f1-hub .guide-upgrade-rail__steps span {
        margin-bottom: 8px;
    }

    .guide-page--f1-hub .guide-deep-links__list a {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
