:root {
  --brand-primary: #2e7d6e;
  --brand-primary-dark: #25685c;
  --brand-accent: #7b3f8c;
  --brand-accent-light: #9c6cb7;

  --white: #ffffff;
  --black: #1f2937;
  --bg-soft: #f8f9fa;
  --bg-muted: #f2f4f6;

  --text-primary: #1f2732;
  --text-secondary: #556274;
  --text-muted: #6b7280;

  --border-soft: rgba(0, 0, 0, 0.08);
  --border-med: rgba(0, 0, 0, 0.12);

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);

  --success: #2e7d32;
  --info: #2563eb;
  --warning: #d97706;
  --danger: #b91c1c;

  --ring: rgba(46, 125, 110, 0.35);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
}

/* ================================ Base ================================ */
body {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-soft);
}

/* Headings */
h1 {
  font-size: 2.75rem;
  font-weight: 600;
}
h2 {
  font-size: 2.25rem;
  font-weight: 600;
}
h3 {
  font-size: 1.75rem;
  font-weight: 600;
}
h4 {
  font-size: 1.375rem;
  font-weight: 600;
}
h5 {
  font-size: 1.125rem;
  font-weight: 500;
}
h6 {
  font-size: 1rem;
  font-weight: 500;
}
.lead {
  font-size: 1.125rem;
  font-weight: 400;
}
.small {
  font-size: 0.875rem;
}

.text-muted {
  color: var(--text-muted);
}

.section-pad {
  padding: var(--space-8) 0;
}
@media (max-width: 576px) {
  .section-pad {
    padding: var(--space-7) 0;
  }
}

/* ================================ Canonical Page Scaffold ================================ */
.container-content {
  max-width: 1100px;
}

.rhythm-page > * + * {
  margin-top: var(--space-7);
}

