/* Desktop-only calendar in the home page's upcoming section. */
.home-calendar { display: none; }
@media (min-width: 761px) {
  .upcoming-section { padding-block: 64px 70px; }
  .upcoming-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); grid-template-rows: auto 1fr auto; column-gap: 30px; row-gap: 0; align-items: start; }
  .upcoming-heading { grid-column: 1 / -1; margin-bottom: 26px; }
  .upcoming-heading .chapter-label { font-size: 19px; letter-spacing: .15em; }
  .upcoming-heading h2 { margin: 8px 0; }
  .upcoming-heading > p:last-child { font-size: 16px; }
  .home-calendar { display: block; grid-column: 1; grid-row: 2 / 4; min-width: 0; padding: 20px 22px 16px; border: 1px solid #d5e2e8; background: #f7fafb; color: var(--navy); box-shadow: 0 5px 20px #001a2f08; }
  .home-calendar-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
  .home-calendar-toolbar p { color: #638093; font: 400 12px/1.5 Georgia, serif; letter-spacing: .15em; }
  .home-calendar-toolbar h3 { margin: 4px 0 0; color: var(--navy); font: 500 28px/1.3 var(--serif); }
  .home-calendar-controls { display: flex; gap: 7px; }
  .home-calendar-controls button { width: 40px; height: 40px; border: 1px solid #b8ccd5; background: #fff; color: var(--navy); font: 300 27px/1 Georgia, serif; }
  .home-calendar-controls button:hover:not(:disabled) { background: #e7f0f4; }
  .home-calendar-controls button:disabled { opacity: .4; cursor: default; }
  .home-calendar table { width: 100%; table-layout: fixed; border-collapse: collapse; }
  .home-calendar th { padding: 8px 2px; border-bottom: 1px solid #c4d5de; color: #5d7888; font: 500 12px/1.4 var(--sans); text-align: center; }
  .home-calendar th:first-child { color: #a36b71; }
  .home-calendar th:last-child { color: #6388a2; }
  .home-calendar td { height: 62px; padding: 6px 4px; border-bottom: 1px solid #e1ebef; border-right: 1px solid #e1ebef; vertical-align: top; background: #fff; text-align: center; }
  .home-calendar td:last-child { border-right: 0; }
  .home-calendar td.is-empty { background: #f4f8fa; }
  .home-calendar td.has-event { background: #eaf3f7; }
  .home-calendar time { display: block; color: #5a7180; font: 400 14px/1.3 Georgia, serif; }
  .home-calendar .is-today time { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: #b99d66; text-underline-offset: 4px; }
  .home-calendar-markers { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
  .home-calendar-event { display: inline-flex; flex: 1 1 24px; align-items: center; justify-content: center; min-width: 0; max-width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; }
  .home-calendar-event::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #638397; }
  .home-calendar-event:hover { background: #dbeaf0; }
  .home-calendar-event:hover::before { background: var(--navy); }
  .home-calendar-event:focus-visible { outline: 2px solid #8b7952; outline-offset: 1px; }
  .home-calendar-help { margin-top: 12px; color: #577283; font-size: 12px; line-height: 1.7; }
  .upcoming-layout > .event-list { grid-column: 2; grid-row: 2; gap: 12px; }
  .upcoming-layout > .event-list .event-card { grid-template-columns: 59px minmax(0, 1fr) 15px; gap: 12px; min-height: 94px; padding: 9px 15px; }
  .upcoming-layout > .event-list .event-date { height: 100%; padding: 0 9px 0 0; font-size: 12px; }
  .upcoming-layout > .event-list .event-date strong { font-size: 31px; }
  .upcoming-layout > .event-list .event-category { font-size: 12px; }
  .upcoming-layout > .event-list .event-title { display: flex; min-height: 2.75em; align-items: center; margin: 0; font-size: 20px; line-height: 1.38; }
  .upcoming-layout > .event-list .event-meta { font-size: 13px; }
  .upcoming-layout > .event-list .event-arrow { font-size: 19px; }
  .upcoming-layout > .events-calendar-link { grid-column: 2; grid-row: 3; justify-self: center; margin: 11px 0 0; padding: 8px 0; font-size: 14px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .upcoming-section { padding-inline: 4%; }
  .upcoming-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
  .home-calendar { padding: 18px; }
  .home-calendar td { height: 62px; padding: 4px; }
  .upcoming-layout > .event-list .event-card { gap: 9px; padding: 10px; }
  .upcoming-layout > .event-list .event-title { font-size: 18px; }
}
