/* ============================================================
   26-Split-Reader — וייב קוד ניוז · קורא מפוצל
   Two-pane CSS Grid: left = scrollable article list, right = current content.
   Paper white background · charcoal text · soft sage accent.
   Heebo for body, Frank Ruhl Libre for titles. RTL Hebrew.
   ============================================================ */

:root {
  /* Palette: paper white + charcoal + sage accent */
  --bg:           #fbfaf6;          /* paper white */
  --bg-2:         #f3f1e8;          /* slightly warmer */
  --bg-3:         #e9e6da;          /* deep cream */
  --paper:        #ffffff;          /* pure paper */
  --ink:          #1f1d1a;          /* charcoal */
  --ink-2:        #3d3a33;          /* softer charcoal */
  --ink-dim:      #7a7466;          /* dimmed */
  --ink-mute:     #b3ad9c;          /* very faint */
  --rule:         #d6d2c0;          /* thin divider */
  --rule-2:       #c5c0a9;          /* deeper rule */
  --sage:         #7d9a78;          /* sage accent */
  --sage-d:       #5e7d5c;          /* deeper sage */
  --sage-tint:    #e7eee4;          /* sage tint */
  --warn:         #c95838;          /* breaking/urgent */
  --high:         #b07a2e;          /* high urgency */
  --good:         #4f7a3f;          /* calm good */

  --wa-bg:        #efe7df;
  --wa-green:     #25D366;
  --wa-green-d:   #128C7E;
  --tg-bg:        #17212b;
  --tg-blue:      #2AABEE;
  --tg-blue-d:    #1c7eb8;
  --ms-bg:        #ffffff;

  --font-body:    'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-title:   'Frank Ruhl Libre', 'Heebo', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  --header-h:     56px; /* POLISHED: tighter */
  --chat-h:       296px; /* POLISHED: less huge */
  --border:       1px solid var(--rule);
  --border-strong:1px solid var(--rule-2);
}

/* ─── Reset ─── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  direction: rtl;
  padding-top: calc(var(--header-h) + 1rem + var(--chat-h) + 1rem); /* room for chat floating top + page header */
  display: flex;
  flex-direction: column;
}

a { color: var(--sage-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ─── Page header (top of page) — POLISHED: tighter ─── */
.page-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-2);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}

.page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.page-title-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-inline-start: 10px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-nav a:hover { background: var(--bg-2); text-decoration: none; }
.page-nav a.active { background: var(--ink); color: var(--paper); }