.rhythm-block > * + * {
  margin-top: var(--space-4);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.section-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.section-title {
  margin: 0;
  line-height: 1.05;
}

.section-subtitle {
  margin: var(--space-3) 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .rhythm-page > * + * {
    margin-top: var(--space-6);
  }

  .section-header {
    margin-bottom: var(--space-5);
  }
}

.bg-soft {
  background: var(--bg-soft);
}
.border-soft {
  border: 1px solid var(--border-soft);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ================================ Buttons ================================ */
.btn-accent {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
}
.btn-accent:hover,
.btn-accent:focus {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--white);
}
.btn-outline-accent {
  background: transparent;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  font-weight: 500;
}
.btn-outline-accent:hover {
  background: var(--brand-accent-light);
  border-color: var(--brand-accent-light);
  color: var(--white);
}

/* Primary CTA (Register) */
.btn-register {
  background: var(--black);
  border: 1px solid var(--black);
  color: var(--white);
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.btn-register:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ================================ Masthead ================================ */
.masthead {
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
}
.masthead .container {
  position: relative;
  z-index: 1;
}
.masthead-content {
  max-width: 640px;
  margin: 40px;
}
.masthead-wordmark {
  display: block;
  max-width: min(520px, 90%);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}
.hero-tagline {
  display: inline-block;
  font-weight: 100;
  letter-spacing: 0.01em;
  padding: 1px 8px;
  margin-left: -8px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
@media (max-width: 576px) {
  .masthead {
    min-height: 55vh;
  }
  .masthead-wordmark {
    max-width: 85%;
  }
}

/* ================================ Sub Page Masthead ================================ */
.masthead--sub {
  display: flex;
  align-items: center;
  min-height: 400px;
}

/* Overlay for text readability */
.masthead--sub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

/* Ensure content sits above overlay */
.masthead--sub .container {
  position: relative;
  z-index: 1;
}

/* Limit line width for readability */
.masthead--sub .masthead-content {
  max-width: 640px;
}

/* ================================ Cards ================================ */
.card-clean {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card-clean:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ================================ Tool Cards (Unified + Equal Height) ================================ */
/* Make each Bootstrap column stretch its child */
.hub-grid .row > [class*="col"] {
  display: flex;
}
/* Anchor fills the column */
.tool-card {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
/* Card container */
.tool-card__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
/* Icon */
.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46, 125, 110, 0.1);
  color: var(--brand-primary);
  flex: 0 0 auto;
}
.tool-card__icon i {
  font-size: 20px;
}
/* Body stretches to keep chevron aligned */
.tool-card__body {
  flex: 1 1 auto;
  min-width: 0;
}
.tool-card__title {
  font-weight: 600;
  line-height: 1.2;
}
.tool-card__desc {
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.25;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Chevron */
.tool-card__chev {
  margin-left: auto;
  font-size: 22px;
  opacity: 0.35;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
/* Hover */
.tool-card:hover .tool-card__inner {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}
.tool-card:hover .tool-card__chev {
  transform: translateX(3px);
  opacity: 0.6;
}
/* Focus */
.tool-card:focus-visible .tool-card__inner {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* ================================ Layout ================================ */
.hub-grid {
  max-width: 1100px;
  margin: 0 auto;
}

/* ================================ Home Hub Grid ================================ */
.hub-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hub-section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-8);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.hub-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 112px;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-med);
}

.hub-card:focus-visible {
  outline: none;
  box-shadow:
    var(--shadow-hover),
    0 0 0 3px var(--ring);
}

.hub-card-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--brand-accent);
  font-size: 1.3rem;
}

.hub-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hub-card-title {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

.hub-card-text {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.hub-card-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}

.hub-card:hover .hub-card-arrow {
  transform: translateX(3px);
  color: var(--text-secondary);
}

.hub-card:active {
  transform: translateY(-1px);
}

.hub-feature-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.hub-feature-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub-feature-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hub-card-feature {
  width: 100%;
  max-width: 520px;
  min-height: 124px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border-color: var(--border-med);
}

.hub-card-feature .hub-card-icon {
  background: var(--bg-muted);
}

/* ================================ Home Hero Art Direction ================================ */
.hero-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-banner.masthead::before {
  content: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 35%,
    rgba(0, 0, 0, 0.05) 65%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-banner .btn,
.hero-banner .hero-cta {
  padding: 14px 26px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.hero-banner .btn:hover,
.hero-banner .hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.02);
}

.hero-banner .btn:active,
.hero-banner .hero-cta:active {
  transform: translateY(0);
}

@media (max-width: 991px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hub-grid-wrap {
    gap: var(--space-5);
  }

  .hub-card,
  .hub-card-feature {
    min-height: 100px;
    padding: var(--space-4);
    border-radius: 20px;
  }

  .hub-card-title {
    font-size: 1.25rem;
  }

  .hub-card-text {
    font-size: 0.95rem;
  }

  .hub-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.1rem;
  }
}

/* ========================= SOFT HEADER GRADIENT ========================= */
.page-header {
  background: linear-gradient(
    135deg,
    rgba(46, 125, 110, 0.06) 0%,
    rgba(123, 63, 140, 0.04) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ================================ CALENDAR + EVENTS ================================ */
/* =================================
   FILTER COLOR MAPPING
================================= */

/* All */
.filter-btn[data-type="all"].active,
.filter-btn[data-filter="all"].active {
  background: var(--text-primary);
  color: var(--white);
}

/* Training */
.filter-btn[data-type="training"].active,
.filter-btn[data-filter="training"].active {
  background: var(--brand-primary);
  color: var(--white);
}

/* Class / Calls */
.filter-btn[data-type="class"].active,
.filter-btn[data-type="call"].active,
.filter-btn[data-filter="class"].active,
.filter-btn[data-filter="call"].active {
  background: var(--info);
  color: var(--white);
}

/* Retreat */
.filter-btn[data-type="retreat"].active,
.filter-btn[data-type="retreats"].active,
.filter-btn[data-filter="retreat"].active,
.filter-btn[data-filter="retreats"].active {
  background: var(--brand-accent);
  color: var(--white);
}

/* Service */
.filter-btn[data-type="service"].active,
.filter-btn[data-filter="service"].active {
  background: var(--warning);
  color: var(--white);
}

.filter-btn.active {
  box-shadow: var(--shadow-soft);
}

/* =================================
   FILTER CATEGORY DOTS
================================= */

/* dot base */
.filter-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--text-muted); /* default */
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03);
}

/* category colors */
.filter-btn[data-type="training"]::before,
.filter-btn[data-filter="training"]::before {
  background: var(--brand-primary);
}

