/* ═══════════════════════════════════════════════════════
   08-TRANSIT — הקו: Metro diagram & transit signage system
   Palette: warm white / near-black / 4 line colors
   Typography: IBM Plex Sans Hebrew + JetBrains Mono
═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Hebrew:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Custom Properties ── */
:root {
  --warm-white:   #f5f4f0;
  --ink:          #19191b;
  --ink-mid:      #3a3a3c;
  --ink-light:    #6b6b6e;
  --border:       #d0cfc9;

  /* Line colors */
  --line-1:       #c8362f; /* קו 1 — דעה (red) */
  --line-2:       #0e7a5f; /* קו 2 — מדריך (emerald) */
  --line-3:       #d9a13b; /* קו 3 — כלים/בנצ׳מרק (ochre) */
  --line-4:       #2456a4; /* קו 4 — ניתוח מעמיק (blue) */

  --line-1-bg:    #faf0ef;
  --line-2-bg:    #eef6f3;
  --line-3-bg:    #faf5ea;
  --line-4-bg:    #eef1f8;

  --font-main:    'IBM Plex Sans Hebrew', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-w:        1200px;
  --section-gap:  80px;

  /* Phone skin vars */
  --phone-header: #19191b;
  --phone-bg:     #f5f4f0;
  --phone-bubble-r: 4px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--warm-white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════
   MASTHEAD — station entrance signage
═══════════════════════════════════════ */
.masthead {
  background: var(--ink);
  color: white;
  padding: 0;
}

.masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.masthead-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: white;
}

.masthead-roundel {
  flex-shrink: 0;
}

.masthead-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  white-space: nowrap;
}

.masthead-tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

.masthead-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.masthead-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.masthead-nav a:hover {
  color: white;
}

/* ═══════════════════════════════════════
   TICKER — platform dot-matrix ribbon
═══════════════════════════════════════ */
.ticker-strip {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line-3);
  background: var(--ink);
  padding: 0 16px;
  white-space: nowrap;
  z-index: 2;
  position: relative;
  border-left: 3px solid var(--line-3); /* RTL: decorative left */
  flex-shrink: 0;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  direction: ltr; /* RTL marquee fix */
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 48s linear infinite;
  direction: ltr;
}

.ticker-track.paused {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.88);
  direction: rtl; /* each item is RTL */
  white-space: nowrap;
}

.ticker-item-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--line-3);
  opacity: 0.8;
}

.ticker-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-block;
  flex-shrink: 0;
}

.ticker-pause {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.ticker-pause:hover { color: white; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ═══════════════════════════════════════
   HERO — SVG METRO MAP
═══════════════════════════════════════ */
.hero-map {
  background: var(--warm-white);
  padding: 60px 0 40px;
  position: relative;
}

.hero-map-header {
  text-align: center;
  margin-bottom: 32px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
}

.metro-map-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

#metro-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 540px;
}

/* Station tooltip */
.station-tooltip {
  position: fixed;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.15s;
  min-width: 180px;
  max-width: 260px;
}

.station-tooltip.visible {
  opacity: 1;
}

.station-tooltip-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.station-tooltip-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.station-tooltip-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.6;
}

.station-tooltip-title {
  line-height: 1.3;
  font-weight: 600;
  color: white;
}

/* Metro map station hover cursor */
.station-group {
  cursor: pointer;
}

.station-group:hover .station-outer {
  opacity: 0.85;
}

/* Train animation */
.metro-train {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
  .metro-train {
    display: none;
  }
}

/* ═══════════════════════════════════════
   LINE LEGEND
═══════════════════════════════════════ */
.line-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.legend-swatch {
  width: 28px;
  height: 6px;
  border-radius: 3px;
}

.legend-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-light);
}

/* ═══════════════════════════════════════
   STATIONS BY LINE — תחנות לפי קו
═══════════════════════════════════════ */
.stations-section {
  padding: var(--section-gap) 0;
}

.stations-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.line-group {
  margin-bottom: 48px;
}

