/* wireface.css — The Tape. Last stylesheet wins. Scaled for phone and desktop. */

:root,
html[data-layout="wire"],
html[data-layout="press"] {
  --tape-bg: #0B0C0B;
  --tape-ink: #E8E4D8;
  --tape-ink-soft: rgba(232, 228, 216, 0.78);
  --tape-dim: #8A877C;
  --tape-live: #C8302C;
  --tape-live-soft: rgba(200, 48, 44, 0.14);
  --tape-rule: rgba(232, 228, 216, 0.12);
  --tape-hover: rgba(232, 228, 216, 0.04);
  --tape-on-live: #ffffff;

  --tape-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --tape-sans: "Inter Tight", Inter, system-ui, -apple-system, sans-serif;
  --tape-serif: "Source Serif 4", "Source Serif", Charter, Georgia, serif;

  --tape-gutter: clamp(1rem, 3.6vw, 1.5rem);
  --tape-col: min(72rem, calc(100vw - (2 * var(--tape-gutter))));
  --tape-read: min(40rem, calc(100vw - (2 * var(--tape-gutter))));
  --tape-bar: 3rem;
  --tape-time-col: 4.5rem;
  --tape-src-col: 8.5rem;
  --tape-dot-col: 0.7rem;
  --tape-line-pad: 0.62rem;

  --tape-time-size: 0.8125rem;
  --tape-hed-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  --tape-story-hed: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  --tape-body-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --tape-kicker-size: 0.6875rem;
  --tape-cmd-size: 0.9375rem;

  --ws-bg: var(--tape-bg);
  --ws-surface: var(--tape-bg);
  --ws-surface-raised: var(--tape-bg);
  --ws-text: var(--tape-ink);
  --ws-text-soft: var(--tape-ink-soft);
  --ws-muted: var(--tape-dim);
  --ws-line: var(--tape-rule);
  --ws-line-strong: var(--tape-rule);
  --ws-accent: var(--tape-live);
  --ws-header-bg: var(--tape-bg);
  --ws-header: var(--tape-bar);
  --ws-serif: var(--tape-sans);
  --ws-sans: var(--tape-sans);
  --ws-mono: var(--tape-mono);
  --cream: var(--tape-ink);
  --mute: var(--tape-dim);
  --panel: var(--tape-bg);
  --ink: var(--tape-bg);
  --line: var(--tape-rule);
  --press-paper: var(--tape-bg);
  --press-paper-2: var(--tape-bg);
  --press-ink: var(--tape-ink);
  --press-ink-soft: var(--tape-dim);
  --press-kicker: var(--tape-live);
  --press-hall: var(--tape-bg);
  --press-rail: var(--tape-bg);
  --press-rail-ink: var(--tape-ink);

  color-scheme: dark;
}

html[data-theme="light"],
html[data-theme="journalist"] {
  --tape-bg: #F3F0E6;
  --tape-ink: #161614;
  --tape-ink-soft: rgba(22, 22, 20, 0.78);
  --tape-dim: #6B6860;
  --tape-live: #B32622;
  --tape-live-soft: rgba(179, 38, 34, 0.10);
  --tape-rule: rgba(22, 22, 20, 0.12);
  --tape-hover: rgba(22, 22, 20, 0.04);
  color-scheme: light;
}

