/* ==========================================================================
   《市井晚报》 Shijing Evening Post — Broadsheet Editorial Stylesheet
   Digital Humanities × Slow Finite Media (肆版定额慢媒介)
   Zero preset frameworks; native CSS Grid interlocking press typography.
   ========================================================================== */

/* 1. Local Subset Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Shijing Song Heavy";
  src: url("fonts/shijing-song-heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shijing Song";
  src: url("fonts/shijing-song-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shijing Song";
  src: url("fonts/shijing-song-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shijing WenKai";
  src: url("fonts/shijing-wenkai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shijing Seal";
  src: url("fonts/shijing-seal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2. Design Tokens & Lamp Modes
   -------------------------------------------------------------------------- */
:root {
  --desk-bg: #363330;
  --paper: #ECEAE3;
  --paper-tint: #E2DFD7;
  --paper-card: rgba(252, 250, 246, 0.56);
  --paper-elevated: #F3F1EB;

  --ink: #171513;
  --ink-soft: #312D28;
  --muted: #5F5951;

  --rule: #6A635A;
  --rule-soft: rgba(106, 99, 90, 0.28);

  --vermilion: #873B31;
  --vermilion-deep: #6F2E25;
  --vermilion-wash: rgba(135, 59, 49, 0.09);

  --font-song: "Shijing Song", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --font-heavy: "Shijing Song Heavy", "Shijing Song", "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-kai: "Shijing WenKai", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --font-seal: "Shijing Seal", "Kaiti SC", "STKaiti", serif;

  --body-size: 15px;
  --reader-size: 19.5px;

  --bx: 54vw;
  --by: 42vh;
  --b-rot: 26deg;
}

body.reading-large {
  --body-size: 16.5px;
  --reader-size: 21.5px;
}

body[data-lamp="beam"],
body[data-lamp="night"] {
  --desk-bg: #2A2724;
  --paper: #E7E4DC;
  --paper-tint: #DDD9CF;
  --paper-card: rgba(248, 245, 238, 0.5);
  --paper-elevated: #EFECE5;
}
/* 3. Base Reset & Print Primitives
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-song);
  font-size: var(--body-size);
  line-height: 1.72;
  font-synthesis: none;
  font-kerning: normal;
  background-color: var(--desk-bg);
  background-image:
    radial-gradient(ellipse 95% 75% at 50% 18%, rgba(124, 114, 102, 0.16), transparent 72%),
    linear-gradient(90deg, rgba(18, 16, 14, 0.22), rgba(92, 84, 74, 0.06) 22%, rgba(18, 16, 14, 0.18) 78%, rgba(68, 62, 55, 0.2)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(180, 168, 152, 0.025) 4px, rgba(16, 14, 12, 0.12) 5px, transparent 7px 13px),
    repeating-linear-gradient(1.5deg, #3A3733 0 3px, #312E2B 4px 8px, #3D3935 9px 13px);
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.25s ease;
}

body[data-lamp="beam"],
body[data-lamp="night"] {
  background-image:
    radial-gradient(ellipse 85% 60% at 50% 20%, rgba(110, 100, 88, 0.12), rgba(16, 14, 12, 0.36) 82%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(160, 148, 132, 0.02) 4px, rgba(12, 10, 9, 0.18) 5px, transparent 7px 13px),
    repeating-linear-gradient(1.5deg, #2E2B28 0 3px, #262320 4px 8px, #302D29 9px 13px);
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 2px;
}

.desk-bar :focus-visible {
  outline-color: #E5B567;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--vermilion);
  font-weight: 600;
  font-size: 13px;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 8px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 4. Reading Desk & Brass-Ebony Desk Rail
   -------------------------------------------------------------------------- */
.reading-desk {
  padding: 14px 28px 44px;
  min-height: 100dvh;
}

.desk-bar {
  max-width: 1240px;
  margin: 0 auto 14px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(64, 60, 55, 0.95), rgba(49, 46, 42, 0.97));
  border: 1px solid rgba(206, 196, 180, 0.24);
  border-bottom-color: rgba(206, 196, 180, 0.34);
  -webkit-font-smoothing: antialiased;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 250, 242, 0.08);
}

.desk-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #DFD1BC;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.desk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 0 2px rgba(155, 41, 29, 0.32);
  flex-shrink: 0;
}

.desk-edition-label {
  font-weight: 600;
  color: #F2E7D5;
}

.desk-finite-tag {
  font-size: 11px;
  color: #BAA78C;
  border: 1px solid rgba(186, 167, 140, 0.3);
  padding: 1px 6px;
  letter-spacing: 0.07em;
}

/* Sheet Tabs */
.sheet-tabs {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(196, 164, 118, 0.28);
  background: rgba(12, 9, 7, 0.58);
}

.sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #CFC6B8;
  border-right: 1px solid rgba(196, 164, 118, 0.16);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sheet-tab:last-child {
  border-right: 0;
}

.sheet-tab .tab-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0.72;
  letter-spacing: 0.03em;
}

.sheet-tab:hover {
  color: #F7EFE0;
  background: rgba(255, 245, 224, 0.07);
}

.sheet-tab.is-active {
  background: var(--paper);
  color: #1C1916;
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--vermilion);
}

.sheet-tab.is-active .tab-num {
  color: var(--vermilion);
  opacity: 1;
}

/* Desk Utility Buttons */
.desk-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.desk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #D6CEC2;
  border: 1px solid rgba(196, 164, 118, 0.22);
  background: rgba(255, 248, 236, 0.03);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.desk-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.desk-btn .aa-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 1.5px 3px;
  border: 1px solid currentColor;
}

.desk-btn:hover {
  color: #FFF7E8;
  border-color: rgba(219, 187, 136, 0.52);
  background: rgba(255, 245, 224, 0.08);
}

.desk-btn[aria-pressed="true"] {
  color: #FFF2D4;
  border-color: #DCA75C;
  background: rgba(220, 167, 92, 0.18);
  box-shadow: inset 0 0 10px rgba(229, 169, 78, 0.18);
}

body[data-lamp="beam"] #lamp-toggle,
body[data-lamp="night"] #lamp-toggle {
  color: #F6EBD4;
  border-color: #C9AE82;
  background: rgba(201, 174, 130, 0.2);
  box-shadow: inset 0 0 8px rgba(245, 228, 196, 0.16);
}

