:root {
  --bg: #000000;
  --bg-elev: #121214;
  --bg-search: #1a1a1c;
  --text: #ffffff;
  --muted: #b0b0b5;
  --line: #2c2c30;
  --accent: #e8e8ea;
  --blue: #2f6bff;
  --newsprint: #f3f0e8;
  --news-ink: #111111;
  --danger: #c4a574;
  --font-display: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  /* CL Antique No.31 when present; else Old English Text MT (self-hosted) */
  --font-masthead: "CL Antique No.31", "Old English Text MT", "Old English Text", fantasy;
  --chrome-h: 52px;
}

/* Drop your licensed CL Antique No.31 file here as cl-antique-no-31.otf to match branding exactly */
@font-face {
  font-family: "CL Antique No.31";
  src: url("./assets/fonts/cl-antique-no-31.woff2") format("woff2"),
       url("./assets/fonts/cl-antique-no-31.otf") format("opentype"),
       url("./assets/fonts/cl-antique-no-31.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Old English Text MT";
  src: url("./assets/fonts/old-english-mt.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.hidden { display: none !important; }

/* ========== LANDING (night desk) ========== */
.page-landing { background: #000; min-height: 100vh; }
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
.landing-bg {
  position: absolute;
  inset: 0;
  background: url("./assets/night-desk-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}
.landing-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}
.landing-top, .landing-hero { position: relative; z-index: 1; }
.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}
.landing-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.landing-menu {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}
.landing-menu span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.landing-hero {
  padding: 4.5rem 1.35rem 3rem;
  max-width: 26rem;
}
.landing-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.35rem, 9vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.landing-hero p {
  margin: 0 0 1.5rem;
  color: #e5e5e5;
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 18rem;
}
.btn-browse {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  box-shadow: 0 10px 28px rgba(47,107,255,0.35);
}
.btn-browse:hover { filter: brightness(1.05); }
.link-search {
  display: block;
  border: 0;
  background: transparent;
  color: #6ea0ff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}
.search-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.search-sheet-panel {
  width: min(100%, 480px);
  background: #111114;
  border-radius: 16px 16px 0 0;
  padding: 1rem 1.1rem 1.25rem;
  border-top: 1px solid #2a2a2e;
  max-height: 75vh;
  overflow: auto;
}
.landing-results {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.landing-result {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid #222;
}
.landing-result img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #fff;
}
.sheet-close {
  margin-top: 0.85rem;
  width: 100%;
  border: 1px solid #333;
  background: transparent;
  color: #ddd;
  border-radius: 10px;
  padding: 0.7rem;
  cursor: pointer;
}

/* ========== HOME (rails) ========== */
.page-home { background: #000; }
.home-mock {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 3.5rem;
  min-height: 100vh;
}
.home-mock-wide {
  max-width: min(1200px, 100%);
}

.home-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #000;
  border-bottom: 1px solid #1c1c1f;
}
.ptn-masthead {
  position: relative;
  margin: 0.65rem 1rem 0;
  padding: 0.7rem 1rem 0.85rem;
  background: #0a0a0b;
  color: #f5f5f5;
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  text-align: center;
  border: 1px solid #222;
}
.ptn-mast-rule {
  height: 5px;
  border-top: 1.5px solid #f0f0f0;
  border-bottom: 1.5px solid #f0f0f0;
  margin: 0 auto;
}
.ptn-mast-title {
  margin: 0.35rem 0;
  font-family: var(--font-masthead);
  font-weight: 400;
  font-size: clamp(2.35rem, 8vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
  text-rendering: optimizeLegibility;
}
.ptn-mast-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4d4d8;
}
.ptn-mast-deck {
  margin: 0;
  justify-self: start;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.78;
  color: #c4c4c8;
  max-width: 100%;
  line-height: 1.35;
}
.ptn-mast-date {
  justify-self: center;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.85;
}
.ptn-mast-count {
  justify-self: end;
  text-align: right;
  font-family: var(--font-ui);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.85;
}
@media (max-width: 560px) {
  .ptn-mast-meta {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .ptn-mast-deck,
  .ptn-mast-date,
  .ptn-mast-count {
    justify-self: center;
    text-align: center;
  }
}
.brand-banner {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-banner-bg {
  position: absolute;
  inset: 0;
  background:
    url("./assets/night-desk-hero.png") center 42% / cover no-repeat;
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
  transform: scale(1.08);
}
.brand-banner-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.45) 100%);
}
.brand-banner-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}
.home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1.15rem 0.9rem;
  flex-wrap: wrap;
}
.home-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  flex: 1 1 12rem;
  min-width: 0;
}
.search-wrap {
  position: relative;
}
.search-compact {
  flex: 0 1 220px;
  width: min(220px, 100%);
  margin: 0;
}
.search-wrap svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}
#search, #landingSearch {
  width: 100%;
  border: 1px solid #333338;
  background: var(--bg-search);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.75rem 0.55rem 2.1rem;
  outline: none;
  font-size: 0.9rem;
}
#search:focus, #landingSearch:focus { border-color: #55555c; }
#search::placeholder, #landingSearch::placeholder { color: #71717a; }

