@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,700;0,8..60,900;1,8..60,400;1,8..60,700&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&family=UnifrakturMaguntia&display=swap');

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --rule: #2a2a2a;
  --accent: #8b0000;
  --faded: #555;
  --light-rule: #bbb;

  --font-masthead: 'UnifrakturMaguntia', Georgia, serif;
  --font-headline: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-cn-headline: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-cn-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-cn-ui: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #d4cfc5;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

body.lang-cn {
  --font-headline: var(--font-cn-headline);
  --font-body: var(--font-cn-body);
  --font-ui: var(--font-cn-ui);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.newspaper {
  max-width: 1200px;
  margin: 30px auto;
  background: var(--paper);
  padding: 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  position: relative;
}

.newspaper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.008) 1px, rgba(0,0,0,0.008) 2px);
  pointer-events: none;
  z-index: 1;
}

/* ─── Language toggle ─── */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--ink);
  color: #ccc;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  user-select: none;
  transition: background 0.15s;
}

.lang-pill:hover { background: #2a2a2a; }

.lang-pill-name { color: #fff; font-weight: 600; }

.lang-pill-arrow {
  font-size: 8px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.lang-toggle.open .lang-pill-arrow { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--ink);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.lang-toggle.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  color: #999;
  font-family: var(--font-ui);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

[dir="rtl"] .lang-menu-item { text-align: right; }

.lang-menu-item:hover { background: rgba(255,255,255,0.06); color: #ddd; }

.lang-menu-item.active {
  color: #fff;
  background: var(--accent);
}

.lang-menu-item .lang-code {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
}

.lang-menu-item.active .lang-code { opacity: 0.8; }

/* hide old buttons */
.lang-btn { display: none; }

/* ─── Masthead ─── */
.masthead {
  text-align: center;
  padding: 25px 40px 0;
  border-bottom: 4px double var(--rule);
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faded);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-rule);
  margin-bottom: 10px;
}

.masthead-title {
  font-family: var(--font-masthead);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  margin: 5px 0;
}

.masthead-title-cn {
  font-family: var(--font-cn-headline);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 8px;
  margin: 5px 0;
}

.masthead-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--faded);
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 0;
  border-top: 1px solid var(--light-rule);
  color: var(--faded);
  letter-spacing: 0.5px;
}

/* ─── Market Ticker Strip ─── */
.market-ticker {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: #eae5da;
  border-bottom: 2px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.market-ticker::-webkit-scrollbar { display: none; }

.ticker-item {
  flex: 0 0 auto;
  text-align: center;
  padding: 10px 16px;
  border-right: 1px solid var(--light-rule);
  font-family: var(--font-ui);
  white-space: nowrap;
  min-width: 0;
}
.ticker-item:last-child { border-right: none; }

.ticker-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--faded);
  font-weight: 600;
  margin-bottom: 3px;
}

.ticker-price {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}

.ticker-change {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.ticker-change.ticker-up { color: #1a8c3a; }
.ticker-change.ticker-down { color: #c0392b; }
.ticker-change.ticker-flat { color: var(--faded); }

.ticker-loading {
  padding: 8px 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--faded);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topic-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topic-icon-svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.topic-icon-muted {
  color: var(--faded);
}

.masthead-meta .topic-icon-svg {
  width: 13px;
  height: 13px;
}

/* ─── Content ─── */
.content { padding: 0 30px 30px; }

.headline-section {
  border-bottom: 2px solid var(--rule);
  padding: 20px 0;
}

.main-headline {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 8px;
}

.main-headline-cn {
  font-family: var(--font-cn-headline);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 8px;
}

.sub-headline {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  color: var(--faded);
  max-width: 800px;
  margin: 0 auto 12px;
  line-height: 1.4;
}

.byline {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-top: 5px;
}

/* ─── Hero image ─── */
.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: grayscale(30%) contrast(1.1);
  border-top: 1px solid var(--light-rule);
  border-bottom: 1px solid var(--light-rule);
}

.hero-caption {
  font-size: 10px;
  color: var(--faded);
  text-align: right;
  padding: 4px 0;
  letter-spacing: 0.5px;
  font-style: italic;
}

/* ─── Grid layouts ─── */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--light-rule);
  align-items: start;
}

