.shc-calendar {
  --shc-cream: #eee5d8;
  --shc-paper: #f6efe5;
  --shc-ink: #2e342c;
  --shc-wine: #754455;
  --shc-line: #cabca9;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 68px);
  background: var(--shc-cream);
  color: var(--shc-ink);
  font: 17px/1.55 Arial, sans-serif;
}

.shc-calendar * { box-sizing: border-box; }
.shc-calendar button, .shc-calendar a { font: inherit; }
.shc-calendar button {
  min-height: 46px;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  letter-spacing: normal;
  line-height: 1.35;
  text-transform: none;
}
.shc-calendar button:focus-visible, .shc-calendar a:focus-visible {
  outline: 3px solid var(--shc-wine);
  outline-offset: 4px;
}

/* The calendar already contains its own accessible heading. Hide Astra's
   duplicate page title and reclaim that space without affecting other pages. */
body.page-id-4354 .entry-header { display: none; }
body.page-id-4354 #primary { margin-top: 24px; }

.shc-calendar .shc-eyebrow {
  margin: 0 0 10px;
  color: var(--shc-wine);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.shc-calendar h2, .shc-calendar h3 {
  margin: 0;
  color: var(--shc-ink);
  font-family: Georgia, serif;
  font-weight: normal;
}
.shc-calendar h2 { font-size: clamp(40px, 4.5vw, 56px); line-height: 1.08; }
.shc-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.shc-views { display: flex; padding: 3px; border: 1px solid var(--shc-line); }
.shc-views button {
  padding: 11px 19px;
  border: 0;
  background: transparent;
  color: var(--shc-ink);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.shc-views button[aria-pressed='true'] { background: var(--shc-ink); color: #fff; }

.shc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.shc-filters button {
  padding: 10px 18px;
  border: 1px solid var(--shc-line);
  border-radius: 26px;
  background: transparent;
  color: var(--shc-ink);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: .4px;
}
.shc-filters button[aria-pressed='true'] { border-color: var(--shc-wine); background: var(--shc-wine); color: #fff; }

.shc-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.shc-nav h3 { font-size: 32px; text-align: center; }
.shc-nav button {
  width: 48px;
  padding: 0;
  border: 1px solid var(--shc-line);
  border-radius: 50%;
  background: var(--shc-paper);
  color: var(--shc-ink);
  font-size: 25px;
}

.shc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--shc-line);
  border-left: 1px solid var(--shc-line);
}
.shc-weekday {
  padding: 12px 0;
  border-right: 1px solid var(--shc-line);
  border-bottom: 1px solid var(--shc-line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  text-align: center;
  text-transform: uppercase;
}
.shc-day {
  min-width: 0;
  min-height: 145px;
  padding: 9px 7px;
  border-right: 1px solid var(--shc-line);
  border-bottom: 1px solid var(--shc-line);
  background: var(--shc-paper);
}
.shc-day.shc-outside { background: #e5dccf; }
.shc-date {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  font-size: 14px;
}
.shc-today .shc-date { border-radius: 50%; background: var(--shc-wine); color: #fff; }
.shc-outside .shc-date { opacity: .65; }
.shc-calendar .shc-event {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0 0 6px;
  padding: 8px 7px;
  overflow-wrap: anywhere;
  border: 0;
  border-left: 4px solid #754455;
  background: #eadce3;
  color: #2e342c;
  font-size: 14px;
  text-align: left;
}
.shc-calendar .shc-food { border-left-color: #936933; background: #ece0cc; }
.shc-calendar .shc-community { border-left-color: #4c6251; background: #dce4d9; }
.shc-calendar .shc-club { border-left-color: #62567e; background: #dedcec; }
.shc-event small { display: block; margin-top: 4px; font-size: 13px; }

.shc-list { display: grid; gap: 14px; }
.shc-calendar .shc-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--shc-line);
  background: var(--shc-paper);
  color: var(--shc-ink);
  text-align: left;
}
.shc-row-date {
  width: 52px;
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.shc-row-date strong { display: block; font: 34px Georgia, serif; letter-spacing: 0; }
.shc-row-title { display: block; margin: 3px 0 6px; font: 26px Georgia, serif; }
.shc-row-meta { display: block; font-size: 15px; }
.shc-row-tag { color: var(--shc-wine); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.shc-row-arrow { margin-left: auto; font-size: 25px; }
.shc-empty {
  padding: 40px 22px;
  border: 1px solid var(--shc-line);
  background: var(--shc-paper);
  font-size: 17px;
  text-align: center;
}
.shc-footnote { margin: 18px 0 0; color: #53584e; font-size: 14px; }

.shc-calendar dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: 85vh;
  padding: 36px;
  overflow: auto;
  border: 1px solid var(--shc-line);
  background: var(--shc-paper);
  color: var(--shc-ink);
  font-size: 17px;
  line-height: 1.55;
}
.shc-calendar dialog::backdrop { background: rgba(25, 35, 29, .65); }
.shc-dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.shc-dialog-top h3 { font-size: 36px; line-height: 1.18; }
.shc-calendar .shc-close {
  flex-shrink: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--shc-ink);
  font-size: 28px;
}
.shc-detail-desc { white-space: pre-line; }
.shc-badge { display: inline-block; padding: 6px 12px; border: 1px solid var(--shc-line); font-size: 14px; }
.shc-calendar .shc-ticket {
  display: inline-block;
  margin-top: 14px;
  padding: 14px 24px;
  background: var(--shc-wine);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.shc-cutoff-notice { padding: 14px 16px; border-left: 4px solid var(--shc-wine); background: #eadce3; }
.shc-calendar button:disabled { cursor: default; opacity: .35; }
.shc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shc-calendar .shc-reservation { background: var(--shc-ink); }
.shc-hidden { display: none !important; }

@media (max-width: 760px) {
  .shc-heading { align-items: flex-start; flex-direction: column; }
  .shc-calendar { padding: 28px 16px; font-size: 16px; }
  .shc-calendar h2 { font-size: clamp(36px, 10vw, 46px); }
  .shc-views button { font-size: 13px; }
  .shc-filters { gap: 7px; }
  .shc-filters button { padding: 9px 12px; font-size: 13px; }
  .shc-nav h3 { font-size: 28px; }
  .shc-weekday { padding: 10px 0; font-size: 11px; letter-spacing: 0; }
  .shc-day { min-height: 112px; padding: 5px 3px; }
  .shc-date { width: 26px; height: 26px; font-size: 12px; }
  .shc-calendar .shc-event { padding: 6px 4px; border-left-width: 3px; font-size: 12px; }
  .shc-event small { font-size: 11px; }
  .shc-calendar .shc-row { gap: 14px; padding: 17px 13px; }
  .shc-row-title { font-size: 22px; }
  .shc-row-meta { font-size: 14px; }
  .shc-row-tag, .shc-row-date { font-size: 12px; }
  .shc-calendar dialog { padding: 24px; font-size: 16px; }
  .shc-dialog-top h3 { font-size: 30px; }
  body.page-id-4354 #primary { margin-top: 16px; }
}
