/*
Theme Name:   Kadence Child — HFA
Theme URI:    https://github.com/EntropicElf/hfa1888
Description:  Child theme for Hammonasset Fishing Association. All HFA-specific styles live here.
Author:       Eric Elves
Template:     kadence
Version:      1.0.4
*/

/* ═══════════════════════════════════════════
   HFA SIDEBAR NAVIGATION
   ═══════════════════════════════════════════ */

/* Flex row — sidebar left, content right, no footer */
#wrapper.site {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 100vh;
}

#masthead {
  flex: 0 0 260px;
  width: 260px;
  background: var(--global-palette1) !important;
  display: flex !important;
  flex-direction: column;
}

#inner-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
  max-width: calc(100vw - 260px);
}

#colophon {
  display: none !important;
}

/* Strip height constraints from all intermediate wrappers */
#main-header,
.site-header-inner-wrap,
.site-header-upper-wrap,
.site-header-upper-inner-wrap,
.site-main-header-wrap,
.site-header-row-container-inner {
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: unset !important;
  background: transparent !important;
  flex-shrink: 0;
}

.site-main-header-wrap .site-container {
  max-width: 100% !important;
  padding: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.site-main-header-inner-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: unset !important;
  height: auto !important;
}

@media (max-width: 1024px) {
  .site-main-header-inner-wrap {
    flex-direction: row !important;
    max-height: 110px !important;
    justify-content: space-between !important;
    #mobile-toggle {
      color: white !important;
    }
    .brand.has-logo-image {
      margin-top: .5rem;
      max-width: 10rem;
      gap: unset;
      img {
        height: 3rem;
        width: auto;
      }
      .site-title {
        display: block !important;
      }
    }
  }
}

/* ── Logo area ─────────────────────────────── */
.site-header-main-section-left {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.site-branding a.brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.site-branding .custom-logo {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  border-radius: .5rem;
}

.site-branding .site-title-wrap {
  display: block;
}

.site-branding .site-title,
.site-branding a .site-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff !important;
  line-height: 1.5;
  margin: 0;
}

/* ── Nav section ───────────────────────────── */
.site-header-main-section-right {
  display: block;
  padding: 12px 0 24px;
  overflow: visible;
  height: auto !important;
}

.site-header-item.site-header-focus-item.site-header-item-main-navigation {
  width: 100% !important;
  padding: 0.5rem !important;
  box-sizing: border-box;
}

#site-navigation,
.main-navigation,
.primary-menu-container,
.header-menu-container {
  width: 100% !important;
  display: block;
  height: auto !important;
}

#primary-menu.menu {
  display: flex !important;
  flex-direction: column !important;
  list-style: none;
  margin: 0;
  padding: .5rem .5rem .5rem 0;
  height: auto !important;
  width: 100%;
}

#primary-menu > li.menu-item {
  width: 100%;
  position: relative;
}

#primary-menu > li.menu-item > a {
  display: block !important;
  padding: 10px 20px 10px 24px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13.5px !important;
  font-weight: 500;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  line-height: 1.5;
}

#primary-menu > li.menu-item > a:hover,
#primary-menu > li.menu-item.current-menu-item > a,
#primary-menu > li.menu-item.current-menu-ancestor > a {
  color: var(--global-palette2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-left-color: var(--global-palette2) !important;
}

/* ── Sub-menu: always open ─────────────────── */
#primary-menu .sub-menu {
  position: static !important;
  transform: none !important;
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: rgba(0, 0, 0, 0.18) !important;
  box-shadow: none !important;
  min-width: unset !important;
  width: 100% !important;
  padding: 4px 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

#primary-menu .sub-menu li.menu-item {
  border-bottom: none !important;
}

#primary-menu .sub-menu li.menu-item > a {
  padding: 7px 20px 7px 40px !important;
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  width: auto !important;
  display: block;
  border-left: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

#primary-menu .sub-menu li.menu-item > a:hover {
  color: var(--global-palette2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-left-color: var(--global-palette2) !important;
}

/* Hide Kadence dropdown arrow/toggle */
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a::after {
  display: none !important;
}
.dropdown-nav-special-toggle {
  display: none !important;
}

/* ═══════════════════════════════════════════
   HFA MAIN CONTENT AREA
   ═══════════════════════════════════════════ */

/* Remove default Kadence white box / shadow from page entries */
.entry.content-bg.single-entry {
  background-color: unset !important;
  box-shadow: none !important;
}

/* Hide Kadence hero title bar — all pages use in-content h1 */
.entry-hero {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--global-palette1) !important;
}

