/* ============ Tokens ============ */
:root {
  --red: #E3140E;
  --gray: #54595F;
  --text: #7A7A7A;
  --dark: #1a1a1a;
  --oswald: 'Oswald', sans-serif;
  --montserrat: 'Montserrat', sans-serif;
  --body-font: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1140px;
}

/* ============ Reset/base ============ */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--body-font); font-size: 16px; line-height: 1.5; color: #333; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--oswald); font-weight: 600; margin: 0 0 .5em; }
h2 { font-size: 48px; letter-spacing: -0.8px; }
h4 { font-size: 45px; }
a { color: var(--red); text-decoration: none; }

.cfm-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ============ Buttons ============ */
.cfm-btn {
  display: inline-block; font-family: var(--oswald); font-size: 16px; font-weight: 400;
  color: #fff; background: var(--red); border: 0; border-radius: 2px;
  padding: 15px 40px; cursor: pointer; transition: background .2s;
}
.cfm-btn:hover { background: #c01008; color: #fff; }

/* ============ Utility ============ */
.cfm-section { padding: 80px 0; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ============ Header ============ */
.cfm-header { position: relative; z-index: 100; padding: 18px 0; background: var(--dark); }
.cfm-header__inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
/* Center the menu links in the middle of the navbar; logo stays left, phone stays right. */
.cfm-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cfm-nav a { font-family: var(--oswald); font-size: 15px; font-weight: 300; text-transform: uppercase; color: #fff; }
.cfm-nav a:hover { color: var(--red); }
.cfm-nav { display: flex; align-items: center; gap: 32px; }
.cfm-header__phone { display: flex; align-items: center; gap: 8px; margin-right: 28px; color: #fff; font-family: var(--oswald); font-weight: 300; font-size: 15px; }
/* Tall vertical divider between the menu and the phone number. */
.cfm-header__phone::before { content: ''; width: 1px; height: 34px; margin-right: 22px; background: rgba(255, 255, 255, .4); }
.cfm-nav-toggle { display: none; }

/* ============ Footer ============ */
.cfm-footer { background: var(--dark); color: #fff; padding: 50px 0 30px; text-align: center; }
.cfm-footer__social { display: flex; gap: 18px; justify-content: center; list-style: none; margin: 0 0 24px; padding: 0; }
.cfm-footer__social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--dark); }
.cfm-footer__social a:hover { background: var(--red); color: #fff; }
.cfm-footer__nav ul { display: flex; gap: 24px; justify-content: center; list-style: none; margin: 0 0 24px; padding: 0; flex-wrap: wrap; }
.cfm-footer__nav a { font-family: var(--oswald); font-size: 14px; font-weight: 300; text-transform: uppercase; color: #fff; }
.cfm-footer__legal { font-size: 12px; letter-spacing: .5px; color: #bbb; }
.cfm-footer__legal a { color: #fff; }

/* ============ Mobile nav ============ */
@media (max-width: 900px) {
  .cfm-nav-toggle { display: block; background: none; border: 0; cursor: pointer; padding: 8px; }
  .cfm-nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }
  .cfm-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(0,0,0,.95); padding: 24px; }
  .cfm-nav.is-open { display: block; }
  .cfm-nav ul { flex-direction: column; gap: 16px; position: static; transform: none; }
  .cfm-header__phone::before { display: none; }
}

/* ============ Hero ============ */
.cfm-hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.cfm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.cfm-hero .cfm-container { position: relative; }
.cfm-hero h2 {
  color: #fff;
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 28px;
  font-weight: 600;
}

/* ============ Featured events strip ============ */
.cfm-featured-events { padding: 40px 0; }
.cfm-featured-events .cfm-container { /* wrapper only — plugin renders output */ }
/* Single next-upcoming-event image (homepage) */
.cfm-next-event { display: block; line-height: 0; }
.cfm-next-event img { width: 100%; height: auto; display: block; border-radius: 4px; }
.cfm-next-event:hover img { opacity: .92; }

/* ============ About section ============ */
.cfm-about { text-align: left; }
.cfm-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cfm-about__text h4 { margin-bottom: 24px; }
.cfm-about__text p {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
.cfm-about__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ Events list section ============ */
.cfm-events-list { padding-top: 0; }
.cfm-home-events .rt7-archive-container { padding-top: 1.5rem; }
.cfm-home-events__cta { margin-top: 28px; text-align: center; }

/* ============ CTA Reserve band ============ */
.cfm-cta-reserve {
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.cfm-cta-reserve h3 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 16px;
}
.cfm-cta-reserve p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: #ccc;
  font-size: 16px;
  line-height: 1.7;
}

/* ============ Home contact section ============ */
.cfm-home-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact details typography */
.cfm-contact-details h2 {
  font-size: 30px;
  margin-bottom: 16px;
  color: #333;
}
.cfm-contact-details h6 {
  font-family: var(--oswald);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 4px;
  color: var(--red);
}
.cfm-contact-details__value {
  font-weight: 300 !important;
  color: #333 !important;
  margin-bottom: 14px !important;
}
.cfm-contact-details__list { margin-bottom: 32px; }
.cfm-contact-details__hours h5 {
  font-family: var(--oswald);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 6px;
}

/* Contact form column */
.cfm-home-contact__form h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

/* ============ Newsletter / Member band ============ */
.cfm-member-news {
  background: var(--red);
  color: #fff;
}
.cfm-member-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cfm-member-news__member h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}
.cfm-member-news__member img {
  max-width: 160px;
}
.cfm-member-news__signup p {
  color: #fff;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}
/* Mailchimp form inside newsletter */
#mc_embed_signup input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 0;
  border-radius: 2px;
  margin-bottom: 10px;
}
#mc_embed_signup .mc-field-group { margin-bottom: 10px; }
#mc_embed_signup .button {
  padding: 10px 28px;
  font-size: 15px;
  font-family: var(--oswald);
  cursor: pointer;
  border: 0;
  border-radius: 2px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  /* Hero heading scales down at tablet */
  .cfm-hero h2 { font-size: 34px; }
}
@media (max-width: 767px) {
  /* Home-page 2-col grids collapse at mobile only (stay 2-col at 768 tablet) */
  .cfm-home-contact__grid,
  .cfm-member-news__grid,
  .cfm-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .cfm-about { text-align: center; }
  .cfm-about__text h4 { font-size: 30px; }
}
@media (max-width: 600px) {
  .cfm-hero h2 { font-size: 28px; }
  .cfm-cta-reserve h3 { font-size: 24px; }
}

/* ============ Masthead (interior pages) ============ */
.cfm-masthead {
  min-height: 300px;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-bottom: 40px;
}
.cfm-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.cfm-masthead .cfm-container { position: relative; }
.cfm-masthead h2 {
  position: relative;
  color: #fff;
  font-size: 54px;
  margin: 0;
  letter-spacing: 2px;
}

/* ============ Ciders intro ============ */
.cfm-ciders-intro { padding: 48px 0 36px; }
.cfm-ciders-intro p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* ============ Cider group sections ============ */
.cfm-cider-group { padding: 60px 0; }
.cfm-cider-group h2 {
  text-align: center;
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: 0.5px;
}

/* Draft section — dark red/maroon bg */
.cfm-cider-group--dark {
  background: #7a1a1a;
  color: #fff;
}
.cfm-cider-group--dark h2 {
  color: #fff;
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cfm-cider-group--dark .cfm-cider h4 { color: #fff; }
.cfm-cider-group--dark .cfm-cider p { color: rgba(255,255,255,.85); }

/* Bottles / default section heading — does not apply to dark variant */
.cfm-cider-group:not(.cfm-cider-group--dark) h2 {
  color: #333;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Soon section */
.cfm-cider-group--soon { background: #fff; }
.cfm-cider-group--soon h2 { color: #333; font-size: 32px; font-weight: 400; }

/* ============ Cider grid ============ */
.cfm-cider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  margin-top: 48px;
}
.cfm-cider { display: flex; flex-direction: column; }
.cfm-cider img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  /* portrait bottles — cap height so they align visually */
  max-height: 420px;
  object-fit: contain;
  object-position: bottom;
}
.cfm-cider h4 {
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.cfm-cider p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Text-only grid (coming soon) — 2-col */
.cfm-cider-grid--text {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
}
.cfm-cider-grid--text .cfm-cider h4 { color: #333; }
.cfm-cider-grid--text .cfm-cider p  { color: var(--text); }

/* ============ Responsive — cider grid ============ */
@media (max-width: 900px) {
  .cfm-masthead { min-height: 200px; }
  .cfm-masthead h2 { font-size: 42px; }
  /* cider grid: stays 3-col at 768 tablet, collapses at narrower breakpoints */
  .cfm-cider-grid--text { grid-template-columns: 1fr; max-width: 100%; }
  .cfm-cider-group--dark h2 { font-size: 20px; }
  .cfm-cider-group:not(.cfm-cider-group--dark) h2 { font-size: 26px; }
}
@media (max-width: 767px) {
  .cfm-cider-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
}
@media (max-width: 600px) {
  .cfm-masthead h2 { font-size: 34px; }
  .cfm-cider-grid { grid-template-columns: 1fr; }
  .cfm-cider img { max-height: 360px; }
  .cfm-cider-group--dark h2 { font-size: 15px; letter-spacing: 1px; }
  .cfm-cider-group:not(.cfm-cider-group--dark) h2 { font-size: 20px; }
}

/* ============ The Journey page ============ */

/* ---- A COSMIC SPARK (dark bg) ---- */
.cfm-journey-spark {
  background: #2c2c2c;
  padding: 100px 0;
}
.cfm-journey-spark__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cfm-journey-spark__heading {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.cfm-journey-spark__text p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.cfm-journey-spark__text p:last-child { margin-bottom: 0; }
.cfm-journey-spark__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- MEETING OF THE MINDS ---- */
.cfm-journey-minds {
  padding: 50px 0;
  background: #fff;
}
.cfm-journey-minds__heading {
  font-family: var(--oswald);
  font-size: 45px;
  font-weight: 600;
  text-align: center;
  color: #333;
  margin: 0;
  letter-spacing: 1px;
}

/* ---- Story blocks (transparent bg, image/text 50/50) ---- */
.cfm-journey-story {
  background: #fff;
}
.cfm-journey-story--nikki { padding: 0; }
.cfm-journey-story--jeremy { padding: 0 0 50px; }
.cfm-journey-story--founders { padding: 0 0 50px; }
.cfm-journey-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cfm-journey-story__image img {
  width: 100%;
  height: auto;
  display: block;
}
/* Stacked images column (founders section) */
.cfm-journey-story__images-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cfm-journey-story__images-stack img {
  width: 100%;
  height: auto;
  display: block;
}
.cfm-journey-story__text p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.cfm-journey-story__text p:last-child { margin-bottom: 0; }

/* ---- Belief section (text left, field image right) ---- */
.cfm-journey-belief {
  background: #fff;
  padding: 0;
}
.cfm-journey-belief__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cfm-journey-belief__text p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.cfm-journey-belief__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- OUR CREW (dark bg, photo left / text right) ---- */
.cfm-journey-crew {
  background: #2c2c2c;
  padding: 16px 0 48px;
}
.cfm-journey-crew__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cfm-journey-crew__image img {
  width: 100%;
  height: auto;
  display: block;
}
.cfm-journey-crew__heading {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.cfm-journey-crew__text p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.cfm-journey-crew__text p:last-child { margin-bottom: 0; }

/* ---- Journey responsive ---- */
@media (max-width: 900px) {
  .cfm-journey-spark { padding: 60px 0; }
  .cfm-journey-spark__grid,
  .cfm-journey-story__grid,
  .cfm-journey-belief__grid,
  .cfm-journey-crew__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cfm-journey-minds__heading { font-size: 32px; }
  .cfm-journey-story--jeremy { padding-bottom: 32px; }
  .cfm-journey-story--founders { padding-bottom: 32px; }
}
@media (max-width: 600px) {
  .cfm-journey-spark { padding: 40px 0; }
  .cfm-journey-spark__heading { font-size: 22px; }
  .cfm-journey-minds { padding: 32px 0; }
  .cfm-journey-minds__heading { font-size: 24px; }
  .cfm-journey-crew__heading { font-size: 22px; }
}

/* ============ Reserve page ============ */

/* Private Bookings: text left, photo right */
.cfm-reserve-bookings { padding: 60px 0 40px; }
.cfm-reserve-bookings__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
.cfm-reserve-bookings__heading {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 20px;
}
.cfm-reserve-bookings__text p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 16px;
}
.cfm-reserve-bookings__text p:last-of-type { margin-bottom: 24px; }
.cfm-reserve-btn { margin-top: 8px; }
.cfm-reserve-bookings__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery: 2×2 grid, no padding above */
.cfm-reserve-gallery { padding: 0 0 0; }
.cfm-reserve-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.cfm-reserve-gallery__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Reservation form section */
.cfm-reserve-form { padding: 60px 0 80px; }
.cfm-reserve-form__heading {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin-bottom: 32px;
}

/* Reserve responsive */
@media (max-width: 767px) {
  .cfm-reserve-bookings__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cfm-reserve-gallery__item img { height: 220px; }
}
@media (max-width: 600px) {
  .cfm-reserve-gallery__grid { grid-template-columns: 1fr; }
  .cfm-reserve-gallery__item img { height: 240px; }
  .cfm-reserve-bookings__heading { font-size: 22px; }
}

/* ============ Liquid Gang page ============ */

/* Masthead override — taller, text at bottom-left */
.cfm-lg-masthead { min-height: 380px; background-position: center center; }
.cfm-lg-masthead h2 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: 10px;
}
.cfm-lg-masthead__sub {
  font-family: var(--oswald);
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  line-height: 1.3;
}

/* Intro: 3-col grid — red callout | bullet details | gif */
.cfm-lg-intro { padding: 60px 0; background: #fff; }
.cfm-lg-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}
.cfm-lg-intro__callout {
  background: var(--red);
  padding: 36px 28px;
  border-radius: 2px;
}
.cfm-lg-intro__callout p {
  font-family: var(--oswald);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}
.cfm-lg-intro__details ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.cfm-lg-intro__details li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.cfm-lg-intro__details li:last-child { margin-bottom: 0; }
.cfm-lg-intro__gif { text-align: center; }
.cfm-lg-intro__gif img { max-width: 220px; margin: 0 auto; }

/* Perks section */
.cfm-lg-perks { padding: 60px 0 80px; background: #fff; }
.cfm-lg-perks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cfm-lg-perk { display: flex; flex-direction: column; }
.cfm-lg-perk__icon {
  margin-bottom: 16px;
  color: var(--red);
}
.cfm-lg-perk__icon svg { display: block; }
.cfm-lg-perk__heading {
  font-family: var(--oswald);
  font-size: 20px;
  font-weight: 600;
  color: var(--red);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.cfm-lg-perk p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Join section */
.cfm-lg-join { background: #fff; padding: 20px 0 80px; }
.cfm-lg-join__inner { max-width: 860px; }
.cfm-lg-join__heading {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.cfm-lg-join p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.cfm-lg-join p:last-of-type { margin-bottom: 0; }

/* Vinoshipper container */
.cfm-lg-vinoshipper { margin-top: 36px; }
.vs-club-registration { min-height: 60px; }

/* ---- Liquid Gang responsive ---- */
@media (max-width: 900px) {
  .cfm-lg-masthead { min-height: 260px; }
  .cfm-lg-masthead h2 { font-size: 38px; }
  .cfm-lg-masthead__sub { font-size: 18px; }
  .cfm-lg-intro__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  /* gif moves below the two text cols on tablet */
  .cfm-lg-intro__gif {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .cfm-lg-perks__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .cfm-lg-masthead h2 { font-size: 30px; }
  .cfm-lg-masthead__sub { font-size: 16px; }
  .cfm-lg-intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .cfm-lg-intro__gif { display: none; } /* gif not shown at mobile per 390 reference */
  .cfm-lg-intro__callout p { font-size: 18px; }
  .cfm-lg-join__heading { font-size: 24px; }
}

/* ============ Age gate ============ */
.cfm-agegate { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cfm-agegate[hidden] { display: none; }
.cfm-agegate__box { background: #fff; max-width: 560px; padding: 48px 40px; text-align: center; border-radius: 4px; }
.cfm-agegate__box img { margin: 0 auto 20px; }
.cfm-agegate__box h5 { font-size: 18px; font-weight: 400; color: var(--gray); }
.cfm-agegate__box h3 { font-size: 30px; margin: 16px 0 24px; }
.cfm-agegate__buttons { display: flex; gap: 16px; justify-content: center; }
.cfm-agegate__buttons[hidden] { display: none; }
.cfm-btn--ghost { background: var(--gray); }
.cfm-agegate__denied h3 { margin-top: 16px; }

/* ============ Generic page (page.php) ============ */
.cfm-masthead--plain { background: var(--dark); min-height: 220px; }
.cfm-page__content { max-width: 800px; }
.cfm-page__content p, .cfm-page__content li { color: #333; }
/* Events plugin output gets page chrome but plugin-native styling */
.cfm-plugin-page .cfm-container, .cfm-page .tribe-events, .cfm-page .rt7-events { max-width: var(--container); }

/* ============ Solid header (plugin/archive pages without a theme masthead) ============ */
/*
 * Pages rendered via index.php (events archive/single, search, 404) have no
 * dark masthead to absorb the absolute-positioned header, so the header would
 * be invisible against white content.  We switch it to a solid dark bar and
 * push the main content down so nothing is hidden behind it.
 */
.cfm-has-solid-header .cfm-header {
  position: relative;
  background: var(--dark);
}
/* Give the plugin page main content breathing room — header is now in flow */
.cfm-has-solid-header .cfm-plugin-page {
  /* no extra top padding needed because header is position:relative (in flow) */
}

/* ============ Events archive (theme override of plugin template) ============ */
/* The cfm-masthead now serves as the page header, so the events list needs its
   own top breathing room (the plugin's .rt7-archive-header bar was dropped). */
.cfm-events-archive .rt7-archive-container { padding-top: 3.5rem; }
@media (max-width: 600px) {
  .cfm-events-archive .rt7-archive-container { padding-top: 2rem; }
}
