/* Intentional detail-page design treatments only.
   Basic layout, spacing, colors, cards, badges, buttons, and typography
   remain controlled by Bootstrap and the active Bootstrap theme. */

/* Let the lead media cross only the masthead's lower edge.
   The masthead reserves Bootstrap spacing below its content, so the
   image never covers the headline, summary, or publication details. */
.uaa-news-hero-figure {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

@media (min-width: 768px) {
  .uaa-news-hero-figure {
    margin-top: -2rem;
  }
}

.uaa-news-hero-figure img {
  max-height: 42rem;
  object-fit: cover;
}

/* Keep article/event action information visible below the fixed site header. */
.uaa-detail-sticky {
  top: var(--uaa-detail-sticky-offset, 8rem);
}

/* Event schedule timeline: a meaningful visual sequence rather than a plain list. */
.uaa-event-timeline {
  position: relative;
}

.uaa-event-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.1rem;
  width: 2px;
  background: rgba(var(--bs-primary-rgb), .18);
  content: "";
}

.uaa-event-timeline__item {
  position: relative;
  padding-left: 3.25rem;
}

.uaa-event-timeline__marker {
  position: absolute;
  top: .35rem;
  left: .65rem;
  z-index: 1;
  width: .95rem;
  height: .95rem;
  border: .2rem solid var(--bs-body-bg);
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .25);
}

@media (hover: hover) and (pointer: fine) {
  .uaa-event-timeline__item {
    transition: transform 180ms ease;
  }

  .uaa-event-timeline__item:hover {
    transform: translateX(.2rem);
  }
}

@media (max-width: 991.98px) {
  .uaa-detail-sticky {
    position: static !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uaa-event-timeline__item {
    transition: none;
  }

  .uaa-event-timeline__item:hover {
    transform: none;
  }
}
