/* GTA6 STREET homepage final visual corrections.
 * Scope is deliberately limited to the redesign homepage.
 */

/* A single lead story gets the full editorial width. Its artwork and copy
 * occupy separate surfaces so the headline never hides the cover image. */
.ls-blog-home .ls-blog-cover__grid--solo {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    background: transparent;
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-blog-cover__lead .ls-cover-story {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .65fr);
    min-height: 0;
    overflow: hidden;
    background: var(--blog-panel);
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__media {
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ls-tar);
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__media::after {
    display: none;
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--ls-tar);
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__copy {
    position: relative;
    inset: auto;
    z-index: auto;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.4rem, 3vw, 2.75rem);
    background: var(--blog-panel);
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__copy h3 {
    max-width: 15ch;
    font-size: clamp(2.15rem, 3.2vw, 3.75rem);
    text-wrap: balance;
}

.ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__copy > div {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/* Major content families must read as independent sections, never as two cramped products in one split card. */
.ls-blog-home .ls-blog-split {
    display: block;
    margin-block: 0;
    border: 0;
    background: transparent;
}

.ls-blog-home .ls-blog-split > .ls-blog-box {
    width: 100%;
    margin-block: 2.25rem;
    border: 1px solid var(--blog-rule-strong);
    padding: clamp(1rem, 2vw, 1.5rem);
}

.ls-blog-home .ls-blog-split > .ls-blog-box--raised {
    background: var(--blog-panel);
}

/* Vehicles get the entire editorial width: one lead record and supporting database cards. */
.ls-blog-home .ls-blog-split:not(.ls-blog-split--utility) .ls-blog-vehicle-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(12rem, .75fr));
}

.ls-blog-home .ls-blog-split:not(.ls-blog-split--utility) .ls-blog-vehicle-grid .ls-entity--featured {
    grid-row: auto;
}

/* PLAY SMARTER -----------------------------------------------------------
 * One useful feature guide + a compact vertical reading queue.
 * The section should occupy roughly one editorial viewport, never become a
 * four-column wall of oversized cards.
 */
.ls-blog-home .ls-blog-guide-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 1px;
    min-height: 23rem;
    max-height: 27rem;
    overflow: hidden;
    background: var(--blog-rule-strong);
}

.ls-blog-home .ls-blog-guide-list .ls-guide {
    min-width: 0;
    min-height: 0;
    border: 0;
    background: var(--blog-panel);
    overflow: hidden;
}

.ls-blog-home .ls-blog-guide-list .ls-guide--featured {
    grid-column: 1;
    grid-row: 1 / 4;
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(16rem, .88fr) !important;
    grid-template-rows: 1fr !important;
    max-height: 27rem;
}

.ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__media {
    min-width: 0;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
}

.ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__copy {
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.6rem);
    overflow: hidden;
}

.ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__copy h3 {
    font-size: clamp(1.8rem, 2.7vw, 3rem);
    line-height: 1;
}

.ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__copy > div {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Supporting guides are article rows, not miniature landing pages. */
.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) {
    grid-column: 2;
    display: grid !important;
    grid-template-columns: 8.25rem minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    min-height: 0;
    max-height: 9rem;
    border-bottom: 1px solid var(--blog-rule);
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured):last-child {
    border-bottom: 0;
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__media {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .75rem .9rem;
    overflow: hidden;
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__copy > span,
.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__copy dl,
.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-text-link {
    display: none;
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__copy p {
    margin: 0 0 .25rem;
    font-size:.625rem;
}

.ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured) .ls-guide__copy h3 {
    margin: 0;
    font-family: var(--ls-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
}

/* DOWNLOADS --------------------------------------------------------------
 * One featured resource plus two compact utility rows. This avoids the huge
 * full-bleed image stack and keeps the resource section useful at a glance.
 */
.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault__shelf {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, .55fr) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 1px;
    min-height: 23rem;
    max-height: 27rem;
    overflow: hidden;
    background: var(--blog-rule-strong);
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--blog-panel);
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, .9fr) !important;
    grid-template-rows: 1fr !important;
    max-height: 27rem;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured .ls-vault-card__media {
    min-width: 0;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured .ls-vault-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured .ls-vault-card__copy {
    justify-content: center;
    padding: clamp(1rem, 2vw, 1.6rem);
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured h3 {
    font-size: clamp(1.9rem, 2.8vw, 3rem);
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) {
    grid-column: 2;
    display: grid !important;
    grid-template-columns: 8.5rem minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    max-height: 13.5rem;
    border-bottom: 1px solid var(--blog-rule);
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured):last-child {
    border-bottom: 0;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) .ls-vault-card__media {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) .ls-vault-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) .ls-vault-card__copy {
    justify-content: center;
    padding: .75rem .85rem;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) .ls-vault-card__copy > p,
.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) dl {
    display: none;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) h3 {
    margin-top: .3rem;
    font-family: var(--ls-body);
    font-size: 1rem;
    line-height: 1.2;
}

.ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) .ls-button--vault {
    min-height: 2.15rem;
    margin-top: .65rem;
    padding: .4rem .55rem;
    font-size:.625rem;
}

