/* ===== Dante Society of Virginia — Main Stylesheet ===== */
:root {
  --green: #1B4332;
  --gold: #C8963E;
  --cream: #FAF3E0;
  --dark-green: #0D2B1F;
  --light-gold: #E8C97A;
  --white: #FFFFFF;
  --light-gray: #F5F0E8;
  --text-dark: #2D2D2D;
  --text-light: #5A5A5A;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--cream);
  background-image: url('../images/background2.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
}

/* ===== Navigation ===== */
.site-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--dark-green) 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

/* Custom logo (emblem uploaded via Site Identity) + wordmark */
.custom-logo {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--light-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gold);
  color: var(--dark-green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Hero Section =====
   Lighter overlay so the image reads as a feature; smaller title/tagline so the
   homepage feels welcoming rather than text-heavy. */
.hero {
  background: linear-gradient(rgba(27,67,50,0.5), rgba(13,43,31,0.62)), url('../images/background1.jpg');
  background-size: cover;
  background-position: center;
  color: var(--cream);
  text-align: center;
  padding: 64px 20px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.55);
}

.hero .tagline {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-separator {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto;
}

/* Opening-message box — a small welcome beneath the tagline. Filled in via
   Customize → Hero Section; shows a dashed placeholder until then. */
.hero-message {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 18px 24px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(200,150,62,0.55);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-message p { margin: 0 0 10px; }
.hero-message p:last-child { margin-bottom: 0; }

/* ===== Home Page template + Full Screen Hero block =====
   The Home Page template is a full-bleed canvas with the header overlaid on top;
   the Full Screen Hero block fills the viewport. Colours/text/button are set on
   the block; the background image comes from the Customizer hero setting. */

/* Full-bleed canvas: remove the normal content max-width/padding.
   Uses a doubled class so it beats the later `.main-content` rule. */
.main-content.main-content--flush {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Header floats over the hero instead of sitting above it. */
.page-template-template-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 43, 31, 0.55);
  border-bottom: 1px solid rgba(200, 150, 62, 0.35);
  box-shadow: none;
}
.admin-bar.page-template-template-home .site-header {
  top: 32px;
}

/* The hero section itself (background set inline by the block/render). */
.dante-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 100px; /* top padding clears the overlaid header */
  color: var(--cream);
}
.dante-hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55);
}
.dante-hero__line {
  width: 80px;
  height: 3px;
  margin: 18px auto;
}
.dante-hero__subtitle {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.dante-hero__button {
  display: inline-block;
  margin-top: 34px;
  padding: 16px 34px;
  color: var(--dark-green);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.dante-hero__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

@media (max-width: 700px) {
  .dante-hero {
    /* A shorter hero on phones means the background is scaled up less,
       so it looks sharper on tall retina screens. */
    min-height: 78vh;
    padding: 100px 18px 60px;
  }
  .dante-hero__title {
    font-size: 2rem;
  }
  .dante-hero__subtitle {
    font-size: 1.05rem;
  }
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(rgba(27,67,50,0.9), rgba(13,43,31,0.95));
  color: var(--cream);
  text-align: center;
  padding: 60px 20px;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.page-header .breadcrumb {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-card {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-top: 4px solid var(--gold);
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 20px;
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
  margin-top: 24px;
}

.content-card h3:first-of-type {
  margin-top: 0;
}

.content-card p {
  margin-bottom: 16px;
  color: var(--text-dark);
}

.content-card ul {
  margin: 12px 0 20px 24px;
}

.content-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #B07D2E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,150,62,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===== Event Cards ===== */
.event-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  margin-bottom: 20px;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  align-items: flex-start;
}

.event-card-image {
  width: 220px;
  min-width: 220px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-content {
  flex: 1;
}

.event-card-content .event-date {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.event-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green);
  margin: 0 0 8px;
}

.event-card-content p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ===== Board Grid ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.board-card {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  transition: transform 0.3s ease;
}

.board-card:hover {
  transform: translateY(-4px);
}

.board-card .board-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.board-card .board-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--green);
}

.officer-card {
  border-left: 4px solid var(--gold);
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
}

.officer-card .officer-initials {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

/* ===== Membership ===== */
.membership-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.tier-card {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
}

.tier-card .tier-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 8px;
}

.tier-card .tier-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.tier-card .tier-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Info Box ===== */
.info-box {
  background: var(--light-gray);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.info-box strong {
  color: var(--green);
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-info {
  margin-top: 30px;
}

.contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info .label {
  font-weight: 600;
  color: var(--green);
  min-width: 80px;
}

/* ===== Programs Section ===== */
.program-item {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.program-item .program-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
}

.program-item h3 {
  font-family: var(--font-heading);
  color: var(--green);
  margin: 4px 0 8px;
  font-size: 1.2rem;
}

/* ===== Newsletter Section ===== */
.newsletter-signup {
  background: linear-gradient(135deg, var(--green), var(--dark-green));
  border-radius: 12px;
  padding: 40px;
  color: var(--cream);
  text-align: center;
  margin-top: 30px;
}

.newsletter-signup h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.newsletter-signup p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: 12px 24px;
}

/* ===== Photo Gallery ===== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.photo-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== Photo Collage block (dante/photos) =====
   Masonry: pictures keep their natural shape and flow into as many columns as
   fit, wrapping down as needed. Column width sets the "size". */
.dante-photos {
  column-gap: 14px;
  margin: 8px 0;
}
.dante-photos--small  { columns: 180px; }
.dante-photos--medium { columns: 240px; }
.dante-photos--large  { columns: 320px; }

.dante-photo {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.dante-photo a { display: block; }
.dante-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.dante-photo:hover img {
  transform: scale(1.03);
}
.dante-photo figcaption {
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ===== Photos Page template (dark gallery, per the Lovable design) ===== */
body.page-template-template-photos {
  background: var(--dark-green);
}

.photos-header {
  text-align: center;
  padding: 60px 20px 6px;
  color: var(--cream);
}
.photos-eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
}
.photos-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--cream);
  margin: 8px 0 0;
}
.photos-sep {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}
.photos-intro {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(250, 243, 224, 0.82);
  line-height: 1.7;
}

.photos-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

/* Clean images with italic serif captions + a small gold rule — no cards. */
.page-template-template-photos .dante-photos {
  columns: 320px;
  column-gap: 28px;
}
.page-template-template-photos .dante-photo {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0 0 34px;
}
.page-template-template-photos .dante-photo img {
  border-radius: 3px;
}
.page-template-template-photos .dante-photo:hover img {
  transform: scale(1.02);
}
.page-template-template-photos .dante-photo figcaption {
  padding: 14px 6px 0;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--cream);
}
.page-template-template-photos .dante-photo figcaption::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 12px;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--green) 100%);
  color: var(--cream);
  padding: 40px 20px 20px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.85;
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--light-gold);
}