.browse-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #1c1c1f;
}
.browse-back {
  font-size: 1.5rem;
  line-height: 1;
  color: #ccc;
  padding: 0.15rem 0.4rem;
}
.browse-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.home-hero-browse {
  padding: 1.25rem 1.35rem 0.5rem;
  text-align: center;
}
.tagline-center {
  margin: 0 auto 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 20.5rem;
}

.rail-section { margin-bottom: 1.6rem; margin-top: 1rem; }
.rails-stack { padding-bottom: 0.5rem; }
.featured-wrap {
  padding: 0 0 0.35rem;
}
.featured-wrap.hidden { display: none; }
.featured-section {
  padding: 0 0 0.75rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.15rem 0.5rem;
}
@media (max-width: 720px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.home-spot {
  display: flex;
  flex-direction: column;
  background: var(--newsprint);
  color: var(--news-ink);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.2rem;
  min-height: 300px;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.4), transparent 24%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 12px,
      rgba(0,0,0,0.016) 12px,
      rgba(0,0,0,0.016) 13px
    );
  transition: transform 0.15s ease;
}
.home-spot:hover { transform: translateY(-3px); }
.home-spot-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.home-spot-logo {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.home-spot-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--fp-accent, #111);
}
.home-spot-date {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.2rem;
}
.home-spot-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  border-bottom: 1.5px solid #111;
  padding-bottom: 0.75rem;
}
.home-spot-subs {
  display: grid;
  gap: 0.55rem;
  flex: 1;
  margin-bottom: 0.75rem;
}
.home-spot-sub {
  font-size: 0.92rem;
  line-height: 1.35;
  border-top: 1px solid #d4cec0;
  padding-top: 0.45rem;
}
.home-spot-sub strong {
  font-family: var(--font-display);
  font-weight: 700;
}
.home-spot-line {
  display: block;
  height: 9px;
  width: 88%;
  border-radius: 2px;
  background: rgba(30,28,24,0.12);
}
.section-label-bright {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.85rem;
  padding: 0 1.35rem;
}

.paper-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 1.35rem 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
@media (min-width: 900px) {
  .paper-rail {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.paper-rail::-webkit-scrollbar { height: 4px; }
.paper-rail::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.front-page {
  flex: 0 0 210px;
  scroll-snap-align: start;
  background: var(--newsprint);
  color: var(--news-ink);
  border-radius: 3px;
  padding: 0.75rem 0.75rem 0.8rem;
  min-height: 300px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 28%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(0,0,0,0.015) 11px,
      rgba(0,0,0,0.015) 12px
    );
}
.front-page-live {
  flex-basis: 260px;
  min-height: 340px;
  padding: 0.9rem 0.9rem 0.95rem;
}
.front-page-live .fp-name {
  font-size: 1.12rem;
}
.front-page-live .fp-headline {
  font-size: 1.08rem;
  line-height: 1.22;
}
.front-page-live .fp-sub-row strong {
  font-size: 0.78rem;
}
.front-page-live .fp-logo {
  width: 26px;
  height: 26px;
}
@media (min-width: 900px) {
  .front-page {
    flex-basis: 230px;
  }
  .front-page-live {
    flex-basis: 290px;
  }
}
.front-page:hover { transform: translateY(-3px); }
.fp-mast {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}
.fp-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.fp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fp-accent, #111);
  flex: 1;
  min-width: 0;
}
.fp-live-pill {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c62828;
  color: #fff;
  padding: 0.18rem 0.35rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.fp-date {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0.25rem 0 0.45rem;
  border-bottom: 1.5px solid #111;
  padding-bottom: 0.4rem;
}
.fp-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  margin: 0 0 0.45rem;
}
.fp-mock-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  margin-bottom: 0.35rem;
}
.fp-mock-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  flex: 1;
  border-top: 1px solid #d4cec0;
  padding-top: 0.55rem;
}
.fp-mock-col {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.fp-rule-line {
  display: block;
  height: 3px;
  border-radius: 1px;
  background: rgba(30, 28, 24, 0.12);
  width: 100%;
}
.fp-rule-line.wide { width: 92%; height: 7px; background: rgba(30, 28, 24, 0.18); }
.fp-rule-line.mid { width: 78%; }
.fp-rule-line.short { width: 55%; }
.front-page-live .fp-sub {
  flex: 1;
}
.fp-sub {
  border-top: 1px solid #cfc9bc;
  padding-top: 0.4rem;
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.45rem;
}
.fp-sub-row {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.62rem;
  line-height: 1.25;
}
.fp-sub-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
}
.fp-page {
  opacity: 0.55;
  white-space: nowrap;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fp-mode {
  margin-top: 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  align-self: flex-start;
  padding: 0.22rem 0.4rem;
}

.chip-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.1rem 1.35rem 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.chip-rail::-webkit-scrollbar { height: 4px; }
.chip-rail::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.paper-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #3a3a40;
  background: #0e0e10;
  color: #fff;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
}
.paper-chip:hover { border-color: #666; background: #16161a; }
.paper-chip img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #fff;
  object-fit: contain;
}

