/* site.css: the public Digitalage News pages, in an editorial style:
   a newspaper nameplate, a latest-news ticker, serif headlines (Newsreader),
   uppercase section kickers and thin column rules. Builds on ui.css; the
   story itself is styled in article.css (shared with the admin preview).
   When this file changes, bump newsCSSVersion in news_public_templates.go. */

body.nws-page { background: var(--bg); color: var(--fg-2); }
main { display: block; outline: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brand); text-decoration: none; line-height: 1.2;
}
a.kicker:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.kicker--dark { color: var(--ink); }
.kicker--live { color: var(--live); display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------ top bar */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg); font-size: 12.5px; color: var(--muted-fg); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar a, .topbar button { color: var(--muted-fg); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12.5px; }
.topbar a:hover, .topbar button:hover { color: var(--ink); }
.topbar__date { font-weight: 600; color: var(--ink); }
@media (max-width: 1080px) { .topbar { display: none; } }
.topbar span, .topbar a { white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(9, 9, 11, 0.35); }
.hdr { display: flex; align-items: center; gap: 22px; height: 60px; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.nws-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.nws-logo .logo__img { height: 26px; width: auto; }
.nws-logo__word {
  font-family: var(--serif); font-size: 22px; font-weight: 600; font-style: italic; letter-spacing: -0.01em; color: var(--ink);
  padding-left: 10px; border-left: 1px solid var(--border-strong); line-height: 1;
}
.hdr-nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.hdr-nav a {
  position: relative; z-index: 1; padding: 7px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color 0.15s;
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a.is-active { color: var(--ink); }
.hdr-nav a.is-active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -12px; height: 3px; background: var(--brand-bright); }
.hdr-nav__pill { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 8px; background: var(--muted); opacity: 0; pointer-events: none; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-menu { display: none; }
@media (max-width: 640px) {
  .hdr { height: 56px; padding: 0 16px; gap: 12px; }
  .nws-logo .logo__img { height: 22px; }
  .nws-logo__word { font-size: 19px; padding-left: 8px; }
  .hdr-cta, .hdr-rss { display: none; }
}

/* article: compact story bar replaces the nav once the headline scrolls away */
.hdr-story { display: none; }
.site-header.is-reading .hdr-story {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin-left: 8px;
  animation: story-in 0.35s var(--ease-out) both;
}
.site-header.is-reading .hdr-nav { display: none; }
.hdr-story__kicker { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); }
.hdr-story__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; }
.hdr-story__share { flex: none; }
@keyframes story-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .site-header.is-reading .nws-logo__word, .site-header.is-reading .nws-logo .logo__img { display: none; }
  .site-header.is-reading .nws-logo::before { content: ""; width: 22px; height: 22px; border-radius: 5px; background: url("/static/icons/favicon-32x32.png") center / cover; }
  .hdr-story__kicker, .hdr-story__share span { display: none; }
  .hdr-story__title { font-size: 15.5px; }
}

/* phones: the header slides away while reading down */
.site-header { transition: box-shadow 0.2s, transform 0.3s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
.nws-progress { transition: top 0.3s var(--ease-out); }

/* phones: bottom action bar on article pages */
.read-dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55;
  display: none; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px; border-radius: 16px;
  background: rgba(17, 17, 17, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5); transform: translateY(140%); transition: transform 0.35s var(--ease-out);
}
@media (max-width: 760px) { .read-dock { display: grid; } }
.read-dock.is-on { transform: none; }
.read-dock__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 50px; border: 0; border-radius: 12px;
  background: transparent; color: #e4e4e7; font: 600 11px/1 var(--font); text-decoration: none; cursor: pointer;
}
.read-dock__btn:active, .read-dock__btn.is-on { background: rgba(255, 255, 255, 0.12); color: #fff; }
.read-dock__btn .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .read-dock, .site-header { transition: none; } }

/* article: Listen button */
.news-a-listen.is-on { background: var(--brand-soft); border-color: rgba(74, 157, 204, 0.45); color: var(--brand-strong); }

/* article: a related story inside the text */
.inline-related {
  display: grid; gap: 4px; margin: 6px 0 26px; padding: 14px 16px; border-left: 3px solid var(--brand-bright);
  background: var(--paper); font-family: var(--font); max-width: 68ch;
}
.inline-related__label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-fg); }
.inline-related__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.inline-related__link { font-family: var(--serif); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); text-decoration: none; }
.inline-related__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* article: citation preview */
.cite-pop {
  position: absolute; z-index: 60; width: min(320px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-family: var(--font);
}
.cite-pop p { margin: 0; }
.cite-pop__num { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.cite-pop__title { margin-top: 6px !important; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.cite-pop__meta { margin-top: 4px !important; font-size: 12.5px; line-height: 1.45; color: var(--muted-fg); }
.cite-pop__actions { display: flex; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.cite-pop__actions a { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.cite-pop__actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: none) and (max-width: 760px) {
  .cite-pop { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: 18px 18px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); z-index: 70; }
}

/* Mobile menu (a sheet) */
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.sheet-head img { height: 24px; width: auto; }
.sheet-label { margin: 18px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 2px;
  border-bottom: 1px solid var(--border); font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.sheet-nav a:hover { color: var(--brand); }
.sheet-nav a.is-active { color: var(--brand); }
.sheet-nav a svg { color: var(--muted-fg); }
.sheet-nav--small a { font-family: var(--font); font-size: 14.5px; font-weight: 500; color: var(--fg-2); padding: 9px 2px; border-bottom: 0; }
.sheet-cta { margin-top: auto; width: 100%; }
.sheet-foot { margin: 16px 0 0; font-size: 12px; color: var(--muted-fg); text-align: center; }

/* ------------------------------------------------------- latest ticker */
.ticker { border-bottom: 1px solid var(--border); background: var(--paper); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 16px; height: 42px; }
.ticker__label {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 4px;
  background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.ticker__label .live-dot { background: var(--bg); }
.ticker__label .live-dot::after { display: none; }
time.is-fresh, .nws-rail__time time.is-fresh { color: var(--live); font-weight: 700; }
.ticker__viewport {
  position: relative; flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0 0 0 24px; }
.ticker__list li { display: flex; align-items: center; white-space: nowrap; font-size: 14px; }
.ticker__list li::after { content: ""; width: 4px; height: 4px; margin: 0 22px; border-radius: 50%; background: var(--border-strong); }
.ticker__list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ticker__list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.ticker__list .kicker { margin-right: 8px; font-size: 10.5px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .ticker__list[aria-hidden] { display: none; }
}

.live-dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--live); opacity: 0.35; animation: live-pulse 2s var(--ease-out) infinite; }
@keyframes live-pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }

/* reading progress */
.nws-progress { position: fixed; left: 0; right: 0; top: 60px; z-index: 49; height: 3px; pointer-events: none; }
.nws-progress span { display: block; height: 100%; background: var(--brand-bright); transform-origin: 0 50%; transform: scaleX(0); }

/* ------------------------------------------------------------- nameplate */
.nameplate { padding-top: 30px; text-align: center; }
.nameplate__meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  padding: 9px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2);
}
.nameplate__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.nameplate__meta button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.nameplate__meta button:hover { text-decoration: underline; text-underline-offset: 3px; }
.nameplate__title {
  margin: 24px 0 8px; font-family: var(--serif); font-size: clamp(46px, 8vw, 96px); line-height: 0.95; font-weight: 600;
  letter-spacing: -0.035em; color: var(--ink);
}
.nameplate__tag { margin: 0 auto; max-width: 62ch; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; color: var(--muted-fg); }

