/* RAYAN top ticker bar: live clock + three-calendar ticker + Khayyam quote.
   Navy/gold identity, fixed height (no layout shift), vanilla CSS only. */
.rayan-ticker-bar {
  --rayan-ticker-h: 42px;
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--rayan-ticker-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #030712 0%, #070F1E 55%, #0B192C 100%);
  border-bottom: 1px solid rgba(197, 160, 89, 0.28);
  color: #E2BF65;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.rayan-ticker-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  height: 100%;
  padding: 0 0.9rem;
  border-inline-end: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(197, 160, 89, 0.07);
  color: #FFE299;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rayan-ticker-clock svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: #C5A059;
}
.rayan-ticker-clock time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.rayan-ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Keep one consistent scroll direction; item text keeps its own bidi. */
  direction: ltr;
  /* Soft edge fade so items glide in/out gracefully. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.rayan-ticker-track {
  display: inline-flex;
  align-items: center;
  flex: none;
  will-change: transform;
  animation: rayan-ticker-scroll 75s linear infinite;
}
.rayan-ticker-viewport:hover .rayan-ticker-track {
  animation-play-state: paused;
}
.rayan-ticker-group {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.rayan-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.4rem;
  color: #E8D5A3;
  unicode-bidi: plaintext;
}
.rayan-ticker-item .rayan-ticker-label {
  color: #C5A059;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.rayan-ticker-item .rayan-ticker-date {
  color: #F3E9CF;
  font-variant-numeric: tabular-nums;
}
.rayan-ticker-item.rayan-ticker-quote {
  color: #FFE299;
  font-style: italic;
}
.rayan-ticker-item.rayan-ticker-quote .rayan-ticker-by {
  font-style: normal;
  color: #C5A059;
  font-weight: 600;
}
.rayan-ticker-sep {
  color: rgba(197, 160, 89, 0.55);
  font-size: 9px;
  flex: none;
}
@keyframes rayan-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rayan-ticker-track { animation: none; }
  .rayan-ticker-viewport { overflow-x: auto; }
}
@media (max-width: 640px) {
  .rayan-ticker-bar { --rayan-ticker-h: 38px; font-size: 11px; }
  .rayan-ticker-clock { padding: 0 0.6rem; }
  .rayan-ticker-item { padding: 0 0.9rem; }
  .rayan-ticker-item .rayan-ticker-label { font-size: 9px; }
}
