/* The public news pages (templates/news.html, news_post.html). Served from
 * /news/assets/css/news.css after tokens.css. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui);
  font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration-color: var(--lime-line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 2px; }

.nw-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--bg-0); }
.nw-brand .pfb { --pfb-h: 22px; color: var(--text); }
.nw-top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.nw-top nav a { color: var(--text-2); text-decoration: none; }
.nw-top nav a:hover, .nw-top nav a[aria-current] { color: var(--text); }
.nw-top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--lime); }
/* As .topnav a.signin on the landing page. */
.nw-top nav a.nw-signin { color: var(--text); border: 1px solid var(--line); border-radius: var(--r-ctl);
  padding: 5px 12px; margin: -6px 0; box-shadow: var(--inset-hi); }
.nw-top nav a.nw-signin:hover { border-color: var(--lime-line); color: var(--lime); }

.nw-main { max-width: 860px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 64px; }
.nw-eyebrow { margin: 0 0 6px; font-size: var(--fs-micro); letter-spacing: var(--tracking-micro);
  text-transform: uppercase; color: var(--lime); font-weight: 600; }
.nw-intro h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.nw-lead { margin: 0; color: var(--text-2); max-width: 60ch; }

.nw-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-5) 0 var(--sp-4); }
.nw-topics a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px;
  color: var(--text-2); text-decoration: none; }
.nw-topics a:hover { border-color: var(--slate-hi); color: var(--text); }
.nw-topics a[aria-current] { border-color: var(--lime-line); color: var(--text); background: var(--lime-wash); }

.nw-empty { color: var(--muted); }

.nw-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); }
.nw-day { position: relative; margin: var(--sp-5) 0 var(--sp-3); }
.nw-day:first-child { margin-top: 0; }
.nw-day::before { content: ""; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--lime); }
.nw-day time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.nw-item { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-4);
  margin-bottom: var(--sp-3); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.nw-item.has-img { grid-template-columns: 200px 1fr; }
.nw-item.kind-editorial, .nw-item.kind-data_post { border-color: var(--slate-hi); }
.nw-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-sm); background: var(--panel-2); }
.nw-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.nw-kind { color: var(--lime); font-weight: 600; letter-spacing: .02em; }
.nw-item h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.nw-item h2 a { text-decoration: none; }
.nw-item h2 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.nw-sum { margin: 0 0 8px; color: var(--text-2); font-size: 14px; }
.nw-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12.5px; align-items: center; }
.nw-tag { color: var(--muted); text-decoration: none; }
.nw-tag::before { content: "#"; color: var(--faint); }
.nw-tag:hover { color: var(--text); }

.nw-btn { display: inline-block; padding: 8px 16px; border-radius: var(--r-ctl); background: var(--btn);
  color: var(--btn-ink); font-weight: 600; font-size: 13px; text-decoration: none; box-shadow: var(--btn-shadow); }
.nw-btn:hover { background: var(--btn-hi); }
.nw-more { margin: var(--sp-5) 0 0; text-align: center; }

.nw-post article h1 { margin: 4px 0 var(--sp-4); font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -.01em; }
.nw-back { margin: 0 0 var(--sp-4); font-size: 13px; }
.nw-back a { color: var(--muted); text-decoration: none; }
.nw-figure { margin: 0 0 var(--sp-4); }
.nw-figure img { display: block; width: 100%; max-width: 640px; max-height: 360px; object-fit: cover; border-radius: var(--r-panel);
  border: 1px solid var(--line); }
