.events-section {
  padding: clamp(40px, 6vh, 80px) var(--page-padding);
  background: var(--section-gradient);
  font-family: "DM Sans", sans-serif;
  color: #19293C;
}
.events-section > .section-title { margin-bottom: clamp(28px, 4vh, 48px); }
.events-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr); gap: 24px; align-items: start; }
.events-calendar { border: 1px solid #19293C3B; background: #FFFFFF40; min-width: 0; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.calendar-toolbar h3, .calendar-agenda h3 { font: 400 clamp(24px, 2.3vw, 32px)/1.2 "Playfair Display", serif; margin: 0; }
.calendar-controls { display: flex; gap: 8px; }
.calendar-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #19293C3B; background: #FFFFFF66; color: #19293C; font-size: 22px; cursor: pointer; }
.events-section button:focus-visible, .public-event-dialog :focus-visible { outline: 2px solid #B64627; outline-offset: 3px; }
.calendar-controls button:hover { background: #19293C; color: #FFFFFF; }
.calendar-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-table th { border-block: 1px solid #19293C3B; padding: 10px 2px; background: #DFE6DFBF; font-size: 13px; font-weight: 500; }
.calendar-table td { vertical-align: top; border: 1px solid #19293C26; height: clamp(54px, 8vh, 96px); padding: 6px; }
.calendar-table td:first-child { border-left: 0; }
.calendar-table td:last-child { border-right: 0; }
.calendar-table tr:last-child td { border-bottom: 0; }
.calendar-number { display: block; width: 26px; line-height: 26px; margin-left: auto; text-align: center; font-size: 14px; }
.calendar-number[aria-current] { background: #19293C; color: #FFFFFF; border-radius: 50%; }
.calendar-outside { background: #19293C05; color: #687276; }
.calendar-markers { display: flex; flex-wrap: wrap; }
.calendar-marker { display: grid; place-items: center; padding: 0; width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.calendar-dot { display: block; width: 11px; height: 11px; background: #B64627; border-radius: 50%; box-shadow: 0 3px 8px #19293C26; }
.calendar-marker:hover .calendar-dot { background: #19293C; transform: scale(1.2); }
.calendar-agenda { padding: 24px; border: 1px solid #19293C3B; background: #E8EDE799; }
.calendar-agenda h3 { margin-bottom: 24px; }
.agenda-event { display: block; width: 100%; text-align: left; font-family: inherit; color: inherit; padding: 16px; margin-top: 12px; background: #FFFFFF40; border: 1px solid #19293C26; border-left: 2px solid #B64627; cursor: pointer; }
.agenda-event:hover { background: #FFFFFF99; }
.agenda-event span { display: block; }
.agenda-date { font-size: 13px; color: #B64627; margin-bottom: 8px; }
.agenda-title { font: 400 22px/1.25 "Playfair Display", serif; overflow-wrap: anywhere; }
.agenda-time { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.calendar-empty { margin: 0; font-size: 16px; line-height: 1.6; }
.calendar-status:empty { display: none; }
.calendar-status { font-size: 16px; }
.calendar-retry { margin-bottom: 24px; padding: 10px 18px; background: #19293C; color: #FFFFFF; border: 0; border-radius: 24px; font: inherit; cursor: pointer; }
.public-event-dialog { box-sizing: border-box; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: clamp(28px, 4vw, 48px); border: 1px solid #19293C3B; background: #E8EDE7; color: #19293C; font: 400 17px/1.6 "DM Sans", sans-serif; box-shadow: 0 20px 80px #19293C40; overflow: auto; }
.public-event-dialog::backdrop { background: #19293C99; }
.public-event-dialog h2 { margin: 0 24px 20px 0; font: 400 clamp(28px, 4vw, 42px)/1.15 "Playfair Display", serif; overflow-wrap: anywhere; }
.public-event-dialog p { margin: 0 0 24px; }
.public-event-dialog .event-date { color: #B64627; font-size: 15px; }
#public-event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.public-event-dialog dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; margin: 0; }
.public-event-dialog dt { font-weight: 500; }
.public-event-dialog dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; background: transparent; border: 0; color: #19293C; font-size: 28px; cursor: pointer; }
.public-event-dialog [hidden], .events-section [hidden] { display: none; }
@media (max-width: 850px) {
  .events-layout { grid-template-columns: 1fr; }
  .calendar-table td { height: 64px; }
}
@media (max-width: 480px) {
  .calendar-toolbar { padding: 16px 12px; }
  .calendar-toolbar h3 { font-size: 24px; }
  .calendar-table td { height: 52px; padding: 3px; }
  .calendar-table th { font-size: 11px; }
  .calendar-number { font-size: 12px; }
  .calendar-marker { width: 26px; height: 26px; }
  .calendar-agenda { padding: 20px; }
}
