/* =========================================================
   RightNewsRightNow  |  Breaking News layer  v1.0
   Load after tokens.css and rnrn.css on EVERY page:
     <link rel="stylesheet" href="theme/breaking.css">
   Adds: alert bar, Breaking News area (home), the Wire list,
   Latest Updates strip, Breaking News page (hero, filters,
   story threads, day-grouped wire), Breaking nav item,
   quiet footer archive link, article "part of this story" note.
   Everything uses tokens; no new colors except the two noted.
   ========================================================= */

:root {
  --rn-red-ink: #FFE3EA;   /* secondary text on red  (5.6:1 on --rn-red) */
  --rn-pink:    #FF8FA8;   /* kicker on navy/navy-deep (already in spec, 6.0 / 7.5:1) */
  --wire-col:   76px;      /* time column width in the Wire */
}

/* ---------- 1. Alert bar ------------------------------- */
/* One story only. Sits directly under the sticky nav on every page (replaces the old ticker).
   <div class="alert" data-rn-alert data-id="SLUG"> ... </div>  (see spec 4.1) */
.alert { position: relative; background: var(--rn-red); color: #fff; border-bottom: 1px solid var(--rn-red-deep); }
.alert[hidden] { display: none; }
.alert .wrap { display: flex; align-items: center; gap: var(--s-2); min-height: 48px; padding-block: 6px; }
.alert__stamp {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; align-self: stretch;
  margin-block: -6px; padding: 0 var(--s-2) 0 0;
  font: 800 1.0625rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
/* angled chyron block, bleeds to the left edge of the screen */
.alert__stamp::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; right: -6px; left: -100vw;
  background: var(--rn-red-deep); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.alert__stamp > * { position: relative; z-index: 1; }
.alert__stamp .ico { width: 16px; height: 16px; }
.alert__live { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: brk-ping 1.8s var(--ease) infinite; }
.alert__body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px var(--s-2); flex-wrap: wrap; padding-left: var(--s-1); }
.alert__link {
  color: #fff; text-decoration: none; font: 700 1.0625rem/1.3 var(--f-ui);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.alert__link:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.alert__link:focus-visible { outline-color: #fff; box-shadow: none; }
.alert__time { flex: none; font: 600 .9375rem/1.3 var(--f-ui); color: var(--rn-red-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.alert__more {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm);
  background: #fff; color: var(--rn-red); text-decoration: none; font: 800 .9375rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
}
.alert__more:hover { background: var(--rn-navy); color: #fff; }
.alert__more .ico { width: 14px; height: 14px; }
.alert__x { flex: none; width: 44px; height: 44px; color: #fff; }
.alert__x:hover { background: rgba(255,255,255,.16); }
.alert__x .ico { width: 16px; height: 16px; }
@media (max-width: 759px) {
  .alert .wrap { gap: 12px; align-items: flex-start; padding-block: 10px; }
  .alert__stamp { margin-block: -10px; padding-top: 0; align-self: stretch; align-items: center; }
  .alert__stamp span.alert__word { display: none; }       /* bolt + live dot only on phones; full word is in sr text */
  .alert__more { display: none; }                          /* the headline itself is the link on phones */
  .alert__link { font-size: 1rem; }
  .alert__time { font-size: .875rem; }
  .alert__x { margin: -4px -8px -4px 0; }
}

/* ---------- 2. Breaking News area (home, top) ---------- */
/* Desktop >=1100: [ lead story | the Wire ]   Tablet: lead, then Wire   Phone: same, single column */
.bn { padding-block: var(--s-4) var(--s-6); border-bottom: 1px solid var(--rn-rule); }
.bn__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3);
  border-bottom: 3px solid var(--rn-rule-strong); padding-bottom: var(--s-1); margin-bottom: var(--s-4);
}
.bn__title {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--rn-ink);
}
.bn__title::before { content: ""; width: 14px; height: 26px; background: var(--stripes); flex: none; }
.bn__title b { font-weight: 800; color: var(--rn-red); }
.bn__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font: 600 var(--t-small)/1.2 var(--f-ui); color: var(--c-meta); }
@media (max-width: 559px) {
  .bn { padding-top: var(--s-3); }
  .bn__bar { margin-bottom: var(--s-3); }
  .bn__status > span { display: none; }          /* phones: keep only "All breaking news" next to the title */
  .bn__all { white-space: nowrap; }
}
.bn__status time { color: var(--rn-ink); font-variant-numeric: tabular-nums; }
.bn__all { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--t-small)/1 var(--f-ui); color: var(--rn-navy); text-decoration: none; padding: var(--s-1) 0; }
.bn__all:hover { color: var(--rn-red); }
.bn__all .ico { width: 16px; height: 16px; transition: transform var(--d-fast) var(--ease); }
.bn__all:hover .ico { transform: translateX(4px); }

