/* ============================================================
   fcc.cc · /news/ — Mobile (Penny Press)
   Mobile-first responsive sheet for the Calm Headlines feed.
   Breakpoints: 320 (min), 360, 390, 414, 430, 600 (large phone),
                768 (tablet), 1024+ (tablet landscape / desktop).
   ============================================================ */

/* Source Serif 4 + JetBrains Mono are loaded from /shared/fonts/fonts.css
 * (self-hosted, first-party). Never add an @import to Google Fonts here;
 * scripts/privacy_audit.py auto-fails any CDN font reference. */

.news-mobile {
  /* Type stacks — Source Serif 4 italic for display, system serif fallback */
  --serif: "Source Serif 4", "Charter", "Iowan Old Style", Georgia, serif;
  --sans:  -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Penny Press tokens (dark default) */
  --paper:    #0d0e10;
  --paper-2:  #15171a;
  --paper-3:  #1d2024;
  --paper-4:  #24272d;
  --ink:      #efe7d6;
  --ink-2:    #c8c0b0;
  --ink-3:    #8a8276;
  --ink-4:    #5a564e;
  --rule:     #2a2825;
  --rule-2:   color-mix(in srgb, #2a2825 70%, transparent);
  --accent:   #d4593f;
  --accent-2: #e87a5e;
  --accent-wash: color-mix(in srgb, #d4593f 14%, transparent);
  --accent-ink:  #0d0e10;
  --good:     #6fa66c;
  --bad:      #b0594a;

  /* Spacing */
  --gutter: 18px;
  --gutter-lg: 22px;

  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* container query host — breakpoints fire off this element's width,
     not the viewport, so the design behaves correctly inside the
     design-canvas preview AND on a real phone */
  container-type: inline-size;
  container-name: nmob;
}
.news-mobile .nmob-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.news-mobile *,
.news-mobile *::before,
.news-mobile *::after { box-sizing: border-box; }
.news-mobile a { color: inherit; text-decoration: none; }
.news-mobile button {
  font: inherit; color: inherit; background: none;
  border: 0; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.news-mobile img { display: block; max-width: 100%; }
.news-mobile [hidden] { display: none !important; }

/* Light mode override */
.news-mobile[data-theme="light"] {
  --paper:    #f6f1e3;
  --paper-2:  #ece5d2;
  --paper-3:  #e1d8c1;
  --paper-4:  #d4c9ad;
  --ink:      #1a1815;
  --ink-2:    #3a352c;
  --ink-3:    #6b6557;
  --ink-4:    #9a9483;
  --rule:     #d4c9ad;
  --rule-2:   color-mix(in srgb, #d4c9ad 70%, transparent);
  --accent:   #c14a30;
  --accent-2: #d96444;
  --accent-wash: color-mix(in srgb, #c14a30 12%, transparent);
  --accent-ink:  #f6f1e3;
}
.news-mobile[data-theme="light"] .nmob-featured-media::before,
.news-mobile[data-theme="light"] .nmob-item.tier-1 .thumb-wrap::before,
.news-mobile[data-theme="light"] .nmob-item.tier-3 .thumb-wrap::before {
  border-color: rgba(26, 24, 21, 0.12);
}

/* ============================================================
   Sticky top — fcc.cc strip + view tabs
   ============================================================ */
.nmob-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nmob-top-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px 9px;
  min-height: 48px;
}
.nmob-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.nmob-brand .fcc {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.nmob-iconbtn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: background .14s, border-color .14s, color .14s;
}
.nmob-iconbtn:hover, .nmob-iconbtn:focus-visible {
  background: var(--paper-2);
  color: var(--ink);
}
.nmob-iconbtn[aria-pressed="true"] {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--rule);
}
.nmob-iconbtn svg { width: 18px; height: 18px; }
.nmob-iconbtn-nav svg { width: 22px; height: 22px; color: var(--ink); }
.nmob-iconbtn-nav { width: 44px; height: 44px; }

/* Sign in pill (top right) */
.nmob-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .14s, color .14s, border-color .14s;
}
.nmob-signin-btn svg { width: 14px; height: 14px; }
.nmob-signin-btn:hover,
.nmob-signin-btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.nmob-signin-btn:active { transform: scale(0.97); }
/* Drop the sign-in label on very narrow containers; icon-only */
@container nmob (max-width: 359px) {
  .nmob-signin-btn { padding: 0; width: 36px; justify-content: center; }
  .nmob-signin-btn span { display: none; }
}

/* View tabs as segmented control */
.nmob-views {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 var(--gutter) 10px;
  font-family: var(--sans);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.nmob-views::-webkit-scrollbar { display: none; }
.nmob-view {
  flex: 1 0 auto;
  scroll-snap-align: start;
  padding: 9px 14px 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nmob-view .count {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  text-transform: none;
}
.nmob-view[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nmob-view[aria-current="page"] .count { color: var(--ink-2); }

/* ============================================================
   Masthead — compact editorial header (not a giant logo)
   ============================================================ */
.nmob-mast {
  padding: 14px var(--gutter) 16px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  background:
    radial-gradient(80% 110% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--paper);
}
.nmob-mast::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: -4px;
  height: 1px;
  background: var(--ink);
  opacity: 0.5;
}
.nmob-mast-inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.nmob-mast h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  flex: 0 0 auto;
}
.nmob-mast .ornament {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  align-self: center;
  margin-top: 2px;
  flex: 0 0 auto;
}
.nmob-mast .meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  text-align: right;
}
.nmob-mast .meta .date { font-size: 13px; color: var(--ink-2); }
.nmob-mast .meta .fresh { font-size: 11.5px; }
.nmob-mast .meta .accent { color: var(--accent); font-style: italic; }

/* ============================================================
   News Brief audio player
   ============================================================ */
.nmob-brief {
  padding: 16px var(--gutter) 18px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 80%);
  font-family: var(--sans);
  position: relative;
}
.nmob-brief::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
}
.nmob-brief-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.nmob-brief-play {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  display: grid; place-items: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  position: relative;
}
.nmob-brief-play::after {
  /* hairline outer ring — adds presence without weight */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  pointer-events: none;
}
.nmob-brief-play:hover,
.nmob-brief-play:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.nmob-brief-play:active { transform: scale(0.97); }
.nmob-brief-play[data-playing="1"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.nmob-brief-play svg { width: 18px; height: 18px; margin-left: 2px; }
.nmob-brief-play[data-playing="1"] svg { margin-left: 0; }
.nmob-brief-info { min-width: 0; flex: 1; }
.nmob-brief-info .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}
.nmob-brief-info .title .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.nmob-brief-info .duration {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.nmob-brief-info .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.nmob-brief-bar {
  height: 2px;
  background: var(--paper-2);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  margin-top: 12px;
}
.nmob-brief-bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--progress, 18%);
  background: var(--accent);
}