/* Footer "Quick Links" menu (wp_nav_menu output) — plain stacked links. */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin: 0 0 6px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== WordPress Admin Bar Spacing ===== */
.admin-bar .site-header {
  top: 32px;
}

/* ===== Image & block alignment =====
   Makes the image toolbar's Left / Center / Right alignment buttons actually
   work. (Alignment only shows an effect once an image is narrower than the
   column — drag the bottom-right handle to shrink it first.) */
.entry-content img,
.content-card img { max-width: 100%; height: auto; }

.wp-block-image { margin: 1.2em 0; }

.wp-block-image.aligncenter,
figure.aligncenter,
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.wp-block-image.aligncenter img { margin-left: auto; margin-right: auto; }

.wp-block-image.alignleft,
.alignleft {
  float: left;
  margin: 0.3em 1.5em 1em 0;
  max-width: 50%;
}
.wp-block-image.alignright,
.alignright {
  float: right;
  margin: 0.3em 0 1em 1.5em;
  max-width: 50%;
}

/* One-click labeled image alignment (the image "Styles" panel). */
.wp-block-image.is-style-align-center {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-image.is-style-align-center img { display: inline-block; }
.wp-block-image.is-style-align-left {
  float: left;
  margin: 0.3em 1.5em 1em 0;
  max-width: 50%;
}
.wp-block-image.is-style-align-right {
  float: right;
  margin: 0.3em 0 1em 1.5em;
  max-width: 50%;
}

/* Image-beside-text (Media & Text block): comfortable gap, vertical centering. */
.wp-block-media-text {
  gap: 32px;
  align-items: center;
  margin: 1.6em 0;
}
.wp-block-media-text img { height: auto; }

/* Clear floated images so following content doesn't wrap oddly. */
.entry-content::after,
.content-card::after { content: ""; display: table; clear: both; }

/* ===== Events list (custom post type) ===== */
.event-listing {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--light-gray);
}
.event-listing:last-child { border-bottom: none; }
.event-listing-text { flex: 1 1 60%; }
.event-listing-image { flex: 0 0 32%; max-width: 32%; }
.event-listing-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.event-listing-title { font-family: var(--font-heading); color: var(--green); margin-bottom: 6px; }
.event-listing-date { color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.event-listing-location { margin-bottom: 8px; }

/* ===== Events calendar (FullCalendar) ===== */
#dante-calendar,
#dante-calendar-popup {
  --fc-button-bg-color: var(--green);
  --fc-button-border-color: var(--green);
  --fc-button-hover-bg-color: var(--dark-green);
  --fc-button-hover-border-color: var(--dark-green);
  --fc-button-active-bg-color: var(--gold);
  --fc-button-active-border-color: var(--gold);
  --fc-today-bg-color: rgba(200, 150, 62, 0.12);
  --fc-event-bg-color: var(--gold);
  --fc-event-border-color: var(--gold);
  --fc-event-text-color: #ffffff;
  margin-top: 12px;
}
.fc .fc-toolbar-title { font-family: var(--font-heading); color: var(--green); font-size: 1.5rem; }
.fc .fc-button {
  text-transform: none;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: none !important;
}
.fc .fc-button:focus { box-shadow: none !important; }
.fc-event { cursor: pointer; }
.fc .fc-daygrid-day.fc-day-today { font-weight: 600; }
.events-calendar-hint { color: var(--text-light); font-size: 0.9rem; }

