/* Shared editorial-commerce presentation for non-F1 use-case guide hubs.
 * F1 keeps its dedicated guides-editorial.css treatment; these rules cover
 * .guide-page--use-hub pages that intentionally reuse the same content primitives.
 */

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

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

/* Editorial hero */
.guide-page--use-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--use-hub .guide-hero-editorial__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    margin: 0;
    background: #111;
}

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

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

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

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

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

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

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

.guide-page--use-hub .guide-hero-paths a:hover,
.guide-page--use-hub .guide-hero-paths a:focus-visible {
    color: var(--guide-editorial-accent);
}

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

/* Editorial commerce sections */
.guide-page--use-hub .guide-commerce-story {
    padding: clamp(58px, 7vw, 96px) 0;
    border-top: 1px solid var(--guide-editorial-line);
}

.guide-page--use-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--use-hub .guide-commerce-story__intro h2 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

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

/* Diagnostic rail. The grid is adaptive so 3- and 4-step guides both work. */
.guide-page--use-hub .guide-upgrade-rail {
    margin: clamp(46px, 7vw, 86px) 0;
    padding: clamp(32px, 5vw, 54px);
    background: var(--guide-editorial-soft);
}

.guide-page--use-hub .guide-upgrade-rail__head {
    max-width: 780px;
}

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

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

.guide-page--use-hub .guide-upgrade-rail__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    margin: 32px 0 24px;
    border-top: 2px solid #111;
    background: var(--guide-editorial-line);
}

.guide-page--use-hub .guide-upgrade-rail__steps > div,
.guide-page--use-hub .guide-upgrade-rail__steps > a {
    min-height: 132px;
    padding: 18px;
    background: var(--guide-editorial-soft);
    color: #111;
    text-decoration: none;
}

.guide-page--use-hub .guide-upgrade-rail__steps > a:hover,
.guide-page--use-hub .guide-upgrade-rail__steps > a:focus-visible {
    background: #fff;
    outline: 2px solid #111;
    outline-offset: -2px;
}

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

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

.guide-page--use-hub .guide-upgrade-rail__steps strong {
    font-size: 1.12rem;
    line-height: 1.3;
}

/* Linked shopping and related-guide rows */
.guide-page--use-hub .guide-deep-links {
    display: grid;
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: clamp(34px, 6vw, 78px);
    padding: clamp(54px, 7vw, 82px) 0;
    border-top: 1px solid var(--guide-editorial-line);
}

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

.guide-page--use-hub .guide-deep-links > div:first-child > p {
    max-width: 520px;
    margin: 0;
    color: #5b5b5b;
    line-height: 1.65;
}

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

.guide-page--use-hub .guide-deep-links__list a {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr);
    gap: 22px;
    margin: 0 -12px;
    padding: 18px 12px;
    border-bottom: 1px solid var(--guide-editorial-line);
    color: #111;
    text-decoration: none;
    transition: background .16s ease;
}

.guide-page--use-hub .guide-deep-links__list a:hover,
.guide-page--use-hub .guide-deep-links__list a:focus-visible {
    background: var(--guide-editorial-soft);
    outline: none;
}

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

.guide-page--use-hub .guide-deep-links__list strong {
    font-size: .98rem;
    line-height: 1.35;
}

.guide-page--use-hub .guide-deep-links__list span {
    color: #666;
    font-size: .9rem;
    line-height: 1.45;
}

/* Pre-owned value strip */
.guide-page--use-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--use-hub .guide-value-strip strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
}

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

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

/* Photo-led diagnosis */
.guide-page--use-hub .guide-photo-story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    margin: clamp(38px, 6vw, 78px) 0 clamp(66px, 8vw, 108px);
    background: #111;
    color: #fff;
}

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

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

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

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

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

.guide-page--use-hub .guide-photo-story__copy h2 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 3.8vw, 3.9rem);
    line-height: 1;
    letter-spacing: -.04em;
}

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

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

    .guide-page--use-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--use-hub .guide-commerce-story__intro,
    .guide-page--use-hub .guide-deep-links {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .guide-page--use-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--use-hub .guide-hero-editorial__copy {
        justify-content: flex-end;
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .guide-page--use-hub .guide-hero-editorial h1 {
        font-size: clamp(2.75rem, 12.5vw, 4.5rem);
    }

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

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

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

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

    .guide-page--use-hub .guide-upgrade-rail__steps > div,
    .guide-page--use-hub .guide-upgrade-rail__steps > a {
        min-height: 0;
        padding: 17px 0;
        background: transparent;
    }

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

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

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

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

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

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

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