/* Month-grid calendar */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-title { font-size: 40px; min-width: 9.2ch; text-align: center; }
.cal-arrow { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 26px/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.cal-arrow:hover:not(:disabled) { background: var(--navy); color: #fff; }
.cal-arrow:disabled { opacity: .3; cursor: default; }
.cal-today { margin-left: 6px; border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px; font: 600 15px var(--body); cursor: pointer; }
.cal-today[hidden] { display: none; }
.seg { display: inline-flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: #fff; color: var(--navy); font: 600 16px var(--body); padding: 9px 20px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.cal-legend { display: flex; gap: 22px; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.sw.noschool { background: #F8E8E8; border: 1px solid #E5B9B9; }
.sw.today { background: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.cal-grid { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; border: 2px solid var(--navy); }
.cal-grid th { background: var(--navy); color: #fff; font: 700 15px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 10px 4px; }
.cal-grid th abbr { text-decoration: none; }
.cal-grid td { border: 1px solid var(--line); vertical-align: top; height: 112px; padding: 6px 6px 8px; position: relative; overflow: hidden; }
.cal-grid td.wkend { background: var(--tint); }
.cal-grid td.out { background: #FAFBFD; }
.cal-grid td.out .num { color: #B8C3D2; visibility: hidden; }
.cal-grid td.noschool { background: #F8E8E8; }
.cal-grid td.today { box-shadow: inset 0 0 0 3px var(--navy); }
.cal-grid td.today .num { background: var(--navy); color: #fff; border-radius: 50%; }
.cal-grid td.past:not(.out) .num, .cal-grid td.past .chip { opacity: .55; }
.cal-grid .num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; font: 700 20px var(--display); color: var(--navy); }
.cal-grid td.noschool .num { color: var(--alert); }
.chips { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.chip { display: block; font: 600 13.5px/1.25 var(--body); color: #fff; background: var(--navy); border-radius: 5px; padding: 4px 7px; overflow-wrap: anywhere; }
.chip.ns { background: transparent; color: var(--alert); padding: 0 2px; font-weight: 700; }
.chip.cont { display: none; }
.dots { display: none; }
.cal-agenda { margin-top: 36px; }
.cal-agenda h3 { font-size: 26px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
@media (max-width: 760px) {
  .cal-nav { width: 100%; justify-content: space-between; }
  .cal-title { font-size: 26px; white-space: nowrap; min-width: 0; }
  .cal-today { display: none; }
  .cal-grid td { height: 58px; padding: 4px 2px; text-align: center; }
  .cal-grid th { font-size: 12px; letter-spacing: .04em; padding: 8px 0; }
  .cal-grid .num { font-size: 17px; min-width: 26px; height: 26px; }
  .chips { display: none; }
  .dots { display: flex; justify-content: center; gap: 3px; margin-top: 3px; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
  .dots i.ns { background: var(--alert); }
  .cal-agenda { margin-top: 24px; }
}