/* pa-calendar.css - Calendar: the month on the left, Reminders on the right (stacked on phones). */
body[data-area="calendar"] .sm-perm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px 28px; align-items: start; }
body[data-area="calendar"] .sm-perm__head { grid-column: 1 / -1; align-items: center; }
.pa-today {
  margin-left: auto; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ctl); box-shadow: inset 0 0 0 1px var(--ctl-line); color: var(--ink); font: 400 14px var(--font);
}
.pa-today:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }

/* the month */
.pa-cal__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pa-cal__bar h3 { flex: 1; margin: 0; text-align: center; font-size: 20px; font-weight: 400; }
.pa-cal__nav {
  width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ctl); box-shadow: inset 0 0 0 1px var(--ctl-line); color: var(--ink);
}
.pa-cal__nav:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }
.pa-cal__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pa-cal__week, .pa-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pa-cal__week { margin-bottom: 6px; }
.pa-cal__week span { text-align: center; font-size: 12px; color: var(--ink2); }
.pa-day {
  position: relative; aspect-ratio: 1 / .86; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 14px; cursor: pointer; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 15px var(--font);
}
.pa-day:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }
.pa-day.is-out { color: var(--placeholder); background: transparent; }
.pa-day.is-today { box-shadow: inset 0 0 0 1.5px var(--ac-text); font-weight: 500; }
.pa-day[aria-selected="true"] { background: var(--ac); color: #fff; box-shadow: none; }
.pa-day i { display: flex; gap: 3px; height: 6px; }
.pa-day i b { width: 6px; height: 6px; border-radius: 50%; background: var(--ac-text); }
.pa-day[aria-selected="true"] i b { background: #fff; }

/* reminders */
.pa-rem { scroll-margin-top: 110px; }
.pa-rem__head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.pa-rem__head h3 { margin: 0; font-size: 20px; font-weight: 400; }
.pa-rem__day { color: var(--ink2); font-size: 14px; }
.pa-rem__add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pa-rem__add #remTitle { grid-column: 1 / -1; }
.pa-rem__add select.pa-input { appearance: none; -webkit-appearance: none; cursor: pointer; }
.pa-rem__add select.pa-input option { background: var(--solid); color: var(--ink); }
.pa-rem__add .pa-input[type="date"], .pa-rem__add .pa-input[type="time"] { color-scheme: dark; }
.pa-rem__msg { min-height: 18px; margin: 8px 2px; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.pa-rem__msg.is-bad { color: var(--bad); }
.pa-rem__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pa-rem__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pa-rem__item.is-past { box-shadow: inset 0 0 0 1px rgba(255, 156, 146, .45); }
.pa-rem__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pa-rem__txt b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.pa-rem__txt small { font-size: 12.5px; color: var(--ink2); }
.pa-rem__ic {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ctl); box-shadow: inset 0 0 0 1px var(--ctl-line); color: var(--ink);
}
.pa-rem__ic:hover { box-shadow: inset 0 0 0 1px var(--line-hover); }
.pa-rem__ic--done:hover { background: var(--ac); box-shadow: none; color: #fff; }
.pa-rem__ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pa-rem__empty { padding: 6px 2px; color: var(--ink2); font-size: 14px; }
.pa-today:focus-visible, .pa-cal__nav:focus-visible, .pa-day:focus-visible, .pa-rem__ic:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; }

@media (max-width: 900px) {
  body[data-area="calendar"] .sm-perm { grid-template-columns: minmax(0, 1fr); }
  .pa-rem { margin-top: 14px; }
}
@media (max-width: 760px) {
  .pa-cal__week, .pa-cal__grid { gap: 4px; }
  .pa-day { border-radius: 11px; font-size: 14px; min-height: 0; aspect-ratio: 1; }
  .pa-rem__add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pa-rem__add #remAdd { grid-column: 1 / -1; }
}