body[data-lamp="beam"] #lamp-toggle svg,
body[data-lamp="night"] #lamp-toggle svg {
  fill: rgba(245, 226, 188, 0.28);
  stroke: #EFE0C2;
}
.desk-btn-subtle {
  border-style: dashed;
  color: #B8A58B;
}

.clip-badge {
  font-style: normal;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vermilion);
  color: #FAF4E8;
}

/* 5. Physical Newspaper Sheet, Crease Folds & Tungsten Lamp Glow
   -------------------------------------------------------------------------- */
.paper-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.lamp-glow {
  display: none;
}

/* Oblique Asymmetric Elliptical Scattered Flashlight / Desk-Lamp Beam */
.reading-beam {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body[data-lamp="beam"] .reading-beam,
body[data-lamp="night"] .reading-beam {
  opacity: 1;
}

.beam-pivot {
  position: absolute;
  left: var(--bx, 54vw);
  top: var(--by, 42vh);
  width: 0;
  height: 0;
  will-change: left, top, transform;
}

.beam-shade {
  position: absolute;
  left: 0;
  top: 0;
  width: 340vmax;
  height: 340vmax;
  transform: translate(-50%, -50%) rotate(var(--b-rot, 26deg)) scaleX(2.05) scaleY(0.82);
  background: radial-gradient(
    circle at 51.8% 50%,
    rgba(20, 19, 17, 0) 0%,
    rgba(20, 19, 17, 0.02) 3.8%,
    rgba(20, 19, 17, 0.11) 7.4%,
    rgba(20, 19, 17, 0.23) 12.2%,
    rgba(20, 19, 17, 0.31) 18.5%,
    rgba(20, 19, 17, 0.35) 100%
  );
}

.beam-scatter {
  position: absolute;
  left: 0;
  top: 0;
  width: 340vmax;
  height: 340vmax;
  mix-blend-mode: soft-light;
  transform: translate(-50%, -50%) rotate(var(--b-rot, 26deg)) scaleX(2.22) scaleY(0.8);
  background: radial-gradient(
    circle at 52.2% 50%,
    rgba(255, 251, 243, 0.46) 0%,
    rgba(252, 247, 236, 0.24) 4.8%,
    rgba(246, 240, 228, 0.08) 10.5%,
    transparent 16.5%
  );
}

.newspaper {
  position: relative;
  z-index: 1;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(238, 236, 230, 0.52), rgba(236, 233, 226, 0.52)),
    url("assets/newsprint-texture.webp");
  background-size: auto, 620px;
  padding: 26px 30px 20px;
  border: 1px solid rgba(104, 97, 88, 0.42);
  box-shadow:
    3px 3px 0 #DFDCD4,
    4px 4px 0 rgba(42, 38, 34, 0.48),
    6px 6px 0 #D5D1C8,
    7px 7px 0 rgba(34, 30, 27, 0.54),
    0 18px 46px rgba(0, 0, 0, 0.32),
    inset 0 0 42px rgba(96, 88, 76, 0.06);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.paper-folds {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 49.65%,
      rgba(90, 66, 34, 0.055) 49.92%,
      rgba(255, 250, 238, 0.36) 50.06%,
      rgba(90, 66, 34, 0.03) 50.24%,
      transparent 50.55%
    ),
    linear-gradient(
      180deg,
      transparent 47.2%,
      rgba(86, 62, 32, 0.045) 47.55%,
      rgba(255, 250, 238, 0.3) 47.72%,
      transparent 48.15%
    );
}

.broadsheet {
  position: relative;
  z-index: 2;
  animation: broadsheetEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes broadsheetEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6. Shared Broadsheet Typographic Furniture, Woodcuts & Photo Plates
   -------------------------------------------------------------------------- */
/* W3C CLReq & Heti (赫蹏) Chinese Press Typography Suite */
.story-p {
  font-size: var(--body-size);
  line-height: 1.76;
  text-align: justify;
  line-break: strict;
  text-spacing-trim: space-first;
  text-autospace: normal;
  hanging-punctuation: allow-end last;
  widows: 2;
  orphans: 2;
  color: var(--ink);
  text-shadow: 0 0 0.16px rgba(23, 21, 19, 0.2);
}

.story-p + .story-p {
  text-indent: 2em;
  margin-top: 0.3em;
}

.drop-cap {
  text-indent: 0 !important;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 2.32em;
  line-height: 0.92;
  padding: 2px 6px 1px 0;
  color: var(--vermilion);
}

ruby {
  ruby-align: center;
  ruby-position: over;
}

rt {
  font-family: var(--font-kai);
  font-size: 0.56em;
  font-weight: 400;
  line-height: 1;
  color: var(--vermilion);
  letter-spacing: 0.02em;
  font-feature-settings: "ruby" 1;
  user-select: none;
}

.cjk-halt {
  font-feature-settings: "halt" 1;
}

.cjk-dash {
  display: inline-block;
  letter-spacing: -0.09em;
  font-feature-settings: "fwid" 1;
}

.heti-em {
  font-style: normal;
  text-emphasis: filled circle var(--vermilion);
  text-emphasis-position: under right;
  -webkit-text-emphasis: filled circle var(--vermilion);
  -webkit-text-emphasis-position: under right;
}

u.pn {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  text-decoration-skip-ink: auto;
}

.lead-h2,
.story-h2,
.story-h3,
.feature-h2,
.essay-h2,
.chart-title,
.reader-title {
  text-wrap: balance;
}

.lead-columns,
.feature-columns,
.two-col-prose,
.three-col-essay {
  orphans: 2;
  widows: 2;
}

.story-byline {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.section-plate {
  background:
    repeating-linear-gradient(-45deg, rgba(96, 88, 78, 0.06) 0 2px, transparent 2px 6px),
    rgba(96, 88, 78, 0.07);
  color: var(--ink);
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.32;
  letter-spacing: 0.24em;
  padding: 5px 8px 5px calc(8px + 0.24em);
  text-align: center;
  border-top: 2px solid var(--ink);
  border-bottom: 3px double var(--rule);
  margin-bottom: 12px;
  white-space: nowrap;
}
.kicker-inline {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--vermilion);
  border-bottom: 1px solid rgba(155, 41, 29, 0.38);
  padding-bottom: 1px;
  margin-bottom: 5px;
}

.section-inline-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.dir-sub {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.section-bar-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}

.story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px dotted var(--rule-soft);
}