/* ─── Chat — top-center floating (mandatory) — POLISHED: tighter ─── */
.chat-float {
  position: fixed;
  top: 0.5rem; /* POLISHED: tighter */
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 12px; /* POLISHED: tighter */
  box-shadow:
    0 1px 0 rgba(31, 29, 26, 0.04),
    0 12px 36px rgba(31, 29, 26, 0.10),
    0 2px 8px rgba(31, 29, 26, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chat-float:hover {
  box-shadow:
    0 1px 0 rgba(31, 29, 26, 0.04),
    0 16px 44px rgba(31, 29, 26, 0.14),
    0 4px 12px rgba(31, 29, 26, 0.08);
}

.chat-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--chat-h);
  background: var(--wa-bg);
  position: relative;
}
.chat-block.skin-wa { background: var(--wa-bg); --chat-accent: var(--wa-green); --chat-accent-d: var(--wa-green-d); }
.chat-block.skin-tg { background: var(--tg-bg); --chat-accent: var(--tg-blue); --chat-accent-d: var(--tg-blue-d); color: white; }
.chat-block.skin-ms { background: var(--ms-bg); --chat-accent: #A033FF; --chat-accent-d: #0099FF; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--wa-green);
  color: white;
}
.chat-block.skin-tg .chat-header { background: var(--tg-blue); }
.chat-block.skin-ms .chat-header { background: linear-gradient(135deg, #0099FF, #A033FF); }

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.chat-head-info { flex: 1; line-height: 1.2; }
.chat-head-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.chat-head-status {
  font-size: 11px;
  opacity: 0.92;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-head-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c8ffd2;
  box-shadow: 0 0 0 0 rgba(200, 255, 210, 0.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0   rgba(200, 255, 210, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(200, 255, 210, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(200, 255, 210, 0);    }
}

.chat-collapse-btn {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}
.chat-collapse-btn:hover { background: rgba(255, 255, 255, 0.30); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  background: var(--wa-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-block.skin-tg .chat-messages { background: #0e1621; }
.chat-block.skin-ms .chat-messages { background: #f4f4f4; }

.msg-date-sep {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-dim);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.chat-block.skin-tg .msg-date-sep { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.7); }
.chat-block.skin-ms .msg-date-sep { background: #e8e8e8; color: #555; }

.bubble {
  background: white;
  border-radius: 9px 9px 9px 2px;
  padding: 6px 9px 5px;
  max-width: 90%;
  align-self: flex-start;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.chat-block.skin-tg .bubble { background: #182533; color: white; border-color: rgba(255,255,255,0.05); }
.chat-block.skin-ms .bubble { background: #ffffff; }
.bubble.urgent {
  background: var(--chat-accent);
  color: white;
  border-color: transparent;
}
.chat-block.skin-ms .bubble.urgent {
  background: linear-gradient(135deg, #0099FF, #A033FF);
}
.chat-block.skin-tg .bubble.urgent {
  background: var(--tg-blue);
}

.bubble-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.bubble-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-2);
}
.bubble.urgent .bubble-tag {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}
.urgent-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  background: white;
  color: var(--warn);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.bubble.urgent .urgent-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--warn);
}

.bubble-text {
  font-size: 12.5px;
  line-height: 1.4;
  display: block;
}
.bubble-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 2px;
  text-align: end;
}
.bubble.urgent .bubble-time { color: rgba(255, 255, 255, 0.85); }
.chat-block.skin-tg .bubble-time { color: rgba(255,255,255,0.5); }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  background: white;
  border-radius: 9px 9px 9px 2px;
  align-self: flex-start;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.chat-block.skin-tg .typing { background: #182533; border-color: rgba(255,255,255,0.05); }
.chat-block.skin-ms .typing { background: white; }
.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chat-accent);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-block.skin-ms .typing-dot { background: #A033FF; }
.chat-block.skin-tg .typing-dot { background: var(--tg-blue); }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--wa-bg);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.chat-block.skin-tg .chat-input { background: #0e1621; border-top-color: rgba(255,255,255,0.06); }
.chat-block.skin-ms .chat-input { background: #f4f4f4; border-top-color: rgba(0,0,0,0.05); }
.chat-input-field {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid rgba(0,0,0,0.04);
}
.chat-block.skin-tg .chat-input-field { background: #182533; color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.04); }
.chat-block.skin-ms .chat-input-field { background: white; }
.chat-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chat-accent);
  color: white;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-block.skin-ms .chat-send { background: linear-gradient(135deg, #0099FF, #A033FF); }
.chat-block.skin-tg .chat-send { background: var(--tg-blue); }

.chat-skin {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--wa-bg);
  border-top: 1px solid rgba(0,0,0,0.04);
}
.chat-block.skin-tg .chat-skin { background: #0e1621; border-top-color: rgba(255,255,255,0.06); }
.chat-block.skin-ms .chat-skin { background: #f4f4f4; border-top-color: rgba(0,0,0,0.05); }
.skin-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: white;
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chat-block.skin-tg .skin-btn { background: #182533; color: white; border-color: rgba(255,255,255,0.10); }
.chat-block.skin-ms .skin-btn { background: white; }
.skin-btn:hover { border-color: var(--chat-accent); }
.skin-btn.active {
  background: var(--chat-accent);
  color: white;
  border-color: var(--ink);
}
.chat-block.skin-ms .skin-btn.active { background: linear-gradient(135deg, #0099FF, #A033FF); }
.chat-block.skin-tg .skin-btn.active { background: var(--tg-blue); }
.skin-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  margin-inline-start: auto;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chat-block.skin-tg .skin-label { color: rgba(255,255,255,0.5); }

/* ─── Main stage — two-pane CSS Grid (40% / 60%) ─── */
.split-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 38% 62%; /* POLISHED: slightly more for content */
  background: var(--bg);
  min-height: 0;
  border-top: 1px solid var(--rule);
}

/* Left pane — scrollable list */
.split-pane-left {
  border-inline-start: 1px solid var(--rule-2);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pane-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  flex-shrink: 0;
}
.pane-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pane-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}
.pane-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 6px 0 4px;
}
.pane-meta {
  font-size: 12px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, padding-inline-start 0.18s ease;
  text-align: start;
}
.list-item:hover {
  background: var(--bg-2);
  padding-inline-start: 26px;
}
.list-item.active {
  background: var(--sage-tint);
  padding-inline-start: 26px;
}
.list-item.active::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--sage);
}

.list-item-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-item-num .num-pill {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
}
.list-item-tag {
  background: var(--bg-3);
  color: var(--ink-2);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 3px;
}
.list-item-tag.urgent {
  background: var(--warn);
  color: white;
}
.list-item-tag.high {
  background: var(--high);
  color: white;
}

.list-item-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.list-item-meta {
  font-size: 11.5px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  display: flex;
  gap: 8px;
}

/* Right pane — content area */
.split-pane-right {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.content-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}
.content-empty .glyph {
  font-family: var(--font-title);
  font-size: 56px;
  color: var(--sage);
  margin-bottom: 12px;
  line-height: 1;
}
.content-empty .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.content-empty .title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  max-width: 420px;
  letter-spacing: -0.01em;
}
.content-empty .sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 420px;
  line-height: 1.5;
}

.content-article,
.content-news {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 48px; /* POLISHED: tighter */
}

.content-article .breadcrumb,
.content-news .breadcrumb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.content-article .eyebrow,
.content-news .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.content-article .eyebrow .pill,
.content-news .eyebrow .pill {
  background: var(--sage-tint);
  color: var(--sage-d);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.content-article .eyebrow .pill.urgent,
.content-news .eyebrow .pill.urgent { background: var(--warn); color: white; }
.content-article .eyebrow .pill.high,
.content-news .eyebrow .pill.high { background: var(--high); color: white; }

.content-article h1,
.content-news h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 30px; /* POLISHED: less huge */
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.content-article .dek,
.content-news .dek {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 22px;
  font-weight: 500;
}

.content-article .meta-row,
.content-news .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.content-article .meta-row strong,
.content-news .meta-row strong { color: var(--ink); font-weight: 700; }

.content-article .body,
.content-news .body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
}
.content-article .body p,
.content-news .body p {
  margin: 0 0 16px;
}
.content-article .body p:first-of-type::first-letter,
.content-news .body p:first-of-type::first-letter {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.9;
  float: start;
  margin-inline-end: 8px;
  margin-block-start: 6px;
  color: var(--sage-d);
}

.content-article .tldr,
.content-news .tldr {
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--sage-tint);
  border-inline-start: 3px solid var(--sage);
  border-radius: 4px;
}
.content-article .tldr-label,
.content-news .tldr-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-d);
  font-weight: 800;
  margin-bottom: 6px;
}
.content-article .tldr-text,
.content-news .tldr-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 500;
}

.content-article .takeaways {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
}
.content-article .takeaways-label,
.content-news .takeaways-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 800;
  margin-bottom: 8px;
}
.content-article .takeaways ul,
.content-news .takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-article .takeaways li,
.content-news .takeaways li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px dotted var(--rule);
}
.content-article .takeaways li:last-child,
.content-news .takeaways li:last-child { border-bottom: 0; }
.content-article .takeaways li::before,
.content-news .takeaways li::before {
  content: '◆';
  position: absolute;
  inset-inline-start: 0;
  color: var(--sage);
  font-size: 11px;
  top: 8px;
}

.content-article .sources {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-2);
  font-size: 12px;
  color: var(--ink-dim);
}
.content-article .sources-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 8px;
}
.content-article .sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.content-article .sources li {
  padding: 4px 0;
}
.content-article .sources a {
  color: var(--sage-d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* News-specific */
.content-news .urgency-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 14px;
}
.content-news .urgency-bar.breaking { background: var(--warn); color: white; }
.content-news .urgency-bar.high     { background: var(--high); color: white; }
.content-news .urgency-bar.normal   { background: var(--bg-3); color: var(--ink-2); }

/* Smooth transition between right-pane contents */
.pane-fade {
  animation: paneFadeIn 0.32s ease-out;
}
@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reading position indicator (signature touch) ─── */
.read-progress {
  position: fixed;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 2px;
  background: var(--rule);
  z-index: 50;
}
.read-progress-bar {
  height: 100%;
  background: var(--sage);
  width: 0%;
  transition: width 0.08s linear;
}

/* ─── Page intro panel on index ─── */
.page-intro {
  padding: 14px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.page-intro-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}
.page-intro-right {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.page-intro-right strong { color: var(--ink); font-weight: 700; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .typing-dot { animation: none; }
  .chat-head-status .dot { animation: none; }
  .list-item, .chat-float, .pane-fade {
    transition: none;
    animation: none;
  }
  .list-item:hover { padding-inline-start: 20px; }
}

/* ─── Tablet & mobile: collapse to single column ─── */
@media (max-width: 900px) {
  body {
    padding-top: calc(var(--header-h) + 1rem + 320px + 1rem);
  }
  :root { --chat-h: 320px; }

  .split-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 38vh 1fr;
  }
  .split-pane-left {
    border-inline-start: 0;
    border-bottom: 1px solid var(--rule-2);
  }
  .content-article, .content-news {
    padding: 24px 22px 48px;
  }
  .content-article h1, .content-news h1 { font-size: 28px; }
  .page-title { display: none; }
}
@media (max-width: 600px) {
  :root { --chat-h: 280px; --header-h: 56px; }
  body { padding-top: calc(56px + 0.5rem + 280px + 0.5rem); }
  .chat-float { top: 0.5rem; border-radius: 10px; }
  .page-header { padding: 0 14px; }
  .brand-name { font-size: 15px; }
  .page-nav a { padding: 6px 10px; font-size: 12px; }
  .list-item { padding: 10px 14px; }
  .list-item:hover, .list-item.active { padding-inline-start: 18px; }
  .content-article, .content-news { padding: 20px 16px 40px; }
}