@media (max-width: 719px) {
  :root,
  html[data-layout="wire"],
  html[data-layout="press"] {
    --tape-time-col: 3.1rem;
    --tape-src-col: minmax(0, 1fr);
    --tape-dot-col: 0;
    --tape-line-pad: 0.72rem;
    --tape-hed-size: 1.02rem;
    --tape-cmd-size: 1rem;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  :root,
  html[data-layout="wire"],
  html[data-layout="press"] {
    --tape-time-col: 3.75rem;
    --tape-src-col: 7rem;
  }
}

/* —— field —— */
html[data-layout="wire"],
html[data-layout="press"] {
  background: var(--tape-bg) !important;
  color: var(--tape-ink) !important;
}
html[data-layout="wire"],
html[data-layout="wire"] body,
html[data-layout="press"],
html[data-layout="press"] body {
  background: var(--tape-bg) !important;
  color: var(--tape-ink) !important;
  font-family: var(--tape-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
html[data-layout="wire"] *,
html[data-layout="wire"] *::before,
html[data-layout="wire"] *::after,
html[data-layout="press"] *,
html[data-layout="press"] *::before,
html[data-layout="press"] *::after {
  box-sizing: border-box;
}
html[data-layout="wire"] body,
html[data-layout="press"] body {
  margin: 0 !important;
  padding: 0 !important;
  background-image: none !important;
}

/* —— kill chrome, not the tape wrapper —— */
html:not([data-layout="magazine"]) #press-fountain,
html:not([data-layout="magazine"]) #home-masthead,
html:not([data-layout="magazine"]) #press-sections,
html:not([data-layout="magazine"]) #press-dock,
html:not([data-layout="magazine"]) #press-room,
html:not([data-layout="magazine"]) #side-nav,
html:not([data-layout="magazine"]) .mobile-bottom-nav,
html:not([data-layout="magazine"]) .mobile-tab-nav,
html:not([data-layout="magazine"]) #broadsheet,
html:not([data-layout="magazine"]) .press-folio,
html:not([data-layout="magazine"]) .press-gutter,
html:not([data-layout="magazine"]) .press-cmyk,
html:not([data-layout="magazine"]) .press-plate-bg,
html:not([data-layout="magazine"]) .press-reg,
html:not([data-layout="magazine"]) #community-spotlight-home,
html:not([data-layout="magazine"]) #daily-convo,
html:not([data-layout="magazine"]) .signal-board,
html:not([data-layout="magazine"]) #editors-note-wrap,
html:not([data-layout="magazine"]) #editors-note,
html:not([data-layout="magazine"]) #ws-balance-pill,
html:not([data-layout="magazine"]) #wall-btn,
html:not([data-layout="magazine"]) #wall-btn-mobile,
html:not([data-layout="magazine"]) #donate-btn,
html:not([data-layout="magazine"]) #donate-btn-mobile,
html:not([data-layout="magazine"]) #install-btn,
html:not([data-layout="magazine"]) #bell-btn,
html:not([data-layout="magazine"]) #refresh-btn,
html:not([data-layout="magazine"]) #settings-btn,
html:not([data-layout="magazine"]) .ws-globe,
html:not([data-layout="magazine"]) .press-word-deck,
html:not([data-layout="magazine"]) .press-flag-folio,
html:not([data-layout="magazine"]) .press-live,
html:not([data-layout="magazine"]) .press-mark img,
html:not([data-layout="magazine"]) .ws-brand img,
html:not([data-layout="magazine"]) #tour-back,
html:not([data-layout="magazine"]) #tour-spotlight,
html:not([data-layout="magazine"]) #tour-panel,
html:not([data-layout="magazine"]) .ed-section-head,
html:not([data-layout="magazine"]) .feed-toolbar,
html:not([data-layout="magazine"]) #perspective-tools,
html:not([data-layout="magazine"]) .thumb-wrap,
html:not([data-layout="magazine"]) .ed-excerpt,
html:not([data-layout="magazine"]) .tag-chips,
html:not([data-layout="magazine"]) .ed-meta,
html:not([data-layout="magazine"]) .cov-slot,
html:not([data-layout="magazine"]) .react-strip,
html:not([data-layout="magazine"]) .ws-plate,
html:not([data-layout="magazine"]) .lead-cut,
html:not([data-layout="magazine"]) .lead-deck,
html:not([data-layout="magazine"]) .stack-dek,
html:not([data-layout="magazine"]) .section-flag,
html:not([data-layout="magazine"]) .briefs-flag,
html:not([data-layout="magazine"]) .brief-num,
html:not([data-layout="magazine"]) .trust-section,
html:not([data-layout="magazine"]) #first-session,
html:not([data-layout="magazine"]) .latest-section,
html:not([data-layout="magazine"]) #feed-chips,
html:not([data-layout="magazine"]) #feed-controls,
html:not([data-layout="magazine"]) #layout-picks,
html:not([data-layout="magazine"]) [data-layout-pick],
html:not([data-layout="magazine"]) .press-tools,
html:not([data-layout="magazine"]) #bottom-nav-sheet,
html:not([data-layout="magazine"]) video,
html:not([data-layout="magazine"]) .edition-nav,
html:not([data-layout="magazine"]) .tc-mark,
html:not([data-layout="magazine"]) .hero-img,
html:not([data-layout="magazine"]) #reactions-bar,
html:not([data-layout="magazine"]) #share-row,
html:not([data-layout="magazine"]) .ws-presence,
html:not([data-layout="magazine"]) header.site nav.bar,
html:not([data-layout="magazine"]) .press-deck,
html:not([data-layout="magazine"]) .ssr-hub-nav,
html:not([data-layout="magazine"]) section.pane.hidden,
html:not([data-layout="magazine"]) section[data-pane]:not([data-pane="feed"]):not([data-pane=""]) {
  display: none !important;
}

/* leftover broadsheet pieces if a cached compositor still runs */
html:not([data-layout="magazine"]) .sky-item img,
html:not([data-layout="magazine"]) .under-img,
html:not([data-layout="magazine"]) .lead-img,
html:not([data-layout="magazine"]) .cut-link,
html:not([data-layout="magazine"]) img.lead-img,
html:not([data-layout="magazine"]) img.under-img {
  display: none !important;
}

/* keep feed pane + paper wrappers as transparent layout, never hide them */
html:not([data-layout="magazine"]) #frontpage,
html:not([data-layout="magazine"]) .press-sheet-wrap,
html:not([data-layout="magazine"]) .press-sheet,
html:not([data-layout="magazine"]) section[data-pane="feed"] {
  display: block !important;
  visibility: visible !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* —— command bar —— */
html:not([data-layout="magazine"]) #site-header,
html:not([data-layout="magazine"]) header.ws-header,
html:not([data-layout="magazine"]) header.press-mast,
html:not([data-layout="magazine"]) header.site {
  position: sticky !important;
  top: 0 !important;
  z-index: 40;
  background: var(--tape-bg) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tape-rule) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  height: auto !important;
  min-height: calc(var(--tape-bar) + env(safe-area-inset-top, 0px)) !important;
  max-height: none !important;
  padding-top: env(safe-area-inset-top, 0px) !important;
  overflow: visible !important;
}

html:not([data-layout="magazine"]) .press-flag,
html:not([data-layout="magazine"]) .tape-cmd,
html:not([data-layout="magazine"]) header.site .inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  width: 100%;
  max-width: var(--tape-col) !important;
  margin: 0 auto !important;
  min-height: var(--tape-bar);
  height: var(--tape-bar);
  padding: 0 var(--tape-gutter) !important;
  background: transparent !important;
  background-image: none !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}

html:not([data-layout="magazine"]) .ws-brand,
html:not([data-layout="magazine"]) .press-mark,
html:not([data-layout="magazine"]) .brand {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: baseline !important;
  gap: 0 !important;
  text-decoration: none !important;
  color: var(--tape-ink) !important;
  min-width: 0;
}

html:not([data-layout="magazine"]) .press-word {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 0 !important;
  min-width: 0;
}

html:not([data-layout="magazine"]) .tape-word,
html:not([data-layout="magazine"]) .ws-brand-name,
html:not([data-layout="magazine"]) .press-word-we,
html:not([data-layout="magazine"]) .brand span {
  display: inline !important;
  font-family: var(--tape-sans) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: var(--tape-ink) !important;
  font-style: normal !important;
  white-space: nowrap;
}

html:not([data-layout="magazine"]) .tape-prompt {
  display: inline !important;
  color: var(--tape-live) !important;
  font-family: var(--tape-mono) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  margin-left: 0.35rem;
  font-weight: 500;
}

html:not([data-layout="magazine"]) #search-form,
html:not([data-layout="magazine"]) .press-search {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  position: relative;
}

html:not([data-layout="magazine"]) #search-form > svg,
html:not([data-layout="magazine"]) #search-clear {
  display: none !important;
}

html:not([data-layout="magazine"]) #search-input,
html:not([data-layout="magazine"]) .search-input {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--tape-ink) !important;
  font-family: var(--tape-mono) !important;
  font-size: var(--tape-cmd-size) !important;
  line-height: 1.3 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 2.5rem;
}