/* Loadout gets the full section width so record names, facts and builder controls do not truncate. */
.ls-blog-home .ls-blog-split--utility .ls-blog-box:last-child .ls-loadout-preview {
    width: 100%;
    max-width: none;
}

/* Sidebar newsletter: the shared newsletter component is designed for a wide 2-column surface.
 * Inside a 19rem rail it must switch to a true compact widget contract.
 */
.ls-blog-home .ls-blog-sidebar .gts-newsletter > div {
    display: block;
    padding: 1rem;
}

.ls-blog-home .ls-blog-sidebar .gts-newsletter h2 {
    max-width: none;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: .9;
}

.ls-blog-home .ls-blog-sidebar .gts-newsletter h2 + p {
    margin-top: .55rem;
    font-size: .82rem;
    line-height: 1.4;
}

.ls-blog-home .ls-blog-sidebar .gts-newsletter__form {
    margin-top: .9rem;
}

.ls-blog-home .ls-blog-sidebar .gts-newsletter__fields {
    grid-template-columns: 1fr;
}

.ls-blog-home .ls-blog-sidebar .gts-newsletter__input,
.ls-blog-home .ls-blog-sidebar .gts-btn-primary {
    min-height: 2.85rem;
}

.ls-blog-home .ls-blog-sidebar .gts-newsletter__note {
    font-size: .68rem;
}

.ls-blog-home .ls-blog-split > .ls-blog-box .ls-blog-heading {
    margin-bottom: 1rem;
}

@media (max-width: 1050px) {
    .ls-blog-home .ls-blog-split:not(.ls-blog-split--utility) .ls-blog-vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ls-blog-home .ls-blog-guide-list {
        grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr) !important;
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide--featured {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1.15fr .85fr !important;
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__copy > div,
    .ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__copy dl {
        display: none;
    }

    .ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault__shelf {
        grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr) !important;
    }

    .ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1.15fr .85fr !important;
    }
}

@media (max-width: 900px) {
    .ls-blog-home .ls-blog-cover__grid--solo .ls-blog-cover__lead .ls-cover-story {
        grid-template-columns: minmax(0, 1fr);
    }

    .ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__copy {
        padding: 1.35rem;
    }

    .ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__copy h3 {
        max-width: 20ch;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .ls-blog-home .ls-blog-cover__grid--solo .ls-cover-story__copy > div {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 767px) {
    .ls-blog-home .ls-blog-split > .ls-blog-box {
        margin-block: 1.5rem;
        padding: 1rem;
    }

    .ls-blog-home .ls-blog-split:not(.ls-blog-split--utility) .ls-blog-vehicle-grid {
        grid-template-columns: 1fr;
    }

    .ls-blog-home .ls-blog-guide-list,
    .ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault__shelf {
        display: block !important;
        max-height: none;
        min-height: 0;
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide--featured,
    .ls-blog-home .ls-blog-guide-list .ls-guide:not(.ls-guide--featured),
    .ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card--featured,
    .ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card:not(.ls-vault-card--featured) {
        display: grid !important;
        grid-template-columns: 7.5rem minmax(0, 1fr) !important;
        grid-template-rows: 1fr !important;
        max-height: none;
        min-height: 8rem;
        border-bottom: 1px solid var(--blog-rule);
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide__media,
    .ls-blog-home .ls-blog-split--utility .ls-blog-box:first-child .ls-vault-card__media {
        height: 100% !important;
        min-height: 8rem !important;
        aspect-ratio: auto !important;
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide--featured .ls-guide__copy > div,
    .ls-blog-home .ls-blog-guide-list .ls-guide__copy dl,
    .ls-blog-home .ls-blog-guide-list .ls-text-link,
    .ls-blog-home .ls-blog-split--utility .ls-vault-card__copy > p,
    .ls-blog-home .ls-blog-split--utility .ls-vault-card dl {
        display: none !important;
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide__copy,
    .ls-blog-home .ls-blog-split--utility .ls-vault-card__copy {
        padding: .75rem !important;
    }

    .ls-blog-home .ls-blog-guide-list .ls-guide__copy h3,
    .ls-blog-home .ls-blog-split--utility .ls-vault-card h3,
    .ls-blog-home .ls-blog-split--utility .ls-vault-card--featured h3 {
        font-family: var(--ls-body) !important;
        font-size: 1rem !important;
        line-height: 1.18 !important;
        text-transform: none !important;
    }
}