.line-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
}

.line-header-band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: white;
  flex: 1;
}

.line-number-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 2px;
}

.line-category-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.line-station-count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-right: auto;
  font-family: var(--font-mono);
}

.station-list {
  border: 1px solid var(--border);
  border-top: none;
}

.station-row {
  display: grid;
  grid-template-columns: 32px 1fr 80px 100px;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  text-decoration: none;
  color: var(--ink);
}

.station-row:last-child {
  border-bottom: none;
}

.station-row:hover {
  background: rgba(25, 25, 27, 0.03);
}

.station-roundel {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid;
  flex-shrink: 0;
  background: white;
  justify-self: center;
}

.station-row-content {
  min-width: 0;
}

.station-row-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
}

.station-row-excerpt {
  font-size: 0.8rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-row-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-light);
  text-align: center;
  letter-spacing: 0.04em;
}

.station-row-time {
  font-size: 0.75rem;
  color: var(--ink-mid);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════
   SERVICE STATUS — סטטוס קווים
═══════════════════════════════════════ */
.service-section {
  padding: var(--section-gap) 0;
  background: var(--ink);
  color: white;
}

.service-section .container {
  max-width: var(--max-w);
}

.service-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.service-subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

.service-board {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-row {
  display: grid;
  grid-template-columns: 8px 160px 140px 1fr 80px;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 2px;
}

.service-row-accent {
  width: 8px;
  align-self: stretch;
  flex-shrink: 0;
}

.service-row-line-name {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.service-line-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-line-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.service-status-badge {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.status-icon {
  flex-shrink: 0;
}

.status-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-ok   .status-text { color: #5ec48a; }
.status-warn .status-text { color: var(--line-3); }
.status-alert .status-text { color: #e87070; }

.service-news-text {
  padding: 16px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.service-news-text strong {
  color: white;
  font-weight: 600;
}

.service-news-link {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   PHONE — passenger info screen
═══════════════════════════════════════ */
.phone-section {
  padding: var(--section-gap) 0;
}

.phone-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.phone-intro h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.phone-intro p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

.skin-btns {
  display: flex;
  gap: 8px;
}

.skin-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink-mid);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}

.skin-btn.active,
.skin-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.phone-device-wrap {
  display: flex;
  justify-content: center;
}

/* Phone device */
#phone-device {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 4px 6px 0 var(--ink);
  font-family: var(--font-main);
  background: var(--phone-bg, #f5f4f0);
}

.phone-header {
  background: var(--phone-header, #19191b);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.phone-header-icon {
  flex-shrink: 0;
}

.phone-header-info {}

.phone-channel-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.phone-channel-sub {
  font-size: 0.65rem;
  opacity: 0.65;
}

.phone-messages {
  padding: 12px;
  background: var(--phone-bg, #f5f4f0);
  min-height: 320px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-bubble {
  background: white;
  border-radius: var(--phone-bubble-r, 4px);
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
  border: 1px solid var(--border);
  position: relative;
}

.phone-bubble.urgent {
  border-right: 3px solid var(--line-1);
}

.phone-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.phone-bubble-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.phone-bubble.urgent .phone-bubble-tag {
  color: var(--line-1);
}

.phone-bubble-time {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-light);
}

.phone-bubble-text {
  color: var(--ink);
}

/* Skin variants */
#phone-device.skin-wa .phone-messages {
  background: #ece5dd;
}
#phone-device.skin-wa .phone-bubble {
  background: #dcf8c6;
  border-color: transparent;
}
#phone-device.skin-telegram .phone-messages {
  background: #e8f5fe;
}
#phone-device.skin-telegram .phone-bubble {
  background: white;
  border-radius: 14px;
}
#phone-device.skin-messenger .phone-messages {
  background: #f5f0fe;
}
#phone-device.skin-messenger .phone-bubble {
  background: white;
  border-radius: 18px;
}

/* ═══════════════════════════════════════
   TRANSIT TICKETS — draggable notes
═══════════════════════════════════════ */
.tickets-section {
  padding: var(--section-gap) 0;
  background: var(--warm-white);
}

.tickets-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.tickets-stage {
  position: relative;
  height: 360px;
  overflow: visible;
}

.ticket {
  position: absolute;
  width: 240px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.15s;
}

.ticket:active {
  cursor: grabbing;
}

.ticket-svg-wrap {
  position: relative;
}

.ticket-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(2px 3px 0 rgba(25,25,27,0.12));
}

.ticket-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket-quote-text {
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.ticket-quote-author {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}

.ticket-quote-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-light);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
  margin-top: var(--section-gap);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════
   READING PROGRESS — article page
═══════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 48px;
  background: var(--ink);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  overflow: hidden;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-line {
  position: absolute;
  right: 0;
  top: 0;
  height: 3px;
  background: white;
  transition: width 0.1s linear;
}

.progress-train {
  position: absolute;
  top: -5px;
  width: 22px;
  height: 13px;
  background: white;
  border-radius: 3px;
  transition: right 0.1s linear;
  z-index: 2;
}

.progress-stations {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  display: flex;
  align-items: center;
}

.progress-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  background: white;
  border-radius: 50%;
  border: 2px solid var(--ink);
  top: -3px;
}