.filter-btn[data-type="class"]::before,
.filter-btn[data-type="call"]::before,
.filter-btn[data-filter="class"]::before,
.filter-btn[data-filter="call"]::before {
  background: var(--info);
}

.filter-btn[data-type="service"]::before,
.filter-btn[data-filter="service"]::before {
  background: var(--warning);
}

.filter-btn[data-type="retreat"]::before,
.filter-btn[data-type="retreats"]::before,
.filter-btn[data-filter="retreat"]::before,
.filter-btn[data-filter="retreats"]::before {
  background: var(--brand-accent);
}

/* optional: keep dot visible when active */
.filter-btn.active::before {
  background: currentColor;
}

/* Filter Buttons */
.event-filters {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  margin-bottom: var(--space-4);
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.filter-btn:not(.active):hover {
  background: rgba(46, 125, 110, 0.08);
  color: var(--brand-primary);
}

/* ===============================
   Event Toolbar
================================ */

.event-toolbar {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.event-filters {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.filter-btn {
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.filter-btn:not(.active):hover {
  transform: translateY(-1px);
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.event-toolbar-logout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.event-toolbar-logout:hover {
  transform: translateY(-2px);
  border-color: var(--border-med);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}

@media (max-width: 767.98px) {
  .event-toolbar {
    align-items: flex-start;
  }

  .event-toolbar-logout {
    margin-left: 0;
    transform: none;
  }

  .event-toolbar-logout:hover {
    transform: translateY(-1px);
  }
}

/* Calendar container */
#calendar {
  background: var(--white);
  padding: var(--space-5);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* FullCalendar typography */
.fc .fc-toolbar-title {
  font-weight: 650;
  font-size: 1.6rem;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

/* Frosted toolbar */
.fc-header-toolbar {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Toolbar buttons */
.fc .fc-button {
  background: var(--text-primary);
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}

.fc .fc-button:hover {
  background: var(--brand-primary);
}
.fc .fc-button-active {
  background: var(--brand-primary) !important;
}

/* Today button */
.fc .fc-today-button {
  background: var(--text-muted);
}
.fc .fc-today-button:hover {
  background: var(--brand-primary);
}

/* View toggle pills */
.fc-button-group {
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 999px;
}

.fc-button-group .fc-button {
  border-radius: 999px;
  padding: 6px 16px;
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
}

.fc-button-group .fc-button-active {
  background: var(--text-primary) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Grid borders */
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: rgba(0, 0, 0, 0.05);
}

/* Day number */
.fc-daygrid-day-number {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Today cell */
.fc-day-today {
  background: rgba(46, 125, 110, 0.08) !important;
}

/* Event blocks */
.fc-event {
  border-radius: 8px;
  padding: 3px 6px;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.fc-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* List view contrast/accessibility */
.fc .fc-list-event:hover td {
  background: var(--bg-muted);
}

.fc .fc-list-event:hover .fc-list-event-time,
.fc .fc-list-event:hover .fc-list-event-title a {
  color: var(--text-primary) !important;
}

.fc .fc-list-event.event-type-training td {
  background: var(--brand-primary) !important;
  color: var(--white) !important;
}

.fc .fc-list-event.event-type-class td,
.fc .fc-list-event.event-type-call td {
  background: var(--info) !important;
  color: var(--white) !important;
}

.fc .fc-list-event.event-type-service td {
  background: var(--warning) !important;
  color: var(--white) !important;
}

.fc .fc-list-event.event-type-retreat td,
.fc .fc-list-event.event-type-retreats td,
.fc .fc-list-event.event-type-local td {
  background: var(--brand-accent) !important;
  color: var(--white) !important;
}

.fc .fc-list-event.event-type-training .fc-list-event-title a,
.fc .fc-list-event.event-type-class .fc-list-event-title a,
.fc .fc-list-event.event-type-call .fc-list-event-title a,
.fc .fc-list-event.event-type-service .fc-list-event-title a,
.fc .fc-list-event.event-type-retreat .fc-list-event-title a,
.fc .fc-list-event.event-type-retreats .fc-list-event-title a,
.fc .fc-list-event.event-type-local .fc-list-event-title a,
.fc .fc-list-event.event-type-training .fc-list-event-time,
.fc .fc-list-event.event-type-class .fc-list-event-time,
.fc .fc-list-event.event-type-call .fc-list-event-time,
.fc .fc-list-event.event-type-service .fc-list-event-time,
.fc .fc-list-event.event-type-retreat .fc-list-event-time,
.fc .fc-list-event.event-type-retreats .fc-list-event-time,
.fc .fc-list-event.event-type-local .fc-list-event-time {
  color: var(--white) !important;
}

/* Event type system */
.event-type-training {
  background: var(--brand-primary) !important;
  color: var(--white) !important;
}
.event-type-call {
  background: var(--info) !important;
  color: var(--white) !important;
}
.event-type-local {
  background: var(--brand-accent) !important;
  color: var(--white) !important;
}
.event-type-service {
  background: var(--warning) !important;
  color: var(--white) !important;
}

/* Backward-compatible aliases */
.event-type-class {
  background: var(--info) !important;
  color: var(--white) !important;
}
.event-type-retreat,
.event-type-retreats {
  background: var(--brand-accent) !important;
  color: var(--white) !important;
}

/* Modal Styling */
.event-modal {
  border-radius: 18px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.event-modal .modal-header {
  padding: 24px 28px 0 28px;
}
.event-modal .modal-body {
  padding: 20px 28px 28px 28px;
}

/* Badge system */
.event-badge,
.badge-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.badge-training {
  background: var(--brand-primary);
  color: var(--white);
}
.badge-call {
  background: var(--info);
  color: var(--white);
}
.badge-local {
  background: var(--brand-accent);
  color: var(--white);
}
.badge-service {
  background: var(--warning);
  color: var(--white);
}
.badge-general {
  background: var(--text-muted);
  color: var(--white);
}

/* Backward-compatible badge aliases */
.badge-class {
  background: var(--info);
  color: var(--white);
}
.badge-retreat,
.badge-retreats {
  background: var(--brand-accent) !important;
  color: var(--white) !important;
}

/* Event meta row */
.event-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-4);
  align-items: start;
  margin-top: var(--space-4);
}

.event-meta-item {
  display: contents;
}

.event-meta-icon {
  color: var(--text-secondary);
  font-size: 1rem;
}

.event-meta-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.event-meta-link {
  color: var(--brand-primary);
  text-decoration: none;
}

.event-meta-link:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .event-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
    row-gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
  }

  #calendar {
    padding: var(--space-3);
    max-width: 100%;
    overflow: hidden;
  }

  .fc .fc-toolbar-title {
    font-size: 1.25rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .fc-header-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .fc-header-toolbar .fc-toolbar-chunk {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }

  .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
    order: 1;
  }

  .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) {
    order: 2;
  }

  .fc-header-toolbar .fc-toolbar-chunk:nth-child(3) {
    order: 3;
  }

  .fc .fc-button {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  .fc-button-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 6px;
  }
}

/* =================================
   MOBILE CALENDAR IMPROVEMENTS
================================= */
@media (max-width: 576px) {
  #calendar {
    padding: var(--space-2);
    border-radius: 14px;
  }

  .fc-header-toolbar {
    padding: 10px;
    border-radius: 12px;
    gap: 10px;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .fc .fc-toolbar-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .fc .fc-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .fc-button-group {
    padding: 3px;
  }

  .fc-button-group .fc-button {
    padding: 6px 14px;
  }

  /* If user switches back to month view on mobile */
  .fc .fc-daygrid-day-number {
    font-size: 0.9rem;
  }

  .fc .fc-col-header-cell-cushion {
    font-size: 0.82rem;
    padding: 4px 0;
  }

  .fc .fc-daygrid-event {
    font-size: 0.72rem;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 6px;
  }

  /* Make list view breathe a bit more */
  .fc .fc-list-event-title a {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .fc .fc-list-event-time {
    font-size: 0.82rem;
    color: var(--text-secondary);
  }
}

/* ================================ Newsletter ================================ */

.page-header {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.card-clean {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.card-clean__body {
  padding: var(--space-5);
}

.card-clean--featured {
  background: var(--bg-soft);
}

.pill,
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.link-accent {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: none;
}

.link-accent:hover,
.link-accent:focus {
  text-decoration: underline;
}

.text-secondary {
  color: var(--text-secondary);
}

.rhythm > * + * {
  margin-top: var(--space-5);
}

.rhythm-tight > * + * {
  margin-top: var(--space-3);
}

.toolbar-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (max-width: 767.98px) {
  .page-header {
    padding-top: var(--space-7);
    padding-bottom: var(--space-5);
  }

  .card-clean__body {
    padding: var(--space-4);
  }

  .toolbar-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -----------------------------------
   NEWSLETTER PAGE
----------------------------------- */

.newsletter-main {
  position: relative;
  z-index: 2;
}

.newsletter-feature-wrap {
  margin-top: calc(var(--space-7) * -1);
  margin-bottom: var(--space-7);
  position: relative;
  z-index: 3;
}

.newsletter-feature-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.newsletter-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  min-height: 100%;
}

.newsletter-feature-copy {
  padding: var(--space-6);
}

.newsletter-feature-side {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-muted) 100%);
  border-left: 1px solid var(--border-soft);
  display: flex;
}

.newsletter-feature-side-inner {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.newsletter-feature-side-kicker,
.newsletter-section-kicker,
.newsletter-feature-label {
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.newsletter-feature-label-wrap {
  padding-top: var(--space-1);
}

.newsletter-feature-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  max-width: 18ch;
}

.newsletter-feature-excerpt {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 62ch;
}

.newsletter-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.newsletter-feature-side-title {
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
}

.newsletter-feature-side-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.newsletter-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.newsletter-meta-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.newsletter-meta-divider {
  color: var(--text-muted);
  opacity: 0.7;
}

/* -----------------------------------
   NEWSLETTER FILTERS
----------------------------------- */
.newsletter-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  margin-top: var(--space-4);
}

.newsletter-filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.newsletter-filter:hover,
.newsletter-filter:focus {
  border-color: var(--border-med);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.newsletter-filter.is-active {
  background: var(--bg-soft);
  border-color: var(--brand-accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

/* -----------------------------------
   NEWSLETTER BADGES
----------------------------------- */

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.newsletter-badge:hover,
.newsletter-badge:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Category color mapping
   Keep this restrained. Earth-tone system first, accent second.
*/

.newsletter-badge--leadership {
  background: var(--bg-soft);
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.newsletter-badge--tools {
  background: var(--bg-soft);
  border-color: var(--info);
  color: var(--text-primary);
}

.newsletter-badge--events {
  background: var(--bg-soft);
  border-color: var(--brand-accent);
  color: var(--text-primary);
}

.newsletter-badge--justsharegpt {
  background: var(--bg-soft);
  border-color: var(--success);
  color: var(--text-primary);
}

/* Optional hover emphasis per category */

.newsletter-badge--leadership:hover,
.newsletter-badge--leadership:focus {
  border-color: var(--brand-primary);
}

.newsletter-badge--tools:hover,
.newsletter-badge--tools:focus {
  border-color: var(--info);
}

.newsletter-badge--events:hover,
.newsletter-badge--events:focus {
  border-color: var(--brand-accent);
}

.newsletter-badge--justsharegpt:hover,
.newsletter-badge--justsharegpt:focus {
  border-color: var(--success);
}

.newsletter-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.newsletter-title-link:hover,
.newsletter-title-link:focus {
  color: var(--brand-primary);
}

.newsletter-section-head {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-soft);
}

.newsletter-archive {
  padding-bottom: var(--space-7);
}

.newsletter-preview-section {
  padding-bottom: var(--space-6);
}

.newsletter-issue-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.newsletter-issue-card:hover,
.newsletter-issue-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-med);
}

.newsletter-issue-card__body {
  height: 100%;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.newsletter-issue-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.newsletter-issue-excerpt {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.newsletter-issue-footer {
  padding-top: var(--space-2);
}

.newsletter-read-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}

.newsletter-preview-card {
  height: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.newsletter-preview-card__body {
  height: 100%;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.newsletter-preview-footer {
  padding-top: var(--space-2);
  margin-top: auto;
}

.newsletter-preview-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

/* -----------------------------------
   EMPTY STATE
----------------------------------- */

.newsletter-empty-state {
  padding: var(--space-6);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  text-align: center;
}

/* -----------------------------------
   SUBSCRIBE STRIP
----------------------------------- */

.newsletter-subscribe {
  padding: var(--space-7) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
}

.newsletter-subscribe__card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.newsletter-subscribe__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
}

.newsletter-subscribe__copy {
  max-width: 620px;
}

.newsletter-subscribe__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.newsletter-subscribe__title {
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.newsletter-subscribe__text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.newsletter-subscribe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.newsletter-signup-card__copy {
  max-width: 42rem;
}

.newsletter-signup-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
}

.newsletter-signup-form__input {
  flex: 1 1 360px;
  min-height: 52px;
}

.newsletter-signup-form__button {
  min-height: 52px;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

/* -----------------------------------
   OPTIONAL HERO REFINEMENT
----------------------------------- */

.newsletter-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.newsletter-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.32) 34%,
    rgba(0, 0, 0, 0.12) 62%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

.newsletter-hero .container {
  position: relative;
  z-index: 2;
}

.newsletter-hero__content {
  max-width: 760px;
  color: var(--white);
  padding-top: var(--space-7);
  padding-bottom: var(--space-8);
}

.newsletter-hero__eyebrow {
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--white);
  opacity: 0.88;
}

.newsletter-hero__title {
  margin: 0 0 var(--space-4);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
  color: var(--white);
}

.newsletter-hero__text {
  display: inline-block;
  margin: 0;
  max-width: 55ch;
  font-size: 1.2rem;
  font-weight: 100;
  letter-spacing: 0.01em;
  line-height: 1.55;
  padding: 1px 8px;
  margin-left: -8px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */

@media (max-width: 991.98px) {
  .newsletter-feature-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-feature-side {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }

  .newsletter-feature-title {
    max-width: none;
  }

  .newsletter-feature-wrap {
    margin-top: calc(var(--space-6) * -1);
  }

  .newsletter-hero {
    min-height: 360px;
  }

  .newsletter-hero__text {
    max-width: 34ch;
  }
}

@media (max-width: 767.98px) {
  .newsletter-feature-copy,
  .newsletter-feature-side-inner,
  .newsletter-issue-card__body {
    padding: var(--space-4);
  }

  .newsletter-feature-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-feature-actions .btn {
    width: 100%;
  }

  .newsletter-feature-wrap {
    margin-top: calc(var(--space-5) * -1);
    margin-bottom: var(--space-6);
  }

  .newsletter-hero {
    min-height: 320px;
  }

  .newsletter-hero__content {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .newsletter-hero__text {
    max-width: 30ch;
    font-size: 1.05rem;
  }

  .newsletter-issue-title {
    font-size: 1.3rem;
  }

  .newsletter-subscribe__inner {
    padding: var(--space-4);
  }

  .newsletter-subscribe__actions {
    width: 100%;
    flex-direction: column;
  }

  .newsletter-subscribe__actions .btn {
    width: 100%;
  }

  .newsletter-signup-form {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .newsletter-signup-form__input,
  .newsletter-signup-form__button {
    width: 100%;
  }
}

/* ================================
   Newsletter Feature Card Upgrade
================================ */

.newsletter-feature-card {
  border-radius: 26px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.08),
    0 18px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

@media (max-width: 991px) {
  .newsletter-feature-card {
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  .newsletter-feature-card {
    transform: none;
  }
}

/* ================================
   Newsletter Hero -> Feature Math
================================ */

:root {
  --newsletter-overlap: 88px;
}

/* control the overlap consistently */
.newsletter-feature-wrap {
  margin-top: calc(var(--newsletter-overlap) * -1);
}

/* adjust hero padding so the card lands correctly */
.newsletter-hero {
  padding-bottom: calc(var(--newsletter-overlap) + var(--space-6));
}

/* tablet */
@media (max-width: 991px) {
  :root {
    --newsletter-overlap: 64px;
  }
}

/* mobile */
@media (max-width: 767px) {
  :root {
    --newsletter-overlap: 0px;
  }

  .newsletter-feature-wrap {
    margin-top: var(--space-5);
  }
}

/* ================================
   Newsletter Hero Cinematic Overlay
================================ */

.newsletter-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* layered cinematic gradient */
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.38) 28%,
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.32) 100%
    ),
    radial-gradient(
      circle at 30% 35%,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 45%
    );

  -webkit-backdrop-filter: saturate(1.05);
  backdrop-filter: saturate(1.05);
}

/* ================================
   Newsletter Editorial Headline
================================ */

.newsletter-feature-title {
  font-size: 2.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  display: inline-block;
  max-width: fit-content;
}

.newsletter-feature-excerpt {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 45ch;
  color: var(--text-secondary);
}

/* tablet */
@media (max-width: 991px) {
  .newsletter-feature-title {
    font-size: 2.2rem;
  }
}

/* mobile */
@media (max-width: 767px) {
  .newsletter-feature-title {
    font-size: 1.7rem;
    line-height: 1.15;
    max-width: 100%;
  }
}

/* ================================ Field Guide Components ================================ */
.field-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-4);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.field-meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.field-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.field-image-placeholder {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  background: var(--white);
  border: 1px dashed var(--border-med);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.field-image-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.field-image-placeholder p {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.field-directive {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: linear-gradient(
    135deg,
    rgba(46, 125, 110, 0.08) 0%,
    rgba(123, 63, 140, 0.05) 100%
  );
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.field-directive h3 {
  margin: 0 0 var(--space-2);
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.field-directive p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .field-meta {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .field-image-placeholder,
  .field-directive {
    padding: var(--space-4);
    border-radius: 18px;
  }

  .field-directive p {
    font-size: 1rem;
  }
}

/* ================================ Footer ================================ */

.pre-footer {
  background: var(--bg-soft);
  padding: var(--space-7) var(--space-5);
  border-top: 1px solid var(--border-soft);
}

.pre-footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.pre-footer-text h3 {
  margin: 0 0 var(--space-2);
}

.pre-footer-text p {
  color: var(--text-secondary);
  margin: 0;
}

.pre-footer-action {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pre-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer intro row */
/* Footer intro row */
.footer-intro {
  max-width: 1200px;
  margin: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-intro-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.footer-intro-link {
  text-decoration: none;
  color: var(--brand-primary);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.footer-intro-link:hover,
.footer-intro-link:focus {
  color: var(--brand-primary-dark);
  transform: translateX(2px);
}

/* divider */
.footer-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0 var(--space-5);
}

/* brand name */
/* brand name */
.footer-brand-name {
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.site-footer {
  margin-top: 0;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}

/* footer main grid */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 var(--space-4);
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 10px;
}

/* footer links */
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  font-size: 0.96rem;
  line-height: 1.4;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--brand-primary);
  text-decoration: none;
  transform: translateX(2px);
}

/* footer mission */
.footer-mission {
  margin: 0 0 var(--space-4);
  max-width: 26ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* footer built */
.footer-built {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* footer social */
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--white);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* footer newsletter */
.footer-newsletter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 600;
  background: var(--white);
  white-space: nowrap;
  vertical-align: middle;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.footer-newsletter > * {
  line-height: 1;
}

.footer-newsletter:hover,
.footer-newsletter:focus {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* footer bottom */
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-3) var(--space-5);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .footer-intro {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 640px) {
  .footer-intro {
    padding: var(--space-4);
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-5) var(--space-4);
    gap: var(--space-4);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-col h4 {
    margin-bottom: var(--space-2);
  }

  .footer-col li + li {
    margin-top: 6px;
  }

  .footer-mission {
    margin-bottom: var(--space-3);
  }

  .footer-built {
    margin-bottom: var(--space-3);
  }

  .footer-social {
    margin-bottom: var(--space-2);
  }

  .footer-col a:hover,
  .footer-col a:focus,
  .footer-intro-link:hover,
  .footer-intro-link:focus {
    transform: none;
  }

  .footer-bottom {
    padding: var(--space-4);
  }

  .footer-bottom-inner {
    min-height: 24px;
  }
}

/* Field Guide meta header — Apple-style documentation grid */

.field-meta {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 32px;
  margin-bottom: 40px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.field-meta-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-meta-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* responsive collapse */

@media (max-width: 768px) {
  .field-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* JustShare Field Guide buttons */

.btn-primary-action {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-primary-action:hover,
.btn-primary-action:focus {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--white);
}

.btn-secondary-action {
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  background: transparent;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-secondary-action:hover,
.btn-secondary-action:focus {
  background: var(--bg-soft);
  color: var(--brand-accent);
}
