/* ===================== CMDFW SINGLE EVENT ===================== */
.cmdfw-event, .cmdfw-event * { box-sizing: border-box; }

.cmdfw-event {
  font-family: "EB Garamond", Georgia, serif;
  color: #4A1B0C;
}

.cmdfw-event-header {
  background: #4A1B0C;
  color: #FAEEDA;
  padding: 4rem 2rem;
}
.cmdfw-event-header-inner { max-width: 760px; margin: 0 auto; }

.cmdfw-event-eyebrow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FAC775;
  margin: 0 0 14px;
  font-weight: 500;
}
.cmdfw-event-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 51px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: #FAEEDA;
}
.cmdfw-event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FAC775;
}

.cmdfw-event-body {
  background: #FAEEDA;
  padding: 3.5rem 2rem 4.5rem;
}
.cmdfw-event-body-inner { max-width: 760px; margin: 0 auto; }

.cmdfw-event-image { margin: 0 0 2rem; }
.cmdfw-event-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 0.5px solid #FAC775;
}

.cmdfw-event-content {
  font-size: 21px;
  line-height: 1.7;
  color: #712B13;
}
.cmdfw-event-content p { margin: 0 0 1.25rem; }

.cmdfw-event-cta-wrap { margin: 2rem 0 0; }
.cmdfw-event-cta {
  display: inline-block;
  padding: 13px 30px;
  background: #FAC775;
  color: #4A1B0C !important;
  border-radius: 6px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.cmdfw-event-cta:hover { background: #f0b855; }

.cmdfw-event-back { margin: 2.5rem 0 0; }
.cmdfw-event-back a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #854F0B !important;
  text-decoration: none;
}
.cmdfw-event-back a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cmdfw-event-header { padding: 2.5rem 1.5rem; }
  .cmdfw-event-title { font-size: 37px; }
  .cmdfw-event-body { padding: 2.5rem 1.5rem 3rem; }
}

/* ===================== ADD TO CALENDAR (single event) ===================== */
.cmdfw-event-addcal {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cmdfw-event-addcal-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #854F0B;
  font-weight: 500;
}
.cmdfw-event-addcal-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #BA7517;
  border-radius: 6px;
  color: #854F0B !important;
  background: transparent;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.cmdfw-event-addcal-btn:hover {
  background: #FAC775;
  border-color: #FAC775;
  color: #4A1B0C !important;
  text-decoration: none;
}

