/* ── News with Transparency — design system ─────────────────────────
   Blessed & Grateful palette: cream, soft navy ink, sage, ochre.
   Editorial, quiet, text-first. No hero. No scripts.               */

:root {
  --nwt-bg: #FAF7F0;
  --nwt-panel: #FFFFFF;
  --nwt-ink: #2C3440;
  --nwt-ink-soft: #5A6270;
  --nwt-sage: #6B8F71;
  --nwt-sage-tint: rgba(107, 143, 113, 0.08);
  --nwt-ochre: #C08A2D;
  --nwt-ochre-tint: rgba(192, 138, 45, 0.10);
  --nwt-low: #A65D57;
  --nwt-low-tint: rgba(166, 93, 87, 0.10);
  --nwt-line: #E5DFD3;
  --nwt-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --nwt-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.nwt {
  margin: 0;
  background: var(--nwt-bg);
  color: var(--nwt-ink);
  font-family: var(--nwt-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.nwt a { color: var(--nwt-sage); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.nwt a:hover { color: #58775d; }

/* ── Masthead ── */
.nwt-masthead {
  border-bottom: 3px double var(--nwt-ink);
  background: var(--nwt-bg);
  padding: 28px 20px 0;
  text-align: center;
}
.nwt-eyebrow {
  font-family: var(--nwt-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nwt-ink-soft);
  margin: 0 0 10px;
}
.nwt-eyebrow a { color: inherit; text-decoration: none; }
.nwt-eyebrow a:hover { color: var(--nwt-sage); }
.nwt-wordmark {
  font-family: var(--nwt-serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.1;
}
.nwt-wordmark a { color: var(--nwt-ink); text-decoration: none; }
.nwt-tagline {
  font-family: var(--nwt-serif);
  font-style: italic;
  color: var(--nwt-ink-soft);
  font-size: 16px;
  margin: 8px 0 18px;
}
.nwt-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 26px;
  border-top: 1px solid var(--nwt-line);
  padding: 12px 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nwt-nav a {
  color: var(--nwt-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  padding: 4px 2px;
}
.nwt-nav a:hover { color: var(--nwt-sage); }
.nwt-nav a[aria-current="page"] {
  color: var(--nwt-sage);
  border-bottom: 2px solid var(--nwt-sage);
}

/* ── Layout ── */
.nwt-main { max-width: 760px; margin: 0 auto; padding: 36px 20px 72px; }
.nwt-wide { max-width: 980px; }

.nwt h1, .nwt h2, .nwt h3 { font-family: var(--nwt-serif); line-height: 1.25; }
.nwt-main h1 { font-size: clamp(26px, 4.6vw, 38px); margin: 0 0 6px; }
.nwt-main h2 { font-size: clamp(21px, 3.4vw, 27px); margin: 44px 0 12px; }
.nwt-main h3 { font-size: 19px; margin: 28px 0 8px; }

.nwt-asof {
  font-size: 13px;
  color: var(--nwt-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nwt-line);
}

/* ── Front page: state / empty state ── */
.nwt-state {
  background: var(--nwt-panel);
  border: 1px solid var(--nwt-line);
  border-left: 4px solid var(--nwt-sage);
  border-radius: 6px;
  padding: 22px 26px;
  margin: 0 0 34px;
}
.nwt-state p { margin: 0.5em 0; }
.nwt-state .nwt-state-title {
  font-family: var(--nwt-serif);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 8px;
}

/* ── Story cards (front page) ── */
.nwt-story {
  background: var(--nwt-panel);
  border: 1px solid var(--nwt-line);
  border-radius: 6px;
  margin: 0 0 30px;
  overflow: hidden;
}
.nwt-story img { display: block; width: 100%; height: auto; }
.nwt-story-body { padding: 22px 26px; }
.nwt-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nwt-ink-soft);
  margin: 0 0 6px;
}
.nwt-story h2, .nwt-story h1 { margin: 0 0 10px; }
.nwt-story h2 a, .nwt-story h1 a { color: var(--nwt-ink); text-decoration: none; }
.nwt-story h2 a:hover { color: var(--nwt-sage); }

/* ── Confidence chips ── */
.nwt-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
}
.nwt-chip-high   { background: var(--nwt-sage-tint);  color: #4c6b51; border: 1px solid rgba(107,143,113,.4); }
.nwt-chip-medium { background: var(--nwt-ochre-tint); color: #8a6320; border: 1px solid rgba(192,138,45,.4); }
.nwt-chip-low    { background: var(--nwt-low-tint);   color: #82443f; border: 1px solid rgba(166,93,87,.4); }

/* ── Story timeline (story pages) ── */
.nwt-timeline { border-left: 2px solid var(--nwt-line); margin: 26px 0; padding-left: 24px; }
.nwt-update { position: relative; margin: 0 0 30px; }
.nwt-update::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--nwt-sage);
}
.nwt-update-ts {
  font-size: 13px;
  color: var(--nwt-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}
.nwt-update h3 { margin: 0 0 6px; }
.nwt-append-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--nwt-ink-soft);
  border-top: 1px solid var(--nwt-line);
  padding-top: 12px;
}

/* ── Sources / glass box blocks ── */
.nwt-sources {
  background: var(--nwt-sage-tint);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 15px;
}
.nwt-sources p { margin: 0 0 6px; font-weight: 600; }
.nwt-sources ul { margin: 0; padding-left: 20px; }

.nwt-exclusions {
  border: 1px dashed var(--nwt-line);
  border-radius: 6px;
  padding: 16px 22px;
  margin: 30px 0;
  background: var(--nwt-panel);
}
.nwt-exclusions h3 { margin-top: 0; }

/* ── Promise trio (front page) ── */
.nwt-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 36px 0;
}
.nwt-trio-card {
  background: var(--nwt-panel);
  border: 1px solid var(--nwt-line);
  border-radius: 6px;
  padding: 18px 20px;
  text-decoration: none !important;
  color: var(--nwt-ink) !important;
  transition: border-color .15s ease;
}
.nwt-trio-card:hover { border-color: var(--nwt-sage); }
.nwt-trio-card b { display: block; font-family: var(--nwt-serif); font-size: 17px; margin-bottom: 6px; }
.nwt-trio-card span { font-size: 14.5px; color: var(--nwt-ink-soft); }

/* ── Ledger ── */
.nwt-ledger-entry {
  background: var(--nwt-panel);
  border: 1px solid var(--nwt-line);
  border-left: 4px solid var(--nwt-ochre);
  border-radius: 6px;
  padding: 20px 26px;
  margin: 0 0 24px;
}
.nwt-ledger-entry h2 { margin: 4px 0 12px; font-size: 21px; }
.nwt-ledger-meta {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nwt-ink-soft);
}
.nwt-ledger-fix {
  background: var(--nwt-sage-tint);
  border-radius: 6px;
  padding: 12px 18px;
  margin-top: 12px;
  font-size: 15.5px;
}
.nwt-ledger-fix b { color: #4c6b51; }

/* ── Definition blocks (how this works) ── */
.nwt-def {
  background: var(--nwt-panel);
  border: 1px solid var(--nwt-line);
  border-radius: 6px;
  padding: 6px 22px 10px;
  margin: 14px 0;
}
.nwt-quote {
  font-family: var(--nwt-serif);
  font-style: italic;
  font-size: 19px;
  border-left: 3px solid var(--nwt-sage);
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  color: var(--nwt-ink);
}
.nwt-quote-attrib { display: block; font-size: 14px; font-style: normal; color: var(--nwt-ink-soft); margin-top: 8px; }

/* ── Footer ── */
.nwt-footer {
  border-top: 3px double var(--nwt-ink);
  margin-top: 20px;
  padding: 30px 20px 44px;
  text-align: center;
  font-size: 14px;
  color: var(--nwt-ink-soft);
}
.nwt-footer p { max-width: 640px; margin: 8px auto; }
.nwt-footer .nwt-ethos { font-family: var(--nwt-serif); font-style: italic; font-size: 16px; color: var(--nwt-ink); }
.nwt-colophon { font-size: 12.5px; margin-top: 16px; }

/* ── The running board — CSS-only carousel, zero JS (scroll-snap) ── */
.nwt-carousel {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 16px; -webkit-overflow-scrolling: touch;
}
.nwt-mini {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--nwt-panel); border: 1px solid var(--nwt-line);
  border-radius: 6px; overflow: hidden;
  text-decoration: none !important; color: var(--nwt-ink) !important;
  transition: border-color .15s ease;
}
.nwt-mini:hover { border-color: var(--nwt-sage); }
.nwt-mini img { width: 100%; height: 157px; object-fit: cover; display: block; }
.nwt-mini-body { padding: 12px 14px 14px; }
.nwt-mini h3 { font-size: 16px; margin: 4px 0 0; line-height: 1.3; font-family: var(--nwt-serif); }

/* ── The watching room — sideways-scrolling threads, zero JS (Day 394) ── */
.nwt-row-watch { scroll-snap-type: x proximity; }
.nwt-watchcard {
  flex: 0 0 min(340px, 78vw); scroll-snap-align: start;
  background: var(--nwt-panel); border: 1px solid var(--nwt-line);
  border-left: 3px solid var(--nwt-ochre);
  border-radius: 6px; padding: 12px 16px;
  font-size: 14px; line-height: 1.5; color: var(--nwt-ink-soft);
}

/* ── Collapsed timeline — native details/summary, zero JS (Day 394):
      newest updates stay open, the long tail folds until asked for. ── */
.nwt-more { margin: 6px 0 0; }
.nwt-more > summary {
  cursor: pointer; font-weight: 600; font-size: 15px;
  font-family: var(--nwt-sans);
  padding: 12px 16px; border-radius: 6px;
  background: var(--nwt-sage-tint); color: #4c6b51;
  list-style-position: inside;
}
.nwt-more > summary:hover { background: rgba(107,143,113,0.16); }
.nwt-more[open] > summary { margin-bottom: 18px; }

/* ── Compact headline zone (Day 394, Sean: the page was one massive scroll) ── */
.nwt-headline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin: 0 0 10px;
}
.nwt-headline-grid .nwt-story { margin: 0; }

/* ── The live board — uncapped running carousel of live stories (Day 394) ── */
.nwt-live {
  flex: 0 0 min(360px, 82vw); scroll-snap-align: start;
  background: var(--nwt-panel); border: 1px solid var(--nwt-line);
  border-top: 3px solid var(--nwt-sage);
  border-radius: 6px; padding: 14px 16px 12px;
  text-decoration: none !important; color: var(--nwt-ink) !important;
  transition: border-color .15s ease;
}
.nwt-live:hover { border-color: var(--nwt-sage); }
.nwt-live h3 { font-size: 17.5px; margin: 2px 0 8px; line-height: 1.3; font-family: var(--nwt-serif); }
.nwt-live p { font-size: 14px; color: var(--nwt-ink-soft); margin: 6px 0 0; }
.nwt-clamp2, .nwt-clamp3 {
  display: -webkit-box; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nwt-clamp2 { -webkit-line-clamp: 2; }
.nwt-clamp3 { -webkit-line-clamp: 3; }

/* Voices page reuses classic style.css blocks; its .fade-in animation
   needs app.js, which NwT pages don't ship — render visible instead. */
body.nwt .fade-in { opacity: 1 !important; transform: none !important; }

@media (max-width: 560px) {
  .nwt-nav { gap: 2px 16px; }
  .nwt-main { padding: 28px 16px 56px; }
  .nwt-story-body, .nwt-state, .nwt-ledger-entry { padding: 18px; }
}
