/* Hoi Me Hang Cuu Giup - Live calendar + Gospel split, 2026-11-20.
   Client-approved burgundy / earth-gold / cream palette.
   Scoped to sidebar to preserve every other homepage or article component. */
.sidebar .sidebar-liturgy-card,
.sidebar .sidebar-gospel-refresh {
  --ct-wine: #762C24;
  --ct-wine-dark: #5b231d;
  --ct-gold: #C58A32;
  --ct-ivory: #FFF4D9;
  --ct-border: #e5ce9d;
  box-sizing: border-box;
  display: block;
  background: #fff9ee !important;
  border: 1px solid var(--ct-border) !important;
  border-radius: 9px !important;
  box-shadow: 0 2px 7px rgba(91,40,34,.055);
  overflow: hidden;
  color: #44352f;
}

.sidebar .sidebar-liturgy-card .sidebar-liturgy-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-height: 55px;
  margin: 0;
  padding: 8px 11px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 3px solid var(--ct-gold);
  border-radius: 0;
  background: linear-gradient(100deg, #68251e, #762C24 55%, #6b2921);
  color: #fffaf0;
  text-align: left;
}
.sidebar .sidebar-liturgy-head i.fa-calendar {
  display: block;
  flex: 0 0 auto;
  font-size: 25px;
  color: #ffdf9d;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.sidebar .sidebar-liturgy-head span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  color: #fffaf0;
  padding: 0;
  line-height: 1.18;
  letter-spacing: .025em;
}
.sidebar .sidebar-liturgy-head span::before,
.sidebar .sidebar-liturgy-head span::after { content: none; display: none; }
.sidebar .sidebar-liturgy-head strong {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .045em;
}
.sidebar .sidebar-liturgy-head small {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff0ce;
}
.sidebar .sidebar-liturgy-card .liturgy-content {
  padding: 10px 10px 12px;
  margin: 0;
  background: #fff9ef;
}
.sidebar .sidebar-liturgy-card .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0);
  white-space: nowrap !important;
  border: 0 !important;
}
.sidebar .sidebar-liturgy-card .cal-date-filter {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 39px !important;
  top: auto !important;
  left: auto !important;
  margin: 0 0 10px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  font-family: inherit;
  font-size: 13px !important;
  line-height: 38px !important;
  color: #503831 !important;
  border: 1px solid #dbcaaf !important;
  border-radius: 5px !important;
  outline: 0;
  background: #fff5e2 !important;
  cursor: pointer;
}
.sidebar .sidebar-liturgy-card .cal-date-filter:focus-visible {
  border-color: var(--ct-wine) !important;
  box-shadow: 0 0 0 2px rgba(198,160,91,.35);
}
.sidebar .sidebar-liturgy-card .liturgy-featured {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  margin: 0;
  border: 1px solid #e7ddc6;
  border-radius: 4px;
  overflow: hidden;
  background: #e6d4aa;
}
.sidebar .sidebar-liturgy-card .liturgy-featured-photo {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  max-width: none;
}
.sidebar .sidebar-liturgy-card .liturgy-featured::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,250,240,.6) 37%, rgba(255,250,240,.96) 88%);
}
.sidebar .sidebar-liturgy-card .liturgy-verse-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}
.sidebar .sidebar-liturgy-card .cal-item-loi-chua {
  display: block;
  margin: 0;
  color: #762C24 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.45;
  text-decoration: none;
  max-height: 88px;
  overflow: hidden;
}
.sidebar .sidebar-liturgy-card .cal-item-loi-chua:hover,
.sidebar .sidebar-liturgy-card .cal-item-loi-chua:focus-visible {
  color: #3c2020 !important;
  text-decoration: underline;
}
.sidebar .sidebar-liturgy-card .liturgy-featured-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg,#f5e4bf,#fff9ed);
  color: #ac804b;
  font-size: 54px;
}
.sidebar .sidebar-liturgy-card .liturgy-meta {
  padding: 8px 4px 2px;
  margin: 0;
  text-align: center;
}
.sidebar .sidebar-liturgy-card .liturgy-date-note {
  display: block;
  color: #80604a;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 3px;
}
.sidebar .sidebar-liturgy-card .liturgy-post-title {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ct-wine-dark);
}
.sidebar .sidebar-liturgy-card .liturgy-reset {
  margin: 0 0 6px;
  text-align: center;
  font-size: 13px;
}
.sidebar .sidebar-liturgy-card .liturgy-reset a { color: var(--ct-wine); }