.link-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vermilion);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(155, 41, 29, 0.42);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.link-read:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.link-jump {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  transition: color 0.18s ease, transform 0.18s ease;
}

.link-jump:hover {
  color: var(--vermilion);
}

/* Clipping Button */
.clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 27px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px dashed var(--rule);
  background: rgba(255, 252, 245, 0.5);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.clip-btn:hover {
  border-style: solid;
  border-color: var(--vermilion);
  color: var(--vermilion);
  background: rgba(155, 41, 29, 0.06);
}

.clip-btn.is-clipped {
  border-style: solid;
  border-color: var(--vermilion);
  background: var(--vermilion);
  color: #FAF4E8;
  font-weight: 600;
}

/* Press Woodcut Illustrations (4-quadrant 1:1 sprite) */
.woodcut {
  display: block;
  aspect-ratio: 1 / 1;
  background-image: url("assets/press-illustrations.webp");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  mix-blend-mode: multiply;
  filter: contrast(1.18) grayscale(0.2);
}

.woodcut-bike {
  background-position: 0% 0%;
}

.woodcut-mug {
  background-position: 100% 0%;
}

.woodcut-soy {
  background-position: 0% 100%;
}

.woodcut-street {
  background-position: 100% 100%;
}

/* Halftone & Ink-Reveal Documentary Photography */
.photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #D8D4CB;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(28, 22, 15, 0.78) 0.55px, transparent 0.78px);
  background-size: 2.6px 2.6px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-3-2 {
  aspect-ratio: 3 / 2;
}

.ink-reveal-figure img {
  filter: grayscale(0.88) sepia(0.1) contrast(1.08) brightness(0.99);
  transition: filter 0.55s ease, transform 0.55s ease;
}

.ink-reveal-figure:hover img,
.ink-reveal-figure:focus-within img {
  filter: grayscale(0.12) saturate(0.76) sepia(0.04) contrast(1.03);
  transform: scale(1.015);
}

.ink-reveal-figure figcaption {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  padding-top: 6px;
}

/* Sheet Turn Navigation Bar & Imprint */
.sheet-turn-bar {
  margin-top: 18px;
  padding: 10px 12px;
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(70, 59, 45, 0.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.prev-sheet-btn,
.next-sheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  color: var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.next-sheet-btn {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.prev-sheet-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.next-sheet-btn:hover {
  background: var(--vermilion);
  color: #FAF4E8;
}

.imprint {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding-top: 9px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   7. SHEET 01 — Front Page Masthead, Upper Grid & Lower Grid
   ========================================================================== */
.masthead {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 236px;
  gap: 18px;
  align-items: stretch;
  padding-bottom: 12px;
}

.ear-box {
  border: 3px double var(--rule);
  padding: 8px 10px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ear-header {
  background: rgba(96, 88, 78, 0.09);
  color: var(--ink);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  padding: 3px 6px 3px calc(6px + 0.14em);
  text-align: center;
  white-space: nowrap;
  margin-bottom: 6px;
}

.ear-index-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.ear-index-list li + li {
  border-top: 1px dotted var(--rule-soft);
}

.ear-index-list button {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 1px;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.ear-index-list button b {
  font-weight: 600;
  color: var(--vermilion);
  flex-shrink: 0;
}

.ear-index-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ear-index-list button:hover {
  color: var(--vermilion);
}

.ear-subcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  white-space: nowrap;
}

.price-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1.45;
}

.price-list > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.price-list > div::after {
  content: "";
  flex: 1;
  order: 2;
  min-width: 8px;
  border-bottom: 1px dotted rgba(70, 59, 45, 0.55);
  transform: translateY(-3px);
}

.price-list dt {
  order: 1;
  font-weight: 600;
  color: var(--ink);
}

.price-list dd {
  order: 3;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Center Masthead */
.masthead-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 4px;
}

.masthead-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
}

.masthead-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

h1.masthead-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(58px, 6.8vw, 96px);
  line-height: 1.04;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: var(--ink);
  filter: url(#letterpress-ink);
  white-space: nowrap;
}

.vermilion-seal {
  font-family: var(--font-seal);
  font-weight: 400;
  color: var(--vermilion);
  border: 2px solid var(--vermilion);
  box-shadow: inset 0 0 0 1px rgba(155, 41, 29, 0.28);
  background: rgba(155, 41, 29, 0.04);
  padding: 3px 5px;
  display: inline-grid;
  grid-template-rows: auto auto;
  gap: 1px;
  font-size: 15px;
  line-height: 1.06;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  filter: url(#letterpress-ink);
  user-select: none;
  flex-shrink: 0;
}

.vermilion-seal span {
  display: block;
  white-space: nowrap;
}

.masthead-sub {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
  padding-top: 5px;
}

/* Issue Metadata Bar */
.issue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 6px 4px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px double var(--rule);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.issue-bar b {
  color: var(--ink);
  font-weight: 600;
}

.issue-divider {
  color: var(--rule-soft);
}

/* Front Upper 3-Column Interlocking Grid */
.front-upper-grid {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 236px;
  gap: 0;
  padding: 14px 0;
  border-bottom: 4px double var(--rule);
  align-items: stretch;
}

.front-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.front-left {
  padding-right: 15px;
  border-right: 1px solid var(--rule);
}

.front-center {
  padding: 0 16px;
}

.front-right {
  padding-left: 15px;
  border-left: 1px solid var(--rule);
}

/* Story Blocks (Left & Right Rails) */
.story-h2 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 19.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.story-h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 17.5px;
  line-height: 1.36;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.story-h2 a:hover,
.story-h3 a:hover,
.lead-h2 a:hover,
.feature-h2 a:hover {
  color: var(--vermilion);
}

.story-block .story-byline {
  margin-bottom: 8px;
}

.brief-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rule-soft);
  margin-bottom: 12px;
}

/* Woodcut Ad Boxes */
.ad-box {
  border: 2px solid var(--rule);
  padding: 10px 11px;
  background: var(--paper-card);
  position: relative;
}

.ad-soy {
  margin-top: 14px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--rule-soft);
}

.ad-top-rule {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 3px;
  margin-bottom: 5px;
}

.ad-headline {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 4px;
}

.ad-soy-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 4px;
}

