/* Signal ticker: a slim strip between the main canvas and the footer bar that
   types out Signal's tagline and headlines and links to /signal. Cyan accents
   only, like the rest of the shell. */

.shell {
  /* one more row for the ticker, between the canvas and the footer */
  grid-template-rows: auto 1fr auto auto;
}

.signal-ticker-row {
  padding: 0 24px 12px;
  min-width: 0;
}

.signal-ticker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(11, 17, 32, 0.9);
  transition: border-color 0.2s;
}

.signal-ticker:hover,
.signal-ticker:focus-visible {
  border-color: rgba(34, 211, 238, 0.5);
}

.signal-ticker:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.signal-ticker-mark {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #5eead4;
}

.signal-ticker-mark i {
  width: 14px;
  height: 14px;
  background: conic-gradient(from 210deg, #3fd0c9, #7dd3fc, #3fd0c9);
  clip-path: polygon(50% 6%, 95% 92%, 5% 92%);
}

.signal-ticker-text {
  position: relative;
  flex: 1;
  min-width: 0;
  display: grid;
  align-items: center;
  min-height: 22px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 14px;
  line-height: 1.35;
}

.signal-ticker-ghost {
  grid-area: 1 / 1;
  visibility: hidden;
}

.signal-ticker-typed {
  grid-area: 1 / 1;
  color: var(--text);
}

.signal-ticker-typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: #5eead4;
  animation: signal-ticker-blink 1.1s steps(2, start) infinite;
}

@keyframes signal-ticker-blink {
  to { opacity: 0; }
}

.signal-ticker-read {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.signal-ticker:hover .signal-ticker-read {
  color: #5eead4;
}

@media (max-width: 860px) {
  .signal-ticker-read { display: none; }
}

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