/* Brief highlight when the calendar scrolls to an event. */
.event-listing { scroll-margin-top: 90px; transition: background-color 0.4s ease; border-radius: 8px; }
.event-listing.event-highlight { background-color: rgba(200, 150, 62, 0.16); }

/* Sleeker, fits-on-mobile calendar. */
@media (max-width: 640px) {
  .fc .fc-toolbar.fc-header-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 1em;
  }
  .fc .fc-toolbar-title { font-size: 1.25rem; text-align: center; }
  .fc .fc-toolbar-chunk { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .fc .fc-button { padding: 6px 10px; font-size: 0.78rem; }
  .fc .fc-col-header-cell-cushion { font-size: 0.72rem; }
  .fc .fc-daygrid-day-number { font-size: 0.78rem; padding: 2px 4px; }
  .fc .fc-daygrid-day-frame { min-height: 44px; }
  .fc-daygrid-event { font-size: 0.68rem; padding: 1px 3px; }
  .fc .fc-daygrid-more-link { font-size: 0.68rem; }
}

/* ===== Calendar popup (from the nav) — cream modal, month + "this month" ===== */
.dante-cal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 31, 0.62);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9998;
  padding: 40px 20px;
  overflow-y: auto;
}
.dante-cal-overlay[hidden] { display: none; }
.dante-cal-modal {
  background: var(--cream);
  border-radius: 14px;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Header */
.dante-cal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(13, 43, 31, 0.12);
}
.dante-cal-title { font-family: var(--font-heading); color: var(--green); font-size: 1.6rem; margin: 0; }
.dante-cal-subtitle {
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: var(--text-light);
}
.dante-cal-close {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(13, 43, 31, 0.22);
  background: transparent;
  color: var(--green);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dante-cal-close:hover { background: rgba(13, 43, 31, 0.07); }

/* Two-column body */
.dante-cal-body {
  padding: 20px 26px 26px;
}
#dante-calendar-popup { min-width: 0; }

/* "This month" band — sits above the calendar toolbar. */
.dante-cal-side {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(13, 43, 31, 0.12);
}
.dante-cal-side-title {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.dante-cal-monthlist { display: flex; flex-wrap: wrap; gap: 12px; }
.dante-cal-item {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 240px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dante-cal-item:hover { background: #fff; }
.dante-cal-badge {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: var(--green);
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  line-height: 1;
}
.dante-cal-badge-mon { font-size: 0.58rem; letter-spacing: 1px; margin-bottom: 3px; }
.dante-cal-badge-day { font-size: 1.15rem; }
.dante-cal-item-title { font-family: var(--font-heading); color: var(--green); font-size: 1rem; }
.dante-cal-item-meta { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }
.dante-cal-empty { color: var(--text-light); font-size: 0.9rem; }

/* Month-only ("date TBA") events: month/year shows as the date, with an italic
   secondary note beneath it. */
.event-tba-note { color: var(--text-light); font-style: italic; margin-top: 2px; }
.dante-cal-item--tba { align-items: flex-start; }
.dante-cal-badge--tba { background: var(--gold); color: var(--green); }
.dante-cal-badge-tba { font-size: 0.6rem; letter-spacing: 1px; }
.dante-cal-item-notice { font-size: 0.85rem; color: var(--gold); font-weight: 600; font-style: italic; margin-top: 2px; }
.dante-cal-item-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
/* On the calendar grid, a month-only event reads as tentative, not fixed to the 1st. */
.fc-event.dante-event-tba {
  background: transparent !important;
  border: 1px dashed var(--gold) !important;
  color: var(--green) !important;
  font-style: italic;
}

/* FullCalendar theming inside the popup (light/cream, bordered buttons) */
.dante-cal-modal .fc-button {
  background: #fff !important;
  border: 1px solid rgba(13, 43, 31, 0.22) !important;
  color: var(--green) !important;
  font-weight: 600;
  text-transform: none;
  border-radius: 8px;
  box-shadow: none !important;
}
.dante-cal-modal .fc-button:hover { background: rgba(13, 43, 31, 0.07) !important; }
.dante-cal-modal .fc-button-primary:not(:disabled).fc-button-active { background: var(--green) !important; color: var(--cream) !important; }
.dante-cal-modal .fc-toolbar-title { font-size: 1.3rem; }
.dante-cal-modal .fc-col-header-cell-cushion {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
}
.dante-cal-modal .fc-daygrid-day-frame { min-height: 64px; }
.dante-cal-modal .fc-daygrid-day.fc-day-other { background: rgba(13, 43, 31, 0.03); }

@media (max-width: 820px) {
  .dante-cal-item { flex-basis: 100%; max-width: none; }
}

/* ===== Event popup modal ===== */
.dante-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 31, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.dante-modal-overlay[hidden] { display: none; }
.dante-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.dante-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--green);
}
.dante-modal-img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 8px;
}
.dante-modal h3 { font-family: var(--font-heading); color: var(--green); margin-bottom: 8px; }
.dante-modal-meta { color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.dante-modal-desc { color: var(--text-dark); line-height: 1.6; }

/* ===== Responsive =====
   The mobile/responsive rules are generated by PHP (see dante_responsive_css()
   in functions.php) so the breakpoint is adjustable from the Customizer
   (Appearance → Customize → Layout & Mobile). Default: 900px. */

/* ---- WordPress nav-menu markup compatibility ----
   WordPress (and the theme's menu fallback) renders the navigation as a
   <ul><li><a> list. The base styles above target bare <a> links, so these
   rules normalize the list markup back into the same horizontal nav. */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav li { margin: 0; padding: 0; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--gold);
  color: var(--dark-green);
}

/* ===== Membership Checkout (demo) ===== */
.checkout-main {
  max-width: 920px;
}

.checkout-demo-banner {
  background: #FFF6E0;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  color: var(--text-dark);
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.checkout-demo-banner strong { color: var(--green); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(13,43,31,0.18);
}

/* Brand summary panel */
.checkout-summary {
  background: var(--green);
  color: var(--cream);
  padding: 40px 36px;
}
.checkout-merchant {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.checkout-merchant-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-merchant-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
}
.checkout-summary-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--light-gold);
  margin-bottom: 6px;
}
.checkout-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.checkout-summary-plan {
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 28px;
}
.checkout-line-items {
  border-top: 1px solid rgba(250,243,224,0.2);
  padding-top: 18px;
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
  opacity: 0.9;
}
.checkout-line-total {
  border-top: 1px solid rgba(250,243,224,0.2);
  padding-top: 14px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 1;
}
.checkout-summary-note {
  margin-top: 28px;
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.5;
}