/* section bar (category links under the nameplate) */
.nws-tabs { margin: 22px 0 0; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); }
.nws-tabs__track { position: relative; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 4px; }
.nws-tabs__track::-webkit-scrollbar { display: none; }
.nws-tabs a {
  position: relative; z-index: 1; padding: 12px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color 0.2s;
}
.nws-tabs a:hover { color: var(--ink); }
.nws-tabs a.is-active { color: var(--brand); }
.nws-tabs a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--brand-bright); }
.nws-tabs.has-indicator a.is-active::after { display: none; }
.nws-tabs__indicator { position: absolute; z-index: 0; bottom: 0; left: 0; height: 3px; background: var(--brand-bright); }
@media (max-width: 640px) {
  .nameplate { padding-top: 18px; }
  .nameplate__meta { font-size: 10.5px; gap: 4px 14px; }
  .nameplate__meta .hide-sm { display: none; }
  .nws-tabs__track { justify-content: flex-start; }
}

/* category page head */
.sect-head { padding-top: 30px; }
.sect-head__back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); text-decoration: none; }
.sect-head__back:hover { color: var(--ink); }
.sect-head__title { margin: 14px 0 8px; font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.sect-head__lede { margin: 0; max-width: 60ch; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--muted-fg); }
.sect-head .nws-tabs__track { justify-content: flex-start; }

/* ------------------------------------------------------------ section label */
.rule-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-top: 10px; border-top: 3px solid var(--rule);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.rule-label a { margin-left: auto; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--muted-fg); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.rule-label a:hover { color: var(--ink); }

/* stretched links: the whole story is clickable */
.nws-stretch { color: inherit; text-decoration: none; }
.nws-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nws-card .kicker, .nws-feature .kicker, .nws-rail__item .kicker, .nws-popular__item .kicker { position: relative; z-index: 2; }
.nws-card__title a, .nws-feature__title a, .nws-rail__title a, .nws-popular__title a {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 96%;
  transition: background-size 0.35s var(--ease-out);
}
.nws-card:hover .nws-card__title a, .nws-feature:hover .nws-feature__title a, .nws-rail__item:hover .nws-rail__title a, .nws-popular__item:hover .nws-popular__title a { background-size: 100% 1px; }

.nws-meta { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted-fg); }
.nws-meta time { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ front page */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding-top: 28px; }
.front > .nws-feature { padding-right: 32px; }
.front > .nws-rail { padding-left: 32px; border-left: 1px solid var(--border); }
@media (max-width: 960px) {
  .front { grid-template-columns: 1fr; }
  .front > .nws-feature { padding-right: 0; }
  .front > .nws-rail { padding-left: 0; border-left: 0; margin-top: 32px; }
}

.nws-feature { position: relative; display: flex; flex-direction: column; }
.nws-feature__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--muted); border-radius: 4px; margin-bottom: 20px; }
.nws-feature__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.nws-feature:hover .nws-feature__thumb img { transform: scale(1.03); }
.nws-feature__body { display: flex; flex-direction: column; gap: 12px; }
.nws-feature__kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0; }
.nws-feature__title {
  margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink); text-wrap: balance;
}
.nws-feature__dek { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--fg-2); max-width: 60ch; }
.nws-feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.nws-readmore { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nws-readmore svg { transition: transform 0.25s var(--ease-out); }
.nws-feature:hover .nws-readmore svg { transform: translateX(3px); }
.nws-feature:not(.nws-feature--img) .nws-feature__title { font-size: clamp(38px, 5.4vw, 68px); }
.nws-feature:not(.nws-feature--img) .nws-feature__dek { font-size: clamp(19px, 2vw, 24px); }
.nws-feature:not(.nws-feature--img) .nws-feature__body { padding: 8px 0 0; }

.nws-rail__list { list-style: none; margin: 0; padding: 0; }
.nws-rail__item { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.nws-rail__item:last-child { border-bottom: 0; }
.nws-rail__time { grid-row: span 3; font-size: 12px; font-weight: 600; color: var(--muted-fg); font-variant-numeric: tabular-nums; padding-top: 1px; line-height: 1.3; white-space: nowrap; }
.nws-rail__title { margin: 4px 0 2px; font-family: var(--serif); font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.nws-rail__item .nws-meta { font-size: 12px; }

/* ------------------------------------------------------------ most read */
.nws-popular { margin: 44px 0 0; padding: 26px 0 34px; background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nws-popular .rule-label { margin-bottom: 18px; }
.nws-popular__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: pop; }
.nws-popular__item { position: relative; counter-increment: pop; padding: 0 22px; border-left: 1px solid var(--border-strong); }
.nws-popular__item:first-child { padding-left: 0; border-left: 0; }
.nws-popular__item::before { content: counter(pop); display: block; margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; font-weight: 500; color: var(--brand-bright); }
.nws-popular__title { margin: 8px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.28; font-weight: 600; color: var(--ink); }
@media (max-width: 1040px) { .nws-popular__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } .nws-popular__item:nth-child(4) { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) {
  .nws-popular__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .nws-popular__item, .nws-popular__item:nth-child(4) { flex: 0 0 70%; scroll-snap-align: start; padding: 0 16px; border-left: 1px solid var(--border-strong); }
  .nws-popular__item:first-child { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------ story grid */
.sec { padding-block: 40px 8px; }
.nws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nws-grid > .nws-card { padding: 20px 24px 24px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nws-grid > .nws-card:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.nws-grid > .nws-card:nth-child(3n) { padding-right: 0; }
@media (max-width: 960px) {
  .nws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nws-grid > .nws-card, .nws-grid > .nws-card:nth-child(3n + 1), .nws-grid > .nws-card:nth-child(3n) { padding: 20px 20px 24px; border-left: 1px solid var(--border); }
  .nws-grid > .nws-card:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .nws-grid > .nws-card:nth-child(2n) { padding-right: 0; }
}
@media (max-width: 640px) {
  .nws-grid { grid-template-columns: 1fr; }
  .nws-grid > .nws-card:nth-child(n) { padding: 16px 0 18px; border-left: 0; }
  /* phones: headline left, small picture right, like the big news apps */
  .nws-grid > .nws-card--img { display: grid; grid-template-columns: minmax(0, 1fr) 104px; column-gap: 14px; align-items: start; }
  .nws-grid > .nws-card--img .nws-card__thumb { grid-column: 2; grid-row: 1; margin: 2px 0 0; aspect-ratio: 1 / 1; border-radius: 4px; }
  .nws-grid > .nws-card--img .nws-card__body { grid-column: 1; grid-row: 1; }
  .nws-grid > .nws-card--img .nv2-ai-badge { left: 4px; right: 4px; bottom: 4px; padding: 2px 4px; font-size: 9.5px; text-align: center; }
  .nws-grid > .nws-card .nws-card__title { font-size: 19px; }
  .nws-grid > .nws-card--img .nws-card__dek { -webkit-line-clamp: 2; }
}
.nws-card { position: relative; display: flex; flex-direction: column; }
.nws-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--muted); border-radius: 4px; margin-bottom: 14px; }
.nws-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.nws-card:hover .nws-card__thumb img { transform: scale(1.04); }
.nws-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nws-card__body .kicker { align-self: flex-start; }
.nws-card__title { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.22; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.nws-card__dek { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nws-card .nws-meta { margin-top: 2px; }

/* AI image badge on thumbnails */
.nv2-ai-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px;
  background: rgba(9, 9, 11, 0.72); color: #fff; font-size: 11px; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---------------------------------------------------------- pager, empty */
.nws-pager { display: flex; justify-content: space-between; gap: 12px; padding-block: 28px 56px; }
.nws-empty { padding-block: 56px 72px; }
.nws-empty__box { max-width: 480px; margin: 0 auto; text-align: center; padding: 36px 28px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--border); }
.nws-empty__icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--border); color: var(--muted-fg); }
.nws-empty__title { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.nws-empty p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-fg); }
.nws-empty a { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------ article page */
.nv2-article-wrap { max-width: 780px; padding-top: 28px; padding-bottom: 36px; }
.nv2-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
.nv2-crumbs a { color: var(--muted-fg); text-decoration: none; transition: color 0.15s; }
.nv2-crumbs a:hover { color: var(--ink); }
.nv2-crumbs a:last-child { color: var(--brand); }
.nv2-crumbs svg { width: 13px; height: 13px; color: var(--border-strong); }

.nv2-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 0; padding: 14px 0; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--border); }
.nv2-share__label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.nv2-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }

