/* =========================================================
   News archive (category.php): magazine layout.
   Markup: inc/news-archive.php. Script: js/news-archive.js.
   ========================================================= */
.ls-na-header { margin-bottom: 12px; }
.ls-na-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.ls-na-head-row .ls-news-title { margin: 0; }
.ls-na-count { margin-left: 8px; color: #5b6b82; font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.ls-na-header .ls-na-gbtns { margin: 0; }
.ls-na-pills { margin-bottom: 12px; }
.ls-na-pills .ls-news-category-pill { gap: 6px; }
.ls-na-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.ls-news-category-pill.is-active .ls-na-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }

/* Just in strip */
.ls-na-just { display: flex; align-items: stretch; margin: 0 0 16px; background: #fff; border: 1px solid #dbe7f8; border-radius: 12px; overflow: hidden; }
.ls-na-just-label { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #071d33; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.ls-na-just.is-fresh .ls-na-just-label { background: #dc2626; }
.ls-na-just-label i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.ls-na-just.is-fresh .ls-na-just-label i { animation: ls-na-pulse 1.6s ease-in-out infinite; }
@keyframes ls-na-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .25); } }
.ls-na-just-track { display: flex; gap: 24px; min-width: 0; padding: 10px 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ls-na-just-track::-webkit-scrollbar { display: none; }
.ls-na-just-track a { color: #071d33; font-size: 13px; font-weight: 600; text-decoration: none; }
.ls-na-just-track a:hover { color: #0b5fd8; }
.ls-na-just-track em { margin-right: 6px; color: #dc2626; font-style: normal; font-weight: 700; }

/* Shared bits */
.ls-na-tag { display: inline-block; align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--tc, #0b5fd8); color: #fff !important; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; line-height: 1.3; text-transform: uppercase; text-decoration: none !important; }
.ls-na-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; color: #5b6b82; font-size: 12px; font-weight: 600; }
.ls-na-meta:empty { display: none; }
.ls-na-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 3px 9px 3px 3px; border: 1px solid #d6e4fb; border-radius: 999px; background: #eef4ff; color: #0b2a52; font-size: 11.5px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.ls-na-chip img, .ls-na-chip-dot { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #fff; object-fit: contain; }
.ls-na-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-na-chip b { color: #0b5fd8; font-weight: 800; white-space: nowrap; }
.ls-na-chip:hover, .ls-na-chip:focus-visible { border-color: #0b5fd8; color: #0b2a52; text-decoration: none; }
.ls-na-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--tc, #0b5fd8) 50%, #fff) 0%, var(--tc, #0b5fd8) 58%, color-mix(in srgb, var(--tc, #0b5fd8) 65%, #000) 100%);
    color: rgba(255, 255, 255, .93); font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.ls-na-thumb, .ls-na-lead-bg { display: block; overflow: hidden; background: #eef3fa; text-decoration: none !important; }
.ls-na-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-na-title { margin: 0; color: #071d33; font-weight: 700; line-height: 1.3; }
.ls-na-title a { color: inherit; text-decoration: none; }
.ls-na-title a:hover, .ls-na-title a:focus-visible { color: #0b5fd8; }

/* Lead story + side stories */
.ls-na-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; margin: 0 0 24px; }
.ls-na-lead { position: relative; min-height: 360px; overflow: hidden; border-radius: 16px; background: #0b1220; color: #fff; }
.ls-na-lead-bg { position: absolute; inset: 0; display: block; }
.ls-na-lead-bg img, .ls-na-lead-bg .ls-na-ph { width: 100%; height: 100%; object-fit: cover; }
.ls-na-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 22, 0) 25%, rgba(5, 12, 22, .94) 100%); pointer-events: none; }
.ls-na-lead-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
.ls-na-lead-title { margin: 0; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.ls-na-lead-title a { color: #fff; text-decoration: none; }
.ls-na-lead-title a:hover { text-decoration: none; }
.ls-na-lead-excerpt { max-width: 62ch; margin: 0; color: #dbe4f2; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-na-lead .ls-na-meta { color: #cbd5e1; }
.ls-na-lead .ls-na-chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.ls-na-lead .ls-na-chip b { color: #9ec5ff; }
.ls-na-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ls-na-mini { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; flex: 1; padding: 10px; background: #fff; border: 1px solid #dbe7f8; border-radius: 14px; }
.ls-na-mini .ls-na-thumb { height: 78px; border-radius: 10px; }
.ls-na-mini .ls-na-body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.ls-na-mini .ls-na-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Day groups + cards */
.ls-na-group { margin: 0 0 24px; }
.ls-na-day { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; color: #071d33; font-size: 15px; font-weight: 800; }
.ls-na-day::after { content: ""; flex: 1; height: 1px; background: #dbe7f8; }
.ls-na-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ls-na-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dbe7f8; border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.ls-na-card:hover { border-color: #0b5fd8; box-shadow: 0 4px 14px rgba(11, 95, 216, .12); }
.ls-na-card .ls-na-thumb { position: relative; height: 124px; }
.ls-na-card .ls-na-thumb .ls-na-views { position: absolute; right: 8px; bottom: 8px; }
.ls-na-card .ls-na-body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 1; padding: 10px 12px 12px; }
.ls-na-card .ls-na-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.ls-na-card .ls-na-meta { margin-top: auto; }
.ls-na-meta-views { display: none; }
.ls-na-meta-views:empty { display: none !important; }

/* Trending */
.ls-na-trend { margin: 0 0 24px; padding: 16px 18px; background: #f6f9fe; border: 1px solid #d6e4fb; border-top: 4px solid #dc2626; border-radius: 16px; }
.ls-na-trend h2 { margin: 0 0 12px; padding: 0; border: 0; color: #071d33; font-size: 17px; font-weight: 800; }
.ls-na-trend h2::before { content: "\1F525"; margin-right: 6px; }
.ls-na-trend ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: ls-na-t; }
.ls-na-trend li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; margin: 0; counter-increment: ls-na-t; }
.ls-na-trend li::before { content: counter(ls-na-t); grid-row: span 2; color: #c3d4ee; font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ls-na-trend li a { color: #071d33; font-size: 13px; font-weight: 700; line-height: 1.32; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ls-na-trend li a:hover { color: #0b5fd8; }
.ls-na-trend li small { margin-top: 4px; color: #5b6b82; font-size: 11.5px; font-weight: 600; }

/* Load more */
.ls-na-more { display: flex; justify-content: center; margin: 4px 0 16px; }
.ls-na-more[hidden] { display: none; }
.ls-na-more-btn { height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: #0b5fd8; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.ls-na-more-btn:hover, .ls-na-more-btn:focus-visible { background: #0a4fb4; color: #fff; }
.ls-na-more-btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 1100px) {
    .ls-na-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ls-na-trend ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ls-na-header .ls-na-gbtns { width: 100%; }
    .ls-na-top { grid-template-columns: minmax(0, 1fr); }
    .ls-na-lead { min-height: 300px; }
    .ls-na-lead-title { font-size: 21px; }
    .ls-na-side { display: none; }
    /* Phones: a list (small picture left), about twice as many headlines per screen. */
    .ls-na-grid { display: flex; flex-direction: column; gap: 0; overflow: hidden; background: #fff; border: 1px solid #dbe7f8; border-radius: 14px; }
    .ls-na-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; border: 0; border-bottom: 1px solid #edf2fa; border-radius: 0; }
    .ls-na-card:last-child { border-bottom: 0; }
    .ls-na-card:hover { box-shadow: none; }
    .ls-na-card .ls-na-thumb { height: 78px; border-radius: 10px; }
    .ls-na-card .ls-na-thumb .ls-na-views { display: none; }
    .ls-na-card .ls-na-body { padding: 0; gap: 6px; }
    .ls-na-card .ls-na-title { font-size: 14.5px; min-height: 0; }
    .ls-na-meta-views { display: inline-flex; }
    .ls-na-trend ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ls-na-just.is-fresh .ls-na-just-label i { animation: none; }
    .ls-na-card { transition: none; }
}

/* Ticker: the strip moves slowly to the left and loops (js/news-archive.js). */
.ls-na-just-track.is-ticking { display: block; overflow: hidden; padding: 0; mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent 100%); }
.ls-na-just-move { display: inline-flex; gap: 0; padding: 10px 0 10px 16px; white-space: nowrap; will-change: transform; animation: ls-na-ticker 40s linear infinite; }
.ls-na-just-move > a { position: relative; margin-right: 32px; }
.ls-na-just-move > a + a::before { content: ""; position: absolute; left: -18px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #b9c7dc; }
.ls-na-just-track.is-paused .ls-na-just-move { animation-play-state: paused; }
@keyframes ls-na-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* While a category is loading in place: the old stories fade a little (no blank page, no jump). */
.ls-news-main.is-loading .ls-na-groups, .ls-news-main.is-loading .ls-na-top, .ls-news-main.is-loading .ls-na-just { opacity: .45; transition: opacity .15s ease; }