.nw-figure figcaption { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.nw-body { color: var(--text-2); font-size: 16px; max-width: 68ch; }
.nw-body h2 { color: var(--text); font-size: 19px; margin: var(--sp-5) 0 var(--sp-2); }
.nw-body h3 { color: var(--text); font-size: 16px; margin: var(--sp-4) 0 var(--sp-2); }
.nw-body li { margin: 4px 0; }
.nw-body img { display: block; max-width: 100%; margin: var(--sp-4) 0; border-radius: var(--r-sm); }
.nw-body blockquote { margin: var(--sp-4) 0; padding: 2px 0 2px var(--sp-4); border-left: 2px solid var(--lime-line); color: var(--text); }
.nw-body blockquote p { margin: 0; }
.nw-cite { font-size: 11px; line-height: 0; }
.nw-cite a { text-decoration: none; color: var(--lime); }
.nw-sum-lg { font-size: 17px; }
.nw-cta { margin: var(--sp-5) 0 var(--sp-4); }
.nw-byline { margin: -8px 0 var(--sp-4); font-size: 13px; color: var(--muted); }
.nw-banner { margin: 0 0 var(--sp-4); padding: 10px 14px; max-width: 68ch; font-size: 13px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: var(--r-sm); }
.nw-corrections { margin: var(--sp-5) 0 0; max-width: 68ch; font-size: 14px; color: var(--text-2); }
.nw-corrections h2 { font-size: 14px; color: var(--muted); margin: 0 0 var(--sp-2); }
.nw-corrections time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-right: 6px; }
.nw-count { color: var(--faint); font-size: 11px; margin-left: 2px; }
.nw-page { max-width: 68ch; color: var(--text-2); }
.nw-page h2 { color: var(--text); font-size: 19px; margin: var(--sp-5) 0 var(--sp-2); }
.nw-form { display: grid; gap: var(--sp-3); max-width: 560px; margin-top: var(--sp-4); }
.nw-form label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.nw-form input, .nw-form textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-ctl); padding: 8px 10px; }
.nw-form textarea { min-height: 160px; resize: vertical; }
.nw-form .nw-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nw-note { padding: 10px 14px; border: 1px solid var(--lime-line); background: var(--lime-wash); border-radius: var(--r-sm); }
.nw-sources { margin-top: var(--sp-5); font-size: 14px; color: var(--text-2); }
.nw-sources ol { padding-left: 26px; }
.nw-sources li { margin: 0 0 6px; scroll-margin-top: 80px; }
.nw-sources li:target { color: var(--text); }
.nw-answer { font-size: 18px; line-height: 1.55; color: var(--text); border-left: 3px solid var(--lime);
  padding: 2px 0 2px 14px; margin: var(--sp-4) 0; }
.nw-cta-box { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
  padding: var(--sp-4); border: 1px solid var(--lime-line); background: var(--lime-wash); border-radius: var(--r-sm); }
.nw-sub { font-size: 16px; margin: var(--sp-5) 0 var(--sp-3); }
.nw-related-list { list-style: none; margin: 0; padding: 0; }
.nw-related-list li { margin: 0 0 10px; }
.nw-related-list span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.nw-faq { margin-top: var(--sp-5); }
.nw-faq details { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
.nw-faq summary { cursor: pointer; color: var(--text); font-weight: 600; }
.nw-faq details p { margin: 8px 0 0; color: var(--text-2); }

.nw-related { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.nw-related h2 { font-size: 14px; margin: 0 0 var(--sp-3); color: var(--muted); font-weight: 600; }
.nw-related ul { list-style: none; margin: 0; padding: 0; }
.nw-related li { margin: 0 0 8px; font-size: 14px; }
.nw-related span { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* The magazine post page (news_post.html; blocks placed by news.compose). */
.nw-mag { max-width: 1120px; }
.nw-mag .nw-head, .nw-mag .nw-col, .nw-mag .nw-related { max-width: 720px; margin-left: auto; margin-right: auto; }
.nw-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 var(--sp-3);
  font-size: var(--fs-micro); letter-spacing: var(--tracking-micro); text-transform: uppercase; font-weight: 600; }
.nw-kicker a { color: var(--text-2); text-decoration: none; }
.nw-kicker a:hover { color: var(--text); }
.nw-kicker-sep { color: var(--faint); }
.nw-mag article h1 { margin: 0 0 var(--sp-3); font-size: clamp(28px, 4.6vw, 46px); line-height: 1.08;
  letter-spacing: -.02em; font-weight: 700; color: var(--text); text-wrap: balance; }
.nw-standfirst { margin: 0 0 var(--sp-4); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--text-2);
  text-wrap: pretty; }
.nw-post-meta { gap: 4px 14px; padding: var(--sp-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5); }
.nw-post-meta > * + *::before { content: "\00b7"; margin-right: 14px; color: var(--faint); }
.nw-post-meta .nw-byline { margin: 0; font-size: 12px; }

.nw-hero { margin: 0 auto var(--sp-5); max-width: 720px; }
.nw-hero.is-wide { max-width: none; }
.nw-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-panel);
  background: var(--panel-2); border: 1px solid var(--line); }
.nw-hero figcaption, .nw-inline figcaption { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.nw-hero.is-wide figcaption { max-width: 720px; margin-left: auto; margin-right: auto; }

.nw-mag .nw-body { max-width: none; font-size: 17.5px; line-height: 1.72; color: var(--text-2); }
.nw-mag .nw-body p { margin: 0 0 1.1em; }
.nw-mag .nw-body h2 { position: relative; margin: 1.9em 0 .6em; padding-top: 14px; font-size: 22px; line-height: 1.25;
  letter-spacing: -.01em; color: var(--text); }
.nw-mag .nw-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px;
  border-radius: 2px; background: var(--lime); }
.nw-mag .nw-body h3 { font-size: 18px; color: var(--text); margin: 1.5em 0 .5em; }
.nw-mag .nw-body strong { color: var(--text); }
.nw-prose > p:first-child { font-size: 19.5px; line-height: 1.6; color: var(--text); }
.nw-prose > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font-size: 3.6em; line-height: .8;
  font-weight: 700; color: var(--lime); }

