/* calendar-page.css — the Grid | Calendar switch and the calendar on a view's own page (calendar-page.js). Layout only:
   FullCalendar's colors come from calendar-tile.css (and its Hub rules). Hub rules are scoped to html[data-theme="hub"], tokens only. */
.bc-calmode{display:inline-flex;flex:0 0 auto;align-self:flex-start;justify-self:start;margin:4px 0 8px;border:1px solid rgba(128,128,128,.4);border-radius:6px;overflow:hidden;max-width:100%}
.bc-calmode-btn{font:inherit;font-size:.82rem;padding:5px 14px;border:0;background:transparent;color:inherit;cursor:pointer}
.bc-calmode-btn + .bc-calmode-btn{border-left:1px solid rgba(128,128,128,.4)}
.bc-calmode-btn[aria-pressed="true"]{background:rgba(128,128,128,.22);font-weight:600}
.bc-calmode-btn:disabled{opacity:.5;cursor:default}
.bc-calmode-btn:focus-visible{outline:2px solid currentColor;outline-offset:-2px}

#app[data-bc-page="view"] > .bc-caltile{flex:0 0 auto;max-width:100%;overflow-x:auto;min-height:240px}
.bc-caltile .bc-cal-cap{padding:28px 12px;text-align:center;font-size:.95rem}
.bc-caltile .bc-cal-cap[hidden]{display:none}

html[data-theme="hub"] .bc-calmode{border-color:var(--hub-line);border-radius:0;clip-path:var(--hub-chamfer)}
html[data-theme="hub"] .bc-calmode-btn{color:var(--hub-text);font-family:var(--hub-font);text-transform:uppercase;letter-spacing:.04em;background:var(--hub-field)}
html[data-theme="hub"] .bc-calmode-btn + .bc-calmode-btn{border-left-color:var(--hub-line)}
html[data-theme="hub"] .bc-calmode-btn:hover:not(:disabled):not([aria-pressed="true"]){background:var(--hub-hover)}
html[data-theme="hub"] .bc-calmode-btn[aria-pressed="true"]{background:var(--hub-pri);color:var(--hub-pri-ink)}
html[data-theme="hub"] .bc-caltile .bc-cal-cap{color:var(--hub-dim);font-family:var(--hub-font)}

/* the Hub's wide layout places each child of the page by row (hub-hud.css): the switch shares the banner's row (hidden unless
   there is a notice), and the calendar takes the grid's row (the table is hidden while it shows) */
@media screen and (min-width: 1180px) {
  html[data-theme="hub"] #app[data-bc-page="view"][data-hub-hud] > .bc-calmode { grid-row: 2; }
  html[data-theme="hub"] #app[data-bc-page="view"][data-hub-hud] > .bc-caltile { grid-row: 5; max-height: none; min-height: 0; }
}
