:root {
  --mcf-dark: #171817;
  --mcf-dark-soft: #252722;
  --mcf-cream: #f2e9d7;
  --mcf-paper: #fff9ee;
  --mcf-red: #8b2830;
  --mcf-moss: #687343;
  --mcf-gold: #c99542;
  --mcf-text: #252521;
  --mcf-muted: #716c61;
  --mcf-border: rgba(37, 37, 33, 0.14);
  --mcf-shadow: 0 18px 55px rgba(20, 20, 18, 0.14);
  --mcf-radius: 20px;
}

html { scroll-behavior: smooth; }
body.mcf-site { overflow-x: hidden; }
body.mcf-site :where(img) { max-width: 100%; height: auto; }
body.mcf-site .wp-site-blocks { padding-top: 0; padding-bottom: 0; }

.mcf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
}
.admin-bar .mcf-site-header { top: 32px; }
.mcf-header-row { min-height: 76px; }
.mcf-header-row .wp-block-site-logo img { max-height: 54px; width: auto; }
.mcf-header-row .wp-block-site-title a { text-decoration: none; }
.mcf-header-row .wp-block-navigation-item__content { color: #fff; text-decoration: none; }
.mcf-header-row .wp-block-navigation-item__content:hover { color: var(--mcf-gold); }

.mcf-hero { min-height: min(780px, 88vh); }
.mcf-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(12,12,11,.92) 0%, rgba(12,12,11,.72) 46%, rgba(12,12,11,.25) 100%) !important; opacity: 1 !important; }
.mcf-hero .wp-block-cover__inner-container { width: 100%; }
.mcf-hero-copy { max-width: 720px; }
.mcf-hero-copy h1 { text-wrap: balance; text-shadow: 0 3px 18px rgba(0,0,0,.36); }
.mcf-hero-copy p { max-width: 650px; }
.mcf-eyebrow,
.mcf-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--mcf-gold);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mcf-eyebrow::before,
.mcf-kicker::before { content: ''; width: 36px; height: 3px; border-radius: 999px; background: currentColor; }

.mcf-section { position: relative; }
.mcf-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: radial-gradient(#000 0.55px, transparent 0.55px);
  background-size: 6px 6px;
}
.mcf-section > * { position: relative; }
.mcf-section-heading { max-width: 820px; }
.mcf-section-heading h2 { margin-top: 0; text-wrap: balance; }
.mcf-section-heading p { color: var(--mcf-muted); }
.has-charcoal-background-color .mcf-section-heading p,
.has-charcoal-soft-background-color .mcf-section-heading p { color: rgba(255,255,255,.74); }

.mcf-current-wagon {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(139,40,48,.12);
  border-radius: 26px;
  box-shadow: var(--mcf-shadow);
  overflow: hidden;
}
.mcf-current-copy h3 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3.8rem); margin: .35rem 0 1rem; line-height: 1.05; }
.mcf-current-copy p { font-size: 1.06rem; color: var(--mcf-muted); }
.mcf-current-image { display: block; min-height: 390px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,.16); }
.mcf-current-image img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; transition: transform .45s ease; }
.mcf-current-image:hover img { transform: scale(1.025); }

.mcf-button,
a.mcf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--mcf-red);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(139,40,48,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mcf-button:hover,
a.mcf-button:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 26px rgba(139,40,48,.28); }

.mcf-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.mcf-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  min-height: 210px;
  background: var(--mcf-paper);
  color: var(--mcf-text);
  border: 1px solid var(--mcf-border);
  border-radius: var(--mcf-radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mcf-event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.mcf-card-link { position: absolute; inset: 0; z-index: 1; }
.mcf-event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; background: var(--mcf-red); color: #fff; text-transform: uppercase; }
.mcf-event-date strong { font-family: Georgia, serif; font-size: 2.65rem; line-height: 1; }
.mcf-event-date span { font-size: .76rem; letter-spacing: .08em; }
.mcf-event-body { padding: 24px 22px; position: relative; z-index: 2; pointer-events: none; }
.mcf-event-body h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.mcf-event-body p { margin: .4rem 0; }
.mcf-event-body a { pointer-events: auto; position: relative; z-index: 3; }
.mcf-meta { color: var(--mcf-muted); font-weight: 650; }
.mcf-linked { color: var(--mcf-moss); font-size: .9rem; }

.mcf-sponsors { display: grid; gap: 34px; }
.mcf-sponsor-group h3 {
  display: inline-block;
  margin: 0 0 16px;
  padding: .36rem .8rem;
  background: var(--mcf-red);
  color: #fff;
  border-radius: 7px;
  font-family: inherit;
  font-size: .92rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mcf-sponsor-group:nth-child(2) h3 { background: var(--mcf-gold); color: var(--mcf-dark); }
.mcf-sponsor-group:nth-child(3) h3 { background: var(--mcf-moss); }
.mcf-sponsor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mcf-sponsor-card {
  min-height: 118px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.78);
  color: var(--mcf-text);
  border: 1px solid var(--mcf-border);
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  transition: transform .2s ease, border-color .2s ease;
}
.mcf-sponsor-card:hover { transform: translateY(-3px); border-color: rgba(201,149,66,.75); color: var(--mcf-text); }
.mcf-sponsor-card img { width: 100%; max-width: 190px; max-height: 74px; object-fit: contain; }

.mcf-instagram-feed,
.mcf-instagram-placeholder {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--mcf-radius);
  padding: clamp(20px,4vw,38px);
}
.mcf-instagram-placeholder { text-align: center; color: #fff; }
.mcf-instagram-placeholder p { max-width: 680px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.72); }