.nv2-howmade { margin: 24px 0 0; padding: 0 20px; border-radius: 6px; background: var(--paper); border: 1px solid var(--border); }
.nv2-howmade[open] { padding-bottom: 18px; }
.nv2-howmade__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 0; list-style: none; cursor: pointer; }
.nv2-howmade__head::-webkit-details-marker { display: none; }
.nv2-howmade[open] .nv2-howmade__head { margin-bottom: 4px; }
.nv2-howmade__toggle { margin-left: auto; width: 8px; height: 8px; border: solid var(--muted-fg); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; flex: none; }
.nv2-howmade[open] .nv2-howmade__toggle { transform: translateY(2px) rotate(-135deg); }
.nv2-howmade__head:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }
.nv2-howmade__icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.nv2-howmade h2 { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.nv2-howmade p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--fg-2); }
.nv2-howmade p:last-child { margin: 0; }
.nv2-howmade a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; text-decoration-color: rgba(44, 122, 166, 0.35); }

.nws-related { padding: 34px 0 52px; border-top: 1px solid var(--border); background: var(--paper); }

/* ------------------------------------------------------- standards pages */
.nws-doc-wrap { padding-top: 32px; padding-bottom: 64px; }
.nws-doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .nws-doc-grid { grid-template-columns: 1fr; gap: 36px; } .nws-doc-nav { position: static; } }
.nws-doc { max-width: 720px; font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--fg-2); }
.nws-doc__title { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.nws-doc .nws-doc__lede { font-size: 22px; line-height: 1.5; color: var(--fg-2); margin: 0 0 28px; padding: 0 0 28px; border-bottom: 1px solid var(--border); }
.nws-doc h2 { margin: 36px 0 10px; padding-top: 10px; border-top: 3px solid var(--rule); font-family: var(--font); font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.nws-doc p { margin: 0 0 14px; }
.nws-doc ul { margin: 0 0 16px; padding: 0; list-style: none; }
.nws-doc li { position: relative; padding-left: 24px; margin: 0 0 10px; }
.nws-doc li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; background: var(--brand-bright); }
.nws-doc a { color: var(--brand); font-weight: 500; text-underline-offset: 3px; text-decoration-color: rgba(44, 122, 166, 0.35); }
.nws-doc a:hover { text-decoration-color: currentColor; }
.nws-doc-nav { position: sticky; top: 84px; border-top: 3px solid var(--rule); padding-top: 10px; }
.nws-doc-nav .nws-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding: 0 0 8px; margin: 0; }
.nws-doc-nav ul { list-style: none; margin: 0; padding: 0; }
.nws-doc-nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--border); font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--fg-2); text-decoration: none; transition: color 0.15s; }
.nws-doc-nav a:hover { color: var(--ink); }
.nws-doc-nav a.is-active { color: var(--brand); }

/* ------------------------------------------------------------ error page */
.nws-error { padding-block: 96px 120px; text-align: center; }
.nws-error__code { display: inline-block; margin: 0 0 16px; }
.nws-error h1 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.nws-error p { margin: 0 0 24px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted-fg); }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 3px double var(--rule); background: var(--bg); padding: 44px 0 28px; margin-top: 24px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr); gap: 40px; }
.footer__logo-img { height: 26px; width: auto; }
.footer__brand-line { margin: 14px 0 0; max-width: 34ch; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--muted-fg); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col-head { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.footer__col a { font-size: 14px; color: var(--muted-fg); text-decoration: none; transition: color 0.15s; }
.footer__col a:hover { color: var(--ink); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 12.5px var(--font); color: var(--ink); }
.footer__top:hover { color: var(--brand); }
.footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-fg); }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------- entrance of the first screen ----
   Plain CSS so nothing flashes before the scripts load; later content is
   revealed by Motion in news-site.js. */