/* Variant: buttons inside the dark header band */
.cmdfw-event-addcal--header { margin: 1.5rem 0 0; }
.cmdfw-event-addcal--header .cmdfw-event-addcal-label { color: #FAC775; }
.cmdfw-event-addcal--header .cmdfw-event-addcal-btn {
  border-color: #FAC775;
  color: #FAEEDA !important;
}
.cmdfw-event-addcal--header .cmdfw-event-addcal-btn:hover {
  background: #FAC775;
  color: #4A1B0C !important;
}

/* ===================== CMDFW EVENT CALENDAR (archive) ===================== */

/* Month headings */
.cmdfw-event-month {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 35px;
  font-weight: 500;
  color: #4A1B0C;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #FAC775;
}
.cmdfw-event-rows > .cmdfw-event-month:first-child { margin-top: 0; }

/* Rows: date block left, details right */
.cmdfw-event-rows { display: flex; flex-direction: column; }

.cmdfw-event-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  border: 0.5px solid #FAC775;
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  margin: 0 0 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.cmdfw-event-row:hover { border-color: #BA7517; text-decoration: none; }

.cmdfw-event-row-date {
  flex: none;
  width: 56px;
  text-align: center;
}
.cmdfw-event-row-mon {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BA7517;
  font-weight: 600;
}
.cmdfw-event-row-day {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 35px;
  line-height: 1.05;
  color: #4A1B0C;
  font-weight: 500;
}

.cmdfw-event-row-main { min-width: 0; }
.cmdfw-event-row-title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  color: #4A1B0C;
  font-weight: 500;
}
.cmdfw-event-row-meta {
  display: block;
  margin-top: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #712B13;
}

.cmdfw-event-list-empty { font-size: 19px; color: #712B13; }

/* Subscribe block */
.cmdfw-event-subscribe {
  margin: 3.5rem 0 0;
  background: #FFFFFF;
  border: 0.5px solid #FAC775;
  border-radius: 10px;
  padding: 1.75rem 2rem;
  text-align: center;
}
.cmdfw-event-subscribe-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: #4A1B0C;
  margin: 0 0 0.4rem;
}
.cmdfw-event-subscribe-note {
  font-size: 18px;
  color: #712B13;
  margin: 0 0 1.25rem;
}
.cmdfw-event-subscribe-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.cmdfw-event-subscribe-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #FAC775;
  border: 1px solid #FAC775;
  border-radius: 6px;
  color: #4A1B0C !important;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.cmdfw-event-subscribe-btn:hover { background: #f0b855; border-color: #f0b855; text-decoration: none; }
.cmdfw-event-subscribe-btn--quiet {
  background: transparent;
  border-color: #BA7517;
  color: #854F0B !important;
}
.cmdfw-event-subscribe-btn--quiet:hover { background: #FAC775; border-color: #FAC775; color: #4A1B0C !important; }

/* ===================== LEGACY CARD STYLES =====================
 * The pre-Day-10 card grid, kept so reverting rows -> cards is a
 * template-only change. Prune once the row layout is confirmed. */
.cmdfw-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 320px));
  gap: 16px;
}
.cmdfw-event-list-card {
  background: #FFFFFF;
  border: 0.5px solid #FAC775;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s;
}
.cmdfw-event-list-card:hover { border-color: #BA7517; text-decoration: none; }
.cmdfw-event-list-card .home-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; color: #BA7517; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0 0 8px; font-weight: 500;
}
.cmdfw-event-list-card .home-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px; color: #4A1B0C; line-height: 1.25; margin: 0 0 8px; font-weight: 500;
}
.cmdfw-event-list-card .home-loc { font-size: 15px; color: #712B13; margin: 0; }

/* Mobile: tighter rows */
@media (max-width: 640px) {
  .cmdfw-event-row { gap: 14px; padding: 0.8rem 1rem; }
  .cmdfw-event-row-date { width: 46px; }
  .cmdfw-event-row-day { font-size: 30px; }
  .cmdfw-event-row-title { font-size: 22px; }
  .cmdfw-event-month { font-size: 30px; }
  .cmdfw-event-subscribe { padding: 1.5rem 1.25rem; }
}


/* ===================== CMDFW SEARCH RESULTS ===================== */
.cmdfw-search-form {
  display: flex;
  gap: 10px;
  margin: 0 0 2.5rem;
}
.cmdfw-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 0.5px solid #BA7517;
  border-radius: 6px;
  background: #FFFFFF;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  color: #4A1B0C;
  outline: none;
}
.cmdfw-search-form input[type="search"]:focus { border-color: #4A1B0C; }
.cmdfw-search-form button {
  flex: none;
  padding: 12px 24px;
  background: #FAC775;
  border: 0.5px solid #FAC775;
  border-radius: 6px;
  color: #4A1B0C;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cmdfw-search-form button:hover { background: #f0b855; }

.cmdfw-search-results { display: flex; flex-direction: column; }
.cmdfw-search-result {
  display: block;
  background: #FFFFFF;
  border: 0.5px solid #FAC775;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.cmdfw-search-result:hover { border-color: #BA7517; text-decoration: none; }
.cmdfw-search-result-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  color: #4A1B0C;
  font-weight: 500;
  margin: 0 0 6px;
}
.cmdfw-search-result:hover .cmdfw-search-result-title { color: #BA7517; }
.cmdfw-search-result-excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: #712B13;
  margin: 0;
}
.cmdfw-search-empty { font-size: 19px; color: #712B13; }

@media (max-width: 640px) {
  .cmdfw-search-form { flex-direction: column; }
  .cmdfw-search-result-title { font-size: 22px; }
}