/* ── Hide mobile elements on desktop ──────── */
@media (min-width: 1025px) {
  #mobile-drawer,
  .mobile-toggle-open-container,
  .mobile-navigation {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════
   HFA BUTTON SYSTEM
   ═══════════════════════════════════════════ */

/* ── Primary button ────────────────────────
   Dark green fill, gold hover.
   Applied to all native WP/UM buttons + .hfa-btn */
#wrapper {
  .hfa-btn,
  .hfa-print-btn,
  .wp-block-button__link,
  .wp-block-button .wp-element-button,
  input[type="submit"],
  button[type="submit"],
  .um-button,
  .um-do-search,
  .button,
  .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px !important;
    background: var(--global-palette1) !important;
    color: #fff !important;
    border: 2px solid transparent !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
    box-shadow: none !important;
  }

  .hfa-btn:hover,
  .hfa-print-btn:hover,
  .wp-block-button__link:hover,
  .wp-block-button .wp-element-button:hover,
  input[type="submit"]:hover,
  button[type="submit"]:hover,
  .um-button:hover,
  .um-do-search:hover,
  .button:hover,
  .btn:hover {
    background: var(--global-palette2) !important;
    color: var(--global-palette1) !important;
    border-color: transparent !important;
    text-decoration: none !important;
    font-weight: 500 !important;
  }

  .um-do-search.um-button {
    padding: .75rem !important;
    font-weight: 500 !important;
  }

  #hfa-import-btn {
    display: none !important;
  }
  .hfa-gallery-filters {
    .hfa-year-btn {
      border-radius: .25rem !important;
    }
    .hfa-year-btn:hover {
      background: var(--global-palette2) !important;
        color: var(--global-palette1) !important;
        border: 1px solid var(--global-palette2) !important;
    }
  }
}
/* ── Secondary button ──────────────────────
   Outlined, transparent fill, dark green border. */
#wrapper {
  .hfa-btn-secondary,
  .hfa-reset-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px !important;
    background: transparent !important;
    color: var(--global-palette1) !important;
    border: 2px solid var(--global-palette1) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    box-shadow: none !important;
  }

  .hfa-reset-btn {
    margin-left: .5rem;
  }

  .hfa-btn-secondary:hover,
  .hfa-reset-btn:hover {
    background: var(--global-palette1) !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .wp-block-button {
    border: unset !important;
    padding: 0 !important;
  }
}
/* ── UM Members List ───────────────────────── */

.um-members-wrapper > .um-members-list {
  grid-template-columns: repeat(3, 1fr) !important;
  .um-member {
    height: 100%;
  }
  .um-member-photo {
    display: none !important;
  }
  .um-member-card {
    width: 100% !important;
  }
}

/* ── UM Pagination — brand color accents only ─ */

.um-members-pagi .pagi.current {
  background: var(--global-palette1) !important;
  border-color: var(--global-palette1) !important;
  color: #fff !important;
}

.um-members-pagi .pagi {
    font-weight: 500 !important;
}
.um-members-pagi .pagi:hover {
    background: var(--global-palette2) !important;
}

.pagi.pagi-arrow.disabled {
  display: none !important;
}


/* ═══════════════════════════════════════════
   HFA CONTENT WRAPPER
   ═══════════════════════════════════════════ */