@media (prefers-reduced-motion: no-preference) {
  [data-hero] { animation: hero-rise 0.75s var(--ease-out) both; }
  [data-hero="1"] { animation-delay: 0.06s; }
  [data-hero="2"] { animation-delay: 0.12s; }
  [data-hero="3"] { animation-delay: 0.18s; }
  [data-hero="4"] { animation-delay: 0.26s; }
  [data-hero="5"] { animation-delay: 0.34s; }
  .nv2-main > .nv2-crumbs, .nv2-article-wrap .news-a-head, .nv2-article-wrap .news-a-hero { animation: hero-rise 0.7s var(--ease-out) both; }
  .nv2-article-wrap .news-a-head { animation-delay: 0.05s; }
  .nv2-article-wrap .news-a-hero { animation-delay: 0.12s; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------ review fixes: home and touch */
/* home, wide screens: the nameplate already lists the sections, so the header
   shows them only once the nameplate has scrolled away */
/* phones: the ticker repeats the Latest list right below it */
@media (max-width: 640px) { .nws-page--feed .ticker { display: none; } }
/* sideways-scrolling section tabs fade at the edge so readers know there is more */
.nws-tabs__track.is-scrollable:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
/* touch screens: 44px tap targets */
@media (pointer: coarse) {
  .btn-sm { --btn-h: 44px; }
  .nws-tabs a { padding-block: 14px; }
  .footer__col a { padding-block: 4px; }
}

/* article, wide screens: a reading column and a sticky "More in" rail */
.nv2-rail { display: none; }
@media (min-width: 1200px) {
  .nv2-article-wrap { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: center; column-gap: 72px; align-items: start; }
  .nv2-main { min-width: 0; }
  .nv2-rail { display: block; position: sticky; top: 84px; padding-top: 40px; }
  .nv2-rail__list { list-style: none; margin: 0; padding: 0; }
  .nv2-rail__item { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nv2-rail__title { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; line-height: 1.28; font-weight: 600; }
  .nv2-rail__title a { color: var(--ink); text-decoration: none; }
  .nv2-rail__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .nv2-rail__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
}

/* round-two review fixes */
.nws-grid > .nws-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; padding-right: 0; }
@media (max-width: 960px) { .nws-grid > .nws-card:last-child:nth-child(3n + 1) { grid-column: auto; } }
@media (max-width: 960px) { .nws-feature__thumb { max-height: 52vh; } }
.kicker--live .live-dot { margin-left: 3px; }

/* article header: headline, standfirst and picture fit in the first screen */
.nv2-article-wrap { padding-top: 20px; }
.nv2-crumbs { margin-bottom: 14px; }
.nv2-article-wrap .news-a-cat { display: none; } /* the breadcrumb already names the section */
.nv2-article-wrap .news-a-head { margin-bottom: 22px; }
.nv2-article-wrap .news-a-dek { margin-bottom: 18px; }
.nv2-article-wrap .news-a-byline-row { padding-block: 12px; }
@media (min-width: 641px) {
  /* the picture keeps its shape (no cropping of text cards) but never takes
     more than about half the screen height */
  .nv2-article-wrap .news-a-hero__media { width: fit-content; max-width: 100%; }
  .nv2-article-wrap .news-a-hero img { width: auto; max-width: 100%; max-height: min(50vh, 460px); }
  .nv2-article-wrap .news-a-hero figcaption { max-width: 100%; }
}

/* ------------------------------------------------ Listen: read-along */
/* the block being read stays in focus; the rest of the story dims */
.is-reading-aloud .nv2-article-wrap .news-a :is(.news-a-headline, .news-a-dek, .news-a-facts li, .news-a-why p, .news-a-body > p, .news-a-body > h2, .news-a-body blockquote p, .news-a-body blockquote footer, .news-a-body li, .news-a-figure, .news-a-hero, .news-a-inline, .inline-related, .news-a-byline-row, .news-a-disclaimer) {
  opacity: 0.28; transition: opacity 0.45s var(--ease-out);
}
.is-reading-aloud .nv2-article-wrap .news-a .is-speaking { opacity: 1 !important; }
.is-reading-aloud .nv2-article-wrap .news-a :is(.news-a-body > p, .news-a-body > h2, .news-a-body li, .news-a-facts li, .news-a-why p) { cursor: pointer; }
.is-reading-aloud .nv2-article-wrap .news-a :is(.news-a-body > p, .news-a-body > h2, .news-a-body li):hover:not(.is-speaking) { opacity: 0.55; }
/* words: upcoming ones soft, read ones dark, the current one highlighted */
.is-speaking .rw { color: #8a8a93; transition: color 0.2s, background-color 0.18s, box-shadow 0.18s; border-radius: 3px; }
.is-speaking .rw.is-read { color: inherit; }
.is-speaking .news-a-headline .rw.is-read, .is-speaking.news-a-headline .rw.is-read { color: var(--ink); }
.rw.is-word { color: var(--ink) !important; background: rgba(74, 157, 204, 0.24); box-shadow: 0 0 0 2px rgba(74, 157, 204, 0.24); }
.is-speaking { position: relative; }
.news-a-body > p.is-speaking::before, .news-a-body > h2.is-speaking::before {
  content: ""; position: absolute; left: -18px; top: 0.3em; bottom: 0.3em; width: 3px; border-radius: 3px; background: var(--brand-bright);
  animation: rw-bar 0.4s var(--ease-out) both;
}
@keyframes rw-bar { from { transform: scaleY(0); } to { transform: none; } }
@media (max-width: 640px) { .news-a-body > p.is-speaking::before, .news-a-body > h2.is-speaking::before { left: -10px; } }

/* the floating player */
.listen-bar {
  position: fixed; z-index: 58; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.94); color: #fafafa; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, 160%); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s;
  font-family: var(--font);
}
.listen-bar.is-on { transform: translate(-50%, 0); opacity: 1; }
.listen-bar__status { margin: 0 8px 0 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.listen-bar__btn, .listen-bar__rate {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #e4e4e7; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.listen-bar__btn:hover, .listen-bar__rate:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.listen-bar__main { background: #fafafa; color: #111; }
.listen-bar__main:hover { background: #fff; color: #000; }
.listen-bar__rate { width: auto; min-width: 46px; padding: 0 10px; border-radius: 999px; font: 700 12.5px var(--font); }
.listen-bar__wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.listen-bar__wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand-bright); animation: rw-wave 1s ease-in-out infinite; transform-origin: bottom; }
.listen-bar__wave i:nth-child(2) { animation-delay: -0.75s; } .listen-bar__wave i:nth-child(3) { animation-delay: -0.5s; } .listen-bar__wave i:nth-child(4) { animation-delay: -0.25s; }
@keyframes rw-wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.listen-bar.is-paused .listen-bar__wave i, html:not(.is-reading-aloud) .listen-bar__wave i { animation-play-state: paused; }
@media (max-width: 760px) {
  /* above the phone action dock */
  .listen-bar { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .listen-bar__status { display: none; }
}
@media (prefers-reduced-motion: reduce) { .listen-bar__wave i { animation: none; transform: scaleY(0.7); } }

/* top story: a labelled column like the Latest rail, headline before the picture */
.nws-feature__label { margin-bottom: 14px; }
.nws-feature__thumb { margin: 18px 0 0; }
.nws-feature__foot { margin-top: 14px; }
.nws-feature:not(.nws-feature--img) .nws-feature__body { padding-top: 0; }

/* ================================================================ masthead
   Official Digitalage logo + divider + "News" (brand/README from round 4),
   centred between the date and the links. Below it, a dark section bar that
   stays pinned while the masthead scrolls away. */
:root { --bar: #0d1117; --bar-fg: #c9d1d9; --mh-h: 84px; }
.mast { display: inline-flex; align-items: flex-end; text-decoration: none; color: var(--ink); white-space: nowrap; --lkh: 50px; }
.lk { display: inline-flex; align-items: flex-end; gap: calc(var(--lkh) * 0.19); }
.lk-logo { display: block; height: var(--lkh); width: auto; flex: none; }
.lk-d { display: none; height: var(--lkh); width: auto; flex: none; }
.lk-div { display: block; width: 1.5px; height: calc(var(--lkh) * 0.5); background: var(--ink); margin-bottom: calc(var(--lkh) * 0.13); flex: none; }
.lk-news { font: 800 calc(var(--lkh) * 0.61)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); margin-bottom: calc(var(--lkh) * 0.059); }

.site-header {
  position: sticky; top: calc(-1 * var(--mh-h)); z-index: 50; background: var(--bg);
  border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform 0.3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: none; }
.site-header.is-scrolled .secbar { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.6); }
.mh { background: var(--bg); }
.mh__row { height: var(--mh-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.mh__date { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.mh .mast { justify-self: center; }
.mh__links { justify-self: end; display: flex; align-items: center; gap: 16px; }
.mh__how { font-size: 13.5px; font-weight: 500; color: var(--brand); text-underline-offset: 3px; white-space: nowrap; }
.mh__site { border-radius: 999px; }
.mh__date-sm { display: none; font-size: 12.5px; font-weight: 600; color: var(--muted-fg); white-space: nowrap; }

.secbar { background: var(--bar); color: var(--bar-fg); }
.secbar .hdr { height: 48px; max-width: 1240px; gap: 12px; }
.secbar .hdr-nav { display: flex; margin: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.secbar .hdr-nav::-webkit-scrollbar { display: none; }
.secbar .hdr-nav a { color: var(--bar-fg); font-size: 14px; font-weight: 500; padding: 0 12px; height: 48px; display: inline-flex; align-items: center; border-radius: 0; }
.secbar .hdr-nav a:hover { color: #fff; }
.secbar .hdr-nav a.is-active { color: #fff; font-weight: 600; }
.secbar .hdr-nav a.is-active::after { left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--brand-bright); }
.secbar__rss { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--bar-fg); }
.secbar__rss:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
/* the story-title bar sits in the dark bar while reading an article */
.secbar .hdr-story__title { color: #fff; }
.secbar .hdr-story__kicker { color: var(--brand-bright); }
.secbar .hdr-story__share { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.secbar .hdr-story__share:hover { background: rgba(255, 255, 255, 0.1); }
.site-header.is-reading .secbar .hdr-nav { display: none; }

/* section pages: back to the front page + section pill */
.sect-head__nav { display: flex; align-items: center; gap: 12px; margin: 0; }
.sect-head__nav .pill, .news-a-nav .pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--brand); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.sect-head .sect-head__back { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.sect-head__title { margin-top: 12px; }
.sect-head { padding-bottom: 6px; }

/* footer: the lockup on a plate */
.mast--footer { --lkh: 34px; }
.mast--footer .lk-news { font-size: calc(var(--lkh) * 0.61); }

@media (max-width: 1080px) {
  .mh__how { display: none; }
}
@media (max-width: 760px) {
  :root { --mh-h: 58px; }
  .mast { --lkh: 30px; }
  .mh__row { grid-template-columns: auto 1fr; }
  .mh .mast { justify-self: start; grid-column: 1; grid-row: 1; }
  .mh__date { display: none; }
  .mh__links { grid-column: 2; grid-row: 1; }
  .mh__site { display: none; }
  .mh__date-sm { display: inline; }
  /* section pills on the dark bar, swipe for more */
  .secbar .hdr { height: 54px; }
  .secbar .hdr-nav { gap: 8px; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .secbar .hdr-nav a { height: 38px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .secbar .hdr-nav a.is-active { background: #fff; color: var(--bar); border-color: #fff; }
  .secbar .hdr-nav a.is-active::after { display: none; }
  .secbar__rss { display: none; }
  .site-header.is-reading .nws-logo::before { display: none; }
}
@media (max-width: 359px) { .mh .lk-logo { display: none; } .mh .lk-d { display: block; } }

/* Also today: summaries, update time, see all */
.rule-label__note { margin-left: auto; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-fg); }
.nws-rail__dek { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nws-rail__all { margin-top: 14px; border-radius: 999px; }

/* article: back to the front page + section pill */
.nv2-crumbs.news-a-nav { gap: 12px; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.news-a-nav .news-a-nav__back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.news-a-nav .news-a-nav__back .icon { width: 15px; height: 15px; color: currentColor; }
.nv2-crumbs.news-a-nav a.pill:last-child { color: var(--brand); }
.news-a-nav a.pill:hover { background: var(--brand-soft); }

/* end of story */
.story-end { display: flex; align-items: center; gap: 14px; margin: 40px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.story-end::before, .story-end::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.story-end span { display: inline-flex; align-items: center; gap: 8px; }
.story-end span::before { content: ""; width: 7px; height: 7px; background: var(--brand-bright); }
.nws-related__nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.nws-related__nav .btn { border-radius: 999px; }

/* ================= dark mode: follows the reader's system setting (public site only) ================= */
.lk .lk-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  html[data-site="news"]:not([data-theme="light"]) .lk .lk-logo--light { display: none; }
  html[data-site="news"]:not([data-theme="light"]) .lk .lk-logo--dark { display: block; }
}
html[data-site="news"][data-theme="dark"] .lk .lk-logo--light { display: none; }
html[data-site="news"][data-theme="dark"] .lk .lk-logo--dark { display: block; }
html[data-site="news"][data-theme="light"] { color-scheme: light; }

/* theme switch: day (sun) / night (moon). Starts on the device setting. */
.theme-switch { position: relative; flex: none; width: 54px; height: 30px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: linear-gradient(90deg, #e9eef3, #f6f1e4); transition: background-color 0.25s, border-color 0.25s; }
.theme-switch__knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #ffffff; color: #d08a12; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s; }
.theme-switch .icon { width: 15px; height: 15px; grid-area: 1 / 1; }
.theme-switch .ts-moon { display: none; }
.theme-switch:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  html[data-site="news"]:not([data-theme="light"]) .theme-switch { background: #23262c; }
  html[data-site="news"]:not([data-theme="light"]) .theme-switch__knob { transform: translateX(24px); background: #3a3e46; color: #f2f2f0; }
  html[data-site="news"]:not([data-theme="light"]) .theme-switch .ts-sun { display: none; }
  html[data-site="news"]:not([data-theme="light"]) .theme-switch .ts-moon { display: block; }
}
html[data-site="news"][data-theme="dark"] .theme-switch { background: #23262c; }
html[data-site="news"][data-theme="dark"] .theme-switch__knob { transform: translateX(24px); background: #3a3e46; color: #f2f2f0; }
html[data-site="news"][data-theme="dark"] .theme-switch .ts-sun { display: none; }
html[data-site="news"][data-theme="dark"] .theme-switch .ts-moon { display: block; }
@media (prefers-reduced-motion: reduce) { .theme-switch, .theme-switch__knob { transition: none; } }
@media (prefers-color-scheme: dark) {
  html[data-site="news"]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111214; --bg-subtle: #16171a; --fg: #ededec; --fg-2: #d3d3d0; --muted: #1f2024; --muted-fg: #9d9da6;
    --border: #2c2d33; --border-strong: #3b3c43; --card: #17181b;
    --primary: #ededec; --primary-hover: #ffffff; --primary-fg: #111214;
    --brand: #6eb2df; --brand-strong: #93c7ea; --brand-bright: #4a9dcc; --brand-soft: #15283a; --brand-ring: rgba(110, 178, 223, 0.4);
    --success: #4fc37f; --success-soft: #11281b; --warning: #f0a54a; --warning-soft: #2a1f0f;
    --danger: #ef6a5f; --danger-strong: #f38d84; --danger-soft: #2c1514;
    --paper: #18191c; --ink: #f2f2f0; --rule: #e6e6e3; --live: #ef6a5f;
    --bar: #1b1d21; --bar-fg: #b9c0c8;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  }
  html[data-site="news"]:not([data-theme="light"]) body { background: var(--bg); color: var(--fg); }
  html[data-site="news"]:not([data-theme="light"]) .site-header { background: rgba(17, 18, 20, 0.88); }
  html[data-site="news"]:not([data-theme="light"]) .secbar { border-bottom: 1px solid var(--border); }
  html[data-site="news"]:not([data-theme="light"]) .news-a-body { color: var(--fg-2); }
  html[data-site="news"]:not([data-theme="light"]) .news-a-dek:not(.da-dek) { color: #a9a9b1; }
  html[data-site="news"]:not([data-theme="light"]) .news-a-aitag:hover { background: #1b3247; }
  html[data-site="news"]:not([data-theme="light"]) .btn-secondary:hover { background: #26272c; }
  html[data-site="news"]:not([data-theme="light"]) .ui-skeleton { background: linear-gradient(100deg, var(--muted) 30%, #26272c 50%, var(--muted) 70%); background-size: 300% 100%; }
  html[data-site="news"]:not([data-theme="light"]) .is-speaking .rw { color: #74747d; }
  html[data-site="news"]:not([data-theme="light"]) .rw.is-word { background: rgba(110, 178, 223, 0.28); box-shadow: 0 0 0 2px rgba(110, 178, 223, 0.28); }
  html[data-site="news"]:not([data-theme="light"]) .read-dock, html[data-site="news"]:not([data-theme="light"]) .listen-bar { background: rgba(38, 40, 45, 0.94); border: 1px solid #34363c; }
  html[data-site="news"]:not([data-theme="light"]) img { filter: brightness(0.94); }
  html[data-site="news"]:not([data-theme="light"]) .lk img { filter: none; }
}
html[data-site="news"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #111214; --bg-subtle: #16171a; --fg: #ededec; --fg-2: #d3d3d0; --muted: #1f2024; --muted-fg: #9d9da6;
  --border: #2c2d33; --border-strong: #3b3c43; --card: #17181b;
  --primary: #ededec; --primary-hover: #ffffff; --primary-fg: #111214;
  --brand: #6eb2df; --brand-strong: #93c7ea; --brand-bright: #4a9dcc; --brand-soft: #15283a; --brand-ring: rgba(110, 178, 223, 0.4);
  --success: #4fc37f; --success-soft: #11281b; --warning: #f0a54a; --warning-soft: #2a1f0f;
  --danger: #ef6a5f; --danger-strong: #f38d84; --danger-soft: #2c1514;
  --paper: #18191c; --ink: #f2f2f0; --rule: #e6e6e3; --live: #ef6a5f;
  --bar: #1b1d21; --bar-fg: #b9c0c8;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}
html[data-site="news"][data-theme="dark"] body { background: var(--bg); color: var(--fg); }
html[data-site="news"][data-theme="dark"] .site-header { background: rgba(17, 18, 20, 0.88); }
html[data-site="news"][data-theme="dark"] .secbar { border-bottom: 1px solid var(--border); }
html[data-site="news"][data-theme="dark"] .news-a-body { color: var(--fg-2); }
html[data-site="news"][data-theme="dark"] .news-a-dek:not(.da-dek) { color: #a9a9b1; }
html[data-site="news"][data-theme="dark"] .news-a-aitag:hover { background: #1b3247; }
html[data-site="news"][data-theme="dark"] .btn-secondary:hover { background: #26272c; }
html[data-site="news"][data-theme="dark"] .ui-skeleton { background: linear-gradient(100deg, var(--muted) 30%, #26272c 50%, var(--muted) 70%); background-size: 300% 100%; }
html[data-site="news"][data-theme="dark"] .is-speaking .rw { color: #74747d; }
html[data-site="news"][data-theme="dark"] .rw.is-word { background: rgba(110, 178, 223, 0.28); box-shadow: 0 0 0 2px rgba(110, 178, 223, 0.28); }
html[data-site="news"][data-theme="dark"] .read-dock, html[data-site="news"][data-theme="dark"] .listen-bar { background: rgba(38, 40, 45, 0.94); border: 1px solid #34363c; }
html[data-site="news"][data-theme="dark"] img { filter: brightness(0.94); }
html[data-site="news"][data-theme="dark"] .lk img { filter: none; }
@media (max-width: 359px) { .mh .lk .lk-logo { display: none !important; } }


/* a lone picture card on the last row: picture beside the text, not stretched across */
@media (min-width: 961px) {
  .nws-grid > .nws-card--img:last-child:nth-child(3n + 1) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; align-items: start; }
  .nws-grid > .nws-card--img:last-child:nth-child(3n + 1) .nws-card__thumb { margin: 0; }
}

/* ================= round 5 home: top story cluster + Also today rows ================= */
.nws-cluster .nws-feature__label { display: flex; align-items: baseline; }
.nws-cluster .rule-label__note { margin-left: auto; }
.nws-cluster__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.nws-cluster .nws-feature__body { gap: 10px; }
.nws-cluster .nws-feature__thumb { margin: 0; }
.nws-cluster__pts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; }
.nws-cluster__pts li { position: relative; padding-left: 17px; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.nws-cluster__pts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--brand-bright); }
.nws-cluster__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 0; font-size: 12.5px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.nws-cluster__listen { display: inline-flex; align-items: center; gap: 4px; }
.nws-cluster__listen .icon { width: 11px; height: 11px; }
.nws-cluster__more { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 16px; border-top: 1px solid var(--border); }
.nws-cluster__link { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink); text-decoration: none; }
.nws-cluster__link:hover { color: var(--brand); }
.nws-cluster__lk { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
@media (min-width: 961px) {
  .nws-cluster.nws-feature--img .nws-cluster__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .nws-cluster.nws-feature--img .nws-feature__title { font-size: clamp(30px, 2.7vw, 40px); line-height: 1.08; }
  .nws-cluster__more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nws-cluster__more .nws-cluster__link { padding: 12px 16px 6px 0; border-bottom: 0; }
  .nws-cluster__more .nws-cluster__link + .nws-cluster__link { padding-left: 16px; border-left: 1px solid var(--border); }
}
@media (max-width: 960px) {
  /* phone and tablet: kicker, headline, picture, key points, time */
  .nws-cluster .nws-cluster__grid { display: flex; flex-direction: column; gap: 10px; }
  .nws-cluster .nws-feature__body { display: contents; }
  .nws-cluster .nws-feature__kicker { order: 1; } .nws-cluster .nws-feature__title { order: 2; }
  .nws-cluster .nws-feature__thumb { order: 3; margin: 4px 0; } .nws-cluster .nws-cluster__pts, .nws-cluster .nws-feature__dek { order: 4; }
  .nws-cluster .nws-cluster__meta { order: 5; }
}
@media (max-width: 760px) { .nws-cluster .nws-feature__thumb { margin: 4px -16px; border-radius: 0; max-height: none; } }

/* Also today: time and section on one line, headline, read time; small picture on phones */
.nws-rail__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 13px 0; }
.nws-rail__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; }
.nws-rail__row .nws-rail__time { grid-row: auto; padding: 0; }
.nws-rail__title { margin: 4px 0 3px; font-size: 18px; }
.nws-rail__meta { margin: 0; font-size: 12px; color: var(--muted-fg); }
.nws-rail__thumb { display: none; }
@media (max-width: 760px) {
  .nws-rail__item.has-img { grid-template-columns: minmax(0, 1fr) 88px; }
  .nws-rail__item.has-img .nws-rail__thumb { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 4px; background: var(--muted); }
}

/* article: on wide screens the primary source card sits at the top of the side rail */
.nv2-rail__src { margin: 0 0 30px; }
@media (min-width: 1200px) { .nv2-main .news-a-body .news-a-src, .nv2-main .news-a > .news-a-src { display: none; } }

/* second-tier stories under the top story */
.front > .front__main { padding-right: 32px; min-width: 0; }
.front__main > .nws-feature { padding-right: 0; }
.nws-sub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.nws-sub__item { position: relative; min-width: 0; padding-right: 20px; }
.nws-sub__item + .nws-sub__item { padding: 0 0 0 20px; border-left: 1px solid var(--border); }
.nws-sub__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--muted); margin-bottom: 10px; }
.nws-sub__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.nws-sub__item:hover .nws-sub__thumb img { transform: scale(1.03); }
.nws-sub__item .kicker { position: relative; z-index: 2; }
.nws-sub__title { margin: 4px 0 6px; font: 600 19px/1.25 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.nws-sub__title a { color: inherit; text-decoration: none; }
.nws-sub__item:hover .nws-sub__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nws-sub__meta { margin: 0; font-size: 12px; color: var(--muted-fg); }
@media (max-width: 960px) { .front > .front__main { padding-right: 0; } }
@media (max-width: 760px) {
  /* phones: rows with a small picture on the right, like Also today */
  .nws-sub { grid-template-columns: minmax(0, 1fr); padding-top: 0; margin-top: 18px; }
  .nws-sub__item, .nws-sub__item + .nws-sub__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 13px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .nws-sub__item.has-img { grid-template-columns: minmax(0, 1fr) 88px; }
  .nws-sub__thumb { order: 2; width: 88px; height: 88px; aspect-ratio: auto; margin: 0; }
  .nws-sub__title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .nws-sub__thumb img { transition: none; } }

/* masthead: the logo alone, centred; the day/night switch lives in the dark bar beside RSS */
.mh__row { display: flex; justify-content: center; }
.secbar .hdr-actions { flex: none; gap: 10px; }
.secbar .theme-switch { width: 50px; height: 28px; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.12); }
.secbar .theme-switch__knob { width: 22px; height: 22px; }
html[data-site="news"][data-theme="dark"] .secbar .theme-switch__knob { transform: translateX(22px); }
@media (prefers-color-scheme: dark) {
  html[data-site="news"]:not([data-theme="light"]) .secbar .theme-switch__knob { transform: translateX(22px); }
}
@media (max-width: 760px) {
  .mh__row { justify-content: center; }
  .mh .mast { justify-self: auto; }
  .secbar .hdr { gap: 10px; }
}

/* opinion on cards: a label beside the section, and the author's byline */
.nws-card__kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.nws-label-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.nws-card__by { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.nws-card__by img, .nws-card__by span { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nws-card__by span { display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--brand-strong); }
/* the opinion note at the end of a column */
.nv2-opinion { padding: 16px 20px; }

/* ---- Round 4 (Nov 2026) ---- */

/* phone menu: an arrow at the end shows there are more sections */
.hdr-more { display: none; }
@media (max-width: 760px) {
  .secbar .hdr { position: relative; }
  .hdr-more:not([hidden]) { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-left: -6px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
  .hdr-more .icon { width: 16px; height: 16px; }
  .secbar .hdr-nav.at-end { -webkit-mask-image: none; mask-image: none; }
}

/* top story: byline line, and key points beside the headline when there is no image */
.nws-cluster__by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 2px 0 0; font-size: 13.5px; color: var(--muted-fg); }
.nws-cluster__author { font-weight: 600; color: var(--ink); }
.nws-cluster__by .news-a-aitag { position: relative; z-index: 2; }
.nws-feature__facts { align-self: start; padding: 4px 0 0 24px; border-left: 1px solid var(--border); }
.nws-feature__facts-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.nws-feature__facts .nws-cluster__pts { margin: 0; }
.nws-feature__facts .nws-cluster__pts li + li { margin-top: 10px; }
@media (max-width: 960px) { .nws-feature__facts { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border); margin-top: 4px; } }

/* "Also today": a two-line summary under each headline */
.nws-rail__dek { margin: 4px 0 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* section pills (home rows and blocks) */
.nws-sec-pill { margin: 0; font-size: 14px; font-weight: 600; line-height: 1; }
.nws-sec-pill a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--bar); color: #fff; text-decoration: none; }
.nws-sec-pill a:hover { background: var(--brand-strong); color: #fff; }
.nws-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.nws-row__count { font-size: 13px; color: var(--muted-fg); }
.nws-row__ctl { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.nws-row__status { font-size: 13px; color: var(--muted-fg); font-variant-numeric: tabular-nums; margin-right: 4px; }
.nws-row__btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink); cursor: pointer; }
.nws-row__btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nws-row__btn:disabled { opacity: 0.4; cursor: default; }
.nws-row__btn .icon { width: 16px; height: 16px; }
.nws-row__all { border-radius: 999px; }
.nws-row.is-static .nws-row__btn, .nws-row.is-static .nws-row__status { display: none; }

/* home page: section rows */
.nws-sections { padding: 36px 0 12px; border-top: 1px solid var(--border); background: var(--paper); }
.nws-row { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.nws-row__track { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 2.25); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.nws-row__track::-webkit-scrollbar { display: none; }
.nws-row__item { scroll-snap-align: start; min-width: 0; display: flex; }
.nws-row__hint { display: none; }
@media (max-width: 760px) {
  .nws-row__track { grid-auto-columns: 82%; gap: 14px; }
  .nws-row__status, .nws-row__ctl .nws-row__btn { display: none; }
  .nws-row__hint { display: block; margin: 10px 0 0; font-size: 12.5px; color: var(--muted-fg); }
  .nws-row.is-static .nws-row__hint { display: none; }
}

/* story card in a row, and in "Related stories" */
.nws-rcard { position: relative; display: flex; flex-direction: column; width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.nws-rcard:hover { border-color: var(--border-strong); }
.nws-rcard__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--muted); overflow: hidden; }
.nws-rcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.nws-rcard:hover .nws-rcard__thumb img { transform: scale(1.03); }
.nws-rcard__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.nws-rcard__row { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; color: var(--muted-fg); }
.nws-rcard__row .kicker { position: relative; z-index: 2; }
.nws-rcard__row time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nws-rcard__title { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.28; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.nws-rcard__title a { color: inherit; text-decoration: none; }
.nws-rcard:hover .nws-rcard__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nws-rcard__dek { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nws-rcard__meta { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-fg); }

/* home page: small section blocks, two columns */
.nws-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.nws-block { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); min-width: 0; }
.nws-block .nws-row__head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ink); }
.nws-block__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px; }
.nws-block__item { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nws-block__title { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.28; font-weight: 600; color: var(--ink); }
.nws-block__title a { color: inherit; text-decoration: none; }
.nws-block__item:hover .nws-block__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nws-block__dek { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nws-block__empty { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted-fg); }
@media (max-width: 760px) { .nws-blocks { grid-template-columns: 1fr; } }

/* section pages: links to the other desks */
.nws-desks { padding: 22px 0; border-top: 1px solid var(--border); background: var(--paper); }
.nws-desks .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nws-desks__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); }
.nws-desks__list { display: flex; flex-wrap: wrap; gap: 8px; }
.nws-desks__pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--bar); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.nws-desks__pill:hover { background: var(--brand-strong); color: #fff; }

/* article: "Related stories" at the end, on every screen */
.nws-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nws-related .nws-related__nav { margin-top: 24px; }
@media (max-width: 860px) { .nws-related__grid { grid-template-columns: 1fr; } }
.nws-related .rule-label { margin-bottom: 16px; }
@media (max-width: 960px) {
  .nws-cluster .nws-feature__facts { order: 4; }
  .nws-cluster .nws-cluster__by { order: 5; }
  .nws-cluster .nws-cluster__meta { order: 6; }
}

/* ---- Homepage panels and navigation (Nov 2026) ---- */

/* one focus ring for every link, button and menu toggle */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }

/* a panel's title and arrow are its link; the whole head row is the tap area */
.nws-panel-head { position: relative; }
.nws-panel-link::after { content: ""; position: absolute; inset: 0; }
.nws-panel-head .nws-row__ctl, .nws-panel-head .nws-row__count { position: relative; z-index: 1; }
.nws-panel-head .nws-row__count { pointer-events: none; }
.nws-panel-link .arrow { width: 16px; height: 16px; transition: transform .15s ease; }
.nws-panel-head:hover .nws-panel-link .arrow, .nws-panel-link:focus-visible .arrow { transform: translateX(3px); }
.nws-sec-pill a.nws-panel-link { gap: 8px; height: 44px; padding: 0 18px; font-size: 15px; }
.nws-panel-head:hover .nws-sec-pill a { background: var(--brand-strong); }
.nws-row__btn { width: 44px; height: 44px; }
.rule-label.nws-panel-head a.nws-panel-link { margin-left: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); gap: 6px; min-height: 44px; }
.rule-label.nws-panel-head:hover a.nws-panel-link { text-decoration: underline; text-underline-offset: 4px; }

/* Explore menu in the section bar */
.hdr-explore { position: relative; flex: none; }
.hdr-explore__btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.hdr-explore__btn::-webkit-details-marker { display: none; }
.hdr-explore__btn .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.hdr-explore[open] .hdr-explore__btn { background: #fff; color: var(--bar); }
.hdr-explore[open] .hdr-explore__btn .icon { transform: rotate(180deg); }
.hdr-explore__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 280px; padding: 8px 0; background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.hdr-explore__h { margin: 8px 18px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); }
.hdr-explore__panel ul { list-style: none; margin: 0; padding: 0; }
.hdr-explore__panel a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 18px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.hdr-explore__panel a .arrow { width: 16px; height: 16px; color: var(--muted-fg); transition: transform .15s ease; }
.hdr-explore__panel a:hover { background: var(--bg-subtle); }
.hdr-explore__panel a:hover .arrow { transform: translateX(3px); color: var(--ink); }
.hdr-explore__panel a[aria-current] { font-weight: 700; }
.hdr-explore__sections { display: none; }

/* the Explore row after the top stories: phones only (desktop has the bar) */
.nws-explore { display: none; }

@media (max-width: 760px) {
  /* short bar: Latest, the current section, Explore */
  .secbar .hdr-nav { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .secbar .hdr-nav a:not(:first-child):not(.is-active) { display: none; }
  .hdr-explore__btn { height: 38px; }
  .hdr-explore__sections { display: block; }
  .hdr-explore__group + .hdr-explore__group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
  .hdr-explore__panel { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 8px; max-height: 75vh; overflow-y: auto; }
  .nws-explore { display: block; padding: 22px 0 6px; border-top: 1px solid var(--border); }
  .nws-explore__label { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
  .nws-explore__list { display: flex; flex-wrap: wrap; gap: 8px; }
  .nws-explore__pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
  .nws-explore__pill .arrow { width: 15px; height: 15px; }
  .nws-explore__pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

/* ---- Author pages ({base}/author/:id; news_author_templates.go) ---- */
.au-head { padding-bottom: 8px; }
.au-profile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 22px; padding: 26px 0 30px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--border); }
.au-photo { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--muted); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border); }
/* fixed blues, so the white initials keep their contrast in dark mode too */
.au-photo--initials { display: grid; place-items: center; background: linear-gradient(135deg, #4a9dcc, #1d5f85); color: #fff; font-size: 38px; font-weight: 600; letter-spacing: 0.02em; }
.au-photo--desk { border-radius: 22px; }
.au-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.au-name { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.028em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.au-role { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: var(--fg-2); }
.au-bio { max-width: 62ch; margin-top: 14px; }
.au-bio p { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--muted-fg); text-wrap: pretty; }
.au-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.au-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.au-links a .icon { width: 14px; height: 14px; }
.au-links a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.au-links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.au-stories { padding-top: 28px; }
@media (max-width: 640px) {
  .au-profile { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px 0 22px; }
  .au-photo { width: 72px; height: 72px; }
  .au-photo--initials { font-size: 25px; }
  .au-photo--desk { border-radius: 16px; }
  .au-bio p { font-size: 17px; }
  .au-links a { min-height: 44px; }
}

/* Peter, 16 November: no tiny text on the index pages. Labels at least 12.5 px, meta lines 13.5 px. */
.kicker { font-size: 12.5px; }
.nws-meta, .nws-cluster__meta, .nws-rail__meta, .nws-sub__meta, .nws-rcard__meta, .nws-rcard__row, .nws-rail__time, .nws-row__count { font-size: 13.5px; }
.nws-label-chip { font-size: 11.5px; height: 22px; }
.rule-label a { font-size: 13.5px; }

/* Spacing pass, 16 November */
/* the section page's lead: the picture large on top, then the headline and summary */
@media (min-width: 761px) {
  .nws-cluster.nws-feature--stack .nws-cluster__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nws-feature--stack .nws-feature__thumb { order: -1; }
  .nws-feature--stack .nws-feature__title { font-size: clamp(34px, 3.4vw, 46px); }
}
/* Also new / Also today: the time sits on the reading-time line */
.nws-rail__meta .nws-rail__time { display: inline; grid-row: auto; padding: 0; font-size: inherit; font-weight: 600; }
.nws-rail__item { gap: 6px 12px; }
/* the Faith block with one or two stories: two columns, no empty third */
.nws-faith__grid:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nws-faith__grid:not(:has(> :nth-child(3))) > .nws-card:nth-child(2) { padding-right: 0; }
@media (max-width: 760px) { .nws-faith__grid:not(:has(> :nth-child(3))) { grid-template-columns: 1fr; } }

/* Design pass, 16 November */
/* the lead and its rail end with room to breathe before the next band */
.front { padding-bottom: 48px; }
@media (max-width: 760px) { .front { padding-bottom: 32px; } }
/* a section page's lead without a picture: a headline, not a poster */
.nws-feature--stack:not(.nws-feature--img) .nws-feature__title { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.nws-feature--stack:not(.nws-feature--img) .nws-feature__dek { font-size: clamp(18px, 1.6vw, 21px); }
.nws-feature--stack .nws-feature__body { gap: 12px; }
/* row cards: the summary under the headline (two lines), the time and reading time at the foot */
.nws-rcard.has-img .nws-rcard__dek { -webkit-line-clamp: 2; }
.nws-rcard__body { gap: 10px; }
/* Section pills (section rows, Other desks): ink on page colour, so black with white text in light mode and white with
   dark text in dark mode; hovering swaps them, with a short transition */
.nws-sec-pill a, .nws-sec-pill a.nws-panel-link, .nws-desks__pill {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.nws-sec-pill a:hover, .nws-panel-head:hover .nws-sec-pill a, .nws-sec-pill a:focus-visible, .nws-desks__pill:hover, .nws-desks__pill:focus-visible {
  background: var(--bg); color: var(--ink); border-color: var(--ink);
}
.nws-sec-pill a .arrow, .nws-desks__pill .arrow { transition: transform .22s ease; }
.nws-explore__pill { transition: background-color .22s ease, color .22s ease, border-color .22s ease; }
.nws-desks { padding: 26px 0; }
.nws-desks__list { gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  .nws-sec-pill a, .nws-desks__pill, .nws-explore__pill, .nws-sec-pill a .arrow { transition: none; }
}

/* Section page head: the Front page link has room above the section name */
.sect-head__nav + .sect-head__title { margin-top: 30px; }
@media (max-width: 760px) { .sect-head__nav + .sect-head__title { margin-top: 20px; } }

/* Listen, 16 November: every block the story reads dims and lights up like the paragraphs */
.is-reading-aloud .nv2-article-wrap .news-a :is(.da-box-label, .da-next p, .da-figures-item, .da-quote footer, .da-callout, .da-source-card, .da-related, .da-share, .da-more, .da-how--top, .da-tools) {
  opacity: 0.28; transition: opacity 0.45s var(--ease-out);
}
.is-reading-aloud .nv2-article-wrap .news-a :is(.da-next p, .da-box-label, .da-figures-item, .da-quote footer, .da-callout) { cursor: pointer; }
.is-reading-aloud .nv2-article-wrap .news-a .is-speaking,
.is-reading-aloud .nv2-article-wrap .news-a .is-speaking .rw { opacity: 1 !important; }
.is-reading-aloud .nv2-article-wrap .news-a :is(.news-a-why, .da-next, .da-points):has(.is-speaking) .da-box-label { opacity: 1; }
/* the player: progress along its top edge, minutes left, speed and voice */
.listen-bar { overflow: hidden; padding-top: 8px; }
.listen-bar:not(.is-on) { pointer-events: none; visibility: hidden; transition: transform 0.4s var(--ease-out), opacity 0.3s, visibility 0s 0.4s; }
.listen-bar__track { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, 0.14); }
.listen-bar__track i { display: block; height: 100%; width: var(--listen-progress, 0%); background: var(--brand-bright); transition: width 0.3s linear; }
.listen-bar__left { margin: 0 8px 0 4px; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 9.5em; }
.listen-bar__voice { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listen-bar__btn, .listen-bar__rate { transition: background-color .2s ease, color .2s ease; }
.listen-bar :focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
@media (max-width: 760px) {
  .listen-bar__left { display: none; }
  .listen-bar__voice { max-width: 5.5em; }
}
@media (prefers-reduced-motion: reduce) { .listen-bar__track i { transition: none; } }

/* Explore holds the current section: the button is marked the way the bar marks its current link */
.hdr-explore__btn.is-current { border-color: #fff; box-shadow: inset 0 -2px 0 var(--brand-bright); }
.hdr-explore__sections a[aria-current="page"] { font-weight: 700; }
/* Explore on desktop: every section (two columns), with About our news beside them */
@media (min-width: 761px) {
  .hdr-explore__panel { width: min(640px, calc(100vw - 48px)); display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); padding: 10px 0; }
  .hdr-explore__sections { display: block; border-right: 1px solid var(--border); }
  .hdr-explore__sections ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); grid-auto-flow: column; }
  .hdr-explore__sections a { min-height: 38px; font-size: 14.5px; }
  .hdr-explore__h { padding: 6px 18px 4px; }
}
