/* LUMARION Media v2.9.42 — desktop homepage list without duplicate save buttons.
 * Scope changes to >=1025px: the mobile pager/card layouts are untouched.
 * SSR articles remain fully readable when JavaScript is disabled.
 */
@media (min-width:1025px) {
  /* The floating desktop rail uses its own width; do not also reserve an
     unexplained 260px inside the homepage's article column. */
  body.home .site-main.site-shell {
    box-sizing:border-box;
    width:min(calc(100% - 268px), 1030px);
    max-width:1030px;
    margin-left:max(236px,calc((100vw - 1600px)/2 + 228px));
    margin-right:auto;
    padding-left:0;
    padding-right:0;
    min-width:0;
  }
  /* Only one column of NEWS-style cards on desktop. The previous 4-column
     grid and swipe-save button previously produced oversized cells. */
  body.home .lum-app-all-panel :is(.post-grid,.featured-section .post-grid,.popular-card-grid,.editorial-list,.news-stream__list) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
  }
  body.home .lum-app-all-panel :is(.featured-section .post-card:first-child,.news-stream__item--featured) {
    grid-column:auto!important;
    grid-row:auto!important;
  }
  body.home .lum-app-all-panel .post-card,
  body.home .lum-app-all-panel .popular-card-wrap > .post-card {
    position:relative;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 116px!important;
    grid-template-rows:auto!important;
    gap:14px!important;
    align-items:center;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:146px;
    padding:15px 0!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid var(--lm-border,#dce3ec)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
    overflow:visible!important;
  }
  body.home .lum-app-all-panel .post-card__body {
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    padding:0!important;
    align-self:center;
  }
  body.home .lum-app-all-panel .post-card__image {
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    width:116px!important;
    height:116px!important;
    min-width:0!important;
    max-width:100%!important;
    aspect-ratio:1/1!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#e8edf3;
  }
  body.home .lum-app-all-panel .post-card__image img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    aspect-ratio:1/1!important;
  }
  body.home .lum-app-all-panel .post-card__meta,
  body.home .lum-app-all-panel :is(.editorial-item__meta,.news-stream__meta) {
    margin:0 0 7px!important;
    font-size:12px!important;
    font-weight:500;
    letter-spacing:0!important;
    line-height:1.45;
    color:var(--lm-text-secondary,#526477);
  }
  body.home .lum-app-all-panel .post-card__body h2,
  body.home .lum-app-all-panel .featured-section .post-card:first-child h2 {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    font-size:clamp(17px,1.4vw,21px)!important;
    line-height:1.5!important;
    font-weight:750;
    margin:0!important;
    overflow-wrap:anywhere;
  }
  body.home .lum-app-all-panel .post-card__body h2 a,
  body.home .lum-app-all-panel :is(.editorial-item h3 a,.news-stream__item h3 a) {
    color:var(--lm-text,#17263a)!important;
    text-decoration:none!important;
  }
  body.home .lum-app-all-panel .post-card__body > p:not(.post-card__meta) {
    color:var(--lm-text-secondary,#536478)!important;
    font-size:13px;
    line-height:1.65;
    margin:7px 0 0;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  /* Editorial rows and continuous news feed share the same visual order. */
  body.home .lum-app-all-panel :is(.editorial-item,.editorial-item--featured,.news-stream__item,.news-stream__item--featured) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 116px!important;
    grid-template-rows:auto!important;
    gap:14px!important;
    align-items:center;
    grid-column:auto!important;
    grid-row:auto!important;
    min-height:146px!important;
    width:100%!important;
    padding:15px 0!important;
    margin:0!important;
    border-bottom:1px solid var(--lm-border,#dce3ec)!important;
    background:transparent!important;
  }
  body.home .lum-app-all-panel :is(.editorial-item__body,.news-stream__body) {
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    padding:0!important;
  }
  body.home .lum-app-all-panel :is(.editorial-item__thumb,.news-stream__thumb,.news-stream__item--featured .news-stream__thumb) {
    grid-column:2!important;
    grid-row:1!important;
    width:116px!important;
    height:116px!important;
    max-width:100%!important;
    min-width:0!important;
    aspect-ratio:1/1!important;
    overflow:hidden!important;
    border-radius:10px!important;
  }
  body.home .lum-app-all-panel :is(.editorial-item__thumb,.news-stream__thumb) img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    aspect-ratio:1/1!important;
  }
  body.home .lum-app-all-panel :is(.editorial-item h3,.news-stream__item h3,.news-stream__item--featured h3) {
    font-size:clamp(17px,1.4vw,21px)!important;
    line-height:1.5!important;
    font-weight:750!important;
    margin:0!important;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    overflow-wrap:anywhere;
  }
  body.home .lum-app-all-panel :is(.editorial-item--featured,.news-stream__item--featured) :is(p,.news-stream__excerpt) {
    font-size:13px!important;
    line-height:1.6;
    margin:8px 0 0;
    color:var(--lm-text-secondary,#536478);
  }
  /* Home trending rank sits in its own column; never overlap a date/heading. */
  body.home .lum-app-all-panel .popular-card-grid {
    counter-reset:lum-desktop-trending;
  }
  body.home .lum-app-all-panel .popular-card-wrap {
    counter-increment:lum-desktop-trending;
    position:relative;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:12px!important;
    min-width:0;
    align-items:start;
  }
  body.home .lum-app-all-panel .popular-card-wrap::before {
    content:counter(lum-desktop-trending)!important;
    display:grid!important;
    grid-column:1!important;
    grid-row:1!important;
    position:static!important;
    align-self:center;
    justify-self:center;
    width:34px!important;
    height:34px!important;
    border-radius:50%;
    background:var(--lm-surface-raised,#edf2f7);
    color:var(--lm-text,#17263a);
    font-size:14px;
    font-weight:800;
    place-items:center;
  }
  body.home .lum-app-all-panel .popular-card-wrap > .post-card {
    grid-column:2!important;
    grid-row:1!important;
  }
  body.home .lum-app-all-panel .popular-card-wrap > .post-card::before {content:none!important;display:none!important}
  /* Avoid extra-wide headings/oversized whitespace in narrow desktop windows. */
  body.home .lum-app-all-panel .home-section {margin-bottom:42px}
  body.home .lum-app-all-panel .home-section>header {margin-bottom:10px}
  body.home .lum-app-all-panel .home-section>header h2 {font-size:23px}
  body.home .lum-app-all-panel .home-intro {padding:30px 0 38px}
  body.home .lum-app-all-panel .home-intro h1 {font-size:clamp(30px,3vw,48px)}
}
@media (min-width:1025px) and (max-width:1519px) {
  body.home .lum-desktop-context {display:none!important}
}
@media (min-width:1520px) {
  body.home .site-main.site-shell {
    width:min(calc(100% - 540px), 1070px);
    max-width:1070px;
  }
  body.home .lum-desktop-context {right:22px;width:240px}
}
@media (min-width:1025px) and (max-width:1180px) {
  body.home .site-main.site-shell {margin-left:236px;width:calc(100% - 252px)}
  body.home .lum-app-all-panel .post-card,
  body.home .lum-app-all-panel :is(.editorial-item,.news-stream__item) {
    grid-template-columns:minmax(0,1fr) 100px!important;
    gap:10px!important;
  }
  body.home .lum-app-all-panel :is(.post-card__image,.editorial-item__thumb,.news-stream__thumb) {width:100px!important;height:100px!important}
}
