/* Find a group calendar: Agenda, Day, Week and Month views (Jason, 24 Nov 2026). */
.mcal-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mcal-arrow, .mcal-today { border: 1px solid var(--line); background: #fff; color: var(--plum-900); font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.mcal-arrow { width: 40px; }
.mcal-today { padding: 0 1rem; font-size: .9rem; }
.mcal-arrow:hover, .mcal-today:hover { border-color: var(--plum-500); }
.mcal-label { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 0 0 0 .4rem; }
.mcal { min-height: 220px; }
.mcal[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.mcal-empty { padding: 3rem 1rem; }
.mcal-date { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 2rem 0 .8rem; }
.mcal-date:first-child { margin-top: .5rem; }
.mcal-month { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.mcal-dow, .mcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mcal-dow div { padding: .6rem .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.mcal-cell { min-height: 118px; padding: .35rem .35rem .5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.mcal-cell:nth-child(7n) { border-right: 0; }
.mcal-cell.is-out { background: var(--plum-50); }
.mcal-cell.is-out .mcal-num { color: var(--ink-soft); opacity: .6; }
.mcal-num { align-self: flex-start; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--plum-900); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.mcal-num:hover { background: var(--plum-100); }
.mcal-cell.is-today .mcal-num { background: var(--plum-600); color: #fff; }
.mcal-cell .slot { padding: .3rem .4rem; border-radius: 8px; min-width: 0; }
.mcal-cell .slot .t { font-size: .68rem; }
.mcal-cell .slot .n { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcal-more { border: 0; background: none; font: inherit; font-size: .75rem; font-weight: 600; color: var(--plum-600); text-align: left; cursor: pointer; padding: 0 .3rem; }
.mcal-month-list { display: none; }
@media (max-width: 760px) {
  /* Phones: the month grid shows dots and the month's groups list below it. */
  .mcal-cell { min-height: 54px; align-items: center; }
  .mcal-cell .slot, .mcal-more { display: none; }
  .mcal-cell .mcal-num + .slot { display: block; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--plum-500); font-size: 0; }
  .mcal-cell .mcal-num + .slot.peerplus { background: var(--peach); }
  .mcal-cell .mcal-num + .slot.inperson { background: var(--sage-500); }
  .mcal-dow div { text-align: center; padding: .5rem 0; font-size: .66rem; letter-spacing: .04em; }
  .mcal-month-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
  .mcal-label { width: 100%; margin: .4rem 0 0; }
}
/* The view tabs and the filters live in one card that stays pinned under the site header while the
   calendar scrolls (Jason, 25 Nov 2026). The two used to be separate sticky bars that overlapped. */
.mcal-bar { position: sticky; top: 76px; z-index: 20; display: grid; gap: .8rem; margin-bottom: 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .9rem 1.2rem; }
.mcal-bar .toolbar { position: static; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.mcal-bar .toolbar--filters { padding-top: .8rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .mcal-bar { top: 76px; gap: .5rem; padding: .55rem .6rem; border-radius: 14px; }
  .mcal-bar .toolbar { gap: .45rem; flex-wrap: nowrap; }
  .mcal-bar .toolbar:first-child { flex-wrap: wrap; }
  .mcal-bar .toolbar--filters { padding-top: .5rem; overflow-x: auto; scrollbar-width: none; }
  .mcal-bar .toolbar--filters::-webkit-scrollbar { display: none; }
  .mcal-bar .toolbar--filters .seg { flex: none; }
  .mcal-bar .mcal-arrow, .mcal-bar .mcal-today { height: 34px; }
  .mcal-bar .mcal-arrow { width: 34px; }
  .mcal-bar .mcal-nav { flex-wrap: nowrap; gap: .35rem; }
  .mcal-bar .mcal-label { width: auto; margin: 0 0 0 .2rem; font-size: .9rem; white-space: nowrap; }
  .mcal-bar .mcal-today { padding: 0 .75rem; }
}

/* Cancelled dates (Jason, 25 Nov 2026): still shown, crossed out, cannot be joined. */
.slot.is-cancelled { background: #f4f1f4; border-color: #e3dbe3; opacity: .75; }
.slot.is-cancelled .n { text-decoration: line-through; }
.gcard.is-cancelled { opacity: .7; }
.gcard.is-cancelled h3 { text-decoration: line-through; }
.tag--cancelled { background: #fde2e2; color: #8a1c1c; }
.mcal-cancel-note { color: #8a1c1c; margin: .2rem 0; }
@media (max-width: 760px) { .mcal-cell .mcal-num + .slot.is-cancelled { background: #c9b9c9; } }
/* Meeting pictures */
.gcard.has-img { grid-template-columns: 110px 1fr 96px auto; }
.gcard-img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.mm-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
@media (max-width: 760px) { .gcard.has-img { grid-template-columns: 1fr; } .gcard-img { width: 100%; height: 140px; } }

/* Remind me form in the meeting details pop-up (29 Nov 2026) */
.mm-remind { border-top: 1px solid var(--line); padding-top: 1rem; }
.mm-remind .form { gap: .8rem; }
.mm-remind .success { padding: .6rem 0; }