.hfa-content-wrap {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  max-width: 1100px;
  margin: 24px auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   HFA CONTACT PAGE
   ═══════════════════════════════════════════ */

.hfa-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.hfa-contact-card h3 {
  margin: 0 0 8px;
}

.hfa-contact-card p {
  margin: 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   HFA HELPFUL LINKS
   ═══════════════════════════════════════════ */

.hfa-links-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.hfa-links-columns ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.hfa-links-columns li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.hfa-links-columns li a {
  color: var(--global-palette1);
  text-decoration: none;
  font-size: 14px;
}

.hfa-links-columns li a:hover {
  color: var(--global-palette2);
}

/* ═══════════════════════════════════════════
   HFA BOARD MEMBERS TABLE
   ═══════════════════════════════════════════ */

.hfa-board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.hfa-board-table th {
  background: var(--global-palette1);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.hfa-board-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #333;
}

.hfa-board-table tr:nth-child(even) td {
  background: var(--global-palette3);
}

/* ═══════════════════════════════════════════
   HFA DOCUMENTS
   ═══════════════════════════════════════════ */

/* Parent page card grid */
.hfa-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.hfa-doc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: #f9f7f3;
  border: 1px solid #e0dcd4;
  border-radius: 6px;
  text-decoration: none !important;
  color: #333 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hfa-doc-card:hover {
  border-color: var(--global-palette1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hfa-doc-card strong {
  color: var(--global-palette1) !important;
  font-size: 15px;
}

.hfa-doc-card span:last-child {
  font-size: 13px;
  color: #666;
}

.hfa-doc-card-icon {
  font-size: 28px;
  line-height: 1;
}

/* Child page document list */
.hfa-doc-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.hfa-doc-list li {
  border-bottom: 1px solid #e8e4dc;
}

.hfa-doc-list li:first-child {
  border-top: 1px solid #e8e4dc;
}

.hfa-doc-link {
  display: block;
  padding: 14px 16px;
  color: var(--global-palette1) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.hfa-doc-link:hover {
  background: var(--global-palette3);
}

.hfa-doc-link::before {
  content: "\1F4C4 ";
}

/* ═══════════════════════════════════════════
   HFA MEMBERSHIP GUIDE
   ═══════════════════════════════════════════ */

/* Step navigation bar */
.hfa-steps-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 16px;
  background: var(--global-palette3);
  border-radius: 6px;
}

.hfa-step-link {
  padding: 8px 16px;
  background: var(--global-palette1);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.hfa-step-link:hover {
  background: var(--global-palette2);
  color: var(--global-palette1) !important;
}

/* Guide sections */
.hfa-guide-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #e8e4dc;
}

.hfa-guide-section:first-of-type {
  border-top: none;
  margin-top: 24px;
  padding-top: 0;
}

/* Checklist */
.hfa-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.hfa-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #f9f7f3;
  border-radius: 6px;
  border-left: 4px solid var(--global-palette1);
}

.hfa-check-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.hfa-check-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--global-palette1);
}

.hfa-check-item p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* Rules card grid */
.hfa-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hfa-rule-card {
  padding: 20px;
  background: #f9f7f3;
  border: 1px solid #e0dcd4;
  border-radius: 6px;
}

.hfa-rule-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.hfa-rule-card ul {
  margin: 0;
  padding-left: 18px;
}

.hfa-rule-card li {
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
}

.hfa-rule-important {
  border-left: 4px solid var(--global-palette2);
}

/* Facility card grid */
.hfa-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hfa-facility-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: #f9f7f3;
  border: 1px solid #e0dcd4;
  border-radius: 6px;
  text-decoration: none !important;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hfa-facility-card:hover {
  border-color: var(--global-palette1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hfa-facility-card strong {
  color: var(--global-palette1) !important;
  font-size: 14px;
}

/* Download link in guide */
.hfa-guide-download {
  margin-top: 20px;
}

/* ═══════════════════════════════════════════
   HFA INTERACTIVE GROUNDS MAP
   ═══════════════════════════════════════════ */

.hfa-content-wrap--wide {
  max-width: 1400px;
}

.hfa-map-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hfa-map-toggle {
  padding: 6px 16px !important;
  font-size: 13px !important;
  border: 2px solid var(--global-palette1) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--global-palette1) !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hfa-map-toggle.active {
  background: var(--global-palette1) !important;
  color: #fff !important;
}

/* Map container — relative for absolute marker positioning */
.hfa-map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.hfa-map-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Markers */
.hfa-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hfa-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 10;
}

.hfa-marker--hunt {
  background: #c0392b;
  color: #fff;
}

.hfa-marker--fish {
  background: #2874a6;
  color: #fff;
}

/* Tooltip */
.hfa-map-tooltip {
  position: absolute;
  background: rgba(27, 58, 45, 0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
  line-height: 1.4;
}

.hfa-map-tooltip.visible {
  opacity: 1;
}

/* Legends below map */
.hfa-map-legends {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.hfa-map-legend h3 {
  margin: 0 0 12px;
}

.hfa-legend-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hfa-legend-list span {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.hfa-legend-list b {
  display: inline-block;
  min-width: 32px;
  color: var(--global-palette1);
}

@media (max-width: 768px) {
  .hfa-map-legends {
    grid-template-columns: 1fr;
  }
}

/* ── Print stylesheet ─────────────────────── */
@media print {
  #masthead,
  #colophon,
  .hfa-print-btn,
  .um-profile-nav,
  .um-profile-photo-wrap,
  .um-cover-e {
    display: none !important;
  }

  #inner-wrap,
  #wrapper.site {
    display: block !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000 !important;
    text-decoration: none !important;
  }
}

/* ── Mobile: stack vertically ── */
@media (max-width: 1024px) {
  #wrapper.site {
    flex-direction: column !important;
  }
  #masthead {
    width: 100% !important;
    flex: none !important;
  }
  #inner-wrap {
    max-width: 100% !important;
  }
  #primary-menu.menu { flex-direction: row !important; }
  #primary-menu .sub-menu {
    position: absolute !important;
    display: none !important;
  }
  #primary-menu li.menu-item-has-children:hover > .sub-menu {
    display: block !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Photo Gallery
   ═══════════════════════════════════════════════════════════════════════════ */
