/* News and alerts page (photo-led, Nov 2026). The newest post fills the masthead, the newest alerts and
   scam warnings sit in a row under it, a glass filter bar sticks under the site header, the next three
   posts ride a swipeable rail (3-up on desktop), and the rest are grouped by month: one column of large
   photo cards on phones, a photo bento from 640px. Posts without a photo are compact tiles tinted by
   category. Scoped to main.newspg; loaded only by /news/. */
.newspg {
  --np-deep: #060d1a; --np-navy: #0a1626; --np-navy-2: #102039; --np-steel: #16324f; --np-blue: #1c4e8a;
  --np-surface: #10213a; --np-surface-2: #16304f; --np-steel-hi: #7f9fc8;
  --np-ink: #122636; --np-muted: #4f5d6a; --np-paper: #f4f1ea;
  --np-red: #b4232b; --np-red-deep: #8f1c22; --np-gold: #d9b675;
  --np-on: #eef2f7; --np-on-2: #c3cedb; --np-on-3: #9fb0c4; --np-hair: rgba(255, 255, 255, 0.12); --np-link-dark: #f2a59c;
  --np-top: 75px; --np-bar: 64px; --np-r: 22px;
  --np-ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--np-ink);
  overflow-x: clip;
}
.newspg .wrap { max-width: var(--maxw); margin: 0 auto; }
.newspg [id] { scroll-margin-top: calc(var(--np-top) + var(--np-bar) + 14px); }
.newspg :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.newspg .np-hero :focus-visible, .newspg .np-alerts :focus-visible, .newspg .np-feed :focus-visible, .newspg .np-official :focus-visible, .newspg .np-sos :focus-visible { outline-color: #fff; }
.newspg [hidden] { display: none !important; }
.newspg p strong { display: inline; margin: 0; font-size: inherit; }
.newspg svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* category tones: --cc for dots; --t1/--t2/--tg for the tinted tiles of posts without a photo
   (every --t1 keeps white text above 4.5:1) */
.newspg .c-press { --cc: #6c9ee3; --t1: #24548c; --t2: #0b1d36; --tg: #4f8fdc; }
.newspg .c-recognition { --cc: #e2c27f; --t1: #6b5a1e; --t2: #1f1a08; --tg: #e2b766; }
.newspg .c-alert { --cc: #ff6b61; --t1: #a3262d; --t2: #470d12; --tg: #ff6b61; }
.newspg .c-scam { --cc: #ff8f86; --t1: #8e1f39; --t2: #370a16; --tg: #ff7a8a; }
.newspg .c-road { --cc: #f0a04b; --t1: #a5520a; --t2: #3a1a02; --tg: #f0a04b; }
.newspg .c-event { --cc: #4fc08d; --t1: #1c6648; --t2: #08261a; --tg: #4fc08d; }
.newspg .c-all { --cc: #fff; }

/* ---------- photo frame + tinted fallback ---------- */
.newspg .np-ph { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--np-steel), var(--np-navy) 80%); }
.newspg .np-ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .25s ease, transform 1s var(--np-ease); }
.newspg .np-ph.np-loaded img { opacity: 1; }
.newspg .np-tint { position: absolute; inset: 0; overflow: hidden; background:
    radial-gradient(48% 60% at 100% 0%, color-mix(in srgb, var(--tg) 34%, transparent), transparent 72%),
    linear-gradient(150deg, var(--t1) 0%, var(--t2) 100%); }
.newspg .np-tint::after { content: ""; position: absolute; right: 6%; bottom: 6%; width: 24%; max-width: 132px; aspect-ratio: 3 / 4;
  background: url(/assets/img/badge-sm.png) no-repeat center / contain; opacity: .1; filter: grayscale(1) brightness(1.8); }
.newspg .np-tint svg { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; stroke-width: 1.6; color: rgba(255, 255, 255, .78); }

/* chips + meta */
.newspg .np-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; }
.newspg .np-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px;
  font: 600 0.75rem/1 var(--body); letter-spacing: .02em; white-space: nowrap;
  background: rgba(6, 13, 26, .62); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.newspg .np-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cc); flex: none; }
.newspg .np-chip-urgent { background: var(--np-red); box-shadow: none; }
.newspg .np-chip-urgent::before { background: #fff; }
.newspg .np-meta time { font-size: 0.8125rem; color: var(--np-on-2); font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.newspg .np-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; color: var(--np-on);
  min-height: clamp(560px, 74svh, 660px);
  background: radial-gradient(90% 70% at 80% 10%, rgba(28, 78, 138, .55), transparent 70%), linear-gradient(170deg, var(--np-navy-2), var(--np-deep)); }
.newspg .np-hbg { display: none; }
.newspg .np-hmedia { position: absolute; inset: 0; z-index: -2; }
.newspg .np-hmedia .np-ph { position: absolute; inset: 0; background: transparent; }
.newspg .np-hmedia .np-tint svg { right: 50%; top: 32%; width: 72px; height: 72px; margin-right: -36px; }
/* the scrim is darkest where the text sits: under the breadcrumb at the top and the whole lower half */
.newspg .np-hscrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 26, .86) 0%, rgba(6, 13, 26, .5) 17%, rgba(6, 13, 26, .14) 30%,
    rgba(6, 13, 26, .5) 42%, rgba(6, 13, 26, .86) 54%, rgba(6, 13, 26, .95) 66%, #060d1a 100%); }
.newspg .np-hwrap { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; width: 100%; padding: 12px 16px 26px; }
.newspg .np-hero .crumbs { margin: 0; }
.newspg .np-hero .crumbs a { position: relative; color: var(--np-on); min-width: 44px; }
.newspg .np-hero .crumbs a::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.newspg .np-hero .crumbs li + li::before { color: var(--np-on-3); }
.newspg .np-hero .crumbs [aria-current] { color: var(--np-on-2); }
.newspg .np-hero h1 { margin: 6px 0 0; color: #fff; font: 700 clamp(1.75rem, 1.3rem + 2vw, 3rem)/1 var(--display); letter-spacing: .005em; text-transform: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.newspg .np-deck { display: none; margin: 10px 0 0; max-width: 44ch; font-size: 1.0625rem; line-height: 1.45; color: #d7e0ec; }
.newspg .np-lead { max-width: 640px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.newspg .np-lead .np-meta time { color: #e6ecf3; }
.newspg .np-lead .np-chip { text-shadow: none; }
.newspg .np-leadh { margin: 0; color: #fff; font: 700 clamp(2rem, 1.45rem + 3vw, 3.75rem)/1.02 var(--display); letter-spacing: 0; text-transform: none;
  text-wrap: balance; text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-leadsum { margin: 12px 0 0; max-width: 58ch; font-size: 1rem; line-height: 1.5; color: #e4eaf2;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-leadgo { margin: 18px 0 0; }
.newspg .np-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
  background: #fff; color: var(--np-navy); font: 600 1rem/1 var(--body); text-decoration: none; text-shadow: none;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .2s var(--np-ease), background-color .2s ease; }
.newspg .np-btn svg { width: 18px; height: 18px; }
.newspg .np-btn:hover { background: #f1f4f8; transform: translateY(-1px); }
/* the lead shows as soon as the data arrives: a short rise, no long wait */
.newspg .np-lead.np-show > * { animation: np-rise .35s var(--np-ease) both; }
.newspg .np-lead.np-show > :nth-child(2) { animation-delay: .04s; }
.newspg .np-lead.np-show > :nth-child(3) { animation-delay: .08s; }
.newspg .np-lead.np-show > :nth-child(4) { animation-delay: .12s; }
@keyframes np-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* a filter or search is on, or the feed failed to load: the masthead folds to its title so results lead */
.newspg.np-filtered .np-hero, .newspg.np-fail .np-hero { min-height: 0; }
.newspg.np-filtered .np-hmedia, .newspg.np-filtered .np-hbg, .newspg.np-filtered .np-hscrim, .newspg.np-filtered .np-lead,
.newspg.np-fail .np-hmedia, .newspg.np-fail .np-hbg, .newspg.np-fail .np-hscrim, .newspg.np-fail .np-lead { display: none !important; }
.newspg.np-filtered .np-hwrap, .newspg.np-fail .np-hwrap { padding-bottom: 22px; }

/* ---------- alerts row: the newest alerts and scam warnings ---------- */
.newspg .np-alerts { background: var(--np-deep); padding: 4px 0 18px; }
.newspg .np-alerts > .wrap { padding: 0 16px; }
.newspg .np-alh { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font: 600 0.9375rem/1.3 var(--body); color: #ffd6d1; letter-spacing: 0; text-transform: none; }
.newspg .np-alh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff6b61; box-shadow: 0 0 0 4px rgba(255, 107, 97, .22); flex: none; }
.newspg .np-alrow { list-style: none; margin: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  padding: 0 16px 2px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.newspg .np-alrow::-webkit-scrollbar { display: none; }
.newspg .np-alrow > li { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
.newspg .np-al { position: relative; display: flex; flex-direction: column; gap: 6px; height: 150px; box-sizing: border-box; padding: 14px 16px 14px;
  border-radius: 18px; color: #fff; text-decoration: none; overflow: hidden;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color .2s ease, transform .2s var(--np-ease); }
.newspg .np-al.np-al-new { background: linear-gradient(140deg, #c42a31 0%, var(--np-red) 45%, #7d161c 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.newspg .np-al-sk { background: rgba(255, 255, 255, .05); }
.newspg .np-altag { font: 600 0.8125rem/1.2 var(--body); color: #ffb9b2; }
.newspg .np-al-new .np-altag { color: #fff; }
.newspg .np-alt { font: 600 1.0625rem/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-al time { margin-top: auto; font-size: 0.8125rem; line-height: 1.2; color: #d6dfea; font-variant-numeric: tabular-nums; padding-right: 28px; }
.newspg .np-al-new time { color: #ffe3e0; }
.newspg .np-alar { position: absolute; right: 14px; bottom: 12px; width: 20px; height: 20px; opacity: .85; transition: transform .2s var(--np-ease); }
.newspg .np-al:hover { background-color: rgba(255, 255, 255, .12); }
.newspg .np-al:hover .np-alar { transform: translateX(3px); }
.newspg .np-al:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ---------- dark feed: bar, recent rail, month groups ---------- */
.newspg .np-feed { position: relative; color: var(--np-on); background:
    radial-gradient(70% 30% at 100% 0%, rgba(28, 78, 138, .32), transparent 70%),
    radial-gradient(60% 24% at 0% 30%, rgba(180, 35, 43, .1), transparent 70%),
    linear-gradient(180deg, var(--np-deep) 0%, var(--np-navy) 20%, #0b192c 100%); }

/* glass bar: search + category chips, stuck under the site header */
.newspg .np-bar { position: sticky; top: var(--np-top); z-index: 30; padding: 10px 0;
  background: rgba(8, 18, 32, 0.78); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.newspg .np-barin { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.newspg .np-search { position: relative; flex: none; width: 44px; height: 44px; transition: width .28s var(--np-ease); }
.newspg .np-qic { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: #dfe6ef; pointer-events: none; }
.newspg .np-search input { width: 100%; height: 44px; padding: 0 12px 0 42px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1); color: #fff; font: 400 1rem/1 var(--body); -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease; }
.newspg .np-search input::placeholder { color: transparent; }
.newspg .np-search input::-webkit-search-cancel-button { display: none; }
.newspg .np-search input:focus { outline: 0; cursor: text; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(91, 143, 208, .45); }
.newspg .np-qx { position: absolute; right: 0; top: 0; display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; color: #dfe6ef; cursor: pointer; }
.newspg .np-qx svg { width: 18px; height: 18px; }
.newspg .np-searching .np-search { flex: 1; width: auto; }
.newspg .np-searching .np-search input { padding-right: 44px; }
.newspg .np-searching .np-search input::placeholder { color: #a9b6c6; }
.newspg .np-searching .np-qx, .newspg .np-search.has-q .np-qx { display: grid; }
.newspg .np-searching .np-segwrap { display: none; }
.newspg .np-segwrap { position: relative; flex: 1; min-width: 0; }
.newspg .np-seg { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.newspg .np-seg::-webkit-scrollbar { display: none; }
.newspg .np-segwrap.np-fade-r .np-seg { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.newspg .np-segwrap.np-fade-l .np-seg { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
.newspg .np-segwrap.np-fade-l.np-fade-r .np-seg { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.newspg .np-seg button { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); color: #e8edf3; font: 500 0.9375rem/1 var(--body);
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .3s var(--np-ease), border-color .2s ease; }
.newspg .np-seg button:not(.c-all)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); flex: none; transition: background-color .3s ease; }
.newspg .np-seg button:hover { background: rgba(255, 255, 255, .14); }
.newspg .np-seg button.on { background: transparent; border-color: transparent; color: var(--np-navy); font-weight: 600; }
/* the white thumb slides under the active chip; until the script places it the active chip paints itself */
.newspg .np-thumb { position: absolute; left: 0; top: 0; z-index: 0; height: 44px; width: 0; border-radius: 22px; background: #fff; opacity: 0; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: transform .4s var(--np-ease), width .4s var(--np-ease); }
.newspg .np-thumb.np-on { opacity: 1; }
.newspg .np-seg:not(:has(.np-thumb.np-on)) button.on { background: #fff; border-color: #fff; }
.newspg .np-seg button.on.c-alert::before, .newspg .np-seg button.on.c-scam::before { background: var(--np-red); }
.newspg .np-seg button.on.c-press::before { background: var(--np-blue); }
.newspg .np-seg button.on.c-recognition::before { background: #a87a2c; }
.newspg .np-seg button.on.c-road::before { background: #b8650f; }
.newspg .np-seg button.on.c-event::before { background: #2f7a5a; }
.newspg .np-seg button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.newspg .np-seg button.on:focus-visible { outline-color: var(--focus); outline-offset: -4px; }
.newspg .np-seg .ct { font-size: 0.75rem; font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; }

/* section headings on the dark feed */
.newspg .np-sh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; font: 700 1.5rem/1.15 var(--body); letter-spacing: -0.01em; color: #fff; text-transform: none; }
.newspg .np-shct { font: 600 0.875rem/1 var(--body); letter-spacing: 0; color: var(--np-on-3); font-variant-numeric: tabular-nums; }

/* recent rail: swipe on phones, 3-up on desktop */
.newspg .np-recent { padding: 24px 0 26px; }
.newspg .np-recent > .wrap { padding: 0 16px; }
.newspg .np-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 4px 16px 6px;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.newspg .np-rail::-webkit-scrollbar { display: none; }
.newspg .np-rcard { position: relative; isolation: isolate; flex: 0 0 min(80vw, 340px); aspect-ratio: 3 / 4; scroll-snap-align: start;
  border-radius: 24px; overflow: hidden; background: var(--np-steel); color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.newspg .np-rcard > .np-ph, .newspg .np-rcard > .np-tint { position: absolute; inset: 0; z-index: -2; }
.newspg .np-rcard .np-tint svg { width: 44px; height: 44px; right: 20px; top: 20px; }
.newspg .np-rscrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 26, .1) 0%, rgba(6, 13, 26, 0) 22%, rgba(6, 13, 26, .62) 44%, rgba(6, 13, 26, .9) 62%, rgba(6, 13, 26, .97) 100%); }
.newspg .np-rcard.no-img .np-rscrim { background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .25) 100%); }
.newspg .np-rbody { padding: 18px 18px 8px; }
.newspg .np-rcard .np-ttl { margin: 0; font: 700 1.375rem/1.15 var(--body); letter-spacing: -0.01em; color: #fff; text-transform: none; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-rcard .np-sum { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.45; color: #d9e1eb;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-rcard:hover .np-ph img { transform: scale(1.04); }
.newspg .np-rcard.np-urgent { box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 107, 97, .55); }

/* card link: visible label, stretched over the whole card */
.newspg .np-src { margin: 10px 0 0; }
.newspg .np-go { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font: 600 0.9375rem/1 var(--body); color: #fff; text-decoration: none; }
.newspg .np-go span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .55); }
.newspg .np-go svg { width: 16px; height: 16px; transition: transform .2s var(--np-ease); }
.newspg .np-go::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.newspg .np-go:focus-visible { outline: 0; }
.newspg .np-go:focus-visible::after { outline: 3px solid #fff; outline-offset: -3px; }
.newspg .np-rcard:hover .np-go svg, .newspg .np-tile:hover .np-go svg { transform: translate(2px, -2px); }

/* ---------- month groups ---------- */
.newspg .np-body { padding: 8px 16px 64px; }
.newspg .np-body > .wrap { position: relative; }
.newspg .np-res-h { padding-top: 14px; }
.newspg .np-month { margin-top: 26px; }
.newspg .np-month:first-child { margin-top: 6px; }
.newspg .np-mh { display: flex; align-items: center; gap: 0 12px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--np-hair);
  font: 700 clamp(2.5rem, 1.9rem + 3vw, 4.5rem)/0.9 var(--display); color: #fff; letter-spacing: -0.005em; text-transform: none; }
.newspg .np-mname { color: #fff; }
.newspg .np-myear { color: var(--np-steel-hi); }
.newspg .np-mct { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font: 600 0.8125rem/1 var(--body); letter-spacing: 0; color: var(--np-on-2); font-variant-numeric: tabular-nums; }
.newspg .np-mct b { color: #fff; font-weight: 700; }
/* a filter or search already shows its count in the results heading */
.newspg.np-filtered .np-mct { display: none; }

/* tiles: phones get one column; the bento shapes start at 640px */
.newspg .np-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.newspg .np-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; border-radius: var(--np-r); overflow: hidden;
  background: var(--np-surface); color: #fff; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: box-shadow .25s ease, transform .3s var(--np-ease); }
.newspg .np-tile:hover { box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .22); }
.newspg .np-tile > .np-tint { z-index: -1; }
.newspg .np-cap { position: relative; display: flex; flex-direction: column; flex: 1; padding: 16px 18px 6px; }
.newspg .np-hd { display: block; }
.newspg .np-tile .np-ttl { margin: 0 0 6px; font: 700 1.1875rem/1.26 var(--body); letter-spacing: -0.005em; color: #fff; text-transform: none; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-tile .np-sum { margin: 0; font-size: 0.96875rem; line-height: 1.55; color: var(--np-on-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newspg .np-tile .np-src { margin-top: auto; padding-top: 6px; }
.newspg .np-tile:hover .np-ph img { transform: scale(1.035); }
.newspg .np-ttl:focus { outline: 2px solid #fff; outline-offset: 2px; }
/* text-only tiles: tinted by category, room left for the corner glyph */
.newspg .np-tile.no-img .np-cap { padding-top: 18px; }
.newspg .np-tile.no-img .np-ttl { padding-right: 40px; font-size: 1.25rem; }
.newspg .np-tile.no-img .np-meta { padding-right: 40px; }
.newspg .np-tile.no-img .np-sum { color: rgba(255, 255, 255, .86); }
.newspg .np-tile.no-img .np-meta time { color: rgba(255, 255, 255, .82); }
.newspg .np-tile.np-urgent.has-img { box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .85), inset 0 0 0 2px rgba(255, 107, 97, .6); }

/* phones: big photo cards (tag, date and title on the photo, the summary below); text tiles stay compact */
@media (max-width: 639px) {
  /* a long month name pushes the count under it instead of past the edge */
  /* the count always sits on its own line under the month, so every month heading has the same height in both languages */
  .newspg .np-mh { flex-wrap: wrap; row-gap: 10px; }
  .newspg .np-mh::after { content: ""; flex-basis: 100%; order: 2; }
  .newspg .np-mct { margin-left: 0; order: 3; }
  /* four-line alert titles fit the fixed card height (Spanish runs long) */
  .newspg .np-alt { font: 600 1rem/1.26 var(--body); -webkit-line-clamp: 4; }
  .newspg .np-al { height: 160px; }
  .newspg .np-tile.has-img { display: grid; grid-template-columns: minmax(0, 1fr); }
  .newspg .np-tile.has-img > .np-ph { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
  .newspg .np-tile.has-img.pt > .np-ph { aspect-ratio: 4 / 5; }
  .newspg .np-tile.has-img.lw > .np-ph { aspect-ratio: 4 / 3; }
  .newspg .np-tile.has-img.lw .np-hd { padding-top: 48px; }
  .newspg .np-tile.has-img .np-cap { display: contents; }
  .newspg .np-tile.has-img .np-hd { grid-area: 1 / 1; align-self: end; z-index: 1; padding: 72px 18px 14px;
    background: linear-gradient(0deg, rgba(6, 13, 26, .96) 0%, rgba(6, 13, 26, .86) calc(100% - 64px), rgba(6, 13, 26, .45) calc(100% - 30px), rgba(6, 13, 26, 0) 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
  .newspg .np-tile.has-img .np-ttl { margin: 0; font-size: 1.3125rem; line-height: 1.18; -webkit-line-clamp: 4; }
  .newspg .np-tile.has-img .np-meta { margin-bottom: 8px; }
  .newspg .np-tile.has-img .np-sum { padding: 12px 18px 0; }
  .newspg .np-tile.has-img .np-src { padding: 4px 18px 8px; }
}

/* tablet and up: bento shapes placed by the script (--x/--y/--c/--r) */
@media (min-width: 640px) and (max-width: 1023px) {
  .newspg .np-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 14px; }
  .newspg .np-tile[style*="--x2"] { grid-column: var(--x2) / span var(--c2); grid-row: var(--y2) / span var(--r2); }
}
@media (min-width: 1024px) {
  .newspg .np-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 16px; }
  .newspg .np-tile[style*="--x4"] { grid-column: var(--x4) / span var(--c4); grid-row: var(--y4) / span var(--r4); }
}
@media (min-width: 640px) {
  /* photo tiles: the photo fills the tile, text sits on a scrim that travels with the caption */
  .newspg .np-tile.has-img > .np-ph { position: absolute; inset: 0; z-index: -1; }
  .newspg .np-tile.has-img .np-cap { flex: none; margin-top: auto; padding: 84px 20px 8px;
    background: linear-gradient(0deg, rgba(6, 13, 26, .97) 0%, rgba(6, 13, 26, .88) calc(100% - 64px), rgba(6, 13, 26, .45) calc(100% - 30px), rgba(6, 13, 26, 0) 100%); }
  .newspg .np-tile.has-img .np-ttl { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
  .newspg .np-tile.has-img .np-sum { color: #d3dce7; }
  .newspg .np-tile.no-img .np-sum { -webkit-line-clamp: 4; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* single-cell photo tiles: photo on top, text below */
  .newspg .np-tile.has-img.m-s1 > .np-ph { position: relative; inset: auto; z-index: 0; flex: none; aspect-ratio: 16 / 10; }
  .newspg .np-tile.has-img.m-s1 .np-cap { flex: 1; margin-top: 0; padding: 14px 18px 6px; background: none; }
  .newspg .np-tile.has-img.m-s1 .np-ttl { font-size: 1.125rem; -webkit-line-clamp: 3; }
  /* wide single-row photo tiles: photo on the left half */
  .newspg .np-tile.has-img.m-w1 { flex-direction: row; }
  .newspg .np-tile.has-img.m-w1 > .np-ph { position: relative; inset: auto; z-index: 0; flex: 0 0 52%; min-height: 240px; }
  .newspg .np-tile.has-img.m-w1 .np-cap { flex: 1; margin-top: 0; padding: 20px 20px 8px; background: none; }
  /* the big lead tile */
  .newspg .np-tile.m-big .np-ttl { font: 700 clamp(1.75rem, 1.2rem + 1.4vw, 2.375rem)/1.08 var(--display); letter-spacing: .005em; max-width: 22ch; }
  .newspg .np-tile.m-big .np-sum { font-size: 1.0625rem; max-width: 56ch; }
  .newspg .np-tile.m-big.has-img .np-cap { padding: 120px 26px 12px; }
  .newspg .np-tile.m-tall .np-sum { -webkit-line-clamp: 4; }
  .newspg .np-tile.no-img.m-tall .np-sum, .newspg .np-tile.no-img.m-big .np-sum { -webkit-line-clamp: 9; }
  .newspg .np-tile.no-img.m-big .np-tint svg { width: 52px; height: 52px; right: 24px; top: 24px; }
  .newspg .np-tile.no-img.m-big .np-cap { padding: 26px 26px 10px; }
}
@media (min-width: 1024px) {
  /* single-cell photo tiles: photo on top, text below */
  .newspg .np-tile.has-img.d-s1 > .np-ph { position: relative; inset: auto; z-index: 0; flex: none; aspect-ratio: 16 / 10; }
  .newspg .np-tile.has-img.d-s1 .np-cap { flex: 1; margin-top: 0; padding: 14px 18px 6px; background: none; }
  .newspg .np-tile.has-img.d-s1 .np-ttl { font-size: 1.125rem; -webkit-line-clamp: 3; }
  /* wide single-row photo tiles: photo on the left half */
  .newspg .np-tile.has-img.d-w1 { flex-direction: row; }
  .newspg .np-tile.has-img.d-w1 > .np-ph { position: relative; inset: auto; z-index: 0; flex: 0 0 52%; min-height: 240px; }
  .newspg .np-tile.has-img.d-w1 .np-cap { flex: 1; margin-top: 0; padding: 20px 20px 8px; background: none; }
  /* the big lead tile */
  .newspg .np-tile.d-big .np-ttl { font: 700 clamp(1.75rem, 1.2rem + 1.4vw, 2.375rem)/1.08 var(--display); letter-spacing: .005em; max-width: 22ch; }
  .newspg .np-tile.d-big .np-sum { font-size: 1.0625rem; max-width: 56ch; }
  .newspg .np-tile.d-big.has-img .np-cap { padding: 120px 26px 12px; }
  .newspg .np-tile.d-tall .np-sum { -webkit-line-clamp: 4; }
  .newspg .np-tile.no-img.d-tall .np-sum, .newspg .np-tile.no-img.d-big .np-sum { -webkit-line-clamp: 9; }
  .newspg .np-tile.no-img.d-big .np-tint svg { width: 52px; height: 52px; right: 24px; top: 24px; }
  .newspg .np-tile.no-img.d-big .np-cap { padding: 26px 26px 10px; }
}

/* reveal on scroll (only when JS observes; the final state is the default) */
.newspg .np-rv.np-wait { opacity: 0; transform: translateY(22px); }
.newspg .np-rv.np-wait.np-in { opacity: 1; transform: none;
  transition: opacity .6s ease calc(var(--i, 0) * 70ms), transform .7s var(--np-ease) calc(var(--i, 0) * 70ms), box-shadow .25s ease; }
@keyframes np-flash { 0% { box-shadow: 0 0 0 0 rgba(217, 182, 117, 0); } 20% { box-shadow: 0 0 0 4px rgba(217, 182, 117, .75); } 100% { box-shadow: 0 0 0 4px rgba(217, 182, 117, 0); } }
.newspg .np-flash { animation: np-flash 1.8s ease 1; }

/* empty, loading, error, no-JS, older posts */
.newspg .np-empty { margin: 8px 0; padding: 32px 22px; background: var(--np-surface); border-radius: var(--np-r); color: var(--np-on-2); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.newspg .np-loading { background: none; box-shadow: none; }
.newspg .np-empty p { margin: 0 auto; max-width: 52ch; }
.newspg .np-empty p + p { margin-top: 8px; }
.newspg .np-empty a { color: #fff; font-weight: 600; }
.newspg .np-more { margin: 34px 0 0; text-align: center; }
.newspg .np-more button, .newspg .np-reset { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  background: #fff; color: var(--np-ink); font: 600 1rem/1 var(--body); cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--np-ease); }
.newspg .np-reset { margin-top: 16px; }
.newspg .np-more button:hover, .newspg .np-reset:hover { background: #e8eef5; transform: translateY(-1px); }
.newspg .np-more .ct { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--np-navy-2); color: #fff;
  font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* ---------- official sources ---------- */
.newspg .np-offband { background: var(--np-paper); padding: 48px 16px; }
.newspg .np-official { position: relative; overflow: hidden; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 24px 20px; border-radius: 24px; color: var(--np-on);
  background: radial-gradient(80% 90% at 100% 0%, rgba(28, 78, 138, .6), transparent 70%), linear-gradient(160deg, var(--np-navy-2), var(--np-deep)); }
.newspg .np-offbadge { width: 52px; height: auto; }
.newspg .np-official h2 { margin: 0 0 2px; font: 700 1.25rem/1.25 var(--body); color: #fff; letter-spacing: 0; text-transform: none; }
.newspg .np-official h3 { margin: 0 0 8px; font: 600 1rem/1.4 var(--body); color: var(--np-gold); letter-spacing: 0; text-transform: none; }
.newspg .np-official p { margin: 0; font-size: 0.9688rem; line-height: 1.6; color: var(--np-on-2); max-width: 72ch; }
.newspg .np-official a { color: var(--np-link-dark); font-weight: 600; text-underline-offset: 3px; }
/* inline links keep their line; an invisible box gives them a taller target */
.newspg .np-official p a, .newspg .np-sos p a { position: relative; }
.newspg .np-official p a::after, .newspg .np-sos p a::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 44px; transform: translateY(-50%); }

/* ---------- emergency band ---------- */
.newspg .np-sos { background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .1), transparent 60%), linear-gradient(120deg, #c22a31, var(--np-red) 45%, var(--np-red-deep)); color: #fff; padding: 28px 24px; }
.newspg .np-sosrow { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; }
.newspg .np-sostext { max-width: 62ch; }
.newspg .np-sos h2 { margin: 0 0 4px; font: 700 1.125rem/1.4 var(--body); color: #fff; letter-spacing: 0; text-transform: none; }
.newspg .np-sos p { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.newspg .np-sos p strong { font-weight: 700; color: #fff; }
.newspg .np-sos a { color: #fff; }
.newspg .np-911 { flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 22px 6px 18px; border-radius: 16px; background: #fff;
  color: var(--np-red) !important; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); transition: transform .2s var(--np-ease); }
.newspg .np-911n { font: 700 2.25rem/1 var(--display); }
.newspg .np-911l { font: 600 0.75rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--np-ink); }
.newspg .np-911:hover { transform: translateY(-1px); }

@media (max-width: 599px) {
  .newspg .np-official { grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 0; }
  .newspg .np-offtext { display: contents; }
  .newspg .np-offbadge { width: 40px; grid-row: 1 / 3; align-self: center; }
  .newspg .np-official p { grid-column: 1 / -1; margin-top: 12px; }
  .newspg .np-official h3 { margin: 0; }
}
@media (max-width: 899px) {
  .newspg .np-sosrow { flex-direction: column; align-items: flex-start; }
  .newspg .np-sos { padding: 26px 16px; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  /* tall enough for a three-line headline and summary, so the masthead never grows when the post arrives */
  .newspg .np-hero { min-height: 640px; }
  .newspg .np-leadh { -webkit-line-clamp: 3; }
  .newspg .np-hbg { display: block; position: absolute; inset: -60px; z-index: -3; overflow: hidden; }
  .newspg .np-hbg img { width: 100%; height: 100%; object-fit: cover; filter: blur(56px) saturate(1.35) brightness(.62); transform: scale(1.15); }
  .newspg .np-hscrim { z-index: -2; background: linear-gradient(90deg, rgba(6, 13, 26, .95) 0%, rgba(6, 13, 26, .84) 42%, rgba(6, 13, 26, .4) 75%, rgba(6, 13, 26, .3) 100%),
    linear-gradient(0deg, #060d1a 0%, rgba(6, 13, 26, .4) 22%, transparent 45%); }
  .newspg .np-hmedia { z-index: -1; inset: 44px auto 52px auto; right: max(24px, calc((100% - var(--maxw)) / 2)); width: min(43%, 500px);
    border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1); }
  .newspg .np-hwrap { padding: 22px 24px 52px; }
  .newspg .np-hwrap, .newspg .np-barin, .newspg .np-recent > .wrap, .newspg .np-alerts > .wrap { max-width: calc(var(--maxw) + 48px); }
  .newspg .np-alerts > .wrap, .newspg .np-recent > .wrap { padding: 0 24px; }
  .newspg .np-htop, .newspg .np-lead { max-width: min(54%, 600px); }
  .newspg .np-deck { display: block; }
  .newspg .np-leadsum { -webkit-line-clamp: 3; font-size: 1.0625rem; }
  .newspg .np-lead { text-shadow: none; }
  .newspg .np-alerts { padding: 8px 0 30px; }
  .newspg .np-alrow { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); overflow: visible; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
  .newspg .np-al { height: 140px; padding: 16px 18px; }
  .newspg .np-al:hover { transform: translateY(-2px); }
  .newspg .np-bar { padding: 12px 0; }
  .newspg .np-barin { padding: 0 24px; gap: 12px; }
  .newspg .np-search, .newspg .np-searching .np-search { flex: none; width: 280px; }
  .newspg .np-search input { cursor: text; padding-right: 40px; }
  .newspg .np-search input::placeholder { color: #a9b6c6; }
  .newspg .np-searching .np-segwrap { display: block; }
  .newspg .np-recent { padding: 36px 0 30px; }
  .newspg .np-sh { font-size: 1.75rem; margin-bottom: 18px; }
  .newspg .np-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; max-width: var(--maxw); margin: 0 auto; padding: 4px 24px 0; box-sizing: content-box; }
  .newspg .np-rcard { aspect-ratio: 4 / 5; }
  .newspg .np-rcard .np-ttl { font-size: 1.5rem; }
  .newspg .np-body { padding: 18px 24px 96px; }
  .newspg .np-month { margin-top: 44px; }
  .newspg .np-mh { margin-bottom: 20px; padding-bottom: 16px; }
  .newspg .np-offband { padding: 72px 24px; }
  .newspg .np-official { grid-template-columns: 72px 1fr; gap: 24px; padding: 32px 36px; }
  .newspg .np-offbadge { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .newspg *, .newspg *::before, .newspg *::after { transition: none !important; animation: none !important; }
  .newspg .np-ph img, .newspg .np-lead > *, .newspg .np-rv { opacity: 1 !important; transform: none !important; }
}