html:not([data-layout="magazine"]) #search-input::placeholder {
  color: var(--tape-dim);
  opacity: 0.8;
}

html:not([data-layout="magazine"]) .tape-date,
html:not([data-layout="magazine"]) #bs-date {
  display: inline !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: none;
  flex: 0 0 auto;
  margin-left: 0.25rem;
  font-family: var(--tape-mono);
  font-size: var(--tape-time-size);
  color: var(--tape-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

html:not([data-layout="magazine"]) #search-suggest {
  background: var(--tape-bg) !important;
  border: 0 !important;
  border-top: 1px solid var(--tape-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* —— homepage column: full bleed page, tape is the column —— */
html:not([data-layout="magazine"]) #main-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not([data-layout="magazine"]) #frontpage-grid,
html:not([data-layout="magazine"]) #ssr-frontpage-fallback,
html:not([data-layout="magazine"]) .tape-roll {
  display: block !important;
  visibility: visible !important;
  position: relative;
  width: 100%;
  max-width: var(--tape-col) !important;
  margin: 0 auto !important;
  padding: 1.15rem var(--tape-gutter) 5.5rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
html:not([data-layout="magazine"]) #frontpage-grid::before {
  content: "";
  position: absolute;
  left: calc(var(--tape-gutter) + 2.15rem);
  top: 2.4rem;
  bottom: 5.5rem;
  width: 1px;
  background: var(--tape-rule);
  pointer-events: none;
}

html:not([data-layout="magazine"]) #frontpage-grid.press-form,
html:not([data-layout="magazine"]) #frontpage-grid.broadsheet-form,
html:not([data-layout="magazine"]) .lockup,
html:not([data-layout="magazine"]) .skyline,
html:not([data-layout="magazine"]) .under,
html:not([data-layout="magazine"]) .late,
html:not([data-layout="magazine"]) .col-briefs,
html:not([data-layout="magazine"]) .col-lead,
html:not([data-layout="magazine"]) .col-second {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 0 !important;
}

html:not([data-layout="magazine"]) #frontpage-loading {
  max-width: var(--tape-col);
  margin: 0 auto;
  padding: 1.25rem var(--tape-gutter);
  min-height: 0 !important;
  font-family: var(--tape-mono);
  font-size: var(--tape-kicker-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tape-dim);
}
html:not([data-layout="magazine"]) .fpl-mast,
html:not([data-layout="magazine"]) .fpl-rule {
  display: none !important;
}

/* —— a line —— */
html:not([data-layout="magazine"]) .tape-line,
html:not([data-layout="magazine"]) #frontpage-grid > .ed-card:not(.tape-lead):not(.uw-lead):not(.uw-node),
html:not([data-layout="magazine"]) #ssr-frontpage-fallback > .ed-card:not(.tape-lead):not(.uw-lead):not(.uw-node) {
  display: grid !important;
  grid-template-columns: var(--tape-time-col) var(--tape-src-col) minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: baseline;
  column-gap: 0;
  row-gap: 0;
  padding: var(--tape-line-pad) 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
  max-width: 100%;
}