.nw-pull { margin: 1.6em 0; padding: var(--sp-4) 0 var(--sp-4) var(--sp-5); border-left: 4px solid var(--lime); }
.nw-pull p { margin: 0 !important; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.35; font-weight: 600;
  letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.nw-pull p::before { content: "\201c"; color: var(--lime); }
.nw-pull p::after { content: "\201d"; color: var(--lime); }
.nw-pull cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--muted); }
.nw-pull cite::before { content: "\2014\00a0"; }

.nw-inline { margin: 1.8em 0; }
.nw-inline img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-panel);
  border: 1px solid var(--line); background: var(--panel-2); }

/* Staff image controls (js/news_staff.js), shown to signed-in admins only. */
.nw-staff { max-width: 720px; margin: 0 auto var(--sp-5); padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--lime-line); border-radius: var(--r-panel); background: var(--lime-wash); font-size: 13px; }
.nw-staff p { margin: 0 0 8px; }
.nw-staff-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.nw-staff-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.nw-staff-row input { flex: 1 1 260px; }
.nw-staff input[type=text], .nw-staff select { padding: 7px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line);
  background: var(--bg-0); color: var(--text); font: inherit; }
.nw-staff button { cursor: pointer; border: 0; font: inherit; }
.nw-staff button:disabled, .nw-staff input:disabled { opacity: .55; cursor: progress; }
.nw-staff-btn { padding: 8px 16px; border-radius: var(--r-ctl); border: 1px solid var(--line) !important;
  background: var(--panel); color: var(--text); font-weight: 600; }
.nw-staff-lock { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--text-2); }
.nw-staff-note { color: var(--muted); }
.nw-staff-note:empty { display: none; }
.nw-staff-note.is-bad { color: var(--danger, #ff7a7a); }
.nw-staff-desk { font-size: 12px; color: var(--muted); }
.nw-staff-fig { position: relative; }
.nw-staff-over { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border: 0; border-radius: var(--r-ctl);
  background: rgba(10, 14, 20, .78); color: #fff; font: 600 12px var(--font-ui); cursor: pointer; }
.nw-staff-over:hover { background: rgba(10, 14, 20, .92); }
.nw-staff-over:disabled { opacity: .55; cursor: progress; }

.nw-brief-wrap { margin: 0 0 var(--sp-5); }
.nw-brief-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 var(--sp-3);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.nw-brief-label span { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--muted); }
.nw-mag .nw-brief > p:first-child { font-size: 19.5px; line-height: 1.6; color: var(--text); }
.nw-panel { margin: 1.6em 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-panel);
  background: var(--panel); border: 1px solid var(--line); }
.nw-mag .nw-panel h2 { margin: 0 0 .6em; padding-top: 0; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text); }
.nw-mag .nw-panel h2::before { display: none; }
.nw-panel ul { margin: 0; padding-left: 0; list-style: none; }
.nw-panel li { position: relative; margin: 0 0 .55em; padding-left: 22px; }
.nw-panel li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--lime); }
.nw-panel p:last-child { margin-bottom: 0; }
.nw-why { border-color: var(--lime-line); background: var(--lime-wash); }
.nw-mag .nw-why h2 { color: var(--lime); }

.nw-endcard { display: grid; gap: 6px; justify-items: start; margin: var(--sp-6) 0 var(--sp-4); padding: var(--sp-5);
  border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--panel); }
.nw-endcard-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nw-endcard-t { margin: 0 0 8px; font-size: 16px; color: var(--text); }

.nw-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-4);
  list-style: none; margin: 0; padding: 0; }
.nw-related-grid li { margin: 0; font-size: 14px; }
.nw-related-grid a { display: grid; gap: 8px; text-decoration: none; }
.nw-related-grid img, .nw-related-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel-2); }
.nw-related-ph { background: linear-gradient(135deg, var(--panel-2), var(--panel)); }
.nw-related-t { line-height: 1.35; color: var(--text); }
.nw-related-grid a:hover .nw-related-t { text-decoration: underline; text-decoration-color: var(--lime); }
.nw-related-s { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.nw-foot { border-top: 1px solid var(--line); padding: var(--sp-5) clamp(16px, 4vw, 40px); color: var(--muted);
  font-size: 12px; max-width: 860px; margin: 0 auto; }
.nw-foot a { color: var(--text-2); }

@media (max-width: 640px) {
  .nw-item.has-img { grid-template-columns: 1fr; }
  .nw-mag .nw-body { font-size: 16.5px; }
  .nw-pull { padding-left: var(--sp-4); }
  .nw-panel { padding: var(--sp-4); }
  .nw-timeline { padding-left: 16px; }
  .nw-day::before { left: -21px; }
}