.grid-21 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  border-top: 2px solid var(--rule);
  align-items: start;
}

.grid-12 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-top: 1px solid var(--light-rule);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--light-rule);
  align-items: start;
}

.cards-grid {
  border-top: 1px solid var(--light-rule);
  align-items: start;
}

.cards-grid .col {
  min-height: auto;
}

.cards-masonry {
  display: grid;
  border-top: 1px solid var(--light-rule);
  align-items: start;
}

.cards-masonry-2 {
  grid-template-columns: 1fr 1fr;
}

.cards-masonry-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.cards-column {
  border-right: 1px solid var(--light-rule);
  align-self: start;
}

.cards-column:last-child {
  border-right: none;
}

.cards-column .col {
  border-right: none;
  border-bottom: 1px solid var(--light-rule);
}

.cards-column .col:last-child {
  border-bottom: none;
}

.cards-grid-divider {
  margin-bottom: 0;
}

.cards-grid-col.short .col-headline,
.cards-grid-col.short .col-headline-lg {
  font-size: 20px;
  line-height: 1.22;
}

.cards-grid-thumb.compact {
  height: 130px;
}

.col-full {
  border-right: none;
  border-top: 1px solid var(--light-rule);
}

.cards-grid-col.span-full {
  grid-column: 1 / -1;
}

.cards-grid-col.span-2 {
  grid-column: span 2;
}

.brief-stack {
  display: grid;
  gap: 0;
}

.brief-stack-item {
  padding-bottom: 8px;
}

.article-brief .col-headline,
.article-brief .col-headline-lg {
  font-size: 19px;
  line-height: 1.25;
}

.article-bullets {
  margin: 0 0 10px 18px;
  padding: 0;
}

.article-bullets li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.quick-briefs {
  margin: 8px 0 0 16px;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
}

.quick-briefs li {
  margin-bottom: 8px;
}

.micro-briefs-block {
  padding: 12px 16px;
  border-top: 1px dashed var(--light-rule);
  background: rgba(0,0,0,0.015);
}

.micro-briefs-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.micro-briefs-list {
  margin: 0 0 0 14px;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}

.micro-briefs-list li {
  margin-bottom: 6px;
}

.micro-brief-body {
  font-size: 11px;
  color: var(--faded);
}

.grid-hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border-top: 2px solid var(--rule);
}

.col {
  padding: 18px 20px;
  border-right: 1px solid var(--light-rule);
}

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

/* ─── Section labels ─── */
.section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-banner {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 -30px;
}

