/* =====================================================
   סדר היום — "נחל נובע מקור חכמה"
   Design: Flowing Stream of Light
   Deep space + golden sparks + water waves + glowing text
   ===================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:         #080e1a;
  --bg-mid:          #0d1b2e;
  --bg-card:         rgba(13, 27, 46, 0.82);
  --bg-card-solid:   #111e33;
  --text:            #e0e8f4;
  --text-muted:      #8a9bba;
  --gold:            #d4a843;
  --gold-light:      #f0d080;
  --gold-dim:        #a07828;
  --glow:            rgba(212, 168, 67, 0.45);
  --glow-strong:     rgba(212, 168, 67, 0.7);
  --border:          rgba(212, 168, 67, 0.18);
  --border-bright:   rgba(212, 168, 67, 0.4);
  --focus-ring:      #6eb5ff;
  --radius:          16px;
  --max-width:       700px;
  --font-body:       'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Hebrew', sans-serif;
  --font-display:    'David Libre', 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* ===== ANIMATED BACKGROUND: flowing light waves ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(212,168,67,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 30% 100%, rgba(100,160,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 70% 100%, rgba(212,168,67,0.04) 0%, transparent 60%);
  animation: bgPulse 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgPulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ===== SPARKS (golden particles rising) ===== */
.sparks-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 2px var(--glow);
  animation: sparkRise linear infinite;
  opacity: 0;
}

.spark:nth-child(1)  { left: 8%;  animation-duration: 9s;  animation-delay: 0s;   }
.spark:nth-child(2)  { left: 15%; animation-duration: 11s; animation-delay: 1.5s; width: 2px; height: 2px; }
.spark:nth-child(3)  { left: 25%; animation-duration: 8s;  animation-delay: 3s;   }
.spark:nth-child(4)  { left: 35%; animation-duration: 13s; animation-delay: 0.8s; width: 4px; height: 4px; }
.spark:nth-child(5)  { left: 45%; animation-duration: 10s; animation-delay: 4s;   }
.spark:nth-child(6)  { left: 55%; animation-duration: 12s; animation-delay: 2s;   width: 2px; height: 2px; }
.spark:nth-child(7)  { left: 65%; animation-duration: 9s;  animation-delay: 5s;   }
.spark:nth-child(8)  { left: 72%; animation-duration: 14s; animation-delay: 1s;   width: 4px; height: 4px; }
.spark:nth-child(9)  { left: 82%; animation-duration: 11s; animation-delay: 3.5s; }
.spark:nth-child(10) { left: 92%; animation-duration: 10s; animation-delay: 6s;   width: 2px; height: 2px; }
.spark:nth-child(11) { left: 20%; animation-duration: 15s; animation-delay: 7s;   }
.spark:nth-child(12) { left: 50%; animation-duration: 16s; animation-delay: 2.5s; width: 3px; height: 3px; }
.spark:nth-child(13) { left: 78%; animation-duration: 12s; animation-delay: 8s;   width: 2px; height: 2px; }
.spark:nth-child(14) { left: 40%; animation-duration: 18s; animation-delay: 4.5s; }
.spark:nth-child(15) { left: 60%; animation-duration: 14s; animation-delay: 9s;   width: 4px; height: 4px; }

@keyframes sparkRise {
  0%   { transform: translateY(0) scale(0);   opacity: 0; }
  10%  { opacity: 0.9; transform: scale(1); }
  50%  { opacity: 0.6; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-105vh) scale(0.3); opacity: 0; }
}

/* ===== LIGHT RAYS from top ===== */
.light-rays {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 45vh;
  background:
    linear-gradient(175deg, rgba(212,168,67,0.06) 0%, transparent 40%),
    linear-gradient(185deg, rgba(212,168,67,0.04) 0%, transparent 35%),
    linear-gradient(170deg, rgba(180,200,255,0.03) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
  animation: rayShift 20s ease-in-out infinite alternate;
}

@keyframes rayShift {
  0%   { transform: translateX(-50%) rotate(-1deg); opacity: 0.7; }
  100% { transform: translateX(-50%) rotate(1deg);  opacity: 1; }
}

/* ===== WATER WAVES at bottom ===== */
.waves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  opacity: 0.12;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave:nth-child(1) { animation: waveMove 7s ease-in-out infinite alternate; opacity: 0.15; }
.wave:nth-child(2) { animation: waveMove 9s ease-in-out infinite alternate-reverse; opacity: 0.08; bottom: -8px; }

@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(30px); }
}