.mcf-slider { position: relative; }
.mcf-slider-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.mcf-slider-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.mcf-slider-button:hover { background: var(--mcf-red); border-color: var(--mcf-red); }
.mcf-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 33.333%);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 3px 22px;
  scrollbar-width: thin;
}
.mcf-wagon-card { scroll-snap-align: start; min-width: 0; }
.mcf-wagon-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mcf-paper);
  color: var(--mcf-text);
  text-decoration: none;
  border-radius: var(--mcf-radius);
  overflow: hidden;
  box-shadow: 0 15px 38px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.mcf-wagon-card > a:hover { color: var(--mcf-text); transform: translateY(-4px); }
.mcf-wagon-image { aspect-ratio: 4 / 3; overflow: hidden; background: #d8d0c0; }
.mcf-wagon-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mcf-wagon-card > a:hover .mcf-wagon-image img { transform: scale(1.04); }
.mcf-wagon-content { padding: 22px; }
.mcf-wagon-content h3 { margin: .4rem 0 .65rem; font-size: 1.45rem; }
.mcf-wagon-content p { color: var(--mcf-muted); }
.mcf-wagon-content small { color: var(--mcf-moss); font-weight: 650; }
.mcf-year,
.mcf-current-label {
  display: inline-flex;
  padding: .28rem .66rem;
  border-radius: 999px;
  background: var(--mcf-red);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .05em;
}
.mcf-current-label { margin-left: .45rem; background: var(--mcf-moss); }

.mcf-empty {
  padding: 30px;
  text-align: center;
  border: 2px dashed rgba(139,40,48,.3);
  border-radius: var(--mcf-radius);
  background: rgba(255,255,255,.48);
}
.has-charcoal-background-color .mcf-empty,
.has-charcoal-soft-background-color .mcf-empty { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); }
.mcf-empty p { margin-top: .35rem; }

.mcf-detail-box,
.mcf-related-events {
  padding: 24px 28px;
  background: var(--mcf-cream);
  border-left: 5px solid var(--mcf-red);
  border-radius: 0 16px 16px 0;
}
.mcf-detail-box p { margin: .4rem 0; }
.mcf-related-events ul { margin-bottom: 0; }
.mcf-wagon-meta { display: flex; gap: .4rem; flex-wrap: wrap; }

.mcf-footer { border-top: 1px solid rgba(255,255,255,.08); }
.mcf-footer a { color: #fff; }
.mcf-footer a:hover { color: var(--mcf-gold); }

.mcf-editor-preview { min-height: 80px; }
.editor-styles-wrapper .mcf-slider-track { grid-auto-columns: minmax(260px, 33.333%); }

@media (max-width: 1000px) {
  .mcf-current-wagon { grid-template-columns: 1fr; }
  .mcf-events-grid { grid-template-columns: 1fr 1fr; }
  .mcf-sponsor-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mcf-slider-track { grid-auto-columns: minmax(290px, 48%); }
}

@media (max-width: 782px) {
  .admin-bar .mcf-site-header { top: 46px; }
  .mcf-header-row { min-height: 64px; }
  .mcf-hero { min-height: 680px; }
  .mcf-hero .wp-block-cover__background { background: rgba(12,12,11,.72) !important; }
  .mcf-events-grid { grid-template-columns: 1fr; }
  .mcf-sponsor-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mcf-slider-track { grid-auto-columns: minmax(278px, 82%); }
  .mcf-current-image,
  .mcf-current-image img { min-height: 280px; }
}

@media (max-width: 520px) {
  .mcf-event-card { grid-template-columns: 76px minmax(0,1fr); }
  .mcf-sponsor-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mcf-sponsor-card { min-height: 92px; padding: 12px; }
  .mcf-slider-track { grid-auto-columns: 90%; }
}
