﻿/* Back-to-top button for schedule/results pages */

.dwc-back-to-top {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0.4rem;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 10px 24px rgba(254, 149, 0, 0.32),
    0 0 0 1px rgba(254, 149, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.dwc-back-to-top__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.dwc-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.dwc-back-to-top:hover,
.dwc-back-to-top:focus-visible {
  filter: brightness(1.04);
  box-shadow:
    0 14px 28px rgba(254, 149, 0, 0.42),
    0 0 0 1px rgba(254, 149, 0, 0.28);
  outline: none;
}

@media (min-width: 992px) {
  body.dwc-sidebar-desktop .dwc-back-to-top {
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
}

.dwc-schedule-results-page #table_data > .section,
.dwc-schedule-results-page #table_data .section.mb-4,
.dwc-schedule-results-page #table_data .section.mt-1,
.dwc-schedule-results-page .section.mb-2,
.dwc-schedule-results-page .section.mb-3,
.dwc-schedule-results-page .section.mb-4,
.dwc-schedule-results-page .section.mt-1 {
  opacity: 1;
}
