/* CIVADELIA_CALENDAR_SPACING_V3_0_5
   Moderate vertical breathing room for the dashboard academic calendar.
   Presentation only: no calendar/query/date logic is changed. */

/* Give the calendar a slightly clearer break from the KPI row above it. */
body.co-ui-v1 .co-stat-row {
  margin-bottom:18px !important;
}
body.co-ui-v1 .co-two-week-panel {
  margin-top:16px !important;
}

/* Let the Academic Calendar heading breathe a little more vertically. */
body.co-ui-v1 .co-two-week-head {
  min-height:82px !important;
  padding:18px 16px 17px !important;
  box-sizing:border-box !important;
}
body.co-ui-v1 .co-two-week-head h2 {
  margin:4px 0 5px !important;
  line-height:1.2 !important;
}
body.co-ui-v1 .co-two-week-head p {
  line-height:1.45 !important;
}

/* Increase each week row moderately—not as tall as the older spacious layout. */
body.co-ui-v1 .co-two-week-grid {
  grid-template-rows:repeat(2,minmax(132px,auto)) !important;
}
body.co-ui-v1 .co-two-day {
  padding:10px !important;
}
body.co-ui-v1 .co-two-day-head {
  margin-bottom:9px !important;
}
body.co-ui-v1 .co-two-day-events {
  gap:6px !important;
}
body.co-ui-v1 .co-two-event {
  padding:6px 7px !important;
}

/* Compatibility with the later V4 two-week markup if a page uses it. */
body.co-ui-v1.co-ui-v4 .co-two-week-day,
body.co-ui-v1 .co-ui-v4 .co-two-week-day,
.co-ui-v4 .co-two-week-day {
  min-height:132px !important;
}
body.co-ui-v1.co-ui-v4 .co-two-week-day > header,
body.co-ui-v1 .co-ui-v4 .co-two-week-day > header,
.co-ui-v4 .co-two-week-day > header {
  height:42px !important;
  padding:7px 9px !important;
  box-sizing:border-box !important;
}
body.co-ui-v1.co-ui-v4 .co-day-events,
body.co-ui-v1 .co-ui-v4 .co-day-events,
.co-ui-v4 .co-day-events {
  padding:8px !important;
  gap:6px !important;
}

/* Keep smaller screens compact enough to avoid excessive vertical scrolling. */
@media (max-width:980px) {
  body.co-ui-v1 .co-two-week-head {
    min-height:76px !important;
    padding:16px 14px !important;
  }
  body.co-ui-v1 .co-two-week-grid {
    grid-template-rows:repeat(2,minmax(122px,auto)) !important;
  }
  body.co-ui-v1.co-ui-v4 .co-two-week-day,
  body.co-ui-v1 .co-ui-v4 .co-two-week-day,
  .co-ui-v4 .co-two-week-day {
    min-height:122px !important;
  }
}

@media (max-width:640px) {
  body.co-ui-v1 .co-stat-row {
    margin-bottom:14px !important;
  }
  body.co-ui-v1 .co-two-week-panel {
    margin-top:12px !important;
  }
  body.co-ui-v1 .co-two-week-grid {
    grid-template-rows:repeat(2,minmax(116px,auto)) !important;
  }
  body.co-ui-v1.co-ui-v4 .co-two-week-day,
  body.co-ui-v1 .co-ui-v4 .co-two-week-day,
  .co-ui-v4 .co-two-week-day {
    min-height:116px !important;
  }
}
