/* ============================================================
   30-Newsroom-Wall — Vibe Code News · קיר חדשות
   Multi-desk reporter wall.
   - Cork-board surface, sticky notes per article.
   - 5 desks arranged in a responsive grid.
   - Click desk → expand that reporter's articles.
   - Chat pinned at the top of every page.
   - Hebrew RTL. Office-meets-editorial visual language.
   - No neon, no cyberpunk, no neomorphism.
   ============================================================ */

/* ─── Palette ─── */
:root {
  --cork-bg:       #c8a47b;
  --cork-bg-2:     #b58e63;
  --cork-grain:    rgba(80, 50, 25, 0.18);
  --desk-paper:    #f6efe1;
  --desk-edge:     #6b4f2a;
  --desk-shadow:   rgba(60, 40, 20, 0.18);

  --note-yellow:   #fff3a8;
  --note-pink:     #ffd3d8;
  --note-blue:     #c8e0ff;
  --note-green:    #cdebc4;
  --note-peach:    #ffd9b3;

  --ink:           #221a14;
  --ink-soft:      #4a3a2a;
  --ink-faint:     #8c7a64;
  --paper:         #fbf6ec;
  --paper-line:    #e6dcc6;
  --stamp-red:     #b13a2a;

  --accent-urgent: #b13a2a;
  --accent-fresh:  #4d8a3a;

  /* Chat skins (W/T/M) */
  --skin-wa-bg:    #ece5dd;
  --skin-wa-out:   #dcf8c6;
  --skin-wa-in:    #ffffff;
  --skin-wa-accent:#075e54;
  --skin-wa-dot:   #25d366;

  --skin-tg-bg:    #e7eef5;
  --skin-tg-out:   #c8e1f0;
  --skin-tg-in:    #ffffff;
  --skin-tg-accent:#2aabee;
  --skin-tg-dot:   #2aabee;

  --skin-ms-bg:    #eef0f3;
  --skin-ms-out:   #b7d6ff;
  --skin-ms-in:    #ffffff;
  --skin-ms-accent:#7b68ee;
  --skin-ms-dot:   #ff5e7e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cork-bg);
  color: var(--ink);
  font-family: 'Heebo', 'Arial Hebrew', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  /* Cork-board texture using layered radial gradients */
  background-image:
    radial-gradient(circle at 12% 22%, var(--cork-grain) 0 1.2px, transparent 1.5px),
    radial-gradient(circle at 78% 15%, var(--cork-grain) 0 1px, transparent 1.4px),
    radial-gradient(circle at 42% 67%, var(--cork-grain) 0 1.4px, transparent 1.7px),
    radial-gradient(circle at 90% 80%, var(--cork-grain) 0 1px, transparent 1.3px),
    radial-gradient(circle at 25% 88%, var(--cork-grain) 0 1.3px, transparent 1.6px),
    radial-gradient(circle at 60% 38%, var(--cork-grain) 0 1.1px, transparent 1.5px),
    linear-gradient(180deg, var(--cork-bg) 0%, var(--cork-bg-2) 100%);
  background-size: 220px 220px, 180px 180px, 250px 250px, 200px 200px, 240px 240px, 190px 190px, 100% 100%;
}

/* Reserve top space for fixed chat */
body { padding-top: 116px; } /* POLISHED: tighter */

/* ═════════════════════════════════════════════════════════════
   CHAT — TOP (mandatory upper position)
   position: fixed; top: 1rem; applied via wrapper
   ═════════════════════════════════════════════════════════════ */
#chat-host {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(1180px, calc(100% - 32px));
  direction: rtl;
}

.chat-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0;
  background: var(--skin-wa-bg);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  direction: ltr;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 200px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--skin-wa-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-head-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.chat-head-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.chat-head-status {
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--skin-wa-dot);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.chat-messages-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  background: var(--skin-wa-out);
}

.chat-messages-strip::-webkit-scrollbar { height: 4px; }
.chat-messages-strip::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.18); border-radius: 2px; }

.bubble-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--skin-wa-in);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.bubble-strip.urgent {
  border-color: var(--accent-urgent);
  box-shadow: 0 0 0 1px var(--accent-urgent) inset, 0 1px 4px rgba(177, 58, 42, 0.25);
  font-weight: 600;
}

.bubble-strip-tag {
  background: var(--skin-wa-accent);
  color: #fff;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.bubble-strip-mention {
  background: rgba(7, 94, 84, 0.12);
  color: var(--skin-wa-accent);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  font-family: 'Heebo', sans-serif;
  letter-spacing: 0.1px;
}