/* ===== Z-INDEX LAYERING ===== */
header, main, footer { position: relative; z-index: 1; }

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--focus-ring);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0 0 0 var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --- Focus styles (a11y) --- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ===== HEADER ===== */
header {
  background: transparent;
  color: var(--text);
  width: 100%;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

header h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 0 20px var(--glow),
    0 0 60px rgba(212,168,67,0.2);
  letter-spacing: 0.06em;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
}

.current-time {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 0 16px var(--glow),
    0 0 40px rgba(212,168,67,0.15);
  margin-top: 0.6rem;
  letter-spacing: 0.1em;
  direction: ltr;
}

/* ===== MAIN ===== */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ===== GLASS CARD (shared base for welcome + section) ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.glass-card:hover {
  border-color: var(--border-bright);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 30px rgba(212,168,67,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ===== WELCOME CARD ===== */
.welcome-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
}

.welcome-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  text-shadow: 0 0 12px var(--glow);
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

input[type="time"],
input[type="number"] {
  font-size: 1.3rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  text-align: center;
  width: 160px;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(6px);
}

input[type="time"]:focus,
input[type="number"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--glow);
}

small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.divider {
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 1.25rem auto;
  border: none;
}

.alt-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.alt-input label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hours-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0d1b2e;
  box-shadow: 0 4px 16px var(--glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 24px var(--glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(212,168,67,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--glow);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: 1.25rem;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px dotted var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.btn-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ===== SECTION CARD (main display) ===== */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
  animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.section-card:hover {
  border-color: var(--border-bright);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 0 40px rgba(212,168,67,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Pulsing border glow */
.section-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212,168,67,0.3),
    transparent 40%,
    transparent 60%,
    rgba(212,168,67,0.15)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes borderGlow {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}

.section-card {
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ===== HEBREW LETTER — Burning golden fire ===== */
.hebrew-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.2), transparent 70%);
  border: 2px solid var(--gold-dim);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-shadow:
    0 0 8px var(--glow-strong),
    0 0 24px var(--glow),
    0 0 48px rgba(212,168,67,0.2);
  animation: letterPulse 3s ease-in-out infinite alternate;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hebrew-letter:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--glow);
}

@keyframes letterPulse {
  0%   { text-shadow: 0 0 8px var(--glow-strong), 0 0 24px var(--glow), 0 0 48px rgba(212,168,67,0.2); }
  100% { text-shadow: 0 0 12px var(--glow-strong), 0 0 36px var(--glow), 0 0 64px rgba(212,168,67,0.3); }
}

.section-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 16px var(--glow);
  letter-spacing: 0.03em;
}

.section-body {
  font-size: 1.08rem;
  line-height: 2.1;
  text-align: justify;
  padding: 0 0.25rem;
  color: var(--text);
}

.section-body p {
  margin: 0;
}

/* ===== NEXT HINT ===== */
.next-hint {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.next-hint strong {
  color: var(--gold);
}

/* ===== PERPETUAL CARDS ===== */
.perpetual-cards {
  width: 100%;
}

details {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

details:hover,
details[open] {
  border-color: var(--border-bright);
}

summary {
  cursor: pointer;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  list-style: none;
  transition: color 0.2s;
}

summary:hover {
  color: var(--gold);
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "◀ ";
  font-size: 0.75rem;
}

details[open] summary::before {
  content: "▼ ";
}

.perpetual-inner {
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.perpetual-inner .perp-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.perpetual-inner .perp-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.perp-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px var(--glow);
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: transparent;
}

/* ===== TIMELINE LAYOUT ===== */
main.main-layout {
  width: 100%;
  max-width: 1240px;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.timeline-shell {
  position: sticky;
  top: 1rem;
}

.timeline-card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 30, 51, 0.92), rgba(8, 14, 26, 0.84));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(212,168,67,0.16), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 35%);
  pointer-events: none;
}

.timeline-head {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(212,168,67,0.12);
}

.timeline-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.timeline-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

.timeline-scroll {
  position: relative;
  max-height: 72vh;
  overflow: auto;
  padding: 1rem 1rem 1rem 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,168,67,0.45) transparent;
}

