/* v2.69: self-contained seven-column calendar and unmistakable Calendar/List switcher.
   Does not depend on site.css for the month-grid structure. */
#chaine-region-preview .r203-events .c269-view-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 0 20px;margin:12px 0 16px;border-top:2px solid #bea16a;border-bottom:1px solid #d7d1c4}
#chaine-region-preview .r203-events .c269-view-switcher[hidden]{display:none!important}
#chaine-region-preview .r203-events .c269-view-switcher button{min-width:0;min-height:80px;display:block;text-align:left;padding:13px 16px;font:700 17px/1.3 Arial,system-ui,sans-serif;letter-spacing:0;border-radius:5px;background:#fffaf2;color:#1a3853;border:1px solid #9e865f;cursor:pointer}
#chaine-region-preview .r203-events .c269-view-switcher button[aria-pressed=true]{background:#193a54!important;color:#fff!important;border-color:#193a54!important;box-shadow:inset 0 -4px 0 #c6a45c}
#chaine-region-preview .r203-events .c269-view-switcher button:focus-visible{outline:3px solid #be923c;outline-offset:3px}
#chaine-region-preview .r203-events .c269-view-subtitle{display:block;font-size:12px;line-height:1.35;font-weight:400;letter-spacing:0;margin-top:5px;opacity:.87}
#chaine-region-preview .r203-events .section-head{margin:8px 0 8px}
#chaine-region-preview .r203-events #cr-events-heading{font:400 clamp(25px,3.5vw,34px)/1.2 Georgia,serif;margin:0}
#chaine-region-preview .r203-events .c269-calendar{margin:12px 0 28px}
#chaine-region-preview .r203-events .c269-calendar[hidden]{display:none!important}
#chaine-region-preview .r203-events .calendar-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;margin:12px 0 14px}
#chaine-region-preview .r203-events .calendar-head h3{font:400 clamp(23px,3vw,31px)/1.2 Georgia,serif;text-align:center;margin:0;flex:initial;order:initial}
#chaine-region-preview .r203-events .calendar-head button{padding:9px 12px;min-height:44px;border:1px solid #b9a781;border-radius:4px;background:#faf6ec;color:#193750;font:600 14px/1.2 Arial,sans-serif}
#chaine-region-preview .r203-events .calendar-head button:hover{background:#eae1ca}
#chaine-region-preview .r203-events .calendar-head button:focus-visible{outline:3px solid #c19a49;outline-offset:2px}
#chaine-region-preview .r203-events .c269-calendar-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;border-radius:4px;outline-offset:3px}
#chaine-region-preview .r203-events #cr-grid.calendar-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0;grid-auto-flow:row;align-items:stretch;border:1px solid #cdd4d5;background:#fffdf8;min-width:0;width:100%}
#chaine-region-preview .r203-events #cr-grid .weekday{min-width:0;text-align:center;padding:11px 2px;border-right:1px solid #d1d8d9;border-bottom:1px solid #cdd4d5;background:#e6eef2;color:#1d3b52;font:700 13px/1.3 Arial,sans-serif}
#chaine-region-preview .r203-events #cr-grid .weekday:nth-child(7){border-right:0}
#chaine-region-preview .r203-events #cr-grid .day{min-width:0;min-height:116px;position:relative;overflow-wrap:anywhere;align-self:stretch;background:#fffdf8;border-right:1px solid #d1d8d9;border-bottom:1px solid #d1d8d9;padding:9px 6px;font:600 14px/1.4 Arial,sans-serif;color:#203c55}
#chaine-region-preview .r203-events #cr-grid .day:empty{background:#f6f7f6}
#chaine-region-preview .r203-events #cr-grid .day button.c220-event{font:600 11px/1.28 Arial,sans-serif;display:block;width:100%;max-width:100%;margin:5px 0 0;padding:7px 5px;border-left:4px solid var(--event-color,#7a8893);border-top:1px solid #dde1df;border-right:1px solid #dde1df;border-bottom:1px solid #dde1df;background:var(--event-tint,#f0f3f5);color:#1c3347;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#chaine-region-preview .r203-events #cr-grid .day button.c220-event:hover{outline:2px solid var(--event-color,#455d73)}
#chaine-region-preview .r203-events #cr-grid .day button.c220-archived{border-left-style:dashed}
#chaine-region-preview .r203-events .c269-scroll-helper{display:none;color:#5a6b76;font-size:12px;margin:5px 0 9px}
#chaine-region-preview .r203-events .calendar-detail:not([hidden]){margin:15px 0 20px;padding:20px;background:#f3f6f8;border-left:4px solid #ae8a4c}
@media(max-width:760px){
#chaine-region-preview .r203-events .c269-view-switcher{gap:7px}
#chaine-region-preview .r203-events .c269-view-switcher button{padding:10px;font-size:14px;min-height:82px}
#chaine-region-preview .r203-events .c269-view-subtitle{font-size:11px}
#chaine-region-preview .r203-events .c269-calendar-scroll #cr-grid.calendar-grid{min-width:700px;width:700px}
#chaine-region-preview .r203-events .c269-scroll-helper{display:block}
#chaine-region-preview .r203-events .calendar-head{grid-template-columns:1fr 1fr 1fr;gap:7px}
#chaine-region-preview .r203-events .calendar-head h3{grid-column:1/-1;grid-row:1;text-align:center;margin-bottom:4px}
#chaine-region-preview .r203-events #cr-prev{grid-column:1;grid-row:2}
#chaine-region-preview .r203-events #cr-current{grid-column:2;grid-row:2}
#chaine-region-preview .r203-events #cr-next{grid-column:3;grid-row:2}
#chaine-region-preview .r203-events .calendar-head button{font-size:12px;padding:8px 4px}
}
@media(max-width:390px){#chaine-region-preview .r203-events .c269-view-switcher{grid-template-columns:1fr;gap:6px}#chaine-region-preview .r203-events .c269-view-switcher button{min-height:56px;padding:10px 13px}#chaine-region-preview .r203-events .c269-view-subtitle{display:inline;margin:0 0 0 10px}}
@media print{#chaine-region-preview .r203-events .c269-calendar-scroll{overflow:visible}#chaine-region-preview .r203-events #cr-grid.calendar-grid{min-width:0!important;width:100%!important}#chaine-region-preview .r203-events .c269-view-switcher{display:none!important}}
/* Make Bailliage filters as readable as the view switcher. */
#chaine-region-preview .r203-events .controls[aria-label="Filter events"]{display:flex;flex-wrap:wrap;gap:8px;margin:5px 0 13px}
#chaine-region-preview .r203-events .controls[aria-label="Filter events"][hidden]{display:none!important}
#chaine-region-preview .r203-events .controls[aria-label="Filter events"] button{font:600 13px/1.25 Arial,sans-serif;border:1px solid #aab6ba;border-radius:4px;padding:8px 11px;min-height:38px;background:#f9faf9;color:#214156}
#chaine-region-preview .r203-events .controls[aria-label="Filter events"] button[aria-pressed=true]{background:#1e4560;color:#fff;border-color:#1e4560}