html:not([data-layout="magazine"]) .tape-time {
  grid-column: 1;
  font-family: var(--tape-mono);
  font-size: var(--tape-time-size);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--tape-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

html:not([data-layout="magazine"]) .tape-src {
  grid-column: 2;
  font-family: var(--tape-mono) !important;
  font-size: var(--tape-time-size) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tape-dim) !important;
  font-weight: 500 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

html:not([data-layout="magazine"]) .tape-hed,
html:not([data-layout="magazine"]) .tape-line .ed-title {
  grid-column: 3;
  font-family: var(--tape-sans) !important;
  font-size: var(--tape-hed-size) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.011em;
  color: var(--tape-ink) !important;
  text-decoration: none !important;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}

html:not([data-layout="magazine"]) .tape-dot {
  color: var(--tape-dim);
  text-align: center;
  font-family: var(--tape-mono);
  font-size: var(--tape-time-size);
}

html:not([data-layout="magazine"]) .tape-line:hover,
html:not([data-layout="magazine"]) #frontpage-grid > .ed-card:hover {
  background: var(--tape-hover) !important;
  transform: none !important;
}
html:not([data-layout="magazine"]) .tape-hed:hover,
html:not([data-layout="magazine"]) .tape-line:hover .ed-title {
  text-decoration: underline !important;
  text-decoration-color: var(--tape-live) !important;
  text-underline-offset: 3px;
}
html:not([data-layout="magazine"]) .tape-hed:visited,
html:not([data-layout="magazine"]) .ed-title:visited {
  color: var(--tape-dim) !important;
}

