/* Nepali calendar month grids (utils/PatroCalendar.cfc). Colours come from the site tokens only, so light and dark mode both work. */
.patro-cal { margin: 0.5rem 0 1rem; }
.patro-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.patro-nav .btn { min-width: 2.4rem; font-size: 1.15rem; line-height: 1; padding: 0.3rem 0.6rem; }
.patro-legend { font-size: 0.8rem; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; justify-content: center; }
.patro-key { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; margin-left: 0.4rem; }
.patro-key-entry { background: var(--accent); }
.patro-key-today { border: 2px solid var(--primary); }

.patro-months { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.patro-month { border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem; background: var(--card); min-width: 0; }
.patro-month-title { font-weight: 700; text-align: center; margin-bottom: 0.4rem; }
.patro-month-ad { font-weight: 400; font-size: 0.8rem; color: var(--muted-foreground); margin-left: 0.3rem; }

.patro-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.patro-wd { text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--muted-foreground); padding-bottom: 0.15rem; }
.patro-wd:nth-child(7) { color: var(--accent); }
.patro-day { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; background: var(--muted); display: flex; align-items: center; justify-content: center; cursor: default; outline: none; }
.patro-bs { font-weight: 600; font-size: 0.95rem; line-height: 1; }
.patro-ad { position: absolute; right: 4px; bottom: 2px; font-size: 0.6rem; color: var(--muted-foreground); line-height: 1; }
.patro-day.is-sat .patro-bs { color: var(--accent); }
.patro-day.has-entry { background: var(--accent); cursor: pointer; }
.patro-day.has-entry .patro-bs, .patro-day.has-entry .patro-ad { color: #fff; }
.patro-day.is-today { box-shadow: inset 0 0 0 2px var(--primary); }
.patro-day.has-entry:hover, .patro-day.has-entry:focus, .patro-day.is-picked { filter: brightness(1.15); box-shadow: inset 0 0 0 2px var(--foreground); }

.patro-detail { margin-top: 0.6rem; padding: 0.5rem 0.75rem; border-radius: 8px; background: var(--muted); font-size: 0.9rem; min-height: 2.4rem; color: var(--muted-foreground); }
.patro-detail.has-text { color: var(--foreground); }
.patro-cal.is-loading .patro-months { opacity: 0.5; }

/* phones: one month */
@media (max-width: 575.98px) {
    .patro-months { grid-template-columns: 1fr; }
    .patro-month + .patro-month { display: none; }
}