.hfa-gallery-upload { margin-bottom: 20px; }
.hfa-upload-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 16px;
  background: var(--global-palette3);
  border-radius: 6px;
}
.hfa-upload-form label { font-weight: 600; font-size: 14px; }
.hfa-upload-form select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.hfa-upload-file-label {
  cursor: pointer;
  font-size: 13px !important;
  padding: 6px 14px !important;
}
#hfa-upload-file-count { font-size: 13px; color: #555; }
#hfa-upload-status {
  width: 100%;
  font-size: 13px;
  color: var(--global-palette1);
  margin-top: 4px;
}

/* Year filter */
.hfa-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.hfa-year-btn {
  padding: 6px 16px;
  border: 1px solid var(--global-palette1);
  background: #fff;
  color: var(--global-palette1);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.hfa-year-btn:hover { background: #e8f0ec; }
.hfa-year-btn.active {
  background: var(--global-palette1);
  color: #fff;
}

/* Gallery year sections */
.hfa-gallery-year { margin-bottom: 32px; }
.hfa-gallery-year h2 {
  font-size: 22px;
  color: var(--global-palette1);
  border-bottom: 2px solid #d4c9a8;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.hfa-photo-count {
  font-size: 14px;
  font-weight: 400;
  color: #777;
}

/* Photo grid */
.hfa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.hfa-gallery-item { position: relative; }
.hfa-gallery-link {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.hfa-gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.hfa-gallery-link:hover img { transform: scale(1.05); }

/* Lightbox */
.hfa-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.hfa-lightbox.active { display: flex; }
.hfa-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}
.hfa-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hfa-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.hfa-lightbox-close,
.hfa-lightbox-prev,
.hfa-lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  font-size: 36px;
  padding: 10px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.hfa-lightbox-close:hover,
.hfa-lightbox-prev:hover,
.hfa-lightbox-next:hover { opacity: 1; }
.hfa-lightbox-close { top: 10px; right: 20px; font-size: 42px; }
.hfa-lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.hfa-lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
#hfa-lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  padding: 6px 16px;
  border-radius: 4px;
  z-index: 10;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hfa-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
  .hfa-lightbox-prev, .hfa-lightbox-next { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dashboard
   ═══════════════════════════════════════════════════════════════════════════ */
.hfa-dashboard-section {
  margin-bottom: 32px;
}
.hfa-dashboard-section h2 {
  font-size: 20px;
  color: var(--global-palette1);
  border-bottom: 2px solid #d4c9a8;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

/* Upcoming events list */
.hfa-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hfa-event-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #f9f7f2;
  border: 1px solid #e8e0d0;
  border-left: 4px solid var(--global-palette1);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.hfa-event-card:hover {
  background: #f0ece2;
  border-left-color: var(--global-palette2);
}
.hfa-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.hfa-event-month {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--global-palette1);
  letter-spacing: 0.5px;
}
.hfa-event-day-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--global-palette1);
  line-height: 1;
}
.hfa-event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hfa-event-info strong {
  font-size: 15px;
  color: var(--global-palette1);
}
.hfa-event-meta {
  font-size: 13px;
  color: #666;
}
.hfa-event-rsvp {
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  border: 1px solid rgba(46, 125, 50, 0.7);
  padding: 2px 8px;
  border-radius: 10px;
  width: fit-content;
  margin-top: 4px;
  line-height: 1.4;
}

/* Quick links grid */
.hfa-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.hfa-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background: var(--global-palette1);
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
}
.hfa-quick-link:hover {
  background: var(--global-palette2);
  color: var(--global-palette1) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEC Events Calendar Overrides
   ═══════════════════════════════════════════════════════════════════════════ */
.tribe-events {
  font-family: inherit;
}
.tribe-events .tribe-events-calendar-list__event-title-link {
  color: var(--global-palette1) !important;
}
.tribe-events .tribe-events-calendar-list__event-title-link:hover {
  color: var(--global-palette2) !important;
}
.tribe-events .tribe-events-c-top-bar__today-button,
.tribe-events .tribe-events-c-events-bar__search-button {
  background: var(--global-palette1) !important;
  border-color: var(--global-palette1) !important;
}
.tribe-events .tribe-events-c-top-bar__today-button:hover,
.tribe-events .tribe-events-c-events-bar__search-button:hover {
  background: var(--global-palette2) !important;
  border-color: var(--global-palette2) !important;
}

/* Single event text colors */
.tribe-events-single,
.tribe-events-single p,
.tribe-events-single li,
.tribe-events-single span,
.tribe-events-single div,
.tribe-events-single .tribe-events-schedule,
.tribe-events-single .tribe-events-content,
.tribe-events-single .tribe-events-single-section-title,
.tribe-events-single .tribe-events-event-meta,
.tribe-events-single .tribe-venue,
.tribe-events-single .tribe-organizer {
  color: #333 !important;
}
.tribe-events-single h1,
.tribe-events-single h2,
.tribe-events-single h3,
.tribe-events-single .tribe-events-single-event-title {
  color: var(--global-palette1) !important;
}
.tribe-events-single a {
  color: var(--global-palette1) !important;
}
.tribe-events-single a:hover {
  color: var(--global-palette2) !important;
}
.tribe-events-single .tribe-events-back a,
.tribe-events-single .tribe-events-nav-pagination a {
  color: var(--global-palette1) !important;
}
.tribe-events-single .tribe-events-back a:hover,
.tribe-events-single .tribe-events-nav-pagination a:hover {
  color: var(--global-palette2) !important;
}

/* ═══════════════════════════════════════════
   RESERVATION SYSTEM — Calendar + Booking Panel
   ═══════════════════════════════════════════ */

.hfa-res-intro {
  color: #555;
  margin-bottom: 20px;
}

/* ── Wrapper ── */
.hfa-reservation-wrap {
  max-width: 680px;
  font-family: inherit;
}

/* ── Month nav ── */
.hfa-cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hfa-cal-nav button {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 22px;
  cursor: pointer;
  color: var(--global-palette1);
  line-height: 1;
}
.hfa-cal-nav button:hover { background: #f0ede8; }
.hfa-cal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--global-palette1);
  min-width: 160px;
  text-align: center;
}

