@keyframes delta-float {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(-0.75rem); opacity: 1; }
  100% { transform: translateY(-3.00rem); opacity: 0; }
}

.credit-delta {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-weight: 800;
  font-size: 1rem;
  animation: delta-float 2.0s cubic-bezier(0.2, 0, 0.8, 1) forwards;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-weight: 700;
}

.fw-bold {
  font-weight: 800;
}

.fw-strong {
  font-weight: 900;
}

.border-dashed {
  border-style: dashed !important;
}

.flex-equal {
  flex: 1 1 0;
  min-width: 0;
}

.container-md {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .container-md {
    max-width: 1028px;
  }
}

.card-pill {
  aspect-ratio: 2.5 / 1;
  border-radius: var(--bs-border-radius-pill) !important;
  width: 160px;
  padding: 0.4rem;
  overflow: hidden;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.0;
  word-break: break-word;
}

.card-pill .card-credits {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 0.2rem;
}

/* align entry bullets with subscore arrow */
.entry-details {
  list-style: none;
  padding-left: 2rem;
}

.entry-details li {
  position: relative;
}

.entry-details li::before {
  content: '•';
  position: absolute;
  left: -1.1rem;
  font-size: 1.5em;
  top: -0.3em;
}

/* retain sliding */
::view-transition-group(*) {
  animation-duration: 0.5s;
}

/* but suppress crossfading */
::view-transition-old(*),
::view-transition-new(*) {
  animation: none;
}

/* prevent buttons from resizing to content */
#exam-type-btn-group .btn,
#score-type-btn-group .btn {
  flex: 1 1 0; /* undo `auto` from `.btn-group > .btn { flex: 1 1 auto }` */
}

.nav-tabs {
  --bs-nav-tabs-border-radius: var(--bs-border-radius-xl);
}

.popover-wide {
  --bs-popover-max-width: 320px;
}

@media (min-width: 992px) {
  .sidebar-sticky {
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 100;
  }
}

@media print {
  .results-col {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .card {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  .btn.rounded-pill {
    font-size: 0.7rem !important;
  }
  .display-5 {
    font-size: 2.0rem;
  }
  .h4 {
    font-size: 1.2rem;
  }
  /* force single column */
  .col-xl-6 {
    width: 100%;
    flex: 0 0 100%;
  }
}

@media (max-width: 991.98px) {
  /* prevent shifting of trash icon on mobile (while desktop uses .ms-lg-auto)*/
  #credit-total {
    display: inline-block;
    min-width: 2ch;
  }

  .form-inline-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .form-inline-sm > .form-label {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 5.5rem;
  }
  .form-inline-sm > :last-child {
    flex-grow: 1;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  /* align label with top control when controls stack vertically */
  .form-inline-sm {
    align-items: flex-start;
  }
}
