/* isdept.com home Insights ticker (preview).
   Item copy is baked in from the shared ticker.json by sync-ticker.py.
   Uses the .com house palette (--c-brand / --c-brand-light), which already
   matches the isdept.ai ticker navy (#015478) and accent (#a9dcf2).
   Sits at the bottom of the home hero video only. When the feed is disabled
   or empty, sync-ticker.py omits the section entirely, including the label.
   Weekend ticker conventions: full-bleed, identical passes, seamless loop,
   pause on hover and keyboard focus, no motion when reduced.
   Marketing owns branding; this stylesheet is for their look-pass. */

.wticker {
  --wticker-navy: var(--c-brand, #015478);
  --wticker-navy-edge: #01405c;
  --wticker-label: var(--c-brand-light, #a9dcf2);
  position: relative;
  background: var(--wticker-navy);
  color: #fff;
  border-top: 1px solid var(--wticker-navy-edge);
  overflow: hidden;
  font-family: var(--font-body), Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.4;
}

.wticker::before,
.wticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}

.wticker::before {
  left: 0;
  background: linear-gradient(to right, var(--wticker-navy), rgba(1, 84, 120, 0));
}

.wticker::after {
  right: 0;
  background: linear-gradient(to left, var(--wticker-navy), rgba(1, 84, 120, 0));
}

.wticker-track {
  display: flex;
  width: max-content;
  animation: wticker-scroll var(--wticker-duration, 75s) linear infinite;
}

.wticker:hover .wticker-track,
.wticker:focus-within .wticker-track {
  animation-play-state: paused;
}

.wticker-list {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wticker-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 11px 0;
}

.wticker-list li::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 2rem;
}

.wticker a {
  color: #fff;
  text-decoration: none;
}

.wticker a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wticker a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

.wticker-label {
  font-weight: 700;
  color: var(--wticker-label);
  letter-spacing: 0.02em;
  margin-right: 0.4em;
}

.wticker-list li.wticker-head::after {
  display: none;
}

@keyframes wticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(var(--wticker-shift, -50%)); }
}

/* Bottom of the home hero video. Padding-left matches the fade width so the
   "Insights: Breaking" label is not clipped (same lesson as wticker.css?v=3). */
.wticker--com-home {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding-left: 48px;
  padding-right: 1.25rem;
  border-bottom: 0;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 600px) {
  .wticker { font-size: 14px; }
  .wticker-list li::after { margin: 0 1.25rem; }
  .wticker--com-home { padding-left: 36px; padding-right: 1rem; }
  .wticker::before,
  .wticker::after { width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .wticker::before,
  .wticker::after { display: none; }
  .wticker-track {
    animation: none;
    width: auto;
    padding: 10px 1.5rem 12px;
  }
  .wticker--com-home { padding-left: 0; padding-right: 0; }
  .wticker-list { flex-wrap: wrap; flex-shrink: 1; row-gap: 4px; }
  .wticker-list li { white-space: normal; padding: 2px 0; }
  .wticker-list li.wticker-head { flex-basis: 100%; }
  .wticker-list li:last-child::after { display: none; }
  .wticker-list[aria-hidden="true"] { display: none; }
}