.progress-home {
  margin-right: 16px;
}

.progress-home a {
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.progress-home a:hover { color: white; }

/* ═══════════════════════════════════════
   ARTICLE PAGE — station page
═══════════════════════════════════════ */
.article-station-header {
  padding-top: 48px; /* reading progress height */
}

.station-band {
  padding: 48px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.station-band-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.station-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.station-line-roundel {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.station-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

.station-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.station-band h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.station-band-excerpt {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.85;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.station-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Band background decoration */
.station-band::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ═══════════════════════════════════════
   ARTICLE BODY
═══════════════════════════════════════ */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px;
}

.article-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.6em;
  color: var(--ink);
}

/* TL;DR — מידע לנוסע */
.passenger-info {
  background: var(--ink);
  color: white;
  padding: 24px 28px;
  margin-bottom: 32px;
  border-radius: 2px;
}

.passenger-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.passenger-info-icon {
  flex-shrink: 0;
}

.passenger-info-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-3);
}

.passenger-info-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* Takeaways — יציאות */
.exits-section {
  margin-bottom: 32px;
}

.exits-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.exit-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.exit-row:last-child {
  border-bottom: none;
}

.exit-sign {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.exit-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.exit-text {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

/* Sources — מפות רשת */
.sources-section {
  margin-bottom: 40px;
}

.sources-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 14px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-mid);
}

.source-item a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Next stations — התחנות הבאות */
.next-stations {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.next-stations-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.next-stations-track {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
  position: relative;
}

.next-stations-track::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 24px;
  left: 24px;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.next-station-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  padding: 0 12px;
  text-align: center;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: var(--ink);
}

.next-station-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ink);
  transition: background 0.15s, transform 0.15s;
}

.next-station-item:hover .next-station-dot {
  background: var(--ink);
  transform: scale(1.15);
}

.next-station-label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 6px;
}

.next-station-code {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-light);
}

/* ═══════════════════════════════════════
   NEWS PAGE — מצב השירות
═══════════════════════════════════════ */
.news-page-header {
  background: var(--ink);
  color: white;
  padding: 48px 40px;
}

.news-page-header .container {
  max-width: var(--max-w);
}

.news-page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.news-page-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.news-page-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}

.news-body {
  padding: 48px 0;
}

.news-category-group {
  margin-bottom: 48px;
}

.news-cat-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  border-top: 3px solid;
}