.ad-soy-body .woodcut-soy {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
}

.ad-vertical-poem {
  font-family: var(--font-kai);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule-soft);
  padding-left: 6px;
}

.ad-copy {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-align: justify;
}

.ad-actions {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dotted var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ad-soy .ad-actions {
  justify-content: flex-end;
}

/* Center Column: Lead Rubric, Hero Photo & Lead Story */
.lead-rubric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--vermilion);
  padding-bottom: 8px;
}

.lead-rubric::before,
.lead-rubric::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}

.rubric-ornament {
  font-size: 11px;
  opacity: 0.85;
}

.hero-figure {
  margin-bottom: 12px;
}

.hero-photo-frame {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--rule);
}

.hero-photo-frame img {
  filter: saturate(0.72) contrast(1.03) brightness(0.98) sepia(0.04);
  transition: filter 0.45s ease;
}

.hero-photo-frame:hover img {
  filter: saturate(0.84) contrast(1.04) brightness(1);
}

.field-pin {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: rgba(244, 236, 221, 0.72);
  color: var(--ink);
  border: 1px solid rgba(135, 59, 49, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.field-pin:hover,
.field-pin.is-selected {
  opacity: 0.96;
  background: rgba(135, 59, 49, 0.88);
  color: #FAF4E8;
  border-color: rgba(250, 244, 232, 0.85);
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(135, 59, 49, 0.28), 0 2px 6px rgba(0, 0, 0, 0.45);
}

.hero-caption {
  padding: 7px 10px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.caption-main {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.caption-pin-note {
  font-family: var(--font-kai);
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--vermilion-deep);
}

.lead-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-h2 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(24px, 2.35vw, 31px);
  line-height: 1.26;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.lead-deck {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.lead-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 5px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.lead-columns {
  column-count: 3;
  column-gap: 18px;
  column-rule: 1px solid var(--rule-soft);
}

.lead-pullquote {
  font-family: var(--font-kai);
  font-size: 15.5px;
  line-height: 1.68;
  padding: 10px 14px;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--vermilion);
  background: var(--paper-card);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pullquote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-family: var(--font-song);
  padding-top: 5px;
  border-top: 1px dotted var(--rule-soft);
}

/* Right Column Bottom Vignette */
.alley-vignette {
  border: 1px solid var(--rule);
  padding: 10px 11px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alley-vignette .woodcut-street {
  width: 152px;
  height: 152px;
  margin: -8px auto -6px;
}

.vignette-text h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--vermilion-deep);
  margin-bottom: 4px;
  text-align: center;
  white-space: nowrap;
}

.vignette-text p {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  text-align: justify;
}

/* Front Lower 3-Column Interlocking Grid */
.front-lower-grid {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 236px;
  gap: 0;
  padding-top: 14px;
  align-items: stretch;
}

.ad-bike {
  margin-right: 15px;
  display: flex;
  flex-direction: column;
}

.ad-banner-dark {
  background: rgba(96, 88, 78, 0.1);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 3px double var(--rule);
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}

.ad-sub-kicker {
  font-size: 11px;
  color: var(--vermilion);
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 5px;
  white-space: nowrap;
}

.ad-bike .woodcut-bike {
  width: 138px;
  height: 138px;
  margin: -6px auto -6px;
}

.ad-bike .ad-actions {
  margin-top: auto;
}

.bottom-feature {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 11px;
}

.feature-h2 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.feature-deck {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 186px;
  gap: 16px;
  align-items: start;
}

.feature-columns {
  column-count: 2;
  column-gap: 18px;
  column-rule: 1px solid var(--rule-soft);
}

.feature-columns .story-foot {
  column-span: all;
  margin-top: 10px;
}

.feature-photo .photo-frame {
  aspect-ratio: 4 / 4.7;
}

.lower-right-stack {
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.ad-mug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 4px;
}

.stamp-mini {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--vermilion);
  border: 1px solid var(--vermilion);
  padding: 1px 4px;
  white-space: nowrap;
}

.ad-mug-head h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 15.5px;
  white-space: nowrap;
}

.ad-mug-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
}

.ad-mug-row .woodcut-mug {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  margin: -6px 0;
}

.ad-mug-points {
  font-family: var(--font-kai);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-left: 1px solid var(--rule-soft);
  padding-left: 8px;
  white-space: nowrap;
}

.mini-classifieds {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-classified {
  border: 1px dashed var(--rule);
  padding: 7px 9px;
  background: var(--paper-card);
  font-size: 12px;
  line-height: 1.56;
  color: var(--ink-soft);
  text-align: justify;
}

.mini-classified b {
  color: var(--ink);
}

/* ==========================================================================
   8. SHEET 02 — Morning Fare, 12-Shichen SVG Curve & Stall Directory
   ========================================================================== */
.subsheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 7px 2px 9px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px double var(--rule);
  margin-bottom: 18px;
}

.subsheet-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.1em;
}

.subsheet-meta {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.subsheet-num {
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule);
  padding: 2px 10px;
  background: var(--paper-card);
}

.subsheet-num b {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--vermilion);
  font-size: 15px;
}

.sheet2-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}

.sheet2-lead .story-byline {
  margin: 6px 0 10px;
}

.two-col-prose {
  column-count: 2;
  column-gap: 18px;
  column-rule: 1px solid var(--rule-soft);
}

.sheet2-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.sheet2-photos figure:nth-child(2) {
  margin-top: 38px;
}

/* Print Data Visualization Box */
.print-chart-box {
  border: 3px double var(--rule);
  padding: 15px 18px;
  background: rgba(255, 252, 245, 0.35);
  margin-bottom: 22px;
}

.chart-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}

.chart-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(18px, 1.75vw, 22px);
  line-height: 1.32;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
}

.legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  vertical-align: middle;
  margin-right: 6px;
}

