/* Shared schedule page styles. */

/* Quiet placeholders for slide formats; active links receive link styling below. */
.slide-downloads,
.schedule-icon-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 3rem;
  min-height: 1.25rem;
}

.slide-format,
.schedule-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  line-height: 1;
  vertical-align: middle;
}

.slide-format i,
.schedule-resource i,
.centered-column .fa-file-alt {
  width: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.centered-column .fa-file-alt + .text-xs {
  margin-left: 0.5rem;
  vertical-align: middle;
}

span.slide-format,
span.schedule-resource {
  color: #67748e;
}

.slide-format > span[aria-hidden="true"] {
  display: none;
}

/* Linked icons take their color from .custom-link in assets/css/custom.css.
   Do not set color here — it would out-specify .custom-link:hover. */
a.slide-format,
a.schedule-resource {
  text-decoration: none;
}

/* Keep a live resource link visually quiet until its session materials are active. */
a.schedule-resource--muted,
a.schedule-resource--muted:hover,
a.schedule-resource--muted:focus,
a.schedule-resource--muted:visited {
  color: #67748e;
}

a.slide-format:focus-visible,
a.schedule-resource:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* Stack multiple assignment links within one schedule cell. */
.assignment-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.assignment-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 1.25rem;
}

span.assignment-resource {
  color: #67748e;
}

a.assignment-resource {
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

a.assignment-resource:hover {
  transform: scale(1.02);
}

a.assignment-resource:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.schedule-card,
.schedule-delivery-card {
  overflow: hidden;
  border: 1px solid #e8ebf2;
}

.schedule-card {
  box-shadow: 0 8px 24px rgba(52, 71, 103, 0.06);
}

.schedule-delivery-card {
  box-shadow: 0 4px 14px rgba(52, 71, 103, 0.04);
}

.schedule-overview {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e8ebf2;
  border-left: 4px solid var(--bs-indigo);
}

.schedule-overview-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bs-indigo);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.schedule-overview p {
  max-width: 68rem;
  margin: 0;
  color: #53627a;
  font-size: 0.875rem;
  line-height: 1.65;
}

.schedule-card .card-body {
  padding: 0;
}

.schedule-card .dataTable-wrapper .dataTable-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 4.5rem;
  padding: 1rem 1.5rem;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ebf2;
}

.schedule-card .dataTable-search {
  width: min(100%, 18rem);
  margin-left: auto;
}

.schedule-card .dataTable-search .dataTable-input {
  width: 100%;
  min-height: 2.5rem;
  background: #fff;
  border-color: #dfe3eb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-card .dataTable-search .dataTable-input:focus {
  border-color: #9b8afb;
  box-shadow: 0 0 0 3px rgba(121, 40, 202, 0.12);
}

.schedule-delivery-card .card-header {
  padding: 1.25rem 1.5rem 0.45rem;
  background: #fff;
}

.schedule-delivery-card h2 {
  margin: 0 0 0.3rem;
  color: #344767;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.schedule-delivery-card .card-header p {
  margin: 0;
  color: #67748e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.schedule-delivery-card .card-body {
  padding: 0.35rem 1.5rem 1.15rem;
}

.delivery-methods {
  margin: 0;
}

.delivery-method {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  min-width: 0;
  padding: 0.75rem 0;
}

.delivery-method + .delivery-method {
  border-top: 1px solid #e8ebf2;
}

.delivery-method dt {
  margin: 0;
  color: #344767;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.delivery-method dd {
  margin: 0;
  color: #67748e;
  font-size: 0.8rem;
  line-height: 1.55;
}

body.dark-version .schedule-card,
body.dark-version .schedule-delivery-card,
body.dark-version .schedule-overview,
body.dark-version .schedule-delivery-card .card-header {
  background: #202940;
  border-color: rgba(255, 255, 255, 0.09);
}

body.dark-version .schedule-overview p,
body.dark-version .schedule-delivery-card .card-header p,
body.dark-version .delivery-method dd {
  color: #aeb8cc;
}

body.dark-version .schedule-delivery-card h2,
body.dark-version .delivery-method dt {
  color: #fff;
}

body.dark-version .schedule-card .dataTable-wrapper .dataTable-top {
  background: #1a2035;
  border-color: rgba(255, 255, 255, 0.09);
}

body.dark-version .delivery-method + .delivery-method {
  border-color: rgba(255, 255, 255, 0.09);
}

body.dark-version .schedule-card .dataTable-search .dataTable-input {
  color: #fff;
  background: #202940;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 767.98px) {
  .delivery-method {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

@media (max-width: 575.98px) {
  .schedule-overview,
  .schedule-delivery-card .card-header,
  .schedule-delivery-card .card-body,
  .schedule-card .dataTable-wrapper .dataTable-top {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .schedule-card .dataTable-top > .dataTable-search {
    width: 100%;
    margin-top: 0;
  }
}