/* Live reading content card (uses the exact approved static title image). */
.sidebar .sidebar-gospel-refresh {
  margin-top: 12px;
  position: relative;
  overflow: visible;
}
.sidebar .sidebar-gospel-refresh .sidebar-gospel-head {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: var(--ct-wine);
}
.sidebar .sidebar-gospel-refresh .sidebar-gospel-head img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.sidebar .sidebar-gospel-refresh .sidebar-gospel-content {
  display: block;
  background: #fff9ee !important;
  margin: 0;
  padding: 10px 13px 12px;
  border-radius: 0 0 8px 8px;
}
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #594137;
}
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap a {
  display: grid;
  grid-template-columns: 67px 7px minmax(0,1fr);
  gap: 4px;
  align-items: start;
  padding: 7px 0;
  margin: 0 !important;
  border-bottom: 1px solid #f1e9dd;
  color: #533c34 !important;
  font-size: 12.5px;
  line-height: 1.38;
  text-decoration: none;
}
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap a:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap a span {
  color: var(--ct-wine) !important;
  display: inline;
}
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap a span:first-child {
  display: block;
  width: auto !important;
  font-weight: 700;
}
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap a:hover,
.sidebar .sidebar-gospel-refresh .cal-item-bottom-wrap a:focus-visible {
  color: #9c4d2e !important;
  text-decoration: underline;
}
/* Reading modal remains functional independent of card dimensions. */
.sidebar .sidebar-gospel-refresh .cal-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px));
  min-height: 220px;
  max-height: calc(100vh - 32px);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  z-index: 99999;
  padding: 0;
  border: 1px solid #c58a32;
  border-radius: 7px;
  box-shadow: 0 15px 45px rgba(35,17,12,.28);
  overflow: hidden;
  background: #fff9ee;
}
.sidebar .sidebar-gospel-refresh .cal-popup-tab {
  background: #f3e4c6;
}
.sidebar .sidebar-gospel-refresh .cal-popup-tab a.cal-popup-tab-active {
  background: #fff5e2;
  color: #762C24;
  font-weight: 700;
}
.sidebar .sidebar-gospel-refresh .close-cal-popup {
  background-color: #762C24;
  z-index: 2;
}
.sidebar .sidebar-gospel-refresh .cal-popup-content-wrap {
  height: calc(100% - 45px);
  box-sizing: border-box;
  overflow-y: auto;
}
.sidebar .sidebar-gospel-refresh .cal-empty,
.sidebar .sidebar-liturgy-card .cal-empty {
  margin: 12px 0;
  color: #762C24;
  text-align: center;
  font-size: 13px;
}
@media screen and (max-width: 560px) {
  .sidebar .sidebar-liturgy-card .liturgy-featured { height: 235px; }
  .sidebar .sidebar-liturgy-head strong { font-size: 16px; }
  .sidebar .sidebar-gospel-refresh .cal-popup {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 26px);
  }
}

/* Sidebar calendar AJAX loading/error states. */
.sidebar .sidebar-liturgy-card.calendar-ajax-loading .liturgy-featured,
.sidebar .sidebar-liturgy-card.calendar-ajax-loading .liturgy-meta {
  opacity: .56;
  transition: opacity .15s ease-in;
}
.sidebar .sidebar-liturgy-card .calendar-ajax-status {
  margin: -3px 0 8px;
  padding: 5px 7px;
  border-radius: 4px;
  background: #f6eddf;
  color: #6a422b;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
.sidebar .sidebar-liturgy-card .calendar-ajax-status.calendar-ajax-error {
  background: #fff0eb;
  color: #902a30;
}

/* Text heading instead of a foreign site's decorative heading image. */
.sidebar .sidebar-gospel-refresh .sidebar-gospel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  line-height: 1.25;
  box-sizing: border-box;
  padding: 9px 10px;
  background: #762C24;
  border-bottom: 3px solid #C58A32;
  color: #FFF4D9;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .025em;
}
.sidebar .sidebar-gospel-refresh .sidebar-gospel-head i { color:#C58A32; font-size:18px; }
