.napo-public-calendar-section {
  position: relative;
  overflow: hidden;
  color: #172018;
  background:
    radial-gradient(circle at 90% 15%, rgba(247, 161, 44, 0.12), transparent 28%), #f4efe4;
}
.napo-calendar-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}
.napo-calendar-heading h2,
.napo-calendar-heading p {
  margin-top: 0;
}
.napo-calendar-heading h2 {
  margin-bottom: 12px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  line-height: 1;
}
.napo-calendar-heading > div:first-child > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(23, 32, 24, 0.7);
}
.napo-calendar-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 18px;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}
.napo-calendar-legend span,
.napo-calendar-status {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.napo-calendar-status {
  align-self: flex-start;
  padding: 9px 13px;
  border: 1px solid rgba(23, 32, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 6px 16px rgba(35, 38, 31, 0.06);
  font-size: 0.86rem;
  font-weight: 800;
}
.napo-calendar-status i {
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 4px rgba(47, 104, 72, 0.1);
}
.napo-calendar-legend i,
.napo-calendar-status i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8a8d87;
}
.napo-calendar-legend [data-status='REGULAR_OPEN'] i,
.status-regular-open .napo-calendar-status i {
  background: #2f6848;
}
.napo-calendar-legend [data-status='PUBLIC_EVENT'] i,
.status-public-event .napo-calendar-status i {
  background: #dc821d;
}
.napo-calendar-legend [data-status='CLOSED_EVENT'] i,
.status-closed-event .napo-calendar-status i {
  background: #7960a8;
}
.napo-calendar-legend [data-status='CLOSED'] i,
.status-closed .napo-calendar-status i {
  background: #9b4b43;
}
.napo-calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}
.napo-calendar-card,
.napo-calendar-detail {
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 22px 60px rgba(50, 42, 27, 0.09);
}
.napo-calendar-card {
  padding: clamp(18px, 3vw, 32px);
}
.napo-calendar-card > header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.napo-calendar-card header h3 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  text-align: center;
  text-transform: capitalize;
}
.napo-calendar-card header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(23, 32, 24, 0.16);
  border-radius: 50%;
  color: #172018;
  background: #fff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}
.napo-calendar-card header button:hover:not(:disabled) {
  background: #f7a12c;
  transform: translateY(-2px);
}
.napo-calendar-card header button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
.napo-calendar-weekdays,
.napo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.napo-calendar-weekdays {
  margin-bottom: 8px;
}
.napo-calendar-weekdays span {
  color: rgba(23, 32, 24, 0.48);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.napo-calendar-day,
.napo-calendar-empty {
  aspect-ratio: 1.08;
  min-width: 0;
}
.napo-calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 32, 24, 0.09);
  border-radius: 13px;
  color: #172018;
  background: #fff;
  font-weight: 750;
}
button.napo-calendar-day {
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}
button.napo-calendar-day:hover,
button.napo-calendar-day:focus-visible {
  z-index: 1;
  border-color: currentColor;
  outline: none;
  box-shadow: 0 8px 20px rgba(40, 32, 20, 0.13);
  transform: translateY(-2px);
}
.napo-calendar-day i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.napo-calendar-day.status-regular-open {
  color: #24573a;
  background: #eaf3ec;
}
.napo-calendar-day.status-public-event {
  color: #a75b09;
  background: #fff0d8;
}
.napo-calendar-day.status-closed-event {
  color: #674e94;
  background: #f0eafb;
}
.napo-calendar-day.status-closed {
  color: #874039;
  background: #f8e8e6;
}
.napo-calendar-day.is-selected {
  border-color: currentColor;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 5px currentColor;
}
.napo-calendar-day.is-past {
  opacity: 0.55;
}
.napo-calendar-day.is-unmarked {
  color: rgba(23, 32, 24, 0.58);
  background: rgba(255, 255, 255, 0.42);
}
.napo-calendar-day.is-today::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  transform: translateX(-50%);
}
.napo-calendar-detail {
  position: relative;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(30px, 3.4vw, 46px) clamp(28px, 4vw, 54px);
  overflow: hidden;
}
.napo-calendar-detail::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 190px;
  height: 190px;
  border: 45px solid rgba(247, 161, 44, 0.08);
  border-radius: 50%;
  content: '';
}
.napo-calendar-detail > * {
  position: relative;
  z-index: 1;
}
.napo-calendar-detail-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: #2f5038;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.35rem;
}
.napo-calendar-detail .eyebrow {
  margin-bottom: 8px;
}
.napo-calendar-detail h3 {
  max-width: 520px;
  margin: 0 0 16px;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.08;
}
.napo-calendar-detail > p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(23, 32, 24, 0.68);
}
.napo-calendar-location,
.napo-calendar-hours {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 3px solid #f7a12c;
}
.napo-calendar-hours {
  color: #273a2c !important;
  font-size: 1.05rem;
}
.napo-calendar-detail .button {
  align-self: flex-start;
  margin-top: 25px;
}
.napo-calendar-shell.is-loading {
  opacity: 0.72;
  pointer-events: none;
}
@media (max-width: 900px) {
  .napo-calendar-heading,
  .napo-calendar-shell {
    grid-template-columns: 1fr;
  }
  .napo-calendar-heading {
    gap: 24px;
  }
  .napo-calendar-detail {
    min-height: 300px;
  }
}
@media (max-width: 560px) {
  .napo-calendar-heading {
    margin-bottom: 24px;
  }
  .napo-calendar-legend {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }
  .napo-calendar-card,
  .napo-calendar-detail {
    border-radius: 21px;
  }
  .napo-calendar-card {
    padding: 15px 11px 17px;
  }
  .napo-calendar-card > header {
    grid-template-columns: 36px 1fr 36px;
    margin-bottom: 17px;
  }
  .napo-calendar-card header button {
    width: 36px;
    height: 36px;
  }
  .napo-calendar-weekdays,
  .napo-calendar-grid {
    gap: 4px;
  }
  .napo-calendar-day {
    min-height: 39px;
    border-radius: 9px;
    font-size: 0.81rem;
  }
  .napo-calendar-day i {
    right: 4px;
    bottom: 4px;
    width: 5px;
    height: 5px;
  }
  .napo-calendar-detail {
    min-height: 0;
    padding: 26px 22px 30px;
  }
  .napo-calendar-detail-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .napo-calendar-card header button,
  button.napo-calendar-day {
    transition: none;
  }
}
