/* Shared Patterns / Past Results calendar. Same structure and styling on both pages. */
#pg-calendar{background:#fff!important;border:1px solid #e1eae2!important;border-radius:18px!important;padding:clamp(12px,3vw,24px)!important;box-shadow:0 8px 28px rgba(17,70,36,.06)!important}
#pg-calendar .filter-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:16px}
#pg-calendar .filter-row label{font-size:.8rem;font-weight:750;color:#345841!important}
#pg-calendar .filter-row input,#pg-calendar .filter-row select{min-height:39px;border:1px solid #d6e4d9!important;border-radius:10px!important;padding:8px 9px!important;background:#fff!important;color:#173322!important;font-family:Inter,system-ui,sans-serif!important;font-size:.8rem!important}
#pg-calendar .filter-row button{border-radius:10px!important;background:#eaf6ec!important;color:#106030!important;border:1px solid #d6e4d9!important;font-size:.79rem!important;font-weight:700!important;padding:9px 14px!important;cursor:pointer}
#pg-calendar .cal-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;padding-bottom:10px}
#pg-calendar .cal-table{width:100%;min-width:0;border-collapse:separate!important;border-spacing:5px!important;font-family:Inter,system-ui,sans-serif!important;font-size:.82rem!important}
#pg-calendar .cal-table th{background:#eaf6ec!important;color:#0d5e2b!important;font-weight:800!important;border:0!important;border-radius:9px!important;min-height:45px;padding:12px 6px!important;text-align:center!important}
#pg-calendar .cal-table th:first-child{min-width:112px!important;text-align:left!important;padding-left:12px!important}
#pg-calendar .cal-table td{border:1px solid #e1eae2!important;border-radius:12px!important;background:#fff!important;text-align:center!important;padding:10px 5px!important;min-width:98px!important;height:96px!important;vertical-align:middle!important}
#pg-calendar .cal-table .calendar-date{background:#f1f8f2!important;font-size:.72rem!important;font-weight:800!important;min-width:110px!important;white-space:nowrap!important;vertical-align:middle!important}
#pg-calendar .cal-table .week-before-row td,#pg-calendar .cal-table .week-before-row th{background:#fffbe8!important}
#pg-calendar .cal-table tr.week-before-row .calendar-date::after{content:'week before';display:block;color:#987700;font-size:.58rem;letter-spacing:.04em;text-transform:uppercase;margin-top:4px}
#pg-calendar .cal-cell{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important}
#pg-calendar .cball{display:flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;border-radius:12px!important;background:#16803d!important;color:white!important;border:0!important;box-shadow:0 4px 12px #16803d24!important;font-weight:850!important;font-size:1.25rem!important;font-family:Inter,system-ui,sans-serif!important;cursor:default!important}
#pg-calendar .cal-number-label{color:#0d5e2b!important;font-size:.62rem!important;font-weight:800!important;letter-spacing:.025em!important;line-height:1.2!important;text-align:center!important;max-width:110px!important;text-transform:uppercase!important;display:block!important}
#pg-calendar .cal-mini-balls{display:flex!important;justify-content:center!important;gap:4px!important}
#pg-calendar .cmb{display:inline-block;width:9px!important;height:9px!important;border:1px solid #bfcabe;border-radius:50%}
#pg-calendar .cmb-mega{background:#f6d34b!important;border-color:#d9b02b!important}
#pg-calendar .cmb-monsta{background:#df4444!important;border-color:#a82a2a!important}
#pg-calendar .cmb-white{background:#fff!important;border-color:#7c977f!important}
#pg-calendar .cmb-none{background:#e8eae8!important;opacity:.65}
#pg-calendar .calendar-blank{color:#afbdaf!important}.cal-empty{padding:30px!important;color:#617766!important;text-align:center!important}
@media(max-width:700px){#pg-calendar{padding:10px!important}#pg-calendar .cal-table{min-width:0}#pg-calendar .cball{width:42px!important;height:42px!important}#pg-calendar .cal-table td{min-width:92px!important}}

/* V9: weekday added beside existing ISO dates; scheduled times under column headings. */
#pg-calendar .cal-weekday{display:inline!important;color:#51815d!important;font-weight:700!important;font-size:.87em!important;margin-left:4px!important}
#pg-calendar .cal-col-name{display:block!important}
#pg-calendar .cal-col-time{display:block!important;color:#477456!important;font-size:.68em!important;font-weight:650!important;white-space:nowrap!important;margin-top:4px!important;letter-spacing:-.01em!important}

/* Keep 3x2 Past Results cards readable after scheduled times are added. */
@media(max-width:700px){
 #pg-calendar .cal-mobile-slot{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;max-width:100%!important;white-space:normal!important;line-height:1.18!important}
 #pg-calendar .cal-mobile-name{font-size:clamp(.57rem,2.6vw,.72rem)!important;font-weight:800!important;overflow-wrap:anywhere!important}
 #pg-calendar .cal-mobile-time{font-size:clamp(.56rem,2.4vw,.68rem)!important;font-weight:650!important;white-space:nowrap!important}
}