/* ─── Headlines ─── */
.col-headline {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.col-headline-sm {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.col-headline-lg {
  font-family: var(--font-headline);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}

/* ─── Body text ─── */
.col p, .col li {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
  text-align: left;
}

body.lang-cn .col p,
body.lang-cn .col li {
  line-height: 1.9;
}

body.lang-cn .sub-headline {
  line-height: 1.55;
}

.col ul { padding-left: 18px; margin-bottom: 10px; }
.col li { margin-bottom: 6px; }

.dropcap::first-letter {
  font-family: var(--font-headline);
  float: left;
  font-size: 62px;
  line-height: 50px;
  padding-right: 8px;
  padding-top: 4px;
  font-weight: 900;
  color: var(--accent);
}

/* ─── Article thumbnail ─── */
.article-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  filter: grayscale(20%) contrast(1.05);
  border: 1px solid var(--light-rule);
}

.article-thumb-sm {
  float: right;
  width: 120px;
  height: 90px;
  object-fit: cover;
  margin: 0 0 10px 14px;
  filter: grayscale(20%) contrast(1.05);
  border: 1px solid var(--light-rule);
}

/* ─── Dividers ─── */
.divider { border: none; border-top: 1px solid var(--light-rule); margin: 15px 0; }

.star-divider {
  text-align: center;
  color: var(--light-rule);
  font-size: 14px;
  margin: 12px 0;
  letter-spacing: 8px;
}

/* ─── Quotes ─── */
.quote-block {
  border-left: 3px solid var(--accent);
  padding: 10px 15px;
  margin: 12px 0;
  font-style: italic;
  background: rgba(0,0,0,0.02);
  font-size: 14px;
  line-height: 1.6;
}

.quote-block small { font-style: normal; color: var(--faded); }

/* ─── Editor Comment ─── */
.editor-comment {
  margin: 10px 0 6px;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(139, 0, 0, 0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

body.lang-cn .editor-comment {
  line-height: 1.72;
}

.editor-comment-label {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-right: 6px;
}

/* ─── Figures ─── */
.figure-box {
  background: #eae5da;
  padding: 14px 12px;
  margin: 14px 0;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  font-family: var(--font-headline);
  color: var(--accent);
  border: 1px solid var(--light-rule);
}

.figure-box small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--faded);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.figure-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.figure-row .figure-box { flex: 1; margin: 0; }

/* Figure strip — horizontal highlight bar */
.figure-strip {
  display: flex;
  gap: 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  margin: 0 -30px;
  background: #eae5da;
}

.figure-strip .figure-strip-item {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-right: 1px solid var(--light-rule);
  font-family: var(--font-headline);
}

.figure-strip .figure-strip-item:last-child { border-right: none; }

.figure-strip .figure-strip-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.figure-strip .figure-strip-label {
  font-size: 10px;
  color: var(--faded);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ─── Source badges ─── */
.source-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}

.source-badge.news,
.source-badge.x-twitter,
.source-badge.hackernews,
.source-badge.arxiv,
.source-badge.github,
.source-badge.rss,
.source-badge.external { background: #e0dcd4; color: var(--faded); }

.source-link {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--faded);
  margin-top: 6px;
  margin-bottom: 4px;
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.source-link:hover { opacity: 1; }
.source-link a { color: var(--accent); }

/* ─── Bottom bar ─── */
.bottom-bar {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ─── Loading / Error ─── */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--faded);
  font-size: 16px;
}

.loading::after {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  margin: 20px auto;
  border: 3px solid var(--light-rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  text-align: center;
  padding: 40px 20px;
  color: var(--accent);
  font-size: 16px;
}

/* ─── Homepage cards ─── */
.paper-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 30px;
}

.paper-card {
  background: var(--paper);
  border: 1px solid var(--light-rule);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.paper-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.paper-card .topic-icon { font-size: 24px; margin-bottom: 8px; }
.paper-card .card-date { font-size: 11px; color: var(--faded); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.paper-card .card-topic { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; font-weight: 700; }
.paper-card .card-title { font-family: var(--font-headline); font-size: 18px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.paper-card .card-subtitle { font-size: 13px; color: var(--faded); line-height: 1.4; }

.date-group-header {
  font-family: var(--font-ui);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--faded);
  padding: 0 30px;
  margin-top: 20px;
  border-bottom: 1px solid var(--light-rule);
  padding-bottom: 6px;
}

.empty-state { text-align: center; padding: 80px 20px; color: var(--faded); }
.empty-state h2 { font-family: var(--font-headline); font-size: 28px; margin-bottom: 12px; color: var(--ink); }

.generate-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.generate-btn:hover { background: #6b0000; }
.generate-btn:disabled { background: #999; cursor: wait; }

/* ─── Horizontal article card ─── */
.article-card {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--light-rule);
}

.article-card:last-child { border-bottom: none; }

.article-card-img {
  flex: 0 0 220px;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%) contrast(1.05);
}

.article-card-body {
  flex: 1;
  padding: 18px 20px;
}

.article-card:nth-child(even) { flex-direction: row-reverse; }

/* Pull quote — large extracted quote */
.pull-quote {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
  text-align: center;
  padding: 20px 30px;
  margin: 16px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  font-style: italic;
}

.pull-quote-src {
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  color: var(--faded);
  display: block;
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Omnibus mode ─── */
.omnibus-root {
  max-width: 1020px;
  margin: 20px auto 60px;
}

.edition-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 232, 0.96);
  border: 1px solid var(--light-rule);
  border-bottom: 2px solid var(--rule);
  padding: 10px 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.edition-nav-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faded);
  margin-bottom: 8px;
}

.edition-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edition-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(139, 0, 0, 0.25);
  padding: 5px 8px;
  background: #fff;
}

.edition-nav-links a:hover {
  background: #f7eee2;
  text-decoration: none;
}

.edition-nav-home {
  border-color: var(--light-rule) !important;
  color: var(--faded) !important;
}

.omnibus-paper-wrap {
  margin-bottom: 8px;
}

.omnibus-topic-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px 4px;
}