.bn__grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .bn__grid { grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr); gap: var(--s-6); }
  .bn__wire { border-left: 1px solid var(--rn-rule); padding-left: var(--s-5); }
}

/* Lead story: reuses .lead / .lead__title from rnrn.css; these add the breaking furniture */
.bn .lead__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); margin-bottom: var(--s-2); }
.bn .lead__tags .badge { min-height: 26px; }
.bn .lead__media { aspect-ratio: 21 / 9; margin-block: var(--s-3); }
@media (max-width: 559px) { .bn .lead__media { aspect-ratio: 16 / 9; } }
.bn .lead__flag { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; padding: 6px 10px; }
.bn .lead__flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse-dot 1.4s infinite; }
.bn .lead__times { display: flex; flex-wrap: wrap; gap: 4px var(--s-2); margin-bottom: var(--s-1); font: 600 .9375rem/1.3 var(--f-ui); color: var(--c-meta); }
.bn .lead__times b { color: var(--rn-red); font-weight: 700; }

/* Story-thread chip: "FAA ground stop  ·  6 updates"  (links to the thread on the Breaking page) */
.thread-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-sm);
  background: var(--rn-blush); color: var(--rn-red-deep); text-decoration: none;
  font: 700 .875rem/1 var(--f-ui); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(179,25,66,.25);
  transition: background var(--d-fast), color var(--d-fast);
}
.thread-chip:hover { background: var(--rn-red); color: #fff; }
.thread-chip .ico { width: 14px; height: 14px; }
.thread-chip__n { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .9; }
.thread-chip__n::before { content: "\00B7"; margin-right: 8px; }
.badge--dev { background: var(--rn-ink); }    /* "Developing" */

/* "Follow this story": the 3 newest other items in the lead's thread */
.follow { margin-top: var(--s-3); border-top: 3px solid var(--rn-red); padding-top: var(--s-2); }
.follow__h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-1); font: 800 var(--t-micro)/1 var(--f-ui); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--rn-red); }
.follow__h a { font: 700 .9375rem/1 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--rn-navy); text-decoration: none; }
.follow__h a:hover { color: var(--rn-red); text-decoration: underline; }
.follow__list { list-style: none; display: grid; gap: 0; }
@media (min-width: 760px) { .follow__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); } }
.follow__item { padding: 12px 0; border-bottom: 1px solid var(--rn-rule); }
@media (min-width: 760px) { .follow__item { border-bottom: 0; padding: 0; } }
.follow__item time { display: block; margin-bottom: 4px; font: 700 .875rem/1 var(--f-ui); color: var(--rn-red); font-variant-numeric: tabular-nums; }
.follow__item a { font: 700 1.1875rem/1.2 var(--f-display); color: var(--rn-ink); text-decoration: none; }
.follow__item a:hover { color: var(--rn-red); }