.news-cat-band {
  padding: 10px 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-cat-severity {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.news-cat-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.news-items-list {
  border: 1px solid var(--border);
  border-top: none;
}

.news-item-row {
  display: grid;
  grid-template-columns: 8px 64px 1fr 90px;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.news-item-row:last-child {
  border-bottom: none;
}

.news-item-urgency {
  align-self: stretch;
  width: 8px;
  display: block;
}

.news-item-time {
  padding: 16px 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  border-left: 1px solid var(--border);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.news-item-content {
  padding: 16px 20px;
  border-left: 1px solid var(--border);
}

.news-item-headline {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.3;
}

.news-item-dek {
  font-size: 0.78rem;
  color: var(--ink-mid);
  font-weight: 300;
}

.news-item-source {
  padding: 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  text-align: center;
  border-left: 1px solid var(--border);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Urgency colors */
.urgency-breaking {
  background: var(--line-1);
}
.urgency-high {
  background: var(--line-3);
}
.urgency-normal {
  background: rgba(14,122,95,0.8);
}

/* Timeline */
.news-timeline {
  padding: 48px 0;
  border-top: 2px solid var(--ink);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-list {
  position: relative;
  padding-right: 32px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  right: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 28px 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--warm-white);
}

.timeline-item.breaking::before {
  background: var(--line-1);
}

.timeline-item.high::before {
  background: var(--line-3);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-light);
  text-align: left;
  padding-top: 2px;
}

.timeline-headline {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-dek {
  font-size: 0.78rem;
  color: var(--ink-mid);
  font-weight: 300;
}

/* ═══════════════════════════════════════
   RESPONSIVE — 390px mobile
═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-gap: 48px;
  }

  .container {
    padding: 0 16px;
  }

  .masthead-inner {
    padding: 0 16px;
    height: 56px;
  }

  .masthead-nav {
    display: none;
  }

  .masthead-tagline {
    display: none;
  }

  .masthead-title {
    font-size: 0.95rem;
  }

  .masthead-roundel {
    width: 32px;
    height: 32px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-map {
    padding: 32px 0 24px;
  }

  #metro-svg {
    max-height: none;
    min-height: 260px;
  }

  .line-legend {
    gap: 12px;
    padding: 14px 16px;
    justify-content: flex-start;
  }

  .legend-item {
    font-size: 0.72rem;
  }

  .stations-section-title,
  .tickets-section-title {
    font-size: 1.1rem;
  }

  .station-row {
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .station-row-code,
  .station-row-time {
    display: none;
  }

  /* Service board mobile: left accent bar + stacked content */
  .service-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .service-row-accent {
    width: 5px;
    flex-shrink: 0;
  }

  .service-row-line-name {
    flex: 0 0 calc(100% - 5px);
    padding: 10px 14px 4px;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Push status + news to second row, offset by accent width */
  .service-status-badge {
    flex: 0 0 auto;
    margin-right: 5px; /* align with content above */
    border-left: none;
    border-bottom: none;
    padding: 6px 14px;
  }

  .service-news-text {
    flex: 1;
    padding: 6px 14px 10px;
    border-left: none;
  }

  .service-news-link {
    display: none;
  }

  .phone-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phone-device-wrap {
    justify-content: center;
  }

  #phone-device {
    width: 260px;
  }

  /* Tickets: flow stacked on mobile, no absolute positioning */
  .tickets-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .ticket {
    position: static !important;
    transform: none !important;
    width: 100%;
    max-width: 300px;
  }

  .station-band h1 {
    font-size: 1.5rem;
  }

  .station-band {
    padding: 28px 16px;
  }

  .article-body {
    padding: 28px 16px;
  }

  .next-stations-track::before {
    right: 12px;
    left: 12px;
  }

  /* News page mobile */
  .news-page-header {
    padding: 32px 16px;
  }

  .news-page-title {
    font-size: 2rem;
  }

  .news-item-row {
    grid-template-columns: 5px 1fr;
  }

  .news-item-time,
  .news-item-source {
    display: none;
  }

  .news-item-urgency {
    width: 5px;
    align-self: stretch;
  }

  .news-item-urgency svg {
    display: none;
  }

  .news-item-content {
    padding: 12px 14px;
    border-left: none;
  }

  .timeline-item {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
