/* The one calendar for every date box on the site (core/datepick.js, Nov 16, 2026), sized like
   Momence's: big, easy-to-click days. Colors come from the theme, so the student pages' bolder
   theme and the staff pages each get their own shades. Change the calendar here, once. */
/* The box: a small calendar icon on the right says "click me". It's drawn in the box's background, so
   the box needs no wrapper and page layouts stay as they are; datepick.js draws it in the theme's --muted
   (and the header's list arrows in --on-dark), so it follows the theme. Doubled class: wins over pages' own
   input styles. */
input.datebox.datebox { cursor: pointer; padding-right: 38px; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; }
.cal-pop { position: fixed; z-index: 1000; width: 300px; max-width: calc(100vw - 16px); box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px color-mix(in srgb, var(--brand) 18%, transparent); overflow: hidden; font-family: var(--font-text); color: var(--ink); }
.cal-pop[hidden] { display: none; }
.cal-pop button { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; }
.cal-pop button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; background: var(--brand); color: var(--on-dark); padding: 8px 6px 2px; }
.cal-title { display: flex; gap: 4px; }
.cal-pop select { appearance: none; -webkit-appearance: none; border: 0; box-shadow: none; color: var(--on-dark); font: inherit; font-size: 16px; font-weight: 600; padding: 3px 20px 3px 5px; background-color: transparent; background-repeat: no-repeat; background-position: right 6px center; margin: 0; border-radius: 8px; cursor: pointer; width: auto; min-height: 0; }
.cal-pop select:hover, .cal-pop select:focus { background-color: var(--brand-2); outline: none; }
.cal-pop select option { color: var(--ink); background: var(--card); }
.cal-pop .cal-arrow { color: var(--on-dark); font-size: 22px; line-height: 34px; width: 36px; height: 34px; border-radius: 8px; }
.cal-pop .cal-arrow:hover { background: var(--brand-2); }
.cal-wds, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 8px; }
.cal-wds { background: var(--brand); color: var(--on-dark-soft); font-size: 12px; font-weight: 600; padding-bottom: 8px; }
.cal-wds span { text-align: center; }
.cal-grid { padding: 6px 8px 8px; }
.cal-pop .cal-day { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.cal-pop .cal-day:hover { background: var(--fill-3); }
.cal-pop .cal-day.other { color: var(--line-5); }
.cal-pop .cal-day.today { color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-4); }
.cal-pop .cal-day.on { background: var(--button); color: var(--on-dark); }
.cal-pop .cal-day[disabled] { color: var(--line-3); cursor: default; background: none; text-decoration: line-through; }
.cal-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 6px 10px; }
.cal-pop .cal-foot button { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.cal-pop .cal-foot button:hover { background: var(--fill-2); }
@media (pointer: coarse) { .cal-pop .cal-day { height: 40px; } }   /* a bit more room for fingers */
