/* Calendar additions: retain the existing Georgian fonts, colours and pill rows. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.Calendar__title h1 { font: inherit; margin: 0; }
.Calendar__content { gap: 30px; align-items: flex-start; }
.Calendar__text { width: auto; flex: 1; min-width: 0; }
.consists { flex: 0 1 auto; }
.consists__content { max-width: 100%; }
.Months { padding: 65px 0 90px; background: linear-gradient(#fff, #eef3f4 70%, #d8dfe1); }
.Months > .container { max-width: 1230px; }
.Months__title { margin: 0 0 8px; font-weight: 400; z-index: auto; line-height: 1.6; }
.Months__title span { display: block; color: #6a625e; font-size: 21px; }
.calendar-controls { position: relative; text-align: center; margin: 0 auto 28px; }
.calendar-year-control { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.calendar-year-control label { font-size: 19px; }
.calendar-year-control select { font: inherit; font-size: 19px; border: 1px solid #c6bcd5;
  border-radius: 5px; background: white; color: #343434; min-height: 46px; padding: 8px 36px 8px 12px; max-width: 100%; }
.calendar-view-controls { display: inline-flex; margin-top: 20px; border: 1px solid #c6bcd5; border-radius: 5px; padding: 3px; background: #fff; }
.calendar-view-controls button { font: inherit; font-size: 17px; padding: 12px 18px; cursor: pointer;
  border: 0; border-radius: 3px; background: white; color: #4e4436; min-height: 46px; }
.calendar-view-controls button[aria-pressed="true"] { color: #30283e; background: #c6bcd5; }
.calendar-view-controls button:focus-visible, .calendar-year-control select:focus-visible {
  outline: 3px solid #295677; outline-offset: 3px;
}
.Months__colors { gap: 26px; margin: 28px auto 38px; flex-wrap: wrap; }
.Months__colors__first { flex: 0 1 130px; }
.Months__colors__first > div:first-child { margin: 0 auto 10px; }
.Months__colors__title { font-size: 17px; line-height: 1.5; }
.Months__colors__red { width: 20px; height: 20px; border-radius: 50%; background: #a03a46; }
.calendar-results { position: relative; }
.calendar-list { list-style: none; padding: 0; margin: 0 auto; max-width: 670px; }
.calendar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 0 16px; break-inside: avoid; font-size: 18px; line-height: 1.55; }
.calendar-row__name { display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 12px 22px; border-radius: 38px 0 0 38px; min-width: 0; min-height: 44px;
  background: #295677; color: white; }
.calendar-row__name > div { min-width: 0; }
.calendar-row__number { flex: 0 0 auto; opacity: .85; }
.calendar-row__title { display: block; overflow-wrap: anywhere; }
.calendar-row__subtitle { display: block; font-size: 15px; font-style: italic; }
.calendar-row__date { display: flex; align-items: center; padding: 12px 16px; background: #dedede; min-width: 0; }
.calendar-row__date time { overflow-wrap: anywhere; }
.calendar-row--holy .calendar-row__name { background: linear-gradient(to right, #fbe285, #fbeec3); color: #242424; }
.calendar-row--significant .calendar-row__name { background: linear-gradient(to right, #aad7dd, #a9c3e0); color: #242424; }
.calendar-row--intercalary .calendar-row__name { background: #a03a46; }
.calendar-groups { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: start; }
.calendar-group { padding: 0; min-width: 0; }
.calendar-group h3 { font-size: 21px; line-height: 1.6; font-weight: 400; min-height: 3.2em; margin: 0 0 20px; text-align: center; }
.calendar-groups .calendar-row { font-size: 16px; }
.calendar-groups .calendar-row__name { padding-left: 16px; padding-right: 10px; gap: 6px; }
.calendar-groups .calendar-row__date { padding: 10px; }
.calendar-groups .calendar-row__subtitle { font-size: 14px; }
.calendar-note { font-size: 17px; line-height: 1.8; max-width: 850px; margin: 40px auto 0; }
.calendar-note p { margin: 0 0 14px; }
.calendar-note a { color: #57416e; text-underline-offset: 3px; }
@media (max-width: 1024px) {
  .calendar-groups { grid-template-columns: 1fr 1fr; }
  .calendar-group:first-child { grid-row: span 2; }
}
@media (max-width: 767px) {
  .Months { padding-top: 45px; }
  .Months > .container { max-width: none; padding: 0 16px; }
  .calendar-groups { grid-template-columns: 1fr; gap: 28px; }
  .calendar-group:first-child { grid-row: auto; }
  .calendar-group h3 { min-height: 0; margin-bottom: 18px; }
  .calendar-row, .calendar-groups .calendar-row { font-size: 16px; }
  .calendar-row__name { padding: 12px 10px 12px 16px; }
  .calendar-row__date { padding: 12px 10px; }
  .calendar-row__subtitle { font-size: 14px; }
  .Months__colors { gap: 18px; }
  .Months__colors__first { flex-basis: 120px; }
  .calendar-view-controls button { font-size: 16px; padding: 12px; }
  .consists__content { width: auto; }
}
@media (max-width: 359px) {
  .calendar-row { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .calendar-row__name { gap: 5px; padding-left: 12px; }
  .calendar-row__date { font-size: 15px; }
}

/* Icon-only calendar view selector. */
.calendar-view-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 50px; padding: 10px 14px; color: #635c6e; }
.calendar-view-controls button svg { display: block; width: 26px; height: 26px; }