.legend-vermilion {
  border-top: 2.5px solid var(--vermilion);
}

.legend-ink {
  border-top: 1.8px dashed var(--ink);
}

.chart-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
}

.hours-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-grid-lines line {
  stroke: rgba(70, 59, 45, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.chart-grid-lines line.axis-baseline {
  stroke: var(--rule);
  stroke-width: 1.4;
  stroke-dasharray: none;
}

.chart-y-labels text {
  font-family: var(--font-song);
  font-size: 11px;
  fill: var(--muted);
  text-anchor: end;
}

.chart-grid-lines,
.chart-y-labels,
.chart-cursor-line,
.chart-area,
.chart-line-ink,
.chart-line-vermilion {
  pointer-events: none;
}

.chart-cursor-line {
  stroke: var(--vermilion);
  stroke-width: 1.3;
  stroke-dasharray: 4 3;
  opacity: 0.78;
  transition: x1 0.22s ease, x2 0.22s ease;
}

.chart-area {
  fill: rgba(155, 41, 29, 0.09);
}

.chart-line-ink {
  fill: none;
  stroke: #1C1916;
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-vermilion {
  fill: none;
  stroke: #9B291D;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-node {
  cursor: pointer;
  outline: none;
}

.chart-node circle {
  fill: var(--paper);
  stroke: var(--vermilion);
  stroke-width: 2.2;
  transition: r 0.18s ease, fill 0.18s ease, stroke 0.18s ease;
}

.chart-node text {
  font-family: var(--font-song);
  font-size: 11.5px;
  fill: var(--ink-soft);
  text-anchor: middle;
  transition: fill 0.18s ease;
}

.chart-node:hover circle,
.chart-node:focus-visible circle,
.chart-node.is-active circle {
  r: 8px;
  fill: var(--vermilion);
  stroke: var(--ink);
}

.chart-node:hover text,
.chart-node:focus-visible text,
.chart-node.is-active text {
  fill: var(--vermilion);
  font-weight: 600;
}

/* Linked Hour Detail Card */
.hour-detail-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px 16px;
  box-shadow: 3px 3px 0 rgba(70, 59, 45, 0.14);
}

.hour-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--rule-soft);
  margin-bottom: 8px;
}

.hour-badge {
  background: var(--vermilion);
  color: #FAF4E8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  letter-spacing: 0.05em;
}

.hour-metrics {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

#hd-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.36;
  margin-bottom: 6px;
}

#hd-desc {
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 10px;
}

.hour-meta-footer {
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
}

#hd-dish {
  font-family: var(--font-kai);
  color: var(--ink);
}

/* Filterable Stall Directory */
.directory-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}

.directory-bar .section-inline-title {
  margin-bottom: 2px;
}

.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(70, 59, 45, 0.08);
}

.filter-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 600;
}

.stall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stall-card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--paper-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.stall-card:hover {
  border-top-color: var(--vermilion);
  background: rgba(255, 252, 245, 0.7);
}

.stall-card-head,
.stall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  padding-bottom: 5px;
  border-bottom: 1px dotted var(--rule-soft);
}

.stall-period,
.stall-tag {
  font-weight: 600;
  color: var(--vermilion);
  letter-spacing: 0.04em;
}

.stall-addr {
  color: var(--muted);
}

.stall-name {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.34;
  margin-top: 2px;
}

.stall-sig {
  font-family: var(--font-kai);
  font-size: 13.5px;
  color: var(--vermilion-deep);
}

.stall-sig b {
  font-family: var(--font-song);
  font-weight: 600;
}

.stall-note {
  font-size: 13px;
  line-height: 1.66;
  color: var(--ink-soft);
  text-align: justify;
  text-spacing-trim: space-first;
  text-autospace: normal;
  flex: 1;
}

.stall-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   9. SHEET 03 — Spatial Blueprint, Material Artifacts & 1872 Shenbao Loupe
   ========================================================================== */
.blueprint-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: stretch;
  padding-bottom: 20px;
  border-bottom: 3px double var(--rule);
  margin-bottom: 20px;
}

.blueprint-intro {
  display: flex;
  flex-direction: column;
}

.blueprint-intro .feature-h2 {
  margin-bottom: 8px;
}

.blueprint-intro > .story-p {
  margin-bottom: 14px;
}

.bp-detail-box {
  margin-top: auto;
  border: 2px solid var(--rule);
  padding: 13px 15px;
  background: var(--paper-card);
}

.bp-detail-tag {
  display: inline-block;
  background: var(--vermilion);
  color: #FAF4E8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  margin-bottom: 7px;
}

#bp-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 6px;
}

#bp-body {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 8px;
}

.bp-rule-note {
  font-family: var(--font-kai);
  font-size: 13px;
  color: var(--ink);
  padding-top: 7px;
  border-top: 1px dashed var(--rule-soft);
}

.blueprint-canvas-wrap {
  border: 1px solid var(--rule);
  background: rgba(255, 252, 246, 0.52);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--ink);
}

.bp-wall-label,
.bp-road-label {
  font-family: var(--font-song);
  font-size: 11.5px;
  fill: var(--ink-soft);
  letter-spacing: 0.06em;
}

.bp-pillar {
  fill: var(--ink);
  stroke: var(--ink);
}

.bp-scale text {
  font-family: Georgia, var(--font-song);
  font-size: 10.5px;
  fill: var(--muted);
}

.bp-zone {
  cursor: pointer;
  outline: none;
}

.bp-shape {
  fill: rgba(242, 235, 221, 0.72);
  stroke: var(--ink);
  stroke-width: 1.3;
  transition: fill 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease;
}

.bp-corridor {
  fill: rgba(70, 59, 45, 0.05);
  stroke-dasharray: 5 3;
}

.bp-subshape {
  fill: rgba(255, 252, 245, 0.85);
  stroke: var(--ink-soft);
  stroke-width: 1;
}

.bp-subshape-dash {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1;
  stroke-dasharray: 3 2;
}

.bp-zone-text {
  font-family: var(--font-song);
  font-size: 11.5px;
  fill: var(--ink);
  pointer-events: none;
}

.bp-num-badge {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1.2;
  transition: fill 0.18s ease;
}