/* ---------- 3. The Wire (the signature) ---------------- */
/* A timestamped list on a red "wire" line. Newest first. Used on the home page (8 items)
   and the Breaking page (all items, grouped by day).
   <ol class="wire"><li class="wire__item is-new" data-cat="politics" data-thread="faa-ground-stop">
     <div class="wire__when"><time datetime="ISO">2:14 PM</time><span class="wire__ago" data-rn-since="ISO">18 min ago</span></div>
     <div class="wire__what"><a class="kicker">Politics</a><a class="wire__link">Headline</a><div class="meta">Source: <b>Outlet</b></div></div>
   </li></ol> */
.wire__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.wire__title { display: flex; align-items: center; gap: 10px; font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; color: var(--rn-navy); }
.wire__title .alert__live { background: var(--rn-red); box-shadow: 0 0 0 0 rgba(179,25,66,.5); animation-name: pulse; }
.wire__tz { font: 600 .8125rem/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--c-meta); }

.wire { list-style: none; position: relative; counter-reset: none; }
.wire__item {
  position: relative; display: grid; grid-template-columns: var(--wire-col) minmax(0, 1fr); gap: 0 var(--s-3);
  padding-bottom: var(--s-3);
}
/* the wire itself: a 2px red line through the dots */
.wire__item::before {
  content: ""; position: absolute; left: calc(var(--wire-col) + 23px); top: 12px; bottom: -12px; width: 2px;
  background: linear-gradient(var(--rn-red), var(--rn-red)) 0 0 / 2px 100% no-repeat, var(--rn-rule);
}
.wire__item:last-child::before { background: linear-gradient(var(--rn-red), transparent); }
/* node */
.wire__item::after {
  content: ""; position: absolute; left: calc(var(--wire-col) + 18px); top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 3px var(--rn-red);
}
.wire__item.is-new::after { background: var(--rn-red); box-shadow: 0 0 0 0 rgba(179,25,66,.5); animation: pulse 2s infinite; }
.wire__when { text-align: right; padding-top: 2px; }
.wire__when time { display: block; font: 700 1.0625rem/1.1 var(--f-display); color: var(--rn-slate); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.wire__item.is-new .wire__when time { color: var(--rn-red); }
.wire__ago { display: block; margin-top: 4px; font: 600 .8125rem/1.2 var(--f-ui); color: var(--c-meta); }
.wire__ago:empty { display: none; }
.wire__day { display: block; margin-top: 4px; font: 700 .8125rem/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--c-meta); }
.wire__what { padding-left: var(--s-3); min-width: 0; }
.wire__what .kicker { margin-bottom: 6px; }
.wire__new { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 3px; background: var(--rn-red); color: #fff; font: 800 .6875rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px; }
.wire__link { display: block; font: 700 1.25rem/1.22 var(--f-display); color: var(--rn-ink); text-decoration: none; letter-spacing: .005em; }
.wire__link:hover { color: var(--rn-red); }
.wire__link:visited { color: #4A3A63; }
.wire__what .meta { margin-top: 6px; font-size: .875rem; }
.wire__thread { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 700 .8125rem/1 var(--f-ui); color: var(--rn-red-deep); text-decoration: none; }
.wire__thread::before { content: ""; width: 10px; height: 2px; background: currentColor; }
.wire__thread:hover { text-decoration: underline; }
.wire__foot { margin-top: var(--s-1); padding-left: calc(var(--wire-col) + var(--s-3) + var(--s-3)); }
@media (max-width: 559px) {
  :root { --wire-col: 60px; }
  .wire__item { gap: 0 var(--s-2); }
  .wire__item::before { left: calc(var(--wire-col) + 19px); }
  .wire__item::after { left: calc(var(--wire-col) + 14px); }
  .wire__what { padding-left: var(--s-3); }
  .wire__when time { font-size: 1rem; }
  .wire__link { font-size: 1.1875rem; }
  .wire__foot { padding-left: 0; }
  .wire__foot .btn { width: 100%; }
}
/* Hidden by a filter on the Breaking page */
.wire__item[hidden], .wire-day[hidden] { display: none; }

/* ---------- 4. Latest Updates strip (home) ------------- */
/* Six section columns. >=1280: one row of 6. 760-1279: 3 x 2. Phones: swipeable row, one-and-a-bit cards visible. */
.lu { padding-block: var(--s-6); background: var(--rn-linen); border-bottom: 1px solid var(--rn-rule); }
.lu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); }
.lu__head .sec-head { flex: 1; }
.lu__nav { display: none; gap: var(--s-1); margin-bottom: var(--s-3); }
.lu__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rn-rule); background: #fff; color: var(--rn-navy); cursor: pointer; }
.lu__btn:hover { border-color: var(--rn-navy); }
.lu__btn[disabled] { opacity: .4; cursor: default; }
.lu__btn--prev .ico { transform: rotate(180deg); }
.lu__track { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1280px) { .lu__track { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); } }
@media (max-width: 759px) {
  .lu__nav { display: flex; }
  .lu__track {
    display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s-2); scrollbar-width: none;
  }
  .lu__track::-webkit-scrollbar { display: none; }
  .lu__col { flex: 0 0 min(82vw, 320px); scroll-snap-align: start; }
}
.lu__col {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-1);
  padding: var(--s-2) var(--s-2) var(--s-1); border-top: 4px solid var(--rn-navy); transition: box-shadow var(--d-med) var(--ease), transform var(--d-med) var(--ease);
}
.lu__col:hover { box-shadow: var(--sh-2); }
.lu__col[data-cat="border"]  { border-top-color: var(--rn-ink); }
.lu__col[data-cat="economy"] { border-top-color: #12406E; }
.lu__col[data-cat="world"]   { border-top-color: #1B2B44; }
.lu__col[data-cat="culture"] { border-top-color: var(--rn-red); }
.lu__col[data-cat="opinion"] { border-top-color: var(--rn-red); background: #fff linear-gradient(var(--rn-linen), #fff 64px); }
.lu__cat { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-1); }
.lu__ill { width: 32px; height: 32px; flex: none; color: var(--rn-navy); }
.lu__col[data-cat="culture"] .lu__ill, .lu__col[data-cat="opinion"] .lu__ill { color: var(--rn-red); }
.lu__label { font: 800 1.25rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.lu__label a { color: var(--rn-ink); text-decoration: none; }
.lu__label a:hover { color: var(--rn-red); }
.lu__list { list-style: none; flex: 1; }
.lu__item { padding: 12px 0; border-top: 1px solid var(--rn-rule); }
.lu__item time { display: block; margin-bottom: 4px; font: 700 .8125rem/1 var(--f-ui); color: var(--rn-red); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lu__item a { font: 700 1.0625rem/1.25 var(--f-display); color: var(--rn-ink); text-decoration: none; letter-spacing: .005em; }
.lu__item a:hover { color: var(--rn-red); }
.lu__item a:visited { color: #4A3A63; }
.lu__col[data-cat="opinion"] .lu__item a { font: 600 italic 1.0625rem/1.3 var(--f-read); }
.lu__more { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid var(--rn-rule); font: 700 .9375rem/1 var(--f-ui); color: var(--rn-navy); text-decoration: none; }
.lu__more:hover { color: var(--rn-red); }
.lu__more .ico { width: 16px; height: 16px; }

/* ---------- 5. Breaking News page ---------------------- */
.bn-hero { position: relative; overflow: hidden; background: var(--rn-navy-deep); color: #fff; }
.bn-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.09) 1.2px, transparent 1.6px); background-size: 28px 28px; mask-image: linear-gradient(90deg, #000 30%, transparent 85%); }
/* the 13 stripes, set vertically on the right like a flag's fly end */
.bn-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: clamp(48px, 12vw, 180px); background: repeating-linear-gradient(to bottom, var(--rn-red) 0 7.69%, var(--rn-navy-deep) 7.69% 15.38%); opacity: .9; }
.bn-hero .wrap { position: relative; z-index: 1; display: grid; gap: var(--s-2); padding-block: var(--s-5) var(--s-4); padding-right: calc(var(--gutter) + clamp(56px, 13vw, 200px)); }
@media (max-width: 759px) {
  /* phones: the stripes become a thin 13-stripe band along the bottom edge instead of a side column */
  .bn-hero::after { top: auto; left: 0; width: auto; height: 26px; background: var(--stripes); opacity: 1; }
  .bn-hero .wrap { padding-right: var(--gutter); padding-block: var(--s-4) calc(26px + var(--s-3)); gap: 12px; }
}
.bn-hero .crumbs a { color: var(--rn-sky); }
.bn-hero .crumbs li + li::before { color: rgba(255,255,255,.35); }
.bn-hero .crumbs [aria-current] { color: #fff; }
.bn-hero__live { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--t-micro)/1 var(--f-ui); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--rn-pink); }
.bn-hero__live .alert__live { background: var(--rn-pink); }
.bn-hero__title { margin: 0; font: 800 clamp(3rem, 2rem + 5vw, 6rem)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; color: #fff; }
.bn-hero__title span { display: inline-block; background: var(--rn-red); padding: .02em .18em 0; border-radius: var(--r-sm); margin-left: .08em; }
.bn-hero__dek { margin: 0; max-width: 56ch; font: 400 var(--t-dek)/1.5 var(--f-read); color: var(--rn-sky); }
.bn-hero__stats { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-1); list-style: none; font: 600 var(--t-small)/1.2 var(--f-ui); color: var(--rn-sky); }
.bn-hero__stats b { font: 800 1.75rem/1 var(--f-display); color: #fff; margin-right: 6px; font-variant-numeric: tabular-nums; vertical-align: -2px; }

/* Filter bar: sticks under the nav */
/* Sticky stack: nav 56px + filters 64px = 120px. Day separators stick at 120px. Keep these three numbers in step. */
.filters { position: sticky; top: 56px; z-index: calc(var(--z-nav) - 1); height: 64px; background: #fff; border-bottom: 1px solid var(--rn-rule); }
.filters .wrap { display: flex; align-items: center; gap: var(--s-2); height: 100%; }
.filters__label { flex: none; font: 800 var(--t-micro)/1 var(--f-ui); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--c-meta); }
.filters__row { display: flex; align-items: center; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
@media (max-width: 1099px) { .filters__row { mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: var(--s-4); } }
.filters__sep { flex: none; width: 1px; height: 24px; margin-inline: var(--s-1); background: var(--rn-rule); }
.filters__row::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; white-space: nowrap; min-height: 40px; padding-inline: 14px; }
@media (min-width: 1100px) { .filters .chip { padding-inline: 12px; font-size: .9375rem; } }
@media (min-width: 1100px) and (max-width: 1499px) { .filters__label { display: none; } }
.chip--thread { border-color: rgba(179,25,66,.35); color: var(--rn-red-deep); }
.chip--thread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rn-red); margin-right: 8px; }
.chip--thread:hover { border-color: var(--rn-red); color: var(--rn-red-deep); }
.chip--thread[aria-pressed="true"] { background: var(--rn-red); border-color: var(--rn-red); color: #fff; }
.chip--thread[aria-pressed="true"]::before { background: #fff; }
.filters__count { flex: none; margin-left: auto; font: 600 .9375rem/1 var(--f-ui); color: var(--c-meta); white-space: nowrap; }
@media (max-width: 759px) { .filters__label, .filters__count { display: none; } }

/* Story threads: one block per developing story */
.threads { padding-block: var(--s-5) var(--s-2); }
.threads__grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .threads__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* equal header heights so both timelines start on one line (subgrid; older browsers just stack naturally) */
  @supports (grid-template-rows: subgrid) {
    .threads__grid { grid-auto-rows: auto; }
    .threads__grid > .thread { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0; }
  }
}
.thread { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--rn-rule); overflow: hidden; scroll-margin-top: 140px; }
.thread:target { box-shadow: 0 0 0 3px var(--c-focus), var(--sh-2); }
.thread__head { position: relative; padding: var(--s-3); background: var(--rn-navy); color: #fff; overflow: hidden; }
.thread__ill { position: absolute; right: -8px; bottom: -18px; width: 132px; color: rgba(255,255,255,.10); }
.thread__status { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); margin-bottom: 12px; }
.thread__status .badge { box-shadow: none; }
.thread__status .badge--live { background: var(--rn-red); }
.thread__upd { font: 600 .875rem/1 var(--f-ui); color: var(--rn-sky); font-variant-numeric: tabular-nums; }
.thread__title { position: relative; font: 800 clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: #fff; margin-bottom: var(--s-1); }
.thread__dek { position: relative; max-width: 46ch; margin: 0; font: 400 1.0625rem/1.5 var(--f-read); color: var(--rn-sky); }
.thread__body { padding: var(--s-3) var(--s-3) var(--s-1); }
.thread__body .wire { --wire-col: 68px; }
.thread__body .wire__when time { font-size: 1.0625rem; }
.thread__body .wire__link { font-size: 1.125rem; }
.thread__foot { margin-top: auto; padding: 0 var(--s-3) var(--s-3); }
.thread__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 var(--t-small)/1 var(--f-ui); color: var(--rn-navy); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.thread__more:hover { color: var(--rn-red); }
.thread__more .ico { width: 16px; height: 16px; transition: transform var(--d-fast); }
.thread__more[aria-expanded="true"] .ico { transform: rotate(90deg); }
.thread [data-thread-extra][hidden] { display: none; }
.thread__dek { padding-right: 96px; }
@media (max-width: 559px) { .thread__dek { padding-right: 0; } .thread__ill { width: 96px; bottom: -24px; } }

/* All breaking: wire grouped by day + rail */
.bn-page { display: grid; gap: var(--s-6); padding-block: var(--s-4) var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .bn-page { grid-template-columns: minmax(0, 1fr) var(--w-rail); } }
.wire-day + .wire-day { margin-top: var(--s-3); }
.daysep {
  position: sticky; top: 120px; z-index: 2; display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3);
  padding: 10px 0; background: #fff; box-shadow: 0 8px 8px -8px rgba(14,23,38,.18);
  font: 800 1.125rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--rn-navy);
}
.daysep::after { content: ""; flex: 1; height: 3px; background: var(--rn-rule-strong); }
.daysep small { font: 600 .875rem/1 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--c-meta); }
.wire-day .wire { scroll-margin-top: 170px; }
.threads, #all { scroll-margin-top: 136px; }
.wire-empty { padding: var(--s-4); border-radius: var(--r-md); background: var(--rn-linen); font: 400 var(--t-body)/1.5 var(--f-ui); }
.wire-empty[hidden] { display: none; }
.wire-empty button { margin-top: var(--s-2); }

