/* ===== Lab Session Calendar (#calendar) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-open-row { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.labcal-page { padding: clamp(96px, 10vw, 128px) 0 clamp(56px, 7vw, 96px); }
.labcal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.labcal-brand { display: flex; align-items: center; gap: 18px; }
.labcal-brand img { height: clamp(34px, 3.4vw, 46px); width: auto; }
.labcal-brand h1 { font: 500 clamp(30px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.04em; }
.labcal-brand p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.labcal-back { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.labcal-back:hover { color: var(--ink); }

.labcal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-radius: 28px; background: linear-gradient(160deg, #17181c, #0e0f12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.cal-main { padding: clamp(18px, 2.4vw, 32px); min-width: 0; }
.cal-bar-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-sel { position: relative; }
.cal-sel select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--ink); font: 500 clamp(22px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -.02em; padding: 4px 26px 4px 4px; cursor: pointer; border-radius: 8px; }
.cal-sel select option { background: #17181c; font-size: 16px; }
.cal-sel::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cal-nav { margin-left: auto; display: flex; gap: 8px; }
.cal-round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--ink); display: grid; place-items: center; font-size: 16px; }
.cal-round:hover, .cal-pill:hover { background: var(--ink); color: #000; }
.cal-pill { height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--ink); font: 500 14px var(--body); }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.cal-filter { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.05); color: var(--ink-2); font: 500 13px var(--body); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cal-filter i { width: 8px; height: 8px; border-radius: 50%; }
.cal-filter.on { background: var(--ink); color: #000; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-dow span { color: var(--muted); font-size: 13px; padding: 0 4px 8px; }
.cal-day { position: relative; min-height: clamp(84px, 8.6vw, 118px); border-radius: 14px; padding: 10px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: background .2s, box-shadow .2s; }
.cal-day.muted { opacity: .38; }
.cal-num { font: 500 clamp(16px, 1.6vw, 22px)/1 var(--display); color: var(--ink); }
.cal-day.has { cursor: pointer; }
.cal-day.has:hover { background: rgba(255,255,255,.07); }
.cal-day.today { background: linear-gradient(170deg, rgba(197,138,18,.55), rgba(197,138,18,.08)); box-shadow: inset 0 0 0 1px rgba(224,165,38,.6); }
.cal-day.picked { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-evs { margin-top: auto; display: grid; gap: 4px; min-width: 0; }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0 0 0 8px; border-left: 2px solid var(--c); color: var(--ink-2); font: 500 12px/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { color: #fff; }
.cal-ev.past { color: var(--muted); }

.cal-side { padding: clamp(18px, 2.4vw, 28px); border-left: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); display: flex; flex-direction: column; min-height: 0; max-height: 860px; }
.cal-side h2 { font: 500 26px/1.1 var(--display); letter-spacing: -.02em; }
.cal-side .cal-sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.cal-list { display: grid; align-content: start; gap: 12px; overflow-y: scroll; padding-right: 10px; }
@supports not selector(::-webkit-scrollbar) { .cal-list { scrollbar-width: thin; scrollbar-color: #6b6c72 rgba(255,255,255,.06); } }
/* always-visible scrollbar (macOS hides overlay scrollbars otherwise) */
.cal-list::-webkit-scrollbar { width: 6px; -webkit-appearance: none; }
.cal-list::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 99px; }
.cal-list::-webkit-scrollbar-thumb { background: #6b6c72; border-radius: 99px; }
.cal-list::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }
.cal-card { position: relative; text-align: left; border: 0; color: var(--ink); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); border-radius: 16px; padding: 16px 16px 14px; display: grid; gap: 4px; transition: background .2s, transform .2s; }
.cal-card:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.cal-thumb { display: block; margin: -16px -16px 14px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px 16px 0 0; background: #111; }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cal-card:hover .cal-thumb img { transform: scale(1.04); }
.cal-card.past .cal-thumb img { filter: grayscale(.6) brightness(.75); }
.cal-card .cal-bar { height: 5px; border-radius: 99px; background: var(--c); margin-bottom: 10px; }
.cal-card.past .cal-bar { opacity: .4; }
.cal-when { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.cal-card strong { font: 500 19px/1.2 var(--display); letter-spacing: -.01em; }
.cal-meta { color: var(--ink-2); font-size: 13px; }
.cal-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.12); color: var(--ink-2); font-size: 13px; }
.cal-tag { color: var(--c); font-weight: 600; white-space: nowrap; }
.cal-card.past .cal-tag { color: var(--muted); }
.cal-empty { color: var(--muted); font-size: 14px; }

/* program details */
html.cal-lock { overflow: hidden; }
.cal-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.cal-modal[hidden] { display: none; }
.cal-dialog { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; background: linear-gradient(160deg, #1b1c21, #111216); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 100px rgba(0,0,0,.6); }
.cal-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cal-dialog-head div { display: flex; align-items: center; }
.cal-dialog-head img { height: 26px; width: auto; }
.cal-dialog-head span { color: var(--muted); font-size: 14px; margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); }
.cal-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--ink); font-size: 20px; line-height: 1; }
.cal-x:hover { background: var(--ink); color: #000; }
[data-cal-body] { padding: 24px; }
.pd-top { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.pd-img { border-radius: 16px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); aspect-ratio: 469 / 295; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.pd-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pd-head h3 { font: 500 clamp(26px, 2.8vw, 36px)/1.05 var(--display); letter-spacing: -.03em; margin: 10px 0 16px; }
.pd-key, .pd-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.pd-key dt, .pd-facts dt { color: var(--muted); font-size: 12px; }
.pd-key dd, .pd-facts dd { margin: 3px 0 0; font: 500 16px/1.3 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.pd-facts { margin-top: 22px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-desc { margin-top: 20px; }
.pd-desc h4 { font: 500 15px var(--display); color: var(--muted); margin: 0 0 6px; }
.pd-desc p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.pd-actions:empty { display: none; }

@media (max-width: 1020px) {
  .labcal { grid-template-columns: 1fr; }
  .cal-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); max-height: none; }
}
@media (max-width: 680px) {
  .cal-dow, .cal-grid { gap: 4px; }
  .cal-day { min-height: 52px; padding: 6px; border-radius: 10px; align-items: center; }
  .cal-evs { display: flex; gap: 3px; justify-content: center; }
  .cal-ev { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--c); font-size: 0; }
  .cal-dow span { font-size: 11px; text-align: center; padding: 0 0 6px; }
  .cal-nav { margin-left: 0; }
  .pd-top { grid-template-columns: 1fr; }
  .pd-facts, .pd-key { grid-template-columns: 1fr 1fr; }
}

/* specialty dropdown sits with the month and year pickers */
.cal-sel-spec select { min-width: 190px; }
/* session popup: Express Interest under the course picture */
.pd-media { display: flex; flex-direction: column; gap: 12px; }
.pd-eoi { width: 100%; }
.cal-pill.cal-eoi { background: var(--gold); color: #111; box-shadow: none; font-weight: 600; }
.cal-pill.cal-eoi:hover { background: #e0a526; color: #111; }
