/* Hivemind Events Calendar Shortcode default styles
   Override in theme stylesheet by targeting .hivemind-events-calendar-shortcode,
   or disable this file via the 'hivemind_events_calendar_enqueue_style' filter. */

.hivemind-events-calendar-shortcode .fc-daygrid-event{white-space:normal}
.hivemind-events-calendar-shortcode .fc-daygrid-event:hover{background-color:inherit;border-color:inherit}
.hivemind-events-calendar-shortcode .fc-daygrid-event .fc-event-main{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}
.hivemind-events-calendar-shortcode .fc-daygrid-event:hover .fc-event-main{color:inherit}
.hivemind-events-calendar-shortcode .fc-daygrid-event .fc-event-main-frame{display:block;padding-left:4px;padding-right:4px;box-sizing:border-box}
.hivemind-events-calendar-shortcode.desk-view table,.hivemind-events-calendar-shortcode.desk-view td{margin:0;padding:0}
/* Reset generic thead styling to avoid coloring unintended rows */
.hivemind-events-calendar-shortcode table thead{background:transparent;color:inherit}
.hivemind-events-calendar-shortcode table thead a{color:inherit}

/* Modal sizing mirrors template; only shown if you re-enable modal usage */
.hivemind-events-calendar-shortcode .modal-dialog.modal-dialog-centered{width:900px;max-width:calc(100% - 1rem);height:900px;max-height:100%}
.hivemind-events-calendar-shortcode .modal-dialog.modal-dialog-centered .modal-content{height:900px;max-height:90%;max-width:100%}

/* Width + layout: make calendar match page content width */
.hivemind-events-calendar-shortcode.container{max-width:none;padding-left:0;padding-right:0}
.hivemind-events-calendar-shortcode .row{margin-left:0;margin-right:0}
.hivemind-events-calendar-shortcode .col-xl-12{padding-left:0;padding-right:0}
.hivemind-events-calendar-shortcode .fc,.hivemind-events-calendar-shortcode .fc .fc-scrollgrid,.hivemind-events-calendar-shortcode .fc .fc-view-harness,.hivemind-events-calendar-shortcode .fc .fc-scroller-harness{width:100%!important;max-width:none!important}
.hivemind-events-calendar-shortcode .fc .fc-scroller{overflow:visible!important}