.bubble-strip-text {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-strip-time {
  color: var(--ink-faint);
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.urgent-badge {
  background: var(--accent-urgent);
  color: #fff;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.typing-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  flex-shrink: 0;
}

.typing-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--skin-wa-accent);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-strip-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-strip-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.chat-input-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-input-field {
  background: var(--skin-wa-in);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-faint);
  min-width: 140px;
  font-family: 'Heebo', sans-serif;
}

.chat-send-btn {
  background: var(--skin-wa-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.chat-skin-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-skin-label {
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-left: 2px;
}

.skin-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
  font-family: 'Heebo', sans-serif;
}

.skin-btn:hover { background: rgba(0, 0, 0, 0.05); }

.skin-btn.active {
  background: var(--skin-wa-accent);
  color: #fff;
  border-color: var(--skin-wa-accent);
}

/* Skin: Telegram */
.chat-bar.skin-tg .bubble-strip { background: var(--skin-tg-in); }
.chat-bar.skin-tg .chat-avatar,
.chat-bar.skin-tg .skin-btn.active,
.chat-bar.skin-tg .chat-send-btn { background: var(--skin-tg-accent); border-color: var(--skin-tg-accent); }
.chat-bar.skin-tg .bubble-strip-tag { background: var(--skin-tg-accent); }
.chat-bar.skin-tg .live-dot { background: var(--skin-tg-dot); }
.chat-bar.skin-tg .typing-strip-dot { background: var(--skin-tg-accent); }
.chat-bar.skin-tg .chat-messages-strip { background: var(--skin-tg-out); }

/* Skin: Messenger */
.chat-bar.skin-ms .bubble-strip { background: var(--skin-ms-in); }
.chat-bar.skin-ms .chat-avatar {
  background: linear-gradient(135deg, #00b2ff 0%, #7b68ee 50%, #ff5e7e 100%);
}
.chat-bar.skin-ms .skin-btn.active {
  background: linear-gradient(135deg, #00b2ff 0%, #7b68ee 100%);
  border-color: #7b68ee;
}
.chat-bar.skin-ms .chat-send-btn {
  background: linear-gradient(135deg, #00b2ff 0%, #7b68ee 100%);
}
.chat-bar.skin-ms .bubble-strip-tag { background: linear-gradient(135deg, #00b2ff 0%, #7b68ee 100%); }
.chat-bar.skin-ms .live-dot { background: var(--skin-ms-dot); }
.chat-bar.skin-ms .typing-strip-dot { background: var(--skin-ms-accent); }
.chat-bar.skin-ms .chat-messages-strip { background: var(--skin-ms-out); }

/* ═════════════════════════════════════════════════════════════
   PAGE HEADER — masthead with reporter mentions
   ═════════════════════════════════════════════════════════════ */
.page-header {
  max-width: 1380px;
  margin: 0 auto 28px;
  padding: 16px 24px 14px;
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 12px var(--desk-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -1px;
}

.brand-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.page-title {
  text-align: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.1;
}

.page-title-meta {
  display: block;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
  font-weight: 400;
}

.page-nav {
  display: flex;
  gap: 6px;
}

.page-nav a {
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.page-nav a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.page-nav a.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ═════════════════════════════════════════════════════════════
   DESK GRID — index.html
   5 desks arranged in a responsive grid
   ═════════════════════════════════════════════════════════════ */
.wall-banner {
  max-width: 1380px;
  margin: 0 auto 22px; /* POLISHED: less huge */
  padding: 22px 28px; /* POLISHED: less huge */
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 12px var(--desk-shadow);
}

.wall-banner h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 30px; /* POLISHED: less huge */
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
}

.wall-banner h1 .stamp {
  display: inline-block;
  background: var(--stamp-red);
  color: var(--paper);
  padding: 0 10px;
  transform: rotate(-2deg);
  margin: 0 4px;
  font-size: 0.85em;
}

.wall-banner p {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 14px;
}

.wall-banner-meta {
  display: inline-flex;
  gap: 18px;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
  border-top: 1px dashed var(--paper-line);
  border-bottom: 1px dashed var(--paper-line);
  padding: 6px 18px;
  margin-top: 4px;
}

.wall-banner-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.desk-grid {
  max-width: 1380px;
  margin: 0 auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* POLISHED: slightly smaller */
  gap: 18px; /* POLISHED: tighter */
}

.desk {
  background: var(--desk-paper);
  border: 1px solid var(--desk-edge);
  border-radius: 8px;
  box-shadow:
    0 6px 18px var(--desk-shadow),
    0 0 0 4px rgba(107, 79, 42, 0.12),
    inset 0 0 24px rgba(107, 79, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 280px; /* POLISHED: less huge */
}

.desk-plate {
  background: linear-gradient(180deg, #f8efd9 0%, #ebdfc1 100%);
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--desk-edge);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease;
}

.desk-plate:hover {
  background: linear-gradient(180deg, #fff7e2 0%, #f0e3c5 100%);
}

.desk-plate.collapsed {
  background: linear-gradient(180deg, #e8d8b3 0%, #d6c294 100%);
}

.desk-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 1px;
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.desk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
}

.desk-info {
  flex: 1;
  min-width: 0;
}

.desk-reporter {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.1;
}

.desk-reporter-role {
  font-size: 11px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 3px;
}

.desk-toggle {
  font-size: 16px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.desk.expanded .desk-toggle { transform: rotate(180deg); }

.desk-stats {
  display: flex;
  gap: 14px;
  padding: 8px 18px;
  font-size: 11px;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(107, 79, 42, 0.06);
  border-bottom: 1px dashed var(--desk-edge);
}

.desk-stats .stat-pulse {
  color: var(--accent-fresh);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.desk-stats .stat-pulse::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-fresh);
  display: inline-block;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Sticky notes (article cards on the cork) */
.sticky-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* POLISHED: tighter */
  gap: 14px 12px; /* POLISHED: tighter */
  padding: 16px 14px; /* POLISHED: tighter */
  background-image:
    radial-gradient(circle at 25% 30%, var(--cork-grain) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 70%, var(--cork-grain) 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 50% 50%, var(--cork-grain) 0 1px, transparent 1.4px);
  background-size: 80px 80px;
  flex: 1;
  align-content: start;
}

.sticky-note {
  background: var(--note-yellow);
  padding: 12px 10px 10px; /* POLISHED: tighter */
  border-radius: 2px;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100px; /* POLISHED: less huge */
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s;
  cursor: pointer;
}

.sticky-note:nth-child(2n)    { transform: rotate(1.2deg); background: var(--note-pink); }
.sticky-note:nth-child(3n)    { transform: rotate(-0.8deg); background: var(--note-blue); }
.sticky-note:nth-child(4n)    { transform: rotate(1.8deg); background: var(--note-green); }
.sticky-note:nth-child(5n)    { transform: rotate(-2deg); background: var(--note-peach); }

.sticky-note:hover {
  transform: rotate(0) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  z-index: 5;
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #ff7474 0%, #c9342a 60%, #8a1f17 100%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.note-meta {
  font-size: 9.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.note-meta-fresh {
  color: var(--accent-fresh);
  font-weight: 700;
}

.note-meta-fresh::before {
  content: '●';
  margin-left: 4px;
  animation: pulse 1.6s ease-in-out infinite;
}

.note-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
  flex: 1;
}

.note-excerpt {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-foot {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 6px;
}

.desk-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 10px;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 13px;
}

/* Expanded desk → show large article list */
.desk-articles-expanded {
  background: var(--paper);
  border-top: 1px solid var(--desk-edge);
  padding: 18px 18px 22px;
  display: none;
}

.desk.expanded .desk-articles-expanded { display: block; }

.desk-articles-expanded h4 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}

.desk-articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.desk-articles-list li a {
  display: block;
  padding: 8px 10px;
  background: var(--desk-paper);
  border: 1px solid var(--desk-edge);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.desk-articles-list li a:hover { background: var(--note-yellow); }

.desk-articles-list .li-meta {
  display: block;
  font-size: 10px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px;
}

/* ═════════════════════════════════════════════════════════════
   ARTICLE PAGE — byline-focused view
   ═════════════════════════════════════════════════════════════ */
.byline-intro {
  max-width: 1380px;
  margin: 0 auto 24px;
  padding: 22px 28px;
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--desk-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.byline-intro .col { line-height: 1.6; }

.byline-intro h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
}

.byline-intro p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.byline-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-line);
  font-size: 11px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.4px;
}

.byline-meta strong { color: var(--ink); }

.byline-stack {
  max-width: 1380px;
  margin: 0 auto 60px;
  padding: 0 16px;
  display: grid;
  gap: 20px;
}

.byline-row {
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  padding: 22px 26px;
  box-shadow: 0 4px 10px var(--desk-shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

.byline-row-head {
  background: linear-gradient(180deg, #f8efd9 0%, #ebdfc1 100%);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--desk-edge);
  position: relative;
}

.byline-row-head .stamp-circle {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--stamp-red);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.05;
  padding: 4px;
  transform: rotate(-12deg);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  opacity: 0.85;
}

.byline-row-head .big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 22px;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--ink);
}

.byline-row-head .reporter-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.byline-row-head .reporter-role {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.byline-row-head .desk-id {
  font-size: 10px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}

.byline-row-body .article-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 16px;
  background: var(--desk-paper);
  border: 1px solid var(--desk-edge);
  border-left: 4px solid var(--stamp-red);
  border-radius: 4px;
  margin-bottom: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.byline-row-body .article-card:hover {
  background: var(--note-yellow);
  transform: translateX(-4px);
}

.byline-row-body .article-card .meta {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.byline-row-body .article-card .title {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.byline-row-body .article-card .excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.byline-row-body .article-card .stat-row {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* ═════════════════════════════════════════════════════════════
   NEWS PAGE — wire view (all desks' breaking news)
   ═════════════════════════════════════════════════════════════ */
.wire-intro {
  max-width: 1380px;
  margin: 0 auto 22px;
  padding: 22px 28px;
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--desk-shadow);
  text-align: center;
}

.wire-intro h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--ink);
}

.wire-intro p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.wire-tape {
  max-width: 1380px;
  margin: 0 auto 18px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--note-yellow);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.4px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 6px;
  direction: ltr;
  text-align: left;
}

.wire-tape-inner {
  display: inline-block;
  animation: wire-scroll 38s linear infinite;
}

@keyframes wire-scroll {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

.wire-stack {
  max-width: 1380px;
  margin: 0 auto 60px;
  padding: 0 16px;
  display: grid;
  gap: 14px;
}

.wire-item {
  background: var(--paper);
  border: 1px solid var(--desk-edge);
  border-radius: 6px;
  padding: 12px 18px; /* POLISHED: less huge */
  display: grid;
  grid-template-columns: 60px 100px 1fr 120px; /* POLISHED: tighter */
  gap: 14px;
  align-items: center;
  box-shadow: 0 3px 8px var(--desk-shadow);
  position: relative;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wire-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 16px var(--desk-shadow);
}

.wire-item.urgency-breaking {
  border-left: 5px solid var(--accent-urgent);
  background: linear-gradient(90deg, #fff5e6 0%, var(--paper) 35%);
}

.wire-item.urgency-high {
  border-left: 5px solid #d28a2a;
}

.wire-item.urgency-normal {
  border-left: 5px solid var(--ink-faint);
}

.wire-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  text-align: center;
}

.wire-time .wire-date {
  display: block;
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.6px;
  margin-top: 2px;
  font-weight: 400;
  text-transform: uppercase;
}

.wire-cat {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.wire-cat .urgency-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.wire-cat .urgency-pill.urgency-breaking { background: var(--accent-urgent); }
.wire-cat .urgency-pill.urgency-high { background: #d28a2a; }
.wire-cat .urgency-pill.urgency-normal { background: var(--ink-faint); }

.wire-headline h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 4px;
}

.wire-headline .dek {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
}

.wire-source {
  text-align: left;
  font-size: 11px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  border-right: 1px dashed var(--paper-line);
  padding-right: 12px;
}

.wire-source strong {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ═════════════════════════════════════════════════════════════
   Reduced motion
   ═════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .typing-strip-dot,
  .note-meta-fresh::before { animation: none !important; }
  .wire-tape-inner { animation: none !important; transform: none; }
  .skin-btn,
  .desk-plate,
  .sticky-note,
  .byline-row-body .article-card,
  .wire-item,
  .page-nav a,
  .chat-bar { transition: none !important; }
}

/* ═════════════════════════════════════════════════════════════
   Responsive
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .byline-intro { grid-template-columns: 1fr; }
  .byline-row { grid-template-columns: 1fr; }
  .wire-item { grid-template-columns: 60px 1fr; row-gap: 8px; }
  .wire-cat, .wire-source { grid-column: 2; text-align: right; }
  .wire-headline { grid-column: 2; }
  .wire-source { border-right: none; padding-right: 0; }
}

@media (max-width: 720px) {
  body { padding-top: 156px; }
  .chat-bar { grid-template-columns: 1fr; }
  .chat-brand, .chat-input-strip, .chat-skin-strip { border-right: none; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .page-header { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .page-nav { justify-content: center; }
  .wall-banner h1 { font-size: 28px; }
  .wall-banner-meta { flex-direction: column; gap: 4px; }
  .byline-row-body .article-card .title { font-size: 16px; }
}