.omnibus-divider {
  text-align: center;
  color: var(--faded);
  letter-spacing: 5px;
  margin: 10px 0 24px;
  font-size: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .omnibus-root { margin: 0; padding-bottom: 24px; }
  .edition-nav { margin: 0 10px 12px; top: 6px; }
  .edition-nav-links { gap: 6px; }
  .edition-nav-links a { font-size: 11px; padding: 4px 6px; }
  .newspaper { margin: 0; }
  .masthead { padding: 15px 15px 0; }
  .masthead-title { font-size: 42px; }
  .masthead-title-cn { font-size: 36px; letter-spacing: 4px; }
  .content { padding: 0 12px 20px; }
  .section-banner { margin: 0 -12px; }
  .main-headline { font-size: 26px; }
  .main-headline-cn { font-size: 24px; }
  .sub-headline { font-size: 16px; }
  .col-headline-lg { font-size: 24px; }
  .grid-3, .grid-21, .grid-12, .grid-2, .grid-hero { grid-template-columns: 1fr !important; }
  .cards-masonry, .cards-masonry-2, .cards-masonry-3 { grid-template-columns: 1fr !important; }
  .cards-column { border-right: none; }
  .cards-column .col { border-bottom: 1px solid var(--light-rule); }
  .col { border-right: none; border-bottom: 1px solid var(--light-rule); }
  .col:last-child { border-bottom: none; }
  .lang-toggle { top: 10px; right: 10px; }
  .lang-pill { padding: 6px 10px; font-size: 11px; }
  .figure-row { flex-direction: column; }
  .figure-strip { flex-direction: column; margin: 0 -12px; }
  .figure-strip .figure-strip-item { border-right: none; border-bottom: 1px solid var(--light-rule); }
  .masthead-top { flex-direction: column; gap: 4px; }
  .masthead-meta { flex-direction: column; gap: 2px; text-align: center; }
  .paper-cards { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .date-group-header { padding: 0 12px; }
  .hero-image { height: 200px; }
  .article-thumb-sm { float: none; width: 100%; height: 140px; margin: 0 0 10px 0; }
  .article-card { flex-direction: column !important; }
  .article-card-img { flex: 0 0 auto; height: 180px; min-height: 0; }
  .pull-quote { font-size: 18px; padding: 14px 16px; }
  .market-ticker { justify-content: flex-start; }
  .ticker-item { padding: 8px 12px; }
  .ticker-price { font-size: 15px; }
}

@media print {
  body {
    background: #fff !important;
  }

  .lang-toggle {
    display: none !important;
  }

  .newspaper {
    margin: 0 !important;
    box-shadow: none !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .newspaper::before {
    opacity: 0.35;
  }

  .edition-nav {
    position: static !important;
    top: auto !important;
  }

  .omnibus-paper-wrap {
    break-after: page;
    page-break-after: always;
  }

  .omnibus-divider {
    display: none;
  }
}

/* ─── RTL (Arabic) ─── */

[dir="rtl"] .newspaper,
[dir="rtl"] .omnibus-root {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .grid-21 { direction: rtl; }
[dir="rtl"] .card-grid { direction: rtl; }
[dir="rtl"] .lead-sidebar { direction: rtl; }
[dir="rtl"] .byline { letter-spacing: 0; }
[dir="rtl"] .section-banner { letter-spacing: 0; }
[dir="rtl"] .edition-nav-links { direction: rtl; }
[dir="rtl"] .quick-briefs { padding-right: 18px; padding-left: 0; }