/* ---------- 6. Nav: Breaking first --------------------- */
/* Desktop list item 1:  <li><a class="nav__link nav__link--brk" href="breaking/index.html"><span class="brk-navpill"><span class="alert__live"></span>Breaking News</span></a></li> */
.nav__link--brk::after { display: none; }
.brk-navpill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 6px; border-radius: var(--r-sm);
  background: var(--rn-red); color: #fff; box-shadow: inset 0 -3px 0 var(--rn-red-deep); transition: background var(--d-fast);
}
.brk-navpill .alert__live { width: 7px; height: 7px; }
.nav__link--brk:hover { background: transparent; }
.nav__link--brk:hover .brk-navpill { background: var(--rn-red-deep); }
.nav__link--brk[aria-current="page"] .brk-navpill { background: #fff; color: var(--rn-red); box-shadow: none; }
.nav__link--brk[aria-current="page"] .alert__live { background: var(--rn-red); }
.nav__link--brk:focus-visible { outline-offset: -4px; }

/* Phones/tablets (<900px): section list is in the drawer, so Breaking gets its own pill in the bar */
.nav__brk-m { display: none; }
@media (max-width: 899px) {
  .nav__brk-m {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; flex-shrink: 0; border-radius: var(--r-sm);
    background: var(--rn-red); color: #fff; text-decoration: none; box-shadow: inset 0 -3px 0 var(--rn-red-deep);
    font: 800 1.125rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  }
  .nav__brk-m:hover { background: var(--rn-red-deep); color: #fff; }
  .nav__brk-m .alert__live { width: 7px; height: 7px; }
  .nav__brk-m[aria-current="page"] { background: #fff; color: var(--rn-red); box-shadow: none; }
  .nav__brk-m[aria-current="page"] .alert__live { background: var(--rn-red); }
  .nav .nav__tools { margin-left: auto; }
}
@media (max-width: 359px) { .nav__brk-m .brk-word { display: none; } .nav__brk-m::after { content: "Breaking"; } }

/* Drawer: Breaking News is row 1 */
.drawer__list a.drawer__brk { justify-content: flex-start; gap: 12px; color: #fff; background: var(--rn-red); margin: 0 calc(-1 * var(--s-3)) var(--s-1); padding-inline: var(--s-3); border-bottom: 0; }
.drawer__list a.drawer__brk .ico { margin-left: auto; }
.drawer__list a.drawer__brk[aria-current="page"] { color: #fff; box-shadow: inset 6px 0 0 #fff; }

/* ---------- 7. Footer: the one quiet election link ------ */
/* In .foot__bottom, after the copyright line:  <a class="foot__archive" href="election/index.html">Election Results Archive</a> */
.foot__bottom .foot__archive { color: var(--rn-sky); font: 500 .875rem/1 var(--f-ui); text-decoration: underline; text-decoration-color: rgba(220,230,242,.35); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot__bottom .foot__archive:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- 8. Article page: "Part of this story" ------- */
/* Optional, above the Source box on any article with a thread. */
.thread-note { max-width: var(--w-read); margin-block: var(--s-4); display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s-2); align-items: center; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--rn-blush); border-left: 6px solid var(--rn-red); }
.thread-note__k { font: 800 var(--t-micro)/1 var(--f-ui); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--rn-red-deep); }
.thread-note__t { grid-column: 1 / -1; font: 800 1.5rem/1.1 var(--f-display); text-transform: uppercase; color: var(--rn-ink); }
.thread-note__t a { color: inherit; text-decoration: none; }
.thread-note__t a:hover { color: var(--rn-red); }
.thread-note__n { grid-column: 1 / -1; font: 500 .9375rem/1.4 var(--f-ui); color: var(--rn-slate); margin: 0; }

/* ---------- 9. Motion ---------------------------------- */
@keyframes brk-ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes brk-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes brk-flash { 0% { background: var(--rn-blush); } 100% { background: transparent; } }
/* Alert bar slides in once on load */
.alert:not([hidden]) .alert__body { animation: brk-in .5s var(--ease) .15s both; }
/* An item that arrived since the reader's last visit flashes once */
.wire__item.is-fresh .wire__what { animation: brk-flash 2.4s var(--ease) both; border-radius: var(--r-sm); }

@media (prefers-reduced-motion: reduce) {
  .alert__live, .wire__item.is-new::after, .bn .lead__flag::before { animation: none !important; }
  .alert:not([hidden]) .alert__body, .wire__item.is-fresh .wire__what { animation: none !important; }
  .lu__track { scroll-behavior: auto; }
}

/* ---------- 10. Print -------------------------------------- */
@media print { .alert, .filters, .lu__nav, .nav__brk-m { display: none !important; } }
