/* calendar-tile.css — a mosaic tile drawn as a calendar (calendar-tile.js). Layout is shared; the Hub
   rules below are scoped to html[data-theme="hub"] and use Hub tokens only (css/hub-base.css). */
.bc-caltile{flex:1 1 auto;min-height:0;min-width:0;padding:6px 10px 10px;overflow:auto;border-top:1px solid rgba(128,128,128,.22)}
.bc-caltile .fc{font-size:calc(.85rem * var(--bc-cal-scale, 1))}
.bc-caltile .fc .fc-toolbar.fc-header-toolbar{flex-wrap:wrap;gap:6px;margin:2px 2px 8px}
.bc-caltile .fc .fc-toolbar-title{font-size:calc(1rem * var(--bc-cal-scale, 1))}
.bc-caltile .fc .fc-button{font-size:calc(.78rem * var(--bc-cal-scale, 1));padding:3px 9px}
.bc-caltile .fc .fc-toolbar-chunk{max-width:100%}
.bc-caltile .fc .fc-button-group{flex-wrap:wrap;max-width:100%}
.bc-caltile .fc .fc-col-header-cell-cushion{padding:5px 4px;font-size:calc(.72rem * var(--bc-cal-scale, 1))}
.bc-caltile .fc .fc-daygrid-day-number{padding:3px 6px;font-size:calc(.8rem * var(--bc-cal-scale, 1))}
.bc-caltile .fc .fc-list-day-cushion{padding:10px 6px 4px}
.bc-caltile .fc .fc-list-day-text,.bc-caltile .fc .fc-list-day-side-text{font-size:calc(1.02rem * var(--bc-cal-scale, 1))}
.bc-caltile .fc .fc-list-table td{padding:6px 12px}
.bc-caltile .fc .fc-list-event-title{font-size:1em}
.bc-caltile .fc .fc-event{cursor:pointer}

/* The grid's display (gridtools: density and text size are classes on the grid's root, which holds the calendar). The
   default sets nothing, so a calendar at medium text and comfortable density is drawn as it always was. The scale is the
   grid's own text step over its medium (.8, 1 and 1.12rem over .9rem); events read it as --bc-event-scale (styles.css),
   the Grouped and Timeline views as --bc-cal-scale (styles-late.css). */
.bc-gt-text-s .bc-caltile{--bc-cal-scale:.889;--bc-event-scale:.889}
.bc-gt-text-l .bc-caltile{--bc-cal-scale:1.111;--bc-event-scale:1.111}
.bc-gt-text-xl .bc-caltile{--bc-cal-scale:1.244;--bc-event-scale:1.244}
.bc-gt-dense .bc-caltile{padding-top:3px;padding-bottom:6px}
.bc-gt-dense .bc-caltile .fc .fc-toolbar.fc-header-toolbar{margin:0 2px 4px}
.bc-gt-dense .bc-caltile .fc .fc-button{padding:1px 7px}
.bc-gt-dense .bc-caltile .fc .fc-col-header-cell-cushion{padding:2px 4px}
.bc-gt-dense .bc-caltile .fc .fc-daygrid-day-number{padding:1px 4px}
.bc-gt-dense .bc-caltile .fc .fc-event{padding:0 3px}
.bc-gt-dense .bc-caltile .fc .fc-list-day-cushion{padding:5px 6px 2px}
.bc-gt-dense .bc-caltile .fc .fc-list-table td{padding:3px 8px}
.bc-gt-dense .bc-caltile .fc .fc-timegrid-slot{height:1.1em}
.bc-tile-note{font-size:.72rem;opacity:.7;cursor:help;white-space:nowrap;align-self:center}

html[data-theme="hub"] .bc-caltile{border-top-color:var(--hub-hair);color:var(--hub-text);font-family:var(--hub-font);
  --ink:var(--hub-text);--ink-2:var(--hub-dim);--ink-3:var(--hub-mute);--hairline:var(--hub-hair);--hairline-strong:var(--hub-line)}
html[data-theme="hub"] .bc-caltile .fc{font-family:var(--hub-font);
  --fc-page-bg-color:transparent;
  --fc-neutral-bg-color:var(--hub-head);
  --fc-neutral-text-color:var(--hub-dim);
  --fc-border-color:var(--hub-hair);
  --fc-today-bg-color:var(--hub-hover);
  --fc-list-event-hover-bg-color:var(--hub-hover);
  --fc-non-business-color:var(--hub-panel);
  --fc-button-text-color:var(--hub-text);
  --fc-button-bg-color:var(--hub-field);
  --fc-button-border-color:var(--hub-line);
  --fc-button-hover-bg-color:var(--hub-hover);
  --fc-button-hover-border-color:var(--hub-text);
  --fc-button-active-bg-color:var(--hub-pri);
  --fc-button-active-border-color:var(--hub-pri);
  --fc-now-indicator-color:var(--hub-sig)}
html[data-theme="hub"] .bc-caltile .fc .fc-toolbar-title{font-family:var(--hub-font);font-weight:600;color:var(--hub-text)}
html[data-theme="hub"] .bc-caltile .fc .fc-button{border-radius:0;clip-path:var(--hub-chamfer);text-transform:uppercase;letter-spacing:.04em;font-family:var(--hub-font)}
html[data-theme="hub"] .bc-caltile .fc .fc-button:disabled{opacity:.45}
html[data-theme="hub"] .bc-caltile .fc .fc-button-primary:not(:disabled).fc-button-active{background:var(--hub-pri);color:var(--hub-pri-ink);box-shadow:none !important}
html[data-theme="hub"] .bc-caltile .fc .fc-today-button:not(:disabled){border-color:var(--hub-line);color:var(--hub-text)}
html[data-theme="hub"] .bc-caltile .fc .fc-col-header-cell-cushion,
html[data-theme="hub"] .bc-caltile .fc .fc-daygrid-day-number{color:var(--hub-dim)}
html[data-theme="hub"] .bc-caltile .fc .fc-list{border-color:var(--hub-hair)}
html[data-theme="hub"] .bc-caltile .fc .fc-list-day-cushion{background:var(--hub-head)}
html[data-theme="hub"] .bc-caltile .fc .fc-list-day-text,
html[data-theme="hub"] .bc-caltile .fc .fc-list-day-side-text{color:var(--hub-text)}
html[data-theme="hub"] .bc-tile-note{color:var(--hub-mute);opacity:1}
