/* Never show the magazine card placeholder on press. */
html[data-layout="press"] #ssr-frontpage-fallback {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent;
}
html[data-layout="press"] #ssr-frontpage-fallback.feed-magazine,
html[data-layout="press"] #ssr-magazine-cards,
html[data-layout="press"] #frontpage-loading,
html[data-layout="press"] #ssr-frontpage-fallback .ed-card,
html[data-layout="press"] #ssr-frontpage-fallback .ssr-card {
  display: none !important;
}
html[data-layout="press"] #ssr-frontpage-fallback.broadsheet-form {
  display: block !important;
}
html[data-layout="press"] #frontpage-grid:has(.lockup) ~ #ssr-frontpage-fallback {
  display: none !important;
}

/* The homepage is one printed sheet. App chrome stays under Settings. */

html[data-layout="press"] header.ws-header,
html[data-layout="press"] header.press-mast,
html[data-layout="press"] .ws-header,
html[data-layout="press"] .ws-header > div,
html[data-layout="press"] .ws-header > div:first-child,
html[data-layout="press"] header.press-mast > .press-flag {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

html[data-layout="press"] .press-flag {
  overflow: visible !important;
  align-items: end;
  padding: 18px 22px 12px !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "mark folio"
    "search tools";
}

html[data-layout="press"] .press-mark img,
html[data-layout="press"] .ws-brand img {
  width: 64px !important;
  height: 64px !important;
  flex-basis: 64px !important;
}

html[data-layout="press"] .press-word-we,
html[data-layout="press"] .ws-brand-name.press-word-we {
  display: block !important;
  font-size: clamp(52px, 7.2vw, 84px) !important;
  line-height: .78 !important;
  color: var(--press-ink) !important;
}

html[data-layout="press"] .press-word-deck {
  display: block !important;
  font-size: 18px !important;
  color: var(--press-kicker) !important;
}

html[data-layout="press"] .press-search,
html[data-layout="press"] #search-form.press-search {
  max-width: 420px !important;
}

html[data-layout="press"] .press-tools #bell-btn,
html[data-layout="press"] .press-tools #refresh-btn {
  opacity: .72;
}

/* One sheet: header + room + front + latest share edges */
html[data-layout="press"] #press-room {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 18px;
  border-top: 1px solid var(--press-ink);
  background: var(--press-paper);
  box-shadow: -2px 0 0 var(--press-ink), 2px 0 0 var(--press-ink);
}

html[data-layout="press"] #frontpage,
html[data-layout="press"] #frontpage.press-sheet-wrap {
  box-shadow: -2px 0 0 var(--press-ink), 2px 0 0 var(--press-ink) !important;
}

html[data-layout="press"] .latest-section,
html[data-layout="press"] #feed-grid {
  display: none !important;
}

html[data-layout="press"] .late {
  max-width: 100%;
}
html[data-layout="press"] .late-row {
  padding: 7px 0 !important;
}
html[data-layout="press"] .under {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html[data-layout="press"] .latest-section .ed-section-head,
html[data-layout="press"] .feed-toolbar,
html[data-layout="press"] #feed-chips,
html[data-layout="press"] #feed-controls,
html[data-layout="press"] #perspective-tools,
html[data-layout="press"] #community-spotlight-home,
html[data-layout="press"] #home-masthead,
html[data-layout="press"] .edition-nav,
html[data-layout="press"] .signal-board {
  display: none !important;
}

html[data-layout="press"] #feed-grid.press-form {
  display: block !important;
}

@media (max-width: 959px) {
  html[data-layout="press"] .press-word-we,
  html[data-layout="press"] .ws-brand-name.press-word-we {
    font-size: 26px !important;
    line-height: 1 !important;
  }
  html[data-layout="press"] .press-mark img,
  html[data-layout="press"] .ws-brand img {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px !important;
  }
  html[data-layout="press"] .press-word-deck { display: none !important; }
  html[data-layout="press"] #press-room,
  html[data-layout="press"] .latest-section {
    box-shadow: none !important;
    max-width: none;
  }
}
