/* Broadsheet menu — distinct newsprint sheet on cream, classic paper frame */
html:has(body.page-menu) {
  height: 100%;
  overflow: hidden;
}

.page-menu {
  /* Aged newsprint — deliberately different from site cream */
  --paper: #e8dfc9;
  --paper-deep: #ddd2b8;
  --ink: #14110e;
  --ink-soft: #3a342c;
  --rule: #2a241c;
  --rule-soft: rgba(42, 36, 28, 0.35);
  --font-print-display: "IM Fell English", "Libre Baskerville", "Times New Roman", Times, serif;
  --font-print-cursive: "Homemade Apple", "Caveat", cursive;
  --font-print-menu: "Caveat", "Homemade Apple", cursive;
  --font-print-body: "Libre Baskerville", "Times New Roman", Times, serif;
  --news-item-size: 15px;
  --news-lead-size: 18px;
  --news-brief-size: 13px;
  --news-head-lead: 22px;
  --news-head-feature: 18px;
  --news-head-brief: 15px;
  --news-block-gap: 5px;
  --news-line: 1.12;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-print-body);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-menu .site-loader {
  background: var(--cream);
}

/* Normal site nav — logo + links as usual */
.page-menu .nav {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  padding-top: 8px;
  padding-bottom: 4px;
  background: transparent;
}

.page-menu .nav-logo img {
  filter: none;
  height: 46px;
}

.page-menu .page-hero,
.page-menu .menu-closer,
.page-menu .footer {
  display: none !important;
}

.news-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 2px 12px 12px;
  box-sizing: border-box;
  display: flex;
}

.news-paper-shell {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
}

/* Classic newspaper page: double rule frame + soft lift off cream */
.news-paper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    var(--paper);
  border: 3px double var(--ink);
  box-shadow:
    0 0 0 1px rgba(20, 17, 14, 0.12),
    0 10px 28px rgba(59, 36, 20, 0.14);
  overflow: hidden;
  isolation: isolate;
}

.news-paper-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/img/newsprint-texture.jpg");
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.42;
  mix-blend-mode: multiply;
  filter: sepia(0.25) grayscale(0.2) contrast(1.08);
}

/* —— Masthead —— */
.news-masthead {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  text-align: center;
  padding: 6px 14px 0;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.35), transparent);
}

.news-masthead-eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-print-body);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.news-masthead-title {
  margin: 0;
  font-family: var(--font-print-display);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.news-masthead-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  padding: 4px 2px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-print-body);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.news-masthead-line span:nth-child(2) {
  font-weight: 700;
  color: var(--ink);
}

/* —— Sheet —— */
.news-sheet {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(168px, 0.92fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.news-col {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 5px 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--rule-soft);
  box-sizing: border-box;
  scrollbar-width: thin;
}

.news-col::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.news-sheet > .news-col:last-child {
  border-right: none;
}

.news-block {
  margin: 0 0 var(--news-block-gap);
}

/* Lead story — big cursive head + larger first line */
.news-block--lead .news-section-head {
  font-family: var(--font-print-cursive);
  font-size: var(--news-head-lead);
  font-weight: 400;
  line-height: 1.12;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 3px 0 2px;
  background: rgba(20, 17, 14, 0.05);
}

.news-block--lead .news-items li {
  font-size: var(--news-item-size);
}

.news-block--lead .news-items li.is-deck {
  font-family: var(--font-print-display);
  font-style: italic;
  font-size: var(--news-lead-size);
  font-weight: 700;
  line-height: 1.15;
  padding: 2px 0 3px;
  border-bottom: 1px solid var(--rule-soft);
}

/* Feature — medium blackboard-style head */
.news-block--feature .news-section-head {
  font-family: var(--font-print-display);
  font-size: var(--news-head-feature);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: none;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  padding: 2px 0 1px;
  background: transparent;
}

.news-block--feature .news-items li {
  font-size: var(--news-item-size);
}

/* Brief — compact caps / small copy */
.news-block--brief .news-section-head {
  font-family: var(--font-print-body);
  font-size: var(--news-head-brief);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  border-top: 1px solid var(--ink);
  border-bottom: 1px dotted var(--rule-soft);
  padding: 2px 0 1px;
  background: rgba(20, 17, 14, 0.03);
}

.news-block--brief .news-items li {
  font-size: var(--news-brief-size);
  font-family: var(--font-print-menu);
}

.news-section-head {
  margin: 0 0 2px;
  color: var(--ink);
}

.news-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-items li {
  font-family: var(--font-print-menu);
  font-weight: 600;
  line-height: var(--news-line);
  padding: 1px 0;
  color: var(--ink);
  border-bottom: 1px dotted var(--rule-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Center reel —— */
.news-center {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5px 6px;
  border-right: 1px solid var(--rule-soft);
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.03), transparent 40%);
  box-sizing: border-box;
  z-index: 1;
  position: relative;
}

.news-reel-frame {
  position: relative;
  flex: 0 0 34%;
  max-height: 38%;
  min-height: 120px;
  border: 2px solid var(--ink);
  outline: 1px solid var(--paper-deep);
  outline-offset: -4px;
  background: #120e0b;
  overflow: hidden;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.news-reel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-col--under {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 5px 0 0;
  border-right: none;
}

@media (max-width: 720px) {
  html:has(body.page-menu),
  .page-menu {
    height: auto;
    overflow: auto;
  }

  .page-menu {
    display: block;
  }

  .news-stage,
  .news-paper-shell {
    display: block;
    height: auto;
  }

  .news-paper {
    height: auto;
    min-height: calc(100dvh - 80px);
    overflow: visible;
  }

  .news-sheet {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .news-center {
    order: -1;
    border-right: none;
    border-bottom: 2px solid var(--ink);
  }

  .news-reel-frame {
    flex: none;
    height: 38vh;
    max-height: none;
  }

  .news-col {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule-soft);
    overflow: visible;
  }

  .news-items li {
    white-space: normal;
  }
}
