/* Candidate-only seven-day schedule surfaces. Feature flags remain OFF. */
.schedule-date-rail {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--cw-border, #eadfe5);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%);
  box-shadow: 0 8px 24px rgba(56, 32, 63, .06);
}

.schedule-date-rail > p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.schedule-date-rail > p strong { color: #38203f; font-size: 1rem; }
.schedule-date-rail > p span { color: var(--cw-text-muted, #766c76); font-size: .78rem; }
.schedule-date-links {
  display: grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  gap: 8px;
  min-width: 0;
}

.schedule-date-link {
  display: grid;
  gap: 2px;
  min-height: 58px;
  place-content: center;
  padding: 8px;
  border: 1px solid #e8dce3;
  border-radius: 12px;
  background: #fff;
  color: #4a404a;
  text-align: center;
  text-decoration: none;
}

.schedule-date-link small { color: #887d87; font-size: .7rem; }
.schedule-date-link strong { font-size: 1rem; }
.schedule-date-link.saturday { border-color: #d9def5; color: #5868a7; }
.schedule-date-link.sunday { border-color: #f2d0d0; color: #ba5059; }
.schedule-date-link.is-current {
  border-color: #c22668;
  background: #c22668;
  color: #fff;
  box-shadow: 0 6px 15px rgba(194, 38, 104, .2);
}
.schedule-date-link.is-current small { color: #fff; }

.cast-weekly-schedule { overflow: hidden; scroll-margin-top: 82px; }
.cast-weekly-schedule .section-heading > small,
.schedule-section-heading > small { color: var(--cw-text-muted, #766c76); white-space: nowrap; }
.cast-weekly-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-color: #d7a3b9 #f5edf1;
  scrollbar-width: thin;
}

.cast-weekly-cards {
  display: flex;
  width: max-content;
  min-width: 0;
  gap: 10px;
}

.cast-weekly-day {
  flex: 0 0 140px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid #ded5db;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(56, 32, 63, .09);
}

.cast-weekly-day > header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 7px;
  background: #766d75;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.cast-weekly-day > header small {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: .62rem;
}
.cast-weekly-day.saturday > header { background: #7d8fc8; }
.cast-weekly-day.sunday > header { background: #d2777c; }
.cast-weekly-day.is-today { border-color: #c22668; box-shadow: 0 7px 18px rgba(194, 38, 104, .16); }
.cast-weekly-day.is-today > header { background: #c22668; }
.cast-weekly-times {
  display: grid;
  place-content: center;
  gap: 9px;
  min-height: 132px;
  padding: 15px 10px;
  text-align: center;
}

.cast-weekly-times strong {
  display: grid;
  color: #382f38;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.3;
}
.cast-weekly-times strong + strong { padding-top: 9px; border-top: 1px solid #eee5ea; }
.cast-weekly-times strong span { color: #a59aa3; font-size: .8rem; line-height: 1; }
.cast-weekly-times .is-empty { color: #9b9299; font-size: 2rem; }
.schedule-note { margin: 10px 0 0; color: var(--cw-text-muted, #766c76); font-size: .78rem; line-height: 1.6; }

.store-weekly-schedule {
  padding-top: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--cw-border, #eadfe5);
  scroll-margin-top: 82px;
}
.schedule-section-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--cw-text-secondary, #625862); }
.store-schedule-date-form {
  display: grid;
  grid-template-columns: auto minmax(210px, 360px) auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 16px;
  background: #faf3f7;
}
.store-schedule-date-form label { color: #594d57; font-size: .82rem; font-weight: 800; }
.store-schedule-date-form select {
  min-height: 48px;
  padding: 9px 42px 9px 15px;
  border: 1px solid #d9c7d1;
  border-radius: 12px;
  background: #fff;
  color: #2f2830;
  font-size: 1rem;
  font-weight: 800;
}
.store-schedule-date-form button { min-height: 48px; }
.store-schedule-card-list,
.schedule-listing-cards { gap: 16px; }
.schedule-cast-card .availability-card-info { align-content: center; }
.schedule-card-time {
  display: flex;
  min-height: 54px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 11px 14px;
  border-left: 4px solid #c22668;
  border-radius: 8px;
  background: #fff4f8;
}
.schedule-card-time small { flex-basis: 100%; color: #756875; font-size: .72rem; font-weight: 700; }
.schedule-card-time strong { color: #b51f5f; font-size: clamp(1.02rem, 2vw, 1.3rem); }
.schedule-cast-card .availability-card-actions > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.schedule-listing-hero aside {
  display: grid;
  max-width: 360px;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #eadfe5;
  border-radius: 14px;
  background: #fff8fb;
}
.schedule-listing-hero aside strong { color: #38203f; }
.schedule-listing-hero aside span { color: #625862; font-size: .78rem; }
.schedule-listing-filter { margin-top: 22px; }

@media (max-width: 760px) {
  .schedule-date-rail { margin-inline: -2px; padding: 14px; }
  .schedule-date-rail > p { display: grid; gap: 2px; }
  .schedule-date-links {
    display: flex;
    width: max-content;
    min-width: 100%;
    max-width: none;
    overflow: visible;
  }
  .schedule-date-link { width: 76px; flex: 0 0 76px; }
  .schedule-date-rail { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schedule-date-rail > p { position: sticky; left: 0; }

  .cast-weekly-schedule { width: 100%; padding-inline: 0; }
  .cast-weekly-schedule .section-heading,
  .cast-weekly-schedule .schedule-note { width: min(calc(100% - 28px), var(--cw-content)); margin-inline: auto; }
  .cast-weekly-scroll { padding-inline: 14px; }
  .cast-weekly-cards {
    display: flex;
    width: max-content;
    min-width: 0;
    gap: 12px;
  }
  .cast-weekly-day { width: 148px; min-height: 204px; flex: 0 0 148px; }
  .cast-weekly-times { min-height: 145px; }

  .schedule-section-heading { align-items: flex-start; }
  .store-schedule-date-form {
    grid-template-columns: 1fr auto;
    justify-content: stretch;
    padding: 14px;
  }
  .store-schedule-date-form label { grid-column: 1 / -1; }
  .store-schedule-date-form select { min-width: 0; width: 100%; }
  .schedule-cast-card { padding: 14px; }
  .schedule-cast-card .availability-card-main { grid-template-columns: 94px minmax(0, 1fr); gap: 13px; }
  .schedule-cast-card .availability-card-photo { min-height: 126px; border-radius: 12px; }
  .schedule-cast-card .availability-card-heading { display: grid; gap: 8px; }
  .schedule-cast-card .availability-card-cup { width: fit-content; padding: 6px 9px; }
  .schedule-cast-card .availability-card-actions { grid-template-columns: 1fr; width: 100%; }
}

@media (max-width: 430px) {
  .cast-weekly-day { width: 140px; flex-basis: 140px; }
  .store-schedule-date-form { grid-template-columns: 1fr; }
  .store-schedule-date-form label,
  .store-schedule-date-form select,
  .store-schedule-date-form button { grid-column: 1; width: 100%; }
  .schedule-cast-card .availability-card-main { grid-template-columns: 82px minmax(0, 1fr); }
  .schedule-card-time { padding: 9px 10px; }
}