.bp-num-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  fill: #FAF4E8;
  text-anchor: middle;
  pointer-events: none;
}

.bp-zone:hover .bp-shape,
.bp-zone:focus-visible .bp-shape,
.bp-zone.is-active .bp-shape {
  fill: #9B291D1F;
  stroke: #9B291D;
  stroke-width: 2;
}

.bp-zone:hover .bp-num-badge,
.bp-zone:focus-visible .bp-num-badge,
.bp-zone.is-active .bp-num-badge {
  fill: #9B291D;
}

.bp-zone.is-active .bp-zone-text {
  fill: var(--vermilion-deep);
  font-weight: 600;
}

/* Material Artifact Cards */
.artifact-section {
  padding-bottom: 20px;
  border-bottom: 3px double var(--rule);
  margin-bottom: 20px;
}

.artifact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.artifact-card {
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.artifact-card:hover {
  border-color: var(--vermilion);
  background: rgba(255, 252, 245, 0.74);
  transform: translateY(-2px);
}

.artifact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-bottom: 5px;
  border-bottom: 1px dotted var(--rule-soft);
}

.artifact-cut {
  width: 116px;
  height: 116px;
  margin: 6px auto 8px;
  flex-shrink: 0;
}

.artifact-card h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 6px;
}

.artifact-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: justify;
  flex: 1;
  margin-bottom: 10px;
}

.artifact-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--vermilion);
  text-align: right;
  padding-top: 6px;
  border-top: 1px solid var(--rule-soft);
}

/* 1872 Shenbao Media-Archaeology Viewer & Optical Loupe */
.shenbao-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.shenbao-copy .story-byline {
  margin: 5px 0 10px;
}

.loupe-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.loupe-btn {
  text-align: left;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.loupe-btn:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.loupe-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--vermilion);
}

.loupe-caption {
  font-family: var(--font-kai);
  font-size: 14.5px;
  line-height: 1.72;
  padding: 12px 14px;
  border-left: 3px solid var(--vermilion);
  background: var(--paper-card);
  color: var(--ink);
}

.shenbao-viewer {
  position: relative;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
  border: 2px solid var(--rule);
  background: #F5F1E7;
  cursor: crosshair;
  box-shadow: inset 0 0 24px rgba(82, 63, 38, 0.18);
}

#shenbao-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.shenbao-loupe {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 3px solid #3A2E21;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 12px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(214, 182, 128, 0.55);
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #F6F2E9;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.shenbao-loupe.is-active {
  opacity: 1;
  transform: scale(1);
}

.viewer-hint {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 8px;
  background: rgba(28, 25, 22, 0.8);
  color: #F5ECDC;
  font-size: 11px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ==========================================================================
   10. SHEET 04 — Supplement Essay, Dialect Glossary & Tofu Classifieds
   ========================================================================== */
.supplement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 3px double var(--rule);
  margin-bottom: 20px;
}

.essay-title-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}

.vertical-rubric {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background: var(--vermilion);
  color: #F7F1E5;
  padding: 8px 5px;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 229, 0.32);
  flex-shrink: 0;
}

.essay-h2 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin: 2px 0 6px;
}

.three-col-essay {
  column-count: 3;
  column-gap: 18px;
  column-rule: 1px solid var(--rule-soft);
}

/* Dialect Glossary Sidebar */
.dialect-box {
  border: 2px solid var(--rule);
  padding: 12px 13px;
  background: var(--paper-card);
}

.dialect-intro {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.dialect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialect-item {
  border: 1px solid var(--rule-soft);
  background: rgba(255, 252, 245, 0.52);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.dialect-item.is-open {
  border-color: var(--vermilion);
  background: rgba(255, 252, 246, 0.88);
}

.dialect-trigger,
.dialect-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  text-align: left;
}

.dialect-term {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
}

.dialect-item.is-open .dialect-term {
  color: var(--vermilion);
}

.dialect-phonetic {
  font-family: Georgia, var(--font-song);
  font-size: 11.5px;
  color: var(--muted);
  margin-right: auto;
  padding-left: 4px;
}

.dialect-toggle-icon {
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dialect-item.is-open .dialect-toggle-icon {
  transform: rotate(180deg);
  color: var(--vermilion);
}

.dialect-panel,
.dialect-body {
  padding: 8px 10px 10px;
  border-top: 1px dotted var(--rule-soft);
}

.dialect-gloss {
  font-size: 13px;
  line-height: 1.64;
  color: var(--ink-soft);
  text-align: justify;
  margin-bottom: 6px;
}

.dialect-example {
  font-family: var(--font-kai);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 8px;
  border-left: 2px solid var(--vermilion);
}

/* Tofu-Block Classified Wall & Snip-Off Coupons */
.tofu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tofu-box {
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(70, 59, 45, 0.22);
  padding: 12px 14px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tofu-box h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 15.5px;
  color: var(--ink);
}

.tofu-box p {
  font-size: 13px;
  line-height: 1.66;
  color: var(--ink-soft);
  text-align: justify;
  flex: 1;
}

.tofu-box.tofu-coupon {
  border: 2px dashed var(--vermilion);
  box-shadow: none;
  background: linear-gradient(180deg, rgba(155, 41, 29, 0.045), rgba(255, 251, 242, 0.62));
}

.tofu-coupon.is-clipped,
.tofu-coupon:has(.clip-btn.is-clipped) {
  background: linear-gradient(180deg, rgba(155, 41, 29, 0.1), rgba(255, 251, 242, 0.5));
}

.coupon-tag {
  align-self: flex-start;
  background: var(--vermilion);
  color: #FAF4E8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 2px 8px;
}

.coupon-snip {
  margin-top: 4px;
  align-self: flex-end;
}

/* Finite Ending Colophon Sign-Off */
.finite-ending {
  margin-top: 22px;
  padding: 22px 20px 18px;
  border-top: 3px double var(--rule);
  text-align: center;
  background: linear-gradient(180deg, rgba(70, 59, 45, 0.045), transparent);
}

.fleuron {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--vermilion);
  margin-bottom: 8px;
}

.ending-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.ending-sub {
  font-family: var(--font-kai);
  font-size: 15.5px;
  line-height: 1.82;
  max-width: 42em;
  margin: 0 auto 14px;
  color: var(--ink-soft);
}

.ending-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   11. Paper Dialogs (Single-Column Reader, Search, Scrapbook, Colophon) & Toast
   ========================================================================== */
.paper-dialog {
  border: 2px solid var(--rule);
  padding: 0;
  width: min(860px, calc(100vw - 32px));
  max-height: min(90dvh, 920px);
  background-color: var(--paper-elevated);
  background-image:
    linear-gradient(180deg, rgba(243, 241, 235, 0.64), rgba(240, 238, 232, 0.64)),
    url("assets/newsprint-texture.webp");
  background-size: auto, 620px;
  color: var(--ink);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.48),
    inset 0 0 36px rgba(96, 88, 76, 0.06);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-dialog,
.scrapbook-dialog {
  width: min(720px, calc(100vw - 32px));
}

.paper-dialog::backdrop {
  background: rgba(16, 12, 9, 0.78);
  backdrop-filter: blur(2.5px);
}

.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 24px;
  background: var(--paper-tint);
  border-bottom: 3px double var(--rule);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.dialog-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12.5px;
  border: 1px solid var(--rule);
  background: rgba(255, 252, 245, 0.55);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.dialog-close span {
  font-size: 18px;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Single-Column Quiet Reader */
.reader-body {
  padding: 36px 48px 44px;
  max-width: 780px;
  margin: 0 auto;
}

.reader-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--vermilion);
  margin-bottom: 10px;
}

