/* Editorial image + feed polish. Loaded after home-lite.css. */
.home-panel .news-visual{background:#0a0f16;isolation:isolate}
.home-panel .news-visual img{width:100%;height:100%;object-fit:cover;object-position:center center;padding:0;transform:none}
.home-panel .news-feature .news-visual img{object-position:center 46%}
.home-panel .news-side-card .news-visual img{object-position:center center}
.home-panel .news-latest-card .news-visual img{object-position:center center}
.news-visual-reader img{object-fit:contain!important;object-position:center!important;background:#0a0f16}
.home-panel .news-image-credit{padding:3px 6px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));font-size:7px;line-height:1.2;text-shadow:0 1px 2px #000}

/* Give the feed a real magazine rhythm without making the page busy again. */
.home-latest{margin-top:42px}
.home-news-latest{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-panel .news-latest-card,
.home-panel .news-latest-card:nth-child(3n+1),
.home-panel .news-latest-card:nth-child(3n+2),
.home-panel .news-latest-card:nth-child(3n){display:grid;grid-template-columns:1fr;grid-template-rows:150px auto;min-height:0;border:1px solid var(--home-line);border-radius:12px;overflow:hidden;background:rgba(12,17,24,.72)}
.home-panel .news-latest-card .news-visual{min-height:150px;height:150px;border-bottom:1px solid var(--home-line)}
.home-panel .news-latest-card>div:last-child{padding:13px 14px 14px}
.home-panel .news-latest-card h3{display:-webkit-box;min-height:2.55em;margin:5px 0 7px;overflow:hidden;font-size:15px;line-height:1.28;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.home-panel .news-latest-card p{display:none}
.home-panel .news-latest-card .kicker{color:#9ee9f7;font-size:9px;letter-spacing:.08em}
.home-panel .news-latest-card .news-meta{display:block;overflow:hidden;color:#778596;font-size:8px;white-space:nowrap;text-overflow:ellipsis}
.home-panel .news-latest-card .text-button{margin-top:7px;color:#c8d3df;font-size:9px}
.home-panel .news-latest-card:hover{transform:translateY(-2px);border-color:rgba(85,215,245,.24);box-shadow:0 12px 28px rgba(0,0,0,.16)}

/* Three side stories are explicit rows: no accidental oversized third card. */
.home-panel .news-side-stack{grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}
.home-panel .news-side-card{grid-template-columns:124px minmax(0,1fr);min-height:0}
.home-panel .news-side-card .news-visual{min-width:124px;min-height:0}
.home-panel .news-side-card>div:last-child{padding:10px 12px}
.home-panel .news-side-card h3{font-size:14px;line-height:1.22;-webkit-line-clamp:2}
.home-panel .news-side-card .news-meta{font-size:8px}

@media(max-width:1050px){.home-news-latest{grid-template-columns:repeat(2,minmax(0,1fr))}.home-panel .news-side-card{grid-template-columns:105px minmax(0,1fr)}}
@media(max-width:650px){.home-news-latest{grid-template-columns:1fr}.home-panel .news-latest-card,.home-panel .news-latest-card:nth-child(3n+1),.home-panel .news-latest-card:nth-child(3n+2),.home-panel .news-latest-card:nth-child(3n){grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto;min-height:112px}.home-panel .news-latest-card .news-visual{height:100%;min-height:112px}.home-panel .news-side-stack{grid-template-rows:none}.home-panel .news-side-card{grid-template-columns:100px minmax(0,1fr);min-height:100px}}


/* Mobile responsive hardening — keep editorial cards inside the viewport. */
@media (max-width: 650px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    main.wrap,
    .home-panel,
    .home-news-lead,
    .home-panel .news-feature,
    .home-panel .news-side-stack,
    .home-panel .news-side-card,
    .home-news-latest,
    .home-panel .news-latest-card,
    .home-shortcuts,
    .home-latest,
    .home-collector {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .home-panel .news-feature,
    .home-panel .news-side-card,
    .home-panel .news-latest-card {
        overflow: hidden;
    }

    .home-panel .news-side-card,
    .home-panel .news-latest-card,
    .home-panel .news-latest-card:nth-child(3n+1),
    .home-panel .news-latest-card:nth-child(3n+2),
    .home-panel .news-latest-card:nth-child(3n) {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .home-panel .news-side-card .news-visual,
    .home-panel .news-latest-card .news-visual {
        width: 112px;
        min-width: 0;
        max-width: 112px;
        height: 100%;
        min-height: 112px;
        padding: 0;
        overflow: hidden;
    }

    /* Placeholder artwork used to repeat long article titles in a 100px column.
       On phones the real card title remains in the copy, so keep the visual clean. */
    .home-panel .news-side-card .news-visual > span,
    .home-panel .news-side-card .news-visual > strong,
    .home-panel .news-latest-card .news-visual > span,
    .home-panel .news-latest-card .news-visual > strong {
        display: none;
    }

    .home-panel .news-side-card > div:last-child,
    .home-panel .news-latest-card > div:last-child {
        min-width: 0;
        max-width: 100%;
        padding: 11px 12px;
        overflow: hidden;
    }

    .home-panel .news-side-card h3,
    .home-panel .news-latest-card h3 {
        max-width: 100%;
        overflow: hidden;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .home-panel .news-side-card .news-meta,
    .home-panel .news-latest-card .news-meta {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-panel .news-side-card .text-button,
    .home-panel .news-latest-card .text-button {
        max-width: 100%;
        white-space: normal;
    }

    .home-shortcuts button {
        min-width: 0;
        overflow: hidden;
    }

    .home-section-title {
        min-width: 0;
    }

    .home-section-title > div {
        min-width: 0;
    }
}

@media (max-width: 430px) {
    main.wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brandBtn,
    .brand-lockup {
        min-width: 0;
    }

    .brand-lockup small {
        display: none;
    }

    .brand {
        font-size: 20px;
        white-space: nowrap;
    }

    .home-panel .news-feature h1 {
        font-size: clamp(22px, 7.2vw, 28px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .home-panel .news-side-card,
    .home-panel .news-latest-card,
    .home-panel .news-latest-card:nth-child(3n+1),
    .home-panel .news-latest-card:nth-child(3n+2),
    .home-panel .news-latest-card:nth-child(3n) {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .home-panel .news-side-card .news-visual,
    .home-panel .news-latest-card .news-visual {
        width: 104px;
        max-width: 104px;
        min-height: 108px;
    }

    .home-panel .news-side-card h3,
    .home-panel .news-latest-card h3 {
        font-size: 13px;
        line-height: 1.24;
    }

    .home-shortcuts strong {
        font-size: 11px;
    }
}


/* Real-device visual pass — compact editorial hierarchy, aligned to two side stories. */
@media (min-width: 1051px) {
    .home-news-lead {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr);
        gap: 12px;
        align-items: stretch;
    }

    .home-panel .news-feature {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    }

    .home-panel .news-feature .news-visual {
        height: 320px;
        min-height: 320px;
    }

    .home-panel .news-feature-copy {
        justify-content: center;
        padding: 22px 24px;
    }

    .home-panel .news-feature h1 {
        margin: 7px 0 9px;
        font-size: clamp(24px, 2.35vw, 34px);
        line-height: 1.06;
        -webkit-line-clamp: 3;
    }

    .home-panel .news-feature-copy p {
        margin: 4px 0 8px;
        font-size: 12px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .home-panel .news-side-stack {
        height: 320px;
        max-height: 320px;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-panel .news-side-card {
        min-height: 0;
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .home-panel .news-side-card .news-visual {
        height: 100%;
        min-height: 0;
    }

    .home-panel .news-side-card > div:last-child {
        padding: 10px 12px;
    }

    .home-panel .news-side-card h3 {
        margin: 4px 0 6px;
        font-size: 13px;
        line-height: 1.22;
        -webkit-line-clamp: 3;
    }

    .home-panel .news-side-card .news-meta {
        font-size: 8px;
        line-height: 1.35;
    }

    .home-latest {
        margin-top: 34px;
    }

    .home-panel .news-latest-card,
    .home-panel .news-latest-card:nth-child(3n+1),
    .home-panel .news-latest-card:nth-child(3n+2),
    .home-panel .news-latest-card:nth-child(3n) {
        grid-template-rows: 118px auto;
    }

    .home-panel .news-latest-card .news-visual {
        height: 118px;
        min-height: 118px;
    }
}

@media (min-width: 761px) and (max-width: 1050px) {
    .home-news-lead {
        grid-template-columns: 1fr;
    }

    .home-panel .news-feature {
        min-height: 300px;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    }

    .home-panel .news-feature .news-visual {
        height: 300px;
        min-height: 300px;
    }

    .home-panel .news-side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 10px;
    }

    .home-panel .news-side-card {
        min-height: 130px;
        grid-template-columns: 100px minmax(0, 1fr);
    }
}