html:not([data-layout="magazine"]) .tape-hour,
html:not([data-layout="magazine"]) .tape-day {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0 0.3rem;
  font-family: var(--tape-mono);
  font-size: var(--tape-kicker-size);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tape-dim);
  font-weight: 600;
  white-space: nowrap;
}
html:not([data-layout="magazine"]) .tape-hour::after,
html:not([data-layout="magazine"]) .tape-day::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--tape-rule);
  min-width: 2rem;
}

html:not([data-layout="magazine"]) .tape-now {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0 0.85rem;
  font-family: var(--tape-mono);
  font-size: var(--tape-kicker-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tape-live);
  min-width: 0;
}
html:not([data-layout="magazine"]) .tape-now-count,
html:not([data-layout="magazine"]) #feed-status,
html:not([data-layout="magazine"]) .updated-pill {
  display: none !important;
}

/* The eye lands here: one still + a headline that fills the phone. */
html:not([data-layout="magazine"]) .tape-lead {
  display: flex !important;
  flex-direction: column;
  padding: 0 0 1.75rem !important;
  margin: 0 0 1.25rem !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tape-rule) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-width: 0;
}
html:not([data-layout="magazine"]) .tape-still {
  display: block !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.9rem;
  overflow: hidden;
  background: #141210;
  visibility: visible !important;
  height: auto !important;
}
html:not([data-layout="magazine"]) .tape-still img {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: none;
}
html:not([data-layout="magazine"]) .tape-lead-kicker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.4rem;
}
html:not([data-layout="magazine"]) .tape-live-mark {
  font-family: var(--tape-mono);
  font-size: var(--tape-kicker-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tape-live);
  font-weight: 700;
}
html:not([data-layout="magazine"]) .tape-lead .tape-hed,
html:not([data-layout="magazine"]) .tape-lead .ed-title {
  display: block;
  grid-column: auto;
  font-family: var(--tape-sans) !important;
  font-size: clamp(1.7rem, 1.05rem + 3.6vw, 3.05rem) !important;
  font-weight: 650 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.028em;
  color: var(--tape-ink) !important;
  max-width: none;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
html:not([data-layout="magazine"]) .tape-dek {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  font-family: var(--tape-serif);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  line-height: 1.45;
  color: var(--tape-ink-soft);
}
html:not([data-layout="magazine"]) .tape-next-flag {
  font-family: var(--tape-mono);
  font-size: var(--tape-kicker-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tape-live);
  font-weight: 700;
  padding: 0.35rem 0 0.55rem;
}
html:not([data-layout="magazine"]) .tape-next-pack {
  display: block;
  padding: 0 0 1.25rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--tape-rule);
}
html:not([data-layout="magazine"]) .tape-next .tape-hed {
  font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.22rem) !important;
  font-weight: 600 !important;
}
html:not([data-layout="magazine"]) .tape-lead:hover .tape-hed {
  text-decoration: underline !important;
  text-decoration-color: var(--tape-live) !important;
  text-underline-offset: 4px;
}

@media (min-width: 720px) {
  html:not([data-layout="magazine"]) .tape-line {
    grid-template-columns: var(--tape-time-col) var(--tape-src-col) minmax(0, 1fr);
    column-gap: 0.85rem;
  }
}
html:not([data-layout="magazine"]) .tape-caret {
  width: 0.5rem;
  height: 1rem;
  background: var(--tape-live);
  animation: tape-blink 1.05s steps(1, end) infinite;
}
html:not([data-layout="magazine"]) .tape-now-count,
html:not([data-layout="magazine"]) #feed-status,
html:not([data-layout="magazine"]) .updated-pill {
  font-family: var(--tape-mono) !important;
  font-size: var(--tape-kicker-size) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tape-dim) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
html:not([data-layout="magazine"]) .updated-pill .dot {
  display: none !important;
}

@keyframes tape-blink { 50% { opacity: 0; } }