/* ============================================================
   Filter button (lives in section head, opens cat sheet)
   ============================================================ */
.nmob-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background .14s, border-color .14s, color .14s;
}
.nmob-filter-btn:hover,
.nmob-filter-btn:focus-visible {
  background: var(--paper-3);
  border-color: var(--ink-3);
  color: var(--ink);
}
.nmob-filter-btn .k {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 600;
}
.nmob-filter-btn .v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 0;
}
.nmob-filter-btn svg {
  color: var(--ink-3);
  margin-top: 1px;
}

/* Category bottom-sheet grid */
.nmob-sheet-narrow .nmob-sheet-head { padding-bottom: 12px; }
.nmob-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 14px var(--gutter) 18px;
}
@container nmob (min-width: 420px) {
  .nmob-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
.nmob-cat-tile {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  min-height: 48px;
  text-align: center;
  transition: background .14s, border-color .14s, color .14s;
}
.nmob-cat-tile:hover,
.nmob-cat-tile:focus-visible {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink-3);
}
.nmob-cat-tile[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ============================================================
   Feed container
   ============================================================ */
.nmob-feed {
  padding: 8px 0 80px;
}

/* Section heads */
.nmob-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px var(--gutter) 8px;
  border-bottom: 1px solid var(--ink);
  margin: 0 0 14px;
  position: relative;
}
.nmob-sec-head::after {
  content: "";
  position: absolute;
  left: var(--gutter); bottom: -2px;
  height: 3px; width: 36px;
  background: var(--accent);
}
.nmob-sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nmob-sec-head .hint {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   FEATURED STORY (top of feed)
   ============================================================ */
.nmob-featured {
  padding: 16px var(--gutter) 24px;
  border-bottom: 3px double var(--ink);
  margin-bottom: 6px;
}
.nmob-featured .kicker-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.nmob-featured .kicker-row .sep { color: var(--rule); }
.nmob-featured .kicker-row .meta { color: var(--ink-3); font-weight: 600; }

.nmob-featured-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  margin-bottom: 18px;
}
.nmob-featured-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.nmob-featured-media::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed rgba(239,231,214,0.18);
  pointer-events: none;
  z-index: 1;
}
.nmob-featured-media .badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: var(--accent);
  color: var(--accent-ink);
}
.nmob-featured-media .media-type {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.nmob-featured h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 7.5cqi, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.nmob-featured .meta-row {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.nmob-featured .meta-row .src { color: var(--accent); font-weight: 700; }
.nmob-featured .meta-row .sep { color: var(--rule); }
.nmob-featured .excerpt {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Action grid — wraps gracefully on narrow widths */
.nmob-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nmob-actions .full { grid-column: 1 / -1; }
.nmob-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: 2px;
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
  transition: background .14s, border-color .14s, color .14s, transform .12s;
}
.nmob-btn:hover, .nmob-btn:focus-visible {
  color: var(--ink); border-color: var(--ink-2);
}
.nmob-btn:active { transform: scale(0.98); }
.nmob-btn.primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.nmob-btn.primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nmob-btn.accent {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.nmob-btn.accent[data-active="1"]::before { content: "■ "; }
.nmob-btn.accent:not([data-active="1"])::before { content: "▶ "; }
.nmob-btn .arrow { font-size: 12px; }

/* ============================================================
   Items — tiers (mobile)
   ============================================================ */
.nmob-list { display: grid; gap: 0; padding: 0; }

.nmob-item {
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.nmob-item:last-child { border-bottom: 0; }
.nmob-item .kicker {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.nmob-item .src-row {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.nmob-item .src-row .src { color: var(--ink-2); font-weight: 700; }
.nmob-item .src-row .sep { color: var(--rule); }
.nmob-item .pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  border-radius: 2px;
  font-weight: 600;
}

/* TIER 1 — large card */
.nmob-item.tier-1 .thumb-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  margin-bottom: 14px;
}
.nmob-item.tier-1 .thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.nmob-item.tier-1 .thumb-wrap::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(239,231,214,0.14);
  pointer-events: none; z-index: 1;
}
.nmob-item.tier-1 .t {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(22px, 5.5cqi, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.nmob-item.tier-1 .e {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TIER 2 — medium card (single col on phones, 2-col tablet) */
.nmob-item.tier-2 .thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  margin-bottom: 12px;
}
.nmob-item.tier-2 .thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.nmob-item.tier-2 .t {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.nmob-item.tier-2 .e {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TIER 3 — compact row */
.nmob-item.tier-3 {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px var(--gutter);
}
.nmob-item.tier-3 .thumb-wrap {
  width: 84px;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
}
.nmob-item.tier-3 .thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.nmob-item.tier-3 .thumb-wrap::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px dashed rgba(239,231,214,0.14);
  pointer-events: none; z-index: 1;
}
.nmob-item.tier-3 .body { min-width: 0; }
.nmob-item.tier-3 .kicker {
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-bottom: 5px;
}
.nmob-item.tier-3 .t {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.nmob-item.tier-3 .src-row {
  margin-top: 6px;
  font-size: 9.5px;
}

/* Item bottom actions (vote pills) */
.nmob-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.nmob-vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nmob-vote-btn {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  border-radius: 2px;
  min-height: 36px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .14s, border-color .14s, background .14s;
}
.nmob-vote-btn:hover { color: var(--ink-2); border-color: var(--ink-3); }
.nmob-vote-btn[data-active="1"][data-dir="up"] {
  color: var(--accent); border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.nmob-vote-btn[data-active="1"][data-dir="down"] {
  color: var(--ink-2); border-color: var(--ink-3);
}
.nmob-score {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  color: var(--ink-4);
  border-radius: 2px;
}
.nmob-score.positive { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }

.nmob-icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  border-radius: 2px;
  margin-left: auto;
}
.nmob-icon-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.nmob-icon-btn svg { width: 14px; height: 14px; }

/* ============================================================
   Tier 2 grid on tablet (≥600 px the layout becomes 2-col, ≥1024 the layout becomes 3-col)
   ============================================================ */
.nmob-tier-2-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@container nmob (min-width: 600px) {
  .news-mobile { --gutter: 28px; }
  .nmob-mast h1 { font-size: 44px; }
  .nmob-tier-2-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 0 var(--gutter) 8px;
  }
  .nmob-tier-2-wrap .nmob-item.tier-2 {
    padding: 0 0 16px;
    border-bottom: 1px solid var(--rule);
  }
  .nmob-featured h2 { font-size: 44px; }
  .nmob-actions { grid-template-columns: repeat(4, 1fr); }
  .nmob-actions .full { grid-column: auto; }
}

@container nmob (min-width: 1024px) {
  .news-mobile { --gutter: 40px; }
  .nmob-mast h1 { font-size: 56px; }
  .nmob-tier-2-wrap { grid-template-columns: repeat(3, 1fr); }
  .nmob-featured .grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: center;
  }
  .nmob-featured-media { margin-bottom: 0; }
}

/* ============================================================
   Footer
   ============================================================ */
.nmob-footer {
  border-top: 3px double var(--ink);
  padding: 28px var(--gutter) 80px;
  background: var(--paper);
}
.nmob-footer h4 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
}
.nmob-foot-block { margin-bottom: 24px; }
.nmob-foot-block:last-child { margin-bottom: 0; }
.nmob-foot-fresh {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.nmob-foot-fresh .when {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-style: normal;
}
.nmob-foot-sources {
  list-style: none;
  padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  columns: 2;
  column-gap: 18px;
}
.nmob-foot-sources li { padding: 3px 0; break-inside: avoid; }
.nmob-foot-sys .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--rule-2);
  font-family: var(--sans);
  font-size: 12px;
}
.nmob-foot-sys .row:last-child { border-bottom: 0; }
.nmob-foot-sys .k { color: var(--ink-3); }
.nmob-foot-sys .v {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nmob-foot-sys .v.ok::before { content: "● "; color: var(--good); }
.nmob-foot-sys .v.warn::before { content: "● "; color: var(--accent); }
.nmob-colophon {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   Floating "Back to top" — appears only after scrolling
   ============================================================ */
.nmob-fab-top {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 25;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.7);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, color .14s, border-color .14s;
}
.nmob-fab-top[data-visible="1"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nmob-fab-top:hover,
.nmob-fab-top:focus-visible {
  color: var(--ink);
  border-color: var(--ink-3);
}
.nmob-fab-top:active { transform: translateY(0) scale(0.94); }
.nmob-fab-top svg { width: 18px; height: 18px; }

/* ============================================================
   Sitemap bottom sheet
   ============================================================ */
.nmob-sheet-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  animation: nmob-fade 0.18s ease;
}
@keyframes nmob-fade { from { opacity: 0; } to { opacity: 1; } }
.nmob-sheet {
  width: 100%;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 14px 0 24px;
  max-height: 86%;
  overflow-y: auto;
  animation: nmob-sheet-up 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
@keyframes nmob-sheet-up {
  from { transform: translateY(20%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.nmob-sheet-handle {
  width: 38px; height: 4px;
  border-radius: 2px;
  background: var(--rule);
  margin: 0 auto 16px;
}
.nmob-sheet-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 var(--gutter) 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.nmob-sheet-head .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nmob-sheet-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.nmob-sheet-section {
  padding: 12px var(--gutter) 4px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.nmob-sheet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.nmob-sheet-row .swatch {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--ink-3);
  flex: 0 0 auto;
}
.nmob-sheet-row .badge {
  margin-left: auto;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.nmob-sheet-row[aria-current="page"] {
  background: var(--paper-2);
}
.nmob-sheet-row[aria-current="page"] .badge {
  color: var(--accent); border-color: var(--accent);
}

/* ============================================================
   Inline-expanded article body (Read here on Featured)
   Penny Press serif reader, no fixed width — let it breathe.
   ============================================================ */
.nmob-article-body {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.nmob-article-body p {
  margin: 0 0 16px;
}
.nmob-article-body p:first-child {
  margin-top: 0;
}
.nmob-article-body p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  float: left;
  margin: 4px 8px -4px 0;
  color: var(--accent);
}
.nmob-article-body h1,
.nmob-article-body h2,
.nmob-article-body h3,
.nmob-article-body h4 {
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 10px;
  line-height: 1.2;
}
.nmob-article-body h2 { font-size: 22px; }
.nmob-article-body h3 { font-size: 18px; }
.nmob-article-body h4 { font-size: 15px; text-transform: none; }
.nmob-article-body blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
}
.nmob-article-body a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration: none;
}
.nmob-article-body a:hover {
  border-bottom-color: var(--accent);
}
.nmob-article-body ul,
.nmob-article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.nmob-article-body li {
  margin: 0 0 6px;
}
.nmob-article-body em,
.nmob-article-body i { font-style: italic; }
.nmob-article-body strong,
.nmob-article-body b { font-weight: 700; }
.nmob-article-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 2px;
}
.nmob-article-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 24px 0;
}
.nmob-article-body figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 4px 0 16px;
}

/* ============================================================
   Read-here eligibility pill + empty state
   See HANDOFF_CLAUDE_CODE.md §1 + READ_HERE_FIX.md
   ============================================================ */
.nmob-rh-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  margin-left: 6px;
  white-space: nowrap;
  border-radius: 2px;
}
.nmob-rh-pill::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.nmob-item .kicker .nmob-rh-pill {
  letter-spacing: 0.18em;
}

.nmob-empty {
  padding: 28px var(--gutter) 32px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  text-align: left;
}
.nmob-empty .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.nmob-empty h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.nmob-empty p {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 40ch;
  text-wrap: pretty;
}
.nmob-empty .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nmob-empty .actions .btn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
}
.nmob-empty .actions .btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
   Helpers
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Production mount — overlay the viewport when active
   The handoff used a fixed-size PhoneFrame; in the live site the
   .news-mobile root pins to the viewport so its own .nmob-scroll
   owns scroll (which is what the FAB and sticky top bar depend on).
   The shared topbar / desktop chrome is hidden via
   body[data-news-mode="mobile"] rules in news.css.
   ============================================================ */
.news-mobile {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.news-mobile[hidden] { display: none !important; }
body[data-news-mode="mobile"] { overflow: hidden; }
