/* LEOS News v0.12.5 — adaptive category archives + infinite scroll */
.l125-category{background:var(--l12-bg,#f3f7fa);padding:18px 0 42px}
.l125-category a{text-decoration:none;color:inherit}
.l125-category-head{margin:0 0 20px;padding:18px 0 14px;border-bottom:2px solid var(--l12-dark,#0e2a49)}
.l125-category-head h1{margin:4px 0 0;font-size:42px;line-height:1.1;color:var(--l12-ink,#102a43)}
.l125-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#7a8997;margin-bottom:8px}
.l125-breadcrumb a{color:var(--l12-a,#087ec8);font-weight:800}
.l125-description{max-width:900px;margin-top:10px;color:#607487;font-size:14px;line-height:1.75}
.l125-description p{margin:0}

/* First module adapts to actual content count; no empty columns. */
.l125-feature{margin:0 0 28px;min-width:0}
.l125-pair,.l125-four-grid,.l125-six-grid,.l125-bottom-pair,.l125-bottom-three{display:grid;gap:14px;align-items:stretch}
.l125-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.l125-four-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.l125-six-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.l125-bottom-pair{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}
.l125-bottom-three{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}
.l125-pair .l12-card,.l125-four-grid .l12-card,.l125-six-grid .l12-card,.l125-bottom-pair .l12-card,.l125-bottom-three .l12-card{height:100%}

.l125-lead-rows,.l125-five,.l125-layout-1,.l125-layout-4{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);gap:14px;align-items:stretch}
.l125-lead-rows .l125-main,.l125-five .l125-main,.l125-layout-1 .l125-main,.l125-layout-4 .l125-main{min-height:470px}
.l125-side-rows,.l125-layout-1-side,.l125-layout-4-side{display:grid;gap:14px;align-content:stretch}
.l125-side-rows{grid-template-rows:repeat(2,1fr)}
.l125-layout-1-side{grid-template-rows:repeat(3,1fr)}
.l125-layout-4-side{grid-template-rows:repeat(2,1fr)}
.l125-side-rows .l12-row,.l125-layout-1-side .l12-row{height:100%}
.l125-side-rows .l12-row>a,.l125-layout-1-side .l12-row>a{min-height:0;height:100%}
.l125-side-rows .l12-row .l11-media,.l125-layout-1-side .l12-row .l11-media{min-height:0;height:100%}
.l125-five-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.l125-five-grid .l12-card{height:100%}
.l125-five-grid .l12-card .l11-media{aspect-ratio:4/3}

/* Homepage-family nuance */
.l125-category-precise-2 .l125-six-grid .l12-card,
.l125-category-precise-3 .l125-six-grid .l12-card{min-height:330px}
.l125-category-precise-3 .l125-six-magazine .l12-card:nth-child(1),
.l125-category-precise-3 .l125-six-magazine .l12-card:nth-child(6){box-shadow:0 16px 34px rgba(15,42,65,.13)}
.l125-category-precise-4 .l125-layout-4 .l12-card.is-overlay{min-height:228px}

/* Infinite feed */
.l125-more-section{margin-top:28px}
.l125-feed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.l125-feed-grid .l12-card{height:100%;min-height:330px}
.l125-feed-grid .l12-card:not(.is-overlay) .l11-media{aspect-ratio:16/10}
.l125-feed-grid .l12-card:not(.is-overlay) .l12-copy{min-height:174px}
.l125-feed-grid .l12-card h3{font-size:19px;line-height:1.3}
.l125-feed-grid .l12-card.is-overlay .l11-media{min-height:330px}

.l125-infinite{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80px;margin-top:12px}
.l125-sentinel{width:100%;height:2px}
.l125-loader{display:flex;align-items:center;gap:7px;padding:20px 0;color:#6d7f90;font-size:12px}
.l125-loader span{width:8px;height:8px;border-radius:50%;background:var(--l12-a,#087ec8);animation:l125-pulse 1.05s infinite ease-in-out}
.l125-loader span:nth-child(2){animation-delay:.12s}.l125-loader span:nth-child(3){animation-delay:.24s}
.l125-loader b{margin-inline-start:5px;font-weight:700}
@keyframes l125-pulse{0%,80%,100%{opacity:.25;transform:scale(.75)}40%{opacity:1;transform:scale(1)}}
.l125-load-more{border:0;background:var(--l12-dark,#0e2a49);color:#fff;padding:11px 18px;font-family:var(--ln-font,Arial,"Segoe UI",sans-serif);font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(15,42,65,.13)}
.l125-end{padding:18px 0;color:#8a98a5;font-size:12px}
.l125-load-more[hidden],.l125-loader[hidden],.l125-end[hidden]{display:none!important}

/* Never show legacy archive pagination on category pages. */
.l125-category .ln-pagination,.category .ln-pagination,.category .navigation.pagination{display:none!important}

@media(max-width:1050px){
  .l125-feed-grid,.l125-six-grid,.l125-bottom-three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .l125-lead-rows,.l125-five,.l125-layout-1,.l125-layout-4{grid-template-columns:1fr}
  .l125-lead-rows .l125-main,.l125-five .l125-main,.l125-layout-1 .l125-main,.l125-layout-4 .l125-main{min-height:0}
  .l125-side-rows,.l125-layout-1-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .l125-layout-1-side .l12-row:last-child{grid-column:1/-1}
  .l125-layout-4-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
}
@media(max-width:760px){
  .l125-category-head h1{font-size:34px}
  .l125-pair,.l125-four-grid,.l125-six-grid,.l125-bottom-pair,.l125-bottom-three,.l125-five-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .l125-feed-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .l125-feed-grid .l12-card{min-height:0}
  .l125-feed-grid .l12-card:not(.is-overlay) .l12-copy{min-height:150px}
  .l125-feed-grid .l12-card.is-overlay .l11-media{min-height:278px}
  .l125-side-rows,.l125-layout-1-side,.l125-layout-4-side{grid-template-columns:1fr;grid-template-rows:auto}
  .l125-layout-1-side .l12-row:last-child{grid-column:auto}
}
@media(max-width:520px){
  .l125-category{padding-top:10px}
  .l125-category-head{padding-top:12px;margin-bottom:14px}
  .l125-category-head h1{font-size:29px}
  .l125-pair,.l125-four-grid,.l125-six-grid,.l125-bottom-pair,.l125-bottom-three,.l125-five-grid,.l125-feed-grid{grid-template-columns:1fr}
  .l125-feed-grid .l12-card:not(.is-overlay) .l12-copy{min-height:0}
  .l125-feed-grid .l12-card.is-overlay .l11-media{min-height:250px}
  .l125-feature{margin-bottom:20px}
}