/* mobile tape: time | source / headline */
@media (max-width: 719px) {
  html:not([data-layout="magazine"]) #frontpage-grid::before { display: none; }
  html:not([data-layout="magazine"]) .tape-still { aspect-ratio: 4 / 3; }
  html:not([data-layout="magazine"]) .tape-lead .tape-hed {
    font-size: clamp(1.65rem, 7.6vw, 2.35rem) !important;
    max-width: none;
  }
  html:not([data-layout="magazine"]) #site-header .press-flag {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }
  html:not([data-layout="magazine"]) #frontpage-grid {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }
  html:not([data-layout="magazine"]) .tape-line,
  html:not([data-layout="magazine"]) #frontpage-grid > .ed-card:not(.tape-lead):not(.uw-lead):not(.uw-node) {
    grid-template-columns: var(--tape-time-col) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  html:not([data-layout="magazine"]) .tape-time {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.18em;
  }
  html:not([data-layout="magazine"]) .tape-src {
    grid-column: 2;
    grid-row: 1;
  }
  html:not([data-layout="magazine"]) .tape-hed,
  html:not([data-layout="magazine"]) .tape-line .ed-title {
    grid-column: 2;
    grid-row: 2;
  }
  html:not([data-layout="magazine"]) .tape-dot { display: none !important; }
  html:not([data-layout="magazine"]) .tape-now {
    grid-template-columns: var(--tape-time-col) minmax(0, 1fr);
  }
  html:not([data-layout="magazine"]) .tape-now-count,
  html:not([data-layout="magazine"]) #feed-status {
    display: none !important;
  }
  html:not([data-layout="magazine"]) .tape-date,
  html:not([data-layout="magazine"]) #bs-date {
    font-size: 0.7rem;
  }
  @media (max-width: 400px) {
    html:not([data-layout="magazine"]) #bs-date { display: none !important; }
  }
}

@media (min-width: 900px) {
  html:not([data-layout="magazine"]) #frontpage-grid::before { display: none; }
  html:not([data-layout="magazine"]) .tape-lead:has(.tape-still) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 2rem;
    row-gap: 0.45rem;
    align-items: end;
  }
  html:not([data-layout="magazine"]) .tape-lead:has(.tape-still) .tape-still {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin: 0;
    aspect-ratio: 4 / 3;
    height: 100%;
  }
  html:not([data-layout="magazine"]) .tape-lead:has(.tape-still) .tape-lead-kicker {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  html:not([data-layout="magazine"]) .tape-lead:has(.tape-still) .tape-hed {
    grid-column: 2;
    grid-row: 2;
    font-size: clamp(2rem, 2.6vw, 3.15rem) !important;
    max-width: none;
  }
  html:not([data-layout="magazine"]) .tape-lead:has(.tape-still) .tape-dek {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0.25rem;
  }
  html:not([data-layout="magazine"]) .tape-next-pack {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem 1.75rem;
  }
  html:not([data-layout="magazine"]) .tape-next-pack .tape-next {
    display: block !important;
    grid-template-columns: none !important;
    padding: 0 !important;
  }
  html:not([data-layout="magazine"]) .tape-next-pack .tape-time,
  html:not([data-layout="magazine"]) .tape-next-pack .tape-src {
    display: inline;
    grid-column: auto;
    grid-row: auto;
  }
  html:not([data-layout="magazine"]) .tape-next-pack .tape-src { margin-left: 0.65rem; }
  html:not([data-layout="magazine"]) .tape-next-pack .tape-hed {
    display: block;
    grid-column: auto;
    grid-row: auto;
    margin-top: 0.4rem;
    font-size: 1.18rem !important;
    line-height: 1.28 !important;
  }
}

