/* Schedule page — uses site tokens from styles.css */
.sched { padding-top: 32px; }
.sched h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.sched-note { background: #FFF8E8; border: 1px solid #E6D7A8; border-radius: 10px; padding: 12px 14px; font-size: 0.88rem; color: #3A351E; }
.sched-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sched-sub { color: var(--muted); font-size: 0.9rem; margin: 4px 0 12px; }
.sched-featured { margin-top: 28px; }
.feat-strip {
  list-style: none; display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.feat {
  flex: 0 0 min(300px, 82%); scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.feat h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 1.15rem; line-height: 1.15; letter-spacing: 0.02em; }
.feat-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.feat-date { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-right: 2px; }
.feat-where { font-size: 0.82rem; font-weight: 600; line-height: 1.4; }
.feat-blurb { font-size: 0.84rem; color: var(--muted); }
.feat-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 0.8rem; }

.sched-controls { margin-top: 22px; display: grid; gap: 12px; }
.view-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sched-filters { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.sched-status { margin: 16px 0 6px; color: var(--muted); font-size: 0.9rem; min-height: 1.4em; }

.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; }
.week-nav h2, .view-title, .month-title { font-size: clamp(1.2rem, 3vw, 1.6rem); text-align: center; }
.week-nav .btn[disabled] { opacity: 0.4; cursor: default; }
.wk-past-row { text-align: center; margin: 6px 0 0; }
.view-title { text-align: left; margin-top: 8px; }
.month-title { text-align: left; margin: 8px 0 10px; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 2px 0; }
.cal-day {
  font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink);
  min-height: 52px; padding: 4px 3px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.cal-num { font-weight: 800; font-size: 0.9rem; line-height: 1; }
.cal-n { font-size: 0.72rem; font-weight: 700; color: var(--green); min-height: 1em; }
.cal-day[data-lvl="1"] { background: #F0F6F2; }
.cal-day[data-lvl="2"] { background: #E2EFE8; }
.cal-day[data-lvl="3"] { background: #CFE5D8; }
.cal-day[data-lvl="4"] { background: #B7D7C8; }
.cal-day[data-lvl="0"] { color: #8A908C; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--red); }
.cal-day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-day[aria-pressed="true"] .cal-n { color: #fff; }
.cal-key { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

.sched-list { margin-top: 12px; }
.day-head {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.1rem;
  margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.day-count { font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.ev-list { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ev { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev-time { font-weight: 800; font-size: 0.82rem; line-height: 1.3; color: var(--ink); }
.ev-time.na { color: var(--muted); font-weight: 700; }
.ev-teams { font-weight: 700; font-size: 0.98rem; line-height: 1.3; overflow-wrap: anywhere; }
.tm.tba { color: var(--muted); font-style: italic; font-weight: 600; }
.ev-score { font-size: 0.84rem; margin-top: 2px; color: var(--forest); font-weight: 700; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.ev-loc { overflow-wrap: anywhere; }
.ev-src { font-weight: 700; font-size: 0.78rem; }
.tag { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #EFEFEF; color: #3A403C; border: 1px solid #D5D8D6; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.tag.bb { background: var(--green-soft); border-color: var(--sage); color: var(--forest); }
.tag.wr { background: #FBE9EC; border-color: #E8AEB8; color: var(--crimson); }
.tag.live { background: var(--red); border-color: var(--red); color: #fff; }
.sched-more { text-align: center; margin: 16px 0 0; }

.tag.hk { background: #E8F1FA; border-color: #B9D0E6; color: #1C3A5A; }
.tag.sw { background: #E7F6F2; border-color: #B5D9D0; color: #1A4A40; }
.tag.ot { background: #F3F1EA; border-color: #D9D4C6; color: #3F3A2E; }
.tag.level { background: #F4F0E4; border-color: #D9CDA8; color: #5A4A16; }
.tag.cancelled { background: #FFF1F2; border-color: #E8AEB8; color: var(--crimson); }
.tag.postponed { background: #FFF6E5; border-color: #E8D19A; color: #6B4E00; }
.tag.src-tag { font-weight: 800; text-decoration: none; }
.tag.src-tag.official { background: var(--green-soft); border-color: var(--sage); color: var(--forest); }
.tag.src-tag.maxpreps { background: #EEEFF1; border-color: #C9CDD1; color: #2F3538; }
a.tag.src-tag:hover, a.tag.src-tag:focus { text-decoration: underline; }
.ev-time.struck { text-decoration: line-through; opacity: 0.7; }
.ev.is-cancelled .ev-teams, .ev.is-postponed .ev-teams { text-decoration: line-through; }
.ev.is-cancelled, .ev.is-postponed { opacity: 0.88; }

@media (min-width: 700px) {
  .sched-filters { grid-template-columns: 1.4fr 1fr 1fr 0.85fr auto; }
  .feat { flex-basis: 300px; }
  .cal { gap: 6px; }
  .cal-day { min-height: 76px; padding: 8px; align-items: flex-start; }
  .cal-num { font-size: 1rem; }
  .cal-n { font-size: 0.85rem; align-self: flex-end; }
  .ev { grid-template-columns: 96px 1fr; padding: 14px 18px; }
}

.sched [hidden] { display: none !important; }