/* Buttons: brand black with white text/icons */
.hivemind-events-calendar-shortcode .fc .fc-button,.hivemind-events-calendar-shortcode .fc .fc-button-primary{background:#000!important;border-color:#000!important;color:#fff!important;border-radius:8px!important;box-shadow:none!important;text-shadow:none!important}
.hivemind-events-calendar-shortcode .fc .fc-button:disabled{opacity:.5;cursor:not-allowed}
.hivemind-events-calendar-shortcode .fc{--fc-button-text-color:#fff}
/* Force visible chevrons using text content to avoid icon font color issues */
.hivemind-events-calendar-shortcode .fc .fc-prev-button .fc-icon::before{color:#fff!important;font-weight:700;font-family:inherit;font-size:large}
.hivemind-events-calendar-shortcode .fc .fc-next-button .fc-icon::before{color:#fff!important;font-weight:700;font-family:inherit;font-size:large}
.hivemind-events-calendar-shortcode .fc .fc-prev-button .fc-icon,.hivemind-events-calendar-shortcode .fc .fc-next-button .fc-icon{background:transparent!important;border:none!important}

/* Toolbar spacing: put space between arrow group and view buttons */
.hivemind-events-calendar-shortcode .fc .fc-toolbar{gap:12px}
.hivemind-events-calendar-shortcode .fc .fc-toolbar-chunk{display:flex;align-items:center;gap:8px}
.hivemind-events-calendar-shortcode .fc .fc-toolbar-chunk>*+*{margin-left:8px}
.hivemind-events-calendar-shortcode .fc .fc-button-group .fc-button+.fc-button{margin-left:6px!important}
.hivemind-events-calendar-shortcode .fc .fc-toolbar-chunk .fc-button-group:not(:last-child){margin-right:12px!important}
.hivemind-events-calendar-shortcode .fc .fc-toolbar-chunk>.fc-button:not(:last-child){margin-right:12px!important}

/* Reduce tall blank band under weekdays in month view */
.hivemind-events-calendar-shortcode .fc{--fc-daygrid-event-min-height:0}
.hivemind-events-calendar-shortcode .fc .fc-daygrid-body,.hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-body,.hivemind-events-calendar-shortcode .fc .fc-scrollgrid-sync-table{height:auto!important;min-height:0!important;max-height:none!important}
.hivemind-events-calendar-shortcode .fc .fc-daygrid-day{}
.hivemind-events-calendar-shortcode .fc .fc-daygrid-day-events{min-height:0!important;max-height:160px!important;overflow:auto!important}
.hivemind-events-calendar-shortcode .fc .fc-daygrid-day-frame{padding:.4rem!important}
.hivemind-events-calendar-shortcode .fc .fc-daygrid-day-top{padding:.25rem .25rem!important}

/* "More" link styling for consistency */
.hivemind-events-calendar-shortcode .fc .fc-daygrid-more-link{color:#6b7280;text-decoration:none}
.hivemind-events-calendar-shortcode .fc .fc-daygrid-more-link:hover{text-decoration:underline;color:#111}

/* Headers and borders */
.hivemind-events-calendar-shortcode .fc-theme-standard td,.hivemind-events-calendar-shortcode .fc-theme-standard th{border:1px solid #e5e7eb!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header-cell-cushion{font-weight:600;color:#111;background:#f9fafb;padding:.2rem .4rem!important;line-height:1}
/* Only color the slim day names row */
.hivemind-events-calendar-shortcode .fc .fc-col-header{background:#f9fafb}
.hivemind-events-calendar-shortcode .fc .fc-col-header thead,.hivemind-events-calendar-shortcode .fc .fc-col-header thead tr,.hivemind-events-calendar-shortcode .fc .fc-col-header-cell,.hivemind-events-calendar-shortcode .fc .fc-col-header-cell .fc-scrollgrid-sync-inner{background:transparent}

/* Make header row height tight */
.hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-header{height:auto!important;min-height:0!important;max-height:none!important}
.hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-header th{height:auto!important;min-height:0!important;max-height:none!important}
.hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-header .fc-scroller-harness{height:auto!important;min-height:0!important;max-height:none!important}
.hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-header .fc-scroller{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header{display:table!important;width:100%!important;height:auto!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header thead{display:table-header-group!important;width:100%!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header thead tr{display:table-row!important;height:auto!important}
@media (min-width: 769px){
  .hivemind-events-calendar-shortcode .fc .fc-scrollgrid-liquid{height:auto!important;min-height:0!important}
  .hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-body .fc-scroller-harness{height:auto!important;min-height:0!important;max-height:none!important}
  .hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-body .fc-scroller{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-body .fc-scroller-liquid-absolute{position:static!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .hivemind-events-calendar-shortcode .fc .fc-view-harness{height:auto!important;min-height:0!important}
  .hivemind-events-calendar-shortcode .fc .fc-view-harness .fc-view{position:static!important;inset:auto!important;height:auto!important}
}

@media (max-width: 768px){
  /* Revert to FullCalendar mobile defaults to keep mobile behavior */
  .hivemind-events-calendar-shortcode .fc .fc-scrollgrid-liquid{height:100%!important}
  .hivemind-events-calendar-shortcode .fc .fc-scrollgrid-section-body .fc-scroller-liquid-absolute{position:absolute!important}
  .hivemind-events-calendar-shortcode .fc .fc-view-harness .fc-view{position:absolute!important}
  /* Allow up to ~2 event rows before "+ more" on mobile */
  .hivemind-events-calendar-shortcode .fc .fc-daygrid-day-events{max-height:120px!important;overflow:auto!important}
}

/* Collapse harness height and prevent absolute-positioned view from reserving space */
/* Desktop/mobile-specific behavior is controlled above via media queries */
.hivemind-events-calendar-shortcode .fc .fc-col-header{height:auto!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header thead tr{height:auto!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header-cell{padding:0!important;height:auto!important}
.hivemind-events-calendar-shortcode .fc .fc-col-header-cell .fc-scrollgrid-sync-inner{padding:0!important}

/* DEBUG colors removed */
/* Subtle event background to improve visibility */
.hivemind-events-calendar-shortcode .fc .fc-event{background:#f3f4f6;border-color:#d1d5db;color:#111}
.hivemind-events-calendar-shortcode .fc .fc-event .fc-event-main{color:inherit}
.hivemind-events-calendar-shortcode .fc .fc-event:hover{background:#000!important;color:#fff!important;border-color:#000!important}