/* —— story + SEO reading column (not the homepage #main-content) —— */
html:not([data-layout="magazine"]) main.max-w-3xl,
html:not([data-layout="magazine"]) header.site + main {
  max-width: var(--tape-read) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 1.25rem var(--tape-gutter) 4.5rem !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:not([data-layout="magazine"]) h1,
html:not([data-layout="magazine"]) h1.ed-serif {
  font-family: var(--tape-sans) !important;
  font-size: var(--tape-story-hed) !important;
  font-weight: 600 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em;
  color: var(--tape-ink) !important;
  font-style: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
}

html:not([data-layout="magazine"]) .ed-rule {
  font-family: var(--tape-mono) !important;
  font-size: var(--tape-kicker-size);
  letter-spacing: 0.16em;
  border: 0 !important;
  color: var(--tape-dim) !important;
  padding: 0;
}

html:not([data-layout="magazine"]) .prose-conduit p,
html:not([data-layout="magazine"]) .article-body p,
html:not([data-layout="magazine"]) article p,
html:not([data-layout="magazine"]) .lede {
  font-family: var(--tape-serif) !important;
  font-size: var(--tape-body-size);
  line-height: 1.62;
  color: var(--tape-ink-soft);
}

html:not([data-layout="magazine"]) section.bg-panel,
html:not([data-layout="magazine"]) section.bg-gradient-to-br,
html:not([data-layout="magazine"]) .related-card,
html:not([data-layout="magazine"]) .story-card,
html:not([data-layout="magazine"]) .lead {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--tape-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html:not([data-layout="magazine"]) .btn-source {
  color: var(--tape-live) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--tape-sans) !important;
  font-size: 1rem !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html:not([data-layout="magazine"]) header.site,
html:not([data-layout="magazine"]) header.border-b {
  max-width: none !important;
}
html:not([data-layout="magazine"]) header .max-w-5xl,
html:not([data-layout="magazine"]) header .max-w-3xl {
  max-width: var(--tape-col) !important;
  width: 100%;
  margin: 0 auto !important;
  padding-left: var(--tape-gutter) !important;
  padding-right: var(--tape-gutter) !important;
  height: var(--tape-bar) !important;
  min-height: var(--tape-bar) !important;
}
@media (max-width: 719px) {
  html:not([data-layout="magazine"]) header nav {
    display: none !important;
  }
}
html:not([data-layout="magazine"]) footer.site {
  max-width: var(--tape-col);
  margin: 0 auto;
  background: transparent !important;
  border-top: 1px solid var(--tape-rule) !important;
  box-shadow: none !important;
  color: var(--tape-dim);
  font-family: var(--tape-mono);
  font-size: var(--tape-time-size);
  padding: 1.25rem var(--tape-gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
html:not([data-layout="magazine"]) footer.site .ed-serif,
html:not([data-layout="magazine"]) footer.site em {
  font-family: var(--tape-sans) !important;
  font-style: normal !important;
  color: var(--tape-ink);
}

html:not([data-layout="magazine"]) .drawer,
html:not([data-layout="magazine"]) #settings-drawer,
html:not([data-layout="magazine"]) #comments-drawer,
html:not([data-layout="magazine"]) #notif-panel {
  background: var(--tape-bg) !important;
  box-shadow: none !important;
}
html:not([data-layout="magazine"]) .drawer-panel,
html:not([data-layout="magazine"]) .set-panel {
  background: var(--tape-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: var(--tape-read);
  margin: 0 auto;
  width: 100%;
}

html:not([data-layout="magazine"]) #top-progress {
  background: var(--tape-live) !important;
  height: 1px !important;
}

html:not([data-layout="magazine"]) *:focus-visible {
  outline: 1px solid var(--tape-live);
  outline-offset: 2px;
}
html:not([data-layout="magazine"]) a {
  color: inherit;
  text-decoration-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .tape-caret { opacity: 1 !important; }
}

/* Last word on phones: never a 0-width title column. */
@media (max-width: 719px) {
  html:not([data-layout="magazine"]) .tape-lead,
  html:not([data-layout="magazine"]) #frontpage-grid > article.tape-lead {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
  }
  html:not([data-layout="magazine"]) .tape-lead .tape-still,
  html:not([data-layout="magazine"]) .tape-lead .tape-lead-kicker,
  html:not([data-layout="magazine"]) .tape-lead .tape-hed,
  html:not([data-layout="magazine"]) .tape-lead .ed-title,
  html:not([data-layout="magazine"]) .tape-lead .tape-dek {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  html:not([data-layout="magazine"]) .tape-lead-kicker {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  html:not([data-layout="magazine"]) .tape-line,
  html:not([data-layout="magazine"]) .tape-next,
  html:not([data-layout="magazine"]) #frontpage-grid > .ed-card:not(.tape-lead):not(.uw-lead):not(.uw-node) {
    display: grid !important;
    grid-template-columns: 3.1rem minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
  }
  html:not([data-layout="magazine"]) .tape-line > .tape-time,
  html:not([data-layout="magazine"]) .tape-next > .tape-time {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }
  html:not([data-layout="magazine"]) .tape-line > .tape-src,
  html:not([data-layout="magazine"]) .tape-next > .tape-src {
    grid-column: 2 !important;
    grid-row: 1 !important;
    white-space: nowrap !important;
  }
  html:not([data-layout="magazine"]) .tape-line > .tape-hed,
  html:not([data-layout="magazine"]) .tape-next > .tape-hed,
  html:not([data-layout="magazine"]) .tape-line > .ed-title {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}