/* ── Legend ── */
.hfa-cal-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.8rem;
  display: none !important;
}
.hfa-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hfa-legend-item::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #ccc;
}
.hfa-legend-free::before    { background: #fff; }
.hfa-legend-partial::before { background: #fff8e1; border-color: #f5c842; }
.hfa-legend-full::before    { background: #fde8e8; border-color: #e57373; }
.hfa-legend-mine::before    { background: #e8f5e9; border-color: #4caf50; }

/* ── Calendar grid ── */
.hfa-cal-grid {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.hfa-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--global-palette1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.hfa-cal-dow > div { padding: 6px 0; }

.hfa-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* ── Calendar cells ── */
.hfa-cal-cell {
  min-height: 62px;
  padding: 6px 5px 4px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: default;
  transition: background 0.15s;
  position: relative;
  border: 2px solid white;
}
.hfa-cal-cell:nth-child(7n) { border-right: none; }

.hfa-cal-empty {
  background: #fafafa;
}
.hfa-cal-free {
  background: #fff;
  cursor: pointer;
}
.hfa-cal-free:hover,
.hfa-cal-partial:hover  { 
  transition: .3s ease;
  border: 2px solid var(--global-palette4);
}
.hfa-cal-partial     { background: #fff; cursor: pointer; }
.hfa-cal-full        { background: #ededed; color: #888; cursor: default; }
.hfa-cal-full:hover  { background: #ededed; }
.hfa-cal-past        { background: #ededed; color: #888; cursor: default; }
.hfa-cal-mine:not(.hfa-cal-full) { background: inherit; }
.hfa-cal-selected    { outline: 2px solid var(--global-palette1) !important; outline-offset: -2px; }

.hfa-cal-num {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.hfa-cal-past .hfa-cal-num { color: #888; }
.hfa-cal-past .hfa-ov-cell-counts { display: none !important; }
.hfa-cal-slots {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.hfa-slot-dot {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
}
.hfa-slot-dot.dot-free  { background: #e8f5e9; color: #2e7d32; border: 1px solid rgba(46, 125, 50, 0.7); }
.hfa-slot-dot.dot-taken { background: #ef4444; color: #fff;    border: 1px solid rgba(255, 255, 255, 0.7); font-weight: 800; }
.hfa-slot-dot.dot-mine  { background: #ef4444; color: #fff;    border: 1px solid rgba(255, 255, 255, 0.7); font-weight: 800; }

/* ── Loading spinner ── */
.hfa-cal-loading {
  text-align: center;
  padding: 20px;
  color: #888;
  font-style: italic;
}

/* ── Booking panel ── */
.hfa-booking-panel {
  margin-top: 16px;
  border: 1px solid #d0c9bc;
  border-radius: 8px;
  background: #faf8f4;
  padding: 20px 22px 18px;
  position: relative;
  max-width: 680px;
}

.hfa-panel-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  padding: 0 4px;
  line-height: 1;
}
.hfa-panel-close:hover { color: #333; }

.hfa-panel-date {
  font-size: 1rem;
  font-weight: 700;
  color: var(--global-palette1);
  margin: 0 0 16px;
}

/* ── Slot rows in panel ── */
.hfa-panel-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.hfa-panel-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #e0d9ce;
  border-radius: 6px;
  background: #fff;
  min-height: 48px;
}
.hfa-panel-slot.slot-taken {
  background: #fdf5f5;
  border-color: #f5c4c4;
  opacity: 0.8;
}
.hfa-panel-slot.slot-mine {
  background: #f1fbf2;
  border-color: #a5d6a7;
}
.hfa-panel-slot.slot-choosing {
  border-color: var(--global-palette1);
  background: #f4f8f5;
}

.hfa-panel-slot-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
  min-width: 80px;
}
.hfa-panel-slot-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #555;
}

.slot-tag.taken {
  font-size: 0.78rem;
  color: #b71c1c;
  background: #ffcdd2;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Panel buttons ── */
.hfa-btn-book {
  background: var(--global-palette1);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.hfa-btn-book:hover { background: #245c3e; }

.hfa-btn-cancel {
  background: none;
  border: 1px solid #c62828;
  color: #c62828;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hfa-btn-cancel:hover { background: #c62828; color: #fff; }

.hfa-btn-confirm {
  display: block;
  margin: 14px 0 6px;
  background: var(--global-palette1);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.hfa-btn-confirm:hover { background: #245c3e; }
.hfa-btn-confirm:disabled { opacity: 0.6; cursor: wait; }

/* ── Stevens House / guests fields ── */
.hfa-house-fields,
.hfa-field-guests {
  margin-top: 2px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hfa-house-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}
.hfa-guests-input {
  width: 80px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}
.hfa-notes-input {
  width: 100%;
  max-width: 420px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.88rem;
  resize: vertical;
}

/* ── Panel messages ── */
.hfa-panel-msg {
  font-size: 0.88rem;
  min-height: 20px;
  margin-top: 4px;
}
.hfa-panel-msg.msg-success { color: #2e7d32; font-weight: 600; }
.hfa-panel-msg.msg-error   { color: #c62828; font-weight: 600; }

/* ═══════════════════════════════════════════
   RESERVATION OVERVIEW GRID (field-reservations page)
   ═══════════════════════════════════════════ */

.hfa-grid-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.hfa-overview-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.82rem;
  white-space: nowrap;
}
.hfa-overview-table th,
.hfa-overview-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
}
.hfa-overview-table thead th {
  background: var(--global-palette1);
  color: #fff;
  font-weight: 600;
}
.hfa-overview-table thead .hfa-ov-resource {
  text-align: left;
  min-width: 140px;
}
.hfa-overview-table .hfa-ov-weekend {
  /* background: #f8f5ef !important; */
}
.hfa-ov-date .hfa-ov-dow {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}
.hfa-ov-date .hfa-ov-num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.hfa-ov-resource td,
td.hfa-ov-resource {
  text-align: left;
  font-weight: 600;
}
.hfa-ov-resource a {
  color: var(--global-palette1);
  text-decoration: none;
}
.hfa-ov-resource a:hover { text-decoration: underline; }

/* Overview cells */
.hfa-ov-cell { padding: 4px 6px !important; }
.hfa-ov-free    { background: #fff; }
.hfa-ov-partial { background: #fff8e1; }
.hfa-ov-full    { background: #fde8e8; }

.hfa-ov-link {
  display: flex;
  gap: 3px;
  justify-content: center;
  text-decoration: none;
}
.hfa-ov-dot {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
}
.hfa-ov-dot.dot-free  { background: #e8f5e9; color: #2e7d32; border: 1px solid rgba(46, 125, 50, 0.7); }
.hfa-ov-dot.dot-taken { background: #ef4444; color: #fff;    border: 1px solid rgba(255, 255, 255, 0.7); font-weight: 800; }

.hfa-grid-legend {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  margin-top: 8px;
}
.hfa-gl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.hfa-ov-free.hfa-gl-item    { background: #fff; }
.hfa-ov-partial.hfa-gl-item { background: #fff8e1; }
.hfa-ov-full.hfa-gl-item    { background: #fde8e8; }

/* ═══════════════════════════════════════════
   ADMIN — Reservations page
   ═══════════════════════════════════════════ */

.hfa-admin-wrap .hfa-admin-tabs { margin-bottom: 0; }
.hfa-admin-panel { padding: 20px 0; }

.hfa-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.hfa-admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}
.hfa-admin-filters select,
.hfa-admin-filters input[type="date"] {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85rem;
}

.hfa-admin-table th { background: #f5f5f5; font-weight: 600; }
.hfa-row-cancelled td { opacity: 0.65; }

/* ═══════════════════════════════════════════
   LOGIN PAGE — scenic background + form styling
   ═══════════════════════════════════════════ */

.tml-error {
  background: white;
}
/* Full-bleed scenic background on the login page */
body.page-slug-login {
  /* background: url('/wp-content/uploads/2026/04/Laurel-Meadow-Octonber-2020-copy-scaled.jpeg') center center / cover no-repeat fixed !important; */
}
body.page-slug-login #inner-wrap {
  background: transparent !important;
}
body.page-slug-login .hfa-content-wrap,
body.page-slug-login .um-login,
body.page-slug-login .tml {
  /* background: rgba(255,255,255,0.93); */
  background: #e8e0d0;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  padding: 32px !important;
  max-width: 440px;
  margin: 40px auto !important;
}

/* Site-wide: dark input text + dark placeholder for ALL forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
  color: #1a1a1a !important;
  background: #fff !important;
}
input::placeholder,
textarea::placeholder {
  color: #555 !important;
  opacity: 1 !important;
}
/* Firefox/older */
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #555 !important; opacity: 1 !important; }
input::-moz-placeholder,          textarea::-moz-placeholder          { color: #555 !important; opacity: 1 !important; }
input:-ms-input-placeholder,      textarea:-ms-input-placeholder      { color: #555 !important; opacity: 1 !important; }

/* ═══════════════════════════════════════════
   LOST PASSWORD — .tml-message white bg
   ═══════════════════════════════════════════ */
.tml-message {
  background: #fff !important;
  border-left: 4px solid var(--global-palette1) !important;
  padding: 10px 14px !important;
  color: #333 !important;
}

.hfa-cal-full .hfa-cal-num {
  color: #888;
}

/* ═══════════════════════════════════════════
   DASHBOARD — two-column events layout
   ═══════════════════════════════════════════ */
.hfa-dash-two-col {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.hfa-dash-two-col > .hfa-dashboard-section {
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — down to 380px
   ═══════════════════════════════════════════ */

/* ── Tablet / small desktop (≤900px) ── */
@media (max-width: 900px) {
  .hfa-admin-table { font-size: 0.78rem; }
  .hfa-overview-table { font-size: 0.75rem; }
  .hfa-grid-wrap { overflow-x: auto; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Sidebar collapses to top bar */
  #wrapper.site {
    flex-direction: column !important;
  }
  #masthead {
    position: relative !important;
    width: 100% !important;
    flex: none !important;
    min-height: unset !important;
  }
  /* Hide nav links by default; toggle via hamburger */
  #masthead #primary-navigation {
    display: none;
    padding-bottom: 16px;
  }
  #masthead #primary-navigation.hfa-nav-open {
    display: block;
  }
  /* Hamburger button */
  .hfa-hamburger {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }
  /* Nav items stack vertically on mobile */
  #primary-menu.menu {
    flex-direction: column !important;
  }
  #primary-menu .menu-item a { padding: 10px 24px !important; }

  /* Full-width content */
  #inner-wrap {
    max-width: 100% !important;
    margin-left: 0 !important;
  }
  .hfa-content-wrap { padding: 16px !important; }

  /* Dashboard two-col → single col */
  .hfa-dash-two-col { flex-direction: column; }

  /* Events list — stack date + info */
  .hfa-event-card { flex-direction: column; gap: 6px; }
  .hfa-event-date { flex-direction: row; gap: 6px; align-items: baseline; }

  /* Quick links → 2 columns */
  .hfa-quick-links { grid-template-columns: 1fr 1fr !important; }

  /* Overview grid — horizontal scroll */
  .hfa-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Reservation booking panel */
  .hfa-booking-panel { padding: 14px 14px 12px; }
  .hfa-panel-slot { flex-wrap: wrap; }

  /* Gallery — 2 columns */
  .hfa-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Member directory table → scrollable */
  .um-members-list-wrap { overflow-x: auto; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .hfa-content-wrap { padding: 12px !important; }

  /* Calendar cells — compact */
  .hfa-cal-cell { min-height: 48px; padding: 4px 3px 3px; }
  .hfa-cal-num { font-size: 0.78rem; }
  .hfa-slot-dot { font-size: 0.52rem; padding: 1px 3px; }
  .hfa-cal-dow > div { font-size: 0.65rem; padding: 4px 0; }

  /* Events list meta smaller */
  .hfa-event-meta, .hfa-event-rsvp { font-size: 0.75rem; }

  /* Form stacking */
  .hfa-upload-form { flex-direction: column; align-items: flex-start; }
}

/* ── Very small (≤380px) ── */
@media (max-width: 380px) {
  /* Gallery — 1 column */
  .hfa-gallery-grid { grid-template-columns: 1fr !important; }

  /* Calendar — even more compact */
  .hfa-cal-cell { min-height: 40px; }
  .hfa-cal-slots { gap: 2px; }

  /* Legend wraps tightly */
  .hfa-cal-legend { gap: 8px; font-size: 0.7rem; }

  /* Reservation panel slots stack */
  .hfa-panel-slot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hfa-panel-slot-label { min-width: unset; }
}

/* Hamburger hidden by default on desktop */
.hfa-hamburger { display: none; }

/* ═══════════════════════════════════════════
   LOGGED-OUT — hide sidebar nav
   ═══════════════════════════════════════════ */
body.um-page-loggedout #masthead .site-header-main-section-right {
  display: none !important;
}
body.um-page-loggedout #inner-wrap {
  max-width: 100% !important;
}

/* ═══════════════════════════════════════════
   ACCOUNT — welcome banner
   ═══════════════════════════════════════════ */
.hfa-welcome-banner {
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: var(--global-palette1);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   GALLERY — photo delete button
   ═══════════════════════════════════════════ */
.hfa-photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 32px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.hfa-gallery-item:hover .hfa-photo-delete { opacity: 1; }
.hfa-photo-delete:hover { background: rgba(200,0,0,0.8); }



/* ═══════════════════════════════════════════
   EVENTS ARCHIVE PAGE & SINGLE
   ═══════════════════════════════════════════ */

body.post-type-archive-tribe_events #inner-wrap {
  background: #f9f7f3;
  span, p, div, h1, h2, h3, h4, h5, h6, time, button {
    color: var(--global-palette1);
  }
  svg path {
    fill: var(--global-palette1) !important;
  }
  button.tribe-common-c-btn__clear {
    color: var(--global-palette1) !important;
    cursor: pointer !important;
    pointer-events: none !important;
    svg {
      display: none !important;
    }
  }
  a.tribe-common-c-btn-border-small {
    color: white !important;
    display: none !important;
  }
  span, time {
    color: inherit !important;
  }
  .tribe-events .tribe-events-calendar-list__month-separator:after {
    background-color: var(--global-palette1) !important;

  }
  .tribe-events-header {
    .tribe-events-header__content-title,
    .tribe-events-header__events-bar {
      display: none !important;
    }
  }
  .tribe-events-c-subscribe-dropdown__container {
    display: none;
  }
  article.tribe-events-calendar-list__event {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Fixed 16:9 featured image frame on the events archive */
.tribe-events-calendar-list__event-featured-image-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #f9f7f3;
  border-radius: 4px;
}
.tribe-events-calendar-list__event-featured-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.tribe-events-calendar-list__event-featured-image.hfa-event-featured-default {
  object-fit: contain;
  padding: 18px;
  background: #f9f7f3;
}

body.single-tribe_events {
  .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
    width: fit-content;
  }
  .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button:hover,
  .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button:focus {
    color: white !important;
  }
  label {
    color: var(--global-palette1) !important;

  }
}

/* ═══════════════════════════════════════════
   HONORARY MEMBER BADGE
   ═══════════════════════════════════════════ */
.hfa-honorary-badge {
  display: inline-block;
  background: #C8A24A;
  color: #fff;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.7;
  white-space: nowrap;
}