.reader-title,
.reader-body > h2 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.reader-deck {
  font-family: var(--font-kai);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.reader-byline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 18px;
}

.reader-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-card);
  font-size: 12.5px;
}

.reader-meta-grid dt {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.reader-meta-grid dd {
  font-weight: 600;
  color: var(--ink);
}

.reader-body .prose {
  font-size: var(--reader-size);
  line-height: 1.95;
  max-width: 36em;
  margin: 0 auto;
  text-align: justify;
  line-break: strict;
  text-spacing-trim: space-first;
  text-autospace: normal;
  hanging-punctuation: allow-end last;
  text-shadow: 0 0 0.18px rgba(23, 21, 19, 0.2);
}

.reader-body .prose p {
  text-indent: 2em;
}

.reader-body .prose p + p {
  margin-top: 0.72em;
}

.reader-body .prose h3 {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 1.1em;
  line-height: 1.4;
  margin: 1.6em 0 0.6em;
  padding-top: 0.8em;
  border-top: 1px dotted var(--rule-soft);
}

.reader-body .prose ul {
  list-style: disc;
  margin: 0.9em 0 1.2em;
  padding-left: 1.35em;
  display: grid;
  gap: 0.55em;
  font-size: 0.9em;
  line-height: 1.85;
}

.reader-body .prose code {
  font-size: 0.85em;
  padding: 1px 5px;
  background: rgba(70, 59, 45, 0.1);
  border: 1px solid var(--rule-soft);
}

.reader-quote {
  font-family: var(--font-kai);
  font-size: 1.04em;
  line-height: 1.82;
  max-width: 34em;
  margin: 26px auto;
  padding: 14px 18px;
  border-left: 3px solid var(--vermilion);
  background: var(--paper-card);
  color: var(--ink);
}

.reader-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 0.82em;
  font-style: normal;
  color: var(--muted);
  text-align: right;
}

/* Reader Marginalia & Street Notes */
.reader-notes,
.reader-notes-section {
  max-width: 38em;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 3px double var(--rule);
  font-family: var(--font-kai);
}

.notes-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.notes-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.notes-sub {
  font-size: 13px;
  color: var(--muted);
}

.notes-list,
.note-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.note-item {
  padding: 10px 13px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-card);
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-song);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.note-author {
  color: var(--vermilion-deep);
  font-weight: 600;
}

.note-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.note-form-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 8px;
}

.note-input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.82);
  font-family: var(--font-song);
  font-size: 13.5px;
}

.note-submit {
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-song);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.note-submit:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
}

.reader-foot-nav {
  max-width: 38em;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search Dialog */
.search-box-body {
  padding: 22px 26px 28px;
}

.search-field {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: rgba(255, 253, 248, 0.86);
}

.search-field > span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font-size: 14.5px;
  outline: none;
}

.search-quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.search-quick-tags [data-quick-q] {
  padding: 3px 10px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-card);
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.search-quick-tags [data-quick-q]:hover,
.search-quick-tags [data-quick-q].is-active {
  border-color: var(--vermilion);
  background: var(--vermilion);
  color: #FAF4E8;
}

.search-results {
  display: grid;
  gap: 8px;
}

.search-hit {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  border: 1px solid var(--rule-soft);
  background: var(--paper-card);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.search-hit:hover {
  border-color: var(--vermilion);
  background: rgba(255, 252, 245, 0.85);
}

.search-hit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.search-hit-type {
  color: var(--vermilion);
  font-weight: 600;
}

.search-hit-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
}