.search-results {
  padding: 0 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.search-results .front-page {
  flex: none;
  width: 100%;
  min-height: 260px;
}
.home-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
#linkCount { font-weight: 700; color: #fff; }
.empty {
  color: var(--muted);
  padding: 0.5rem 1.35rem;
  text-align: center;
}

/* ========== PAPER VIEWER ========== */
.viewer {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chrome {
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.75rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chrome a.back {
  color: var(--muted);
  font-size: 1.25rem;
  padding: 0.25rem 0.4rem;
  line-height: 1;
}
.chrome a.back:hover { color: var(--text); }
.chrome-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.chrome-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.page-paper { background: #000; }
.spotlight {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.15rem 2rem;
  min-height: 0;
  overflow-y: auto;
}
.spotlight-bg {
  position: absolute;
  inset: 0;
  background: url("./assets/night-desk-hero.png") center 40% / cover no-repeat;
  filter: brightness(0.72) saturate(0.85);
  transform: scale(1.06);
}
.spotlight-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.72) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.7));
}
.mast-link {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 400px);
  text-decoration: none;
  color: inherit;
}
.masthead {
  --paper: #f3f0e8;
  --ink: #111;
  --accent: #8b1e1e;
  --rule: #111;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 1rem 1.35rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.15s ease;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.4), transparent 22%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 12px,
      rgba(0,0,0,0.018) 12px,
      rgba(0,0,0,0.018) 13px
    );
}
.mast-link:hover .masthead { transform: translateY(-3px); }
.mast-cover-wrap { display: none; }
.mast-cover { display: none; }
.masthead-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  margin: 0 0 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.masthead-logo.on-cover { position: static; transform: none; }
.masthead-name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0.5rem;
  text-align: center;
  color: var(--accent);
}
.masthead-rule {
  width: 42%;
  height: 2px;
  background: var(--rule);
  margin: 0.75rem 0 0.55rem;
}
.mast-mock-cols {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0 0.5rem;
  padding: 0.75rem 0.35rem 0;
  border-top: 1px solid #d4cec0;
}
.mast-mock-col {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.mast-headline {
  margin: 0.65rem 0.35rem 0.35rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1a1a1a;
  min-height: 2.4em;
}
.mast-headline.is-muted {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 0.7;
}
.masthead-host, .masthead-date {
  margin: 0;
  opacity: 0.65;
  font-size: 0.8rem;
  text-align: center;
}
.masthead-date {
  margin-top: 0;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.masthead-host { margin-top: 0.2rem; }
.mast-cta {
  margin-top: 1rem;
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
}
.spotlight-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.btn-ghost {
  border: 1px solid #555;
  background: rgba(0,0,0,0.45);
  color: #ddd;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-size: 0.82rem;
}
.spot-back {
  color: #ccc;
  text-decoration: underline;
  font-size: 0.9rem;
}
.viewer {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.viewer.is-embedding .spotlight {
  display: none;
}
.embed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  background: #161618;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.stage {
  flex: 1;
  position: relative;
  background: #050505;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.viewer.is-embedding .stage {
  flex: 1;
  min-height: 0;
}
.stage iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  min-height: 0;
}
.chrome .btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
.chrome .btn:hover { background: #222226; }
.chrome .btn-open-chrome {
  background: #fff;
  color: #111;
  border-color: #fff;
  font-weight: 700;
}