/* Payment form panel */
.checkout-form-panel {
  padding: 40px 36px;
}
.checkout-field {
  margin-bottom: 18px;
}
.checkout-field > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}
.checkout-field input[type="text"],
.checkout-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D0BE;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,62,0.18);
}
.checkout-card-group input { border-radius: 0; }
.checkout-card-group > input:first-child {
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}
.checkout-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.checkout-card-row input:first-child {
  border-radius: 0 0 0 8px;
  border-right: none;
}
.checkout-card-row input:last-child {
  border-radius: 0 0 8px 0;
}

/* Plan toggle */
.checkout-plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkout-plan-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #D8D0BE;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.checkout-plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-plan-option.is-selected {
  border-color: var(--gold);
  background: #FCF7EC;
  box-shadow: 0 0 0 2px rgba(200,150,62,0.25);
}
.checkout-plan-name {
  font-weight: 700;
  color: var(--green);
}
.checkout-plan-price {
  font-size: 0.85rem;
  color: var(--text-light);
}

.checkout-pay {
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
  padding: 14px;
}
.checkout-pay:disabled { opacity: 0.7; cursor: default; transform: none; }

.checkout-secure {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}
.checkout-secure strong { color: #635BFF; } /* Stripe blurple, for the look */

/* Success state */
.checkout-success {
  text-align: center;
  padding: 24px 8px;
}
.checkout-success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-success h2 {
  font-family: var(--font-heading);
  color: var(--green);
  margin-bottom: 12px;
}
.checkout-success-amount {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin: 14px 0;
}
.checkout-demo-reminder {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { padding: 28px 24px; }
  .checkout-form-panel { padding: 28px 24px; }
}