.search-hit-snippet {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.search-empty,
.stall-empty,
.scrap-empty {
  grid-column: 1 / -1;
  padding: 26px 18px;
  text-align: center;
  border: 1px dashed var(--rule-soft);
  background: var(--paper-card);
  font-family: var(--font-kai);
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

/* Scrapbook Dialog */
.scrapbook-body {
  padding: 22px 26px 28px;
}

.scrapbook-lead {
  font-family: var(--font-kai);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}

.scrapbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.scrapbook-list {
  display: grid;
  gap: 10px;
}

.scrap-card {
  border: 1px dashed var(--rule);
  padding: 12px 15px;
  background: var(--paper-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scrap-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.scrap-tag {
  color: var(--vermilion);
  font-weight: 600;
}

.scrap-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 16px;
}

.scrap-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.scrap-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dotted var(--rule-soft);
}

.scrap-remove {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.scrap-remove:hover {
  color: var(--vermilion);
  border-color: var(--vermilion);
}

/* Status Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 16px;
  background: #1D1712;
  color: #F6EDDD;
  border: 1px solid rgba(196, 164, 118, 0.55);
  border-left: 4px solid var(--vermilion);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible,
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   12. Responsive Editorial Breakpoints (1920 / 1440 / 1024 / 720 / Mobile)
   ========================================================================== */
@media (min-width: 1400px) {
  .reading-desk {
    padding: 18px 36px 52px;
  }
}

@media (max-width: 1120px) {
  .reading-desk {
    padding: 12px 20px 36px;
  }

  .desk-bar {
    justify-content: space-between;
  }

  .sheet-tabs {
    order: 3;
    width: 100%;
  }

  .sheet-tab {
    flex: 1;
    justify-content: center;
  }

  .newspaper {
    padding: 22px 24px 18px;
  }

  .masthead {
    grid-template-columns: 212px minmax(0, 1fr) 222px;
    gap: 12px;
  }

  h1.masthead-title {
    font-size: clamp(46px, 5.4vw, 68px);
    letter-spacing: 0.1em;
    padding-left: 0.1em;
  }

  .front-upper-grid,
  .front-lower-grid {
    grid-template-columns: 212px minmax(0, 1fr) 222px;
  }

  .lead-columns {
    column-count: 2;
  }

  .artifact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplement-grid {
    grid-template-columns: minmax(0, 1fr) 268px;
  }

  .three-col-essay {
    column-count: 2;
  }
}

/* Covers ZeroCup 720px & Tablet Portrait Editorial Reflow */
@media (max-width: 920px) {
  .reading-desk {
    padding: 10px 14px 30px;
  }

  .newspaper {
    padding: 20px 20px 18px;
  }

  /* Masthead: full-width nameplate above 2-column ear boxes */
  .masthead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .masthead-center {
    grid-column: 1 / -1;
    order: -1;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule-soft);
  }

  h1.masthead-title {
    font-size: clamp(50px, 8.6vw, 72px);
    letter-spacing: 0.12em;
    padding-left: 0.12em;
  }

  /* Front Upper Grid: Lead center full-width on top, Left & Right side-by-side */
  .front-upper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .front-center {
    grid-column: 1 / -1;
    order: -1;
    padding: 0 0 16px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--rule);
  }

  .front-left {
    padding-right: 14px;
    border-right: 1px solid var(--rule);
  }

  .front-right {
    padding-left: 14px;
    border-left: 0;
  }

  /* Front Lower Grid: Bottom feature full-width on top, Bike & Mug stack side-by-side */
  .front-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bottom-feature {
    grid-column: 1 / -1;
    order: -1;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--rule);
  }

  .ad-bike,
  .lower-right-stack {
    margin: 0;
  }

  /* Sheet 2 */
  .sheet2-top-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sheet2-photos figure:nth-child(2) {
    margin-top: 0;
  }

  .chart-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Sheet 3 */
  .blueprint-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shenbao-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Sheet 4 */
  .supplement-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tofu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-body {
    padding: 28px 30px 36px;
  }
}

/* Mobile Narrow Viewport (<600px) */
@media (max-width: 600px) {
  .reading-desk {
    padding: 6px 8px 24px;
  }

  .desk-bar {
    padding: 8px 9px;
    gap: 8px;
  }

  .desk-brand {
    width: 100%;
    justify-content: space-between;
  }

  .sheet-tabs {
    order: 2;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sheet-tabs::-webkit-scrollbar {
    display: none;
  }

  .sheet-tab {
    min-height: 40px;
    padding: 6px 11px;
    flex: 1 0 auto;
  }

  .desk-actions {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .desk-btn {
    min-height: 40px;
    padding: 4px 6px;
    font-size: 11.5px;
  }

  #colophon-open {
    grid-column: span 2;
  }

  .newspaper {
    padding: 16px 14px 15px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 0 36px rgba(136, 102, 54, 0.14);
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .masthead-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding-left: 0.14em;
    white-space: normal;
  }

  h1.masthead-title {
    font-size: clamp(40px, 12.2vw, 54px);
    letter-spacing: 0.08em;
    padding-left: 0.08em;
  }

  .vermilion-seal {
    font-size: 13px;
    padding: 2px 4px;
  }

  .masthead-sub {
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .issue-bar {
    font-size: 11.5px;
    justify-content: center;
    text-align: center;
  }

  .issue-divider {
    display: none;
  }

  .issue-bar > span {
    width: 100%;
  }

  .front-upper-grid {
    grid-template-columns: 1fr;
  }

  .front-left {
    padding-right: 0;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .front-right {
    padding-left: 0;
  }

  .lead-columns,
  .feature-columns,
  .two-col-prose,
  .three-col-essay {
    column-count: 1;
  }

  .field-pin {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
  }

  .front-lower-grid,
  .feature-body,
  .sheet2-photos,
  .stall-grid,
  .artifact-cards,
  .loupe-presets,
  .tofu-grid,
  .note-form-row {
    grid-template-columns: 1fr;
  }

  .feature-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-photo .photo-frame {
    aspect-ratio: 3 / 2;
  }

  .print-chart-box {
    padding: 12px 11px;
  }

  .shenbao-loupe {
    width: 148px;
    height: 148px;
  }

  .essay-title-block {
    gap: 10px;
  }

  .paper-dialog {
    width: calc(100vw - 14px);
    max-height: 92dvh;
  }

  .dialog-bar {
    padding: 8px 14px;
  }

  .reader-body,
  .search-box-body,
  .scrapbook-body {
    padding: 20px 16px 26px;
  }

  .prev-sheet-btn,
  .next-sheet-btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: none;
  }
}

/* ==========================================================================
   13. Reduced Motion & Physical Print Stylesheet
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .reading-desk {
    padding: 0;
  }

  .desk-bar,
  .lamp-glow,
  .reading-beam,
  .paper-folds,
  .sheet-turn-bar,
  .clip-btn,
  .paper-dialog,
  .toast,
  .skip-link {
    display: none !important;
  }

  .paper-stage {
    max-width: none;
  }

  .newspaper {
    background: #FAF6EC !important;
    box-shadow: none !important;
    border: 0;
    padding: 8mm;
  }

  .broadsheet[hidden] {
    display: block !important;
    page-break-before: always;
    break-before: page;
  }

  .ink-reveal-figure img {
    filter: none !important;
  }

  .imprint,
  .ad-box,
  .stall-card,
  .artifact-card,
  .tofu-box {
    break-inside: avoid;
  }
}
