.rec-calendar {
  --rec-border: rgba(30, 43, 55, 0.14);
  --rec-muted: rgba(30, 43, 55, 0.66);
  --rec-soft: rgba(39, 117, 99, 0.08);
  --rec-accent: #277563;
  --rec-accent-strong: #1f5f50;
  --rec-bg: #ffffff;
  --rec-card: #ffffff;
  --rec-shadow: 0 12px 32px rgba(17, 28, 39, 0.08);
  background: var(--rec-bg);
  border: 1px solid var(--rec-border);
  border-radius: 18px;
  box-shadow: var(--rec-shadow);
  color: inherit;
  font: inherit;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.rec-calendar * {
  box-sizing: border-box;
}

.rec-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rec-title {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.rec-month-label {
  color: var(--rec-muted);
  font-size: 0.98rem;
}

.rec-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.rec-controls button,
.rec-more {
  appearance: none;
  background: #fff;
  border: 1px solid var(--rec-border);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0.62rem 0.78rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rec-controls button:hover,
.rec-more:hover,
.rec-controls button[aria-pressed="true"] {
  background: var(--rec-soft);
  border-color: rgba(39, 117, 99, 0.34);
}

.rec-controls button:focus-visible,
.rec-more:focus-visible,
.rec-event-link:focus-visible,
.rec-search input:focus-visible {
  outline: 3px solid rgba(39, 117, 99, 0.28);
  outline-offset: 2px;
}

.rec-search {
  display: block;
  margin: 0 0 1rem;
}

.rec-search span {
  color: var(--rec-muted);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.rec-search input {
  border: 1px solid var(--rec-border);
  border-radius: 999px;
  font: inherit;
  max-width: 420px;
  padding: 0.72rem 0.95rem;
  width: 100%;
}

.rec-weekdays,
.rec-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rec-weekdays {
  color: var(--rec-muted);
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.rec-weekdays div {
  padding: 0 0.35rem;
}

.rec-month-grid {
  border: 1px solid var(--rec-border);
  border-radius: 14px;
  overflow: hidden;
}

.rec-day {
  background: var(--rec-card);
  border-bottom: 1px solid var(--rec-border);
  border-right: 1px solid var(--rec-border);
  min-height: 118px;
  padding: 0.5rem;
}

.rec-day:nth-child(7n) {
  border-right: 0;
}

.rec-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.rec-day-muted {
  background: rgba(30, 43, 55, 0.035);
  color: rgba(30, 43, 55, 0.58);
}

.rec-day-today .rec-day-number {
  align-items: center;
  background: var(--rec-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 1.85rem;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0 0.35rem;
}

.rec-day-number {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.rec-day-events {
  display: grid;
  gap: 0.32rem;
}

.rec-event-link {
  background: var(--rec-soft);
  border-left: 3px solid var(--rec-accent);
  border-radius: 10px;
  color: inherit;
  display: grid;
  gap: 0.14rem;
  line-height: 1.25;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
}

.rec-day-events .rec-event-link {
  display: block;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-event-link:hover {
  color: var(--rec-accent-strong);
  text-decoration: none;
}

.rec-event-title {
  font-weight: 700;
}

.rec-event-time,
.rec-event-location {
  color: var(--rec-muted);
  font-size: 0.9rem;
}

.rec-more {
  color: var(--rec-accent-strong);
  font-size: 0.82rem;
  padding: 0.38rem 0.55rem;
  text-align: left;
}

.rec-event-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rec-event-card {
  align-items: stretch;
  border: 1px solid var(--rec-border);
  border-radius: 14px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(130px, 0.3fr) 1fr;
  overflow: hidden;
}

.rec-event-date {
  background: rgba(30, 43, 55, 0.045);
  color: var(--rec-muted);
  font-weight: 700;
  padding: 0.8rem;
}

.rec-event-body {
  padding: 0.8rem;
}

.rec-event-body .rec-event-link {
  background: transparent;
  border-left: 0;
  padding: 0;
}

.rec-event-description {
  color: var(--rec-muted);
  margin: 0.55rem 0 0;
}

.rec-loading,
.rec-empty,
.rec-error,
.rec-notice {
  background: rgba(30, 43, 55, 0.045);
  border-radius: 14px;
  padding: 1rem;
}

.rec-error {
  background: rgba(176, 0, 32, 0.08);
}

.rec-notice {
  background: var(--rec-soft);
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .rec-toolbar {
    display: grid;
  }

  .rec-controls {
    justify-content: flex-start;
  }

  .rec-weekdays {
    display: none;
  }

  .rec-month-grid {
    display: grid;
    gap: 0.65rem;
    border: 0;
    border-radius: 0;
  }

  .rec-day,
  .rec-day:nth-child(7n),
  .rec-day:nth-last-child(-n + 7) {
    border: 1px solid var(--rec-border);
    border-radius: 14px;
    min-height: auto;
  }

  .rec-day-muted:empty {
    display: none;
  }

  .rec-event-card {
    grid-template-columns: 1fr;
  }
}

.rec-pagination {
  align-items: center;
  box-sizing: border-box;
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  justify-items: center;
  margin: 1rem auto 0;
  max-width: none;
  text-align: center;
  width: 100%;
}

.rec-feature-section > .rec-pagination {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

.rec-pagination button {
  appearance: none;
  background: #fff;
  border: 1px solid var(--rec-border);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  order: 1;
  padding: 0.62rem 0.82rem;
  white-space: nowrap;
}

.rec-pagination button:hover:not(:disabled) {
  background: var(--rec-soft);
  border-color: rgba(39, 117, 99, 0.34);
}

.rec-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.rec-page-status {
  color: var(--rec-muted);
  flex: 0 0 100%;
  font-size: 0.92rem;
  order: 2;
  text-align: center;
}

/* SWFRPC homepage feature-card layout. Used by [resiliency_calendar_home] or [resiliency_calendar style="feature" view="list" limit="3"]. */
.rec-calendar:has(.rec-feature-section){background:transparent;border:0;box-shadow:none;padding:0;}
.rec-feature-section{display:grid;grid-template-columns:260px 1fr;gap:42px;align-items:center;background:#f7fbfd;padding:42px 36px;font-family:inherit;color:#14364f;}
.rec-feature-intro{color:#14364f;}
.rec-feature-icon{width:38px;height:38px;color:#007ea7;margin-bottom:18px;}
.rec-feature-icon svg{width:100%;height:100%;display:block;}
.rec-feature-title{margin:0 0 18px;color:#14364f;font-size:24px;line-height:1.15;font-weight:800;}
.rec-feature-subtitle{margin:0 0 26px;color:#1f3747;font-size:15px;line-height:1.55;}
.rec-feature-button{display:inline-flex;align-items:center;justify-content:center;background:#073c56;color:#fff!important;padding:13px 24px;border-radius:999px;font-size:14px;font-weight:800;text-decoration:none;box-shadow:0 6px 14px rgba(7,60,86,.16);}
.rec-feature-button:hover{background:#005f7f;color:#fff!important;text-decoration:none;}
.rec-feature-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.rec-feature-card{overflow:hidden;background:#fff;border:1px solid #dfe6ea;border-radius:8px;box-shadow:0 3px 10px rgba(20,54,79,.10);}
.rec-feature-image-link{display:block;height:150px;overflow:hidden;background:#dce9ee;}
.rec-feature-image-link img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 180ms ease;}
.rec-feature-image-link:hover img{transform:scale(1.035);}
.rec-feature-card-body{position:relative;padding:22px 22px 20px;}
.rec-feature-date{position:absolute;top:-44px;left:20px;width:54px;background:#fff;border-radius:4px;overflow:hidden;box-shadow:0 4px 12px rgba(20,54,79,.18);text-align:center;}
.rec-feature-date span{display:block;background:#3c9b6e;color:#fff;padding:5px 4px;font-size:11px;line-height:1;font-weight:800;letter-spacing:.06em;text-transform:uppercase;}
.rec-feature-date strong{display:block;padding:7px 4px 8px;color:#14364f;font-size:23px;line-height:1;font-weight:800;}
.rec-feature-card h3{margin:0 0 14px;color:#14364f;font-size:18px;line-height:1.2;font-weight:800;}
.rec-feature-card h3 a{color:inherit;text-decoration:none;}
.rec-feature-card h3 a:hover{text-decoration:underline;}
.rec-feature-meta{margin-bottom:16px;}
.rec-feature-meta p{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#29465a;font-size:13px;line-height:1.25;}
.rec-feature-meta span{color:#0f5a78;font-weight:800;}
.rec-feature-details{color:#0f5a78;font-size:14px;font-weight:800;text-decoration:none;}
.rec-feature-details:hover{text-decoration:underline;}
.rec-feature-cards .rec-loading,.rec-feature-cards .rec-empty,.rec-feature-cards .rec-error{grid-column:1/-1;background:#fff;border:1px solid #dfe6ea;border-radius:8px;box-shadow:0 3px 10px rgba(20,54,79,.10);padding:1rem;}
@media(max-width:1100px){.rec-feature-section{grid-template-columns:1fr;gap:28px}.rec-feature-intro{max-width:620px}}
@media(max-width:900px){.rec-feature-cards{grid-template-columns:1fr}.rec-feature-image-link{height:210px}}
@media(max-width:640px){.rec-feature-section{padding:32px 20px}.rec-feature-title{font-size:22px}.rec-feature-image-link{height:180px}.rec-feature-card-body{padding:22px 18px 20px}}