.timeline-line {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  right: 2rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(212,168,67,0.1), rgba(212,168,67,0.5), rgba(100,160,255,0.18));
  box-shadow: 0 0 16px rgba(212,168,67,0.18);
}

.timeline-now {
  position: absolute;
  right: 1.05rem;
  width: calc(100% - 2.4rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,208,128,0.95), transparent);
  transform: translateY(-50%);
  transition: top 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.timeline-now::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  box-shadow:
    0 0 0 4px rgba(212,168,67,0.12),
    0 0 18px rgba(212,168,67,0.75);
  animation: timelinePulse 2.2s ease-in-out infinite;
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 1;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.55rem 0.7rem 0.55rem 0.3rem;
  border-radius: 14px;
  opacity: 0.58;
  transform: translateX(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid transparent;
}

.timeline-item:hover {
  opacity: 0.9;
  background: rgba(255,255,255,0.035);
}

.timeline-item.is-active {
  opacity: 1;
  background: linear-gradient(135deg, rgba(212,168,67,0.16), rgba(100,160,255,0.06));
  border-color: rgba(212,168,67,0.28);
  transform: translateX(-6px) scale(1.01);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.24),
    0 0 24px rgba(212,168,67,0.08);
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  border: 1px solid rgba(212,168,67,0.26);
  background: radial-gradient(circle, rgba(212,168,67,0.16), rgba(17,30,51,0.95));
  box-shadow: 0 0 20px rgba(212,168,67,0.1);
}

.timeline-item.is-active .timeline-marker {
  background: radial-gradient(circle, rgba(240,208,128,0.28), rgba(17,30,51,0.95));
  box-shadow:
    0 0 0 6px rgba(212,168,67,0.08),
    0 0 24px rgba(212,168,67,0.3);
}

.timeline-content {
  min-width: 0;
  text-align: right;
}

.timeline-time {
  font-size: 0.76rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  direction: ltr;
  unicode-bidi: plaintext;
}

.timeline-title {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.timeline-item.is-active .timeline-title {
  color: #fff4cf;
  text-shadow: 0 0 14px rgba(212,168,67,0.14);
}

@keyframes timelinePulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(212,168,67,0.12),
      0 0 18px rgba(212,168,67,0.75);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(212,168,67,0.05),
      0 0 28px rgba(212,168,67,0.95);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .section-card,
  .spark,
  .wave,
  .light-rays,
  body::before,
  .hebrew-letter,
  .section-card::before,
  .timeline-now::after {
    animation: none !important;
  }
  .sparks-container,
  .light-rays {
    display: none;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  header {
    padding: 1.8rem 1rem 1.2rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .welcome-card,
  .section-card {
    padding: 1.5rem 1.15rem;
  }

  main.main-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-shell {
    position: relative;
    top: auto;
    width: 100%;
  }

  .timeline-head {
    padding: 1rem 1rem 0.8rem;
  }

  .timeline-scroll {
    padding: 0.9rem 0.85rem 0.9rem 1rem;
    max-height: 300px;
  }

  .timeline-line {
    right: 1.75rem;
  }

  .timeline-now {
    right: 0.85rem;
    width: calc(100% - 2rem);
  }

  .timeline-item {
    grid-template-columns: 38px 1fr;
    gap: 0.6rem;
    padding: 0.5rem 0.55rem 0.5rem 0.2rem;
  }

  .timeline-marker {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .timeline-title {
    font-size: 0.88rem;
  }

  .hebrew-letter {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .section-card h2 {
    font-size: 1.3rem;
  }

  .section-body {
    font-size: 1rem;
    line-height: 1.95;
    text-align: start;
  }

  input[type="time"],
  input[type="number"] {
    width: 140px;
    font-size: 1.1rem;
  }

  .waves {
    height: 60px;
  }
}

/* ===== HIGH CONTRAST ===== */
@media (forced-colors: active) {
  .hebrew-letter {
    border: 2px solid currentColor;
    text-shadow: none;
  }

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }

  .section-card::before {
    display: none;
  }

  .sparks-container,
  .light-rays,
  .waves {
    display: none;
  }
}

@media (max-width: 960px) {
  main.main-layout {
    grid-template-columns: 1fr;
  }

  .timeline-shell {
    position: relative;
    top: auto;
    width: 100%;
  }

  .timeline-scroll {
    max-height: 340px;
  }
}
