/*
Theme Name: Divi Child By Monterey Premier
Theme URI: http://montereypremier.com/
Description: A Custom Child Theme For Divi
Author: Geno Quiroz
Author URI: http://montereypremier.com/
Template: Divi
Version: Updated for Divi 3
*/

/* ======
   COSBURN CHILD THEME — CUSTOM CSS
   =====

   STATUS (as of 22Dec 2025):
   - CSS has been actively pruned from a much larger legacy file.
   - Sections 6, 7, and 8 were removed after verification (no dependencies).
   - Current file length (~2700 lines) is intentional and acceptable given:
       • Divi layout framework
       • Amelia (v1 + v2) calendars and JS-rendered UI
       • PMPro checkout and member pages
       • Custom components (Member Hub, pricing tables, club-week strip, etc.)

   PRUNING METHODOLOGY (IMPORTANT):
   - PurgeCSS was used ONLY as a diagnostic tool, not as a drop-in replacement.
   - A purged CSS build was compared against this source file to identify
     which selectors were definitely in use.
   - Any CSS that:
       • survived PurgeCSS, OR
       • is involved in Divi layout, Amelia calendars, pricing tables,
         or JS-generated UI
     was treated as "hands off".

   SAFE PRUNING RULES GOING FORWARD:
   1) Prune ONLY at the SECTION level — never individual selectors in isolation.
   2) Do NOT remove or aggressively refactor:
        - Divi layout scaffolding (.et_pb_*, gutters, flex helpers)
        - Amelia / FullCalendar / Element UI classes (am-*, fc-*, el-*)
        - Pricing table layout and background/gradient rules
        - Club-week / calendar strip JS-driven components
   3) Low-risk candidates for future pruning:
        - Legacy plugin CSS for plugins no longer in use
        - One-off page hacks tied to deleted pages
        - Duplicated button or typography styles (after consolidation plan)
   4) Any removal should be tested logged-in AND logged-out, including:
        - Home pricing section
        - Member Hub
        - PMPro checkout
        - Amelia v2 calendar (week + month views)

   NOTE TO FUTURE MAINTAINERS:
   This file favors clarity and safety over extreme minimization.
   Do not attempt aggressive automated purging without understanding
   Divi + Amelia runtime behavior.

   ==========================================================================
*/
/* ==========================================================================
   COSBURN  CHILD THEME — CUSTOM CSS
   ==========================================================================

   STATUS (as of 22Dec 2025):
   - CSS has been actively pruned from a much larger legacy file.
   - Sections 6, 7, and 8 were removed after verification (no dependencies).
   - Current file length (~2700 lines) is intentional and acceptable given:
       • Divi layout framework
       • Amelia (v1 + v2) calendars and JS-rendered UI
       • PMPro checkout and member pages
       • Custom components (Member Hub, pricing tables, club-week strip, etc.)

   PRUNING METHODOLOGY (IMPORTANT):
   - PurgeCSS was used ONLY as a diagnostic tool, not as a drop-in replacement.
   - A purged CSS build was compared against this source file to identify
     which selectors were definitely in use.
   - Any CSS that:
       • survived PurgeCSS, OR
       • is involved in Divi layout, Amelia calendars, pricing tables,
         or JS-generated UI
     was treated as "hands off".

   SAFE PRUNING RULES GOING FORWARD:
   1) Prune ONLY at the SECTION level — never individual selectors in isolation.
   2) Do NOT remove or aggressively refactor:
        - Divi layout scaffolding (.et_pb_*, gutters, flex helpers)
        - Amelia / FullCalendar / Element UI classes (am-*, fc-*, el-*)
        - Pricing table layout and background/gradient rules
        - Club-week / calendar strip JS-driven components
   3) Low-risk candidates for future pruning:
        - Legacy plugin CSS for plugins no longer in use
        - One-off page hacks tied to deleted pages
        - Duplicated button or typography styles (after consolidation plan)
   4) Any removal should be tested logged-in AND logged-out, including:
        - Home pricing section
        - Member Hub
        - PMPro checkout
        - Amelia v2 calendar (week + month views)

   NOTE TO FUTURE MAINTAINERS:
   This file favors clarity and safety over extreme minimization.
   Do not attempt aggressive automated purging without understanding
   Divi + Amelia runtime behavior.

   =======
*/


/* =========================================================
   0. QUICK FIXES / FLASH PREVENTION
   ======================================================== */

/* Prevent logo flash: constrain ONLY the header logo image */
header.et-l--header img[title="final-logo-186"] {
  width: 120px;
  max-width: 120px;
  height: auto;
}

/* Remove flash of large logo on DESKTOP + TABLET HEADER (>= 768px) */
@media (min-width: 768px) {
  .cp-desktop-header .et_pb_image_0_tb_header img {
    width: 120px;
    max-width: 120px;
    height: auto;
  }
}

/* Remove flash of large logo on MOBILE HEADER (<= 767px) */
@media (max-width: 767px) {
  .cp-mobile-header .cp-logo img {
    width: 48px;
    max-width: 48px;
    height: auto;
  }
}

/* =========================================================
   1. GLOBAL TYPOGRAPHY — AUTHOR SYSTEM
   ======================================================== */

html { font-size: 18px; }

body {
  font-family: 'Author', sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 400;
  color: #222;
}

/* Paragraphs and basic text */
p, li, span, div {
  font-family: 'Author', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 425;
}

a { font-weight: bolder; }

/* Headings */
h6 {
  font-family: 'Author', sans-serif;
  font-size: 1.200rem;
  line-height: 1.4;
  letter-spacing: 0em;
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 0.35em;
}

h5 {
  font-family: 'Author', sans-serif;
  font-size: 1.440rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 0.35em;
}

h4 {
  font-family: 'Author', sans-serif;
  font-size: 1.728rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.35em;
}

h3 {
  font-family: 'Author', sans-serif;
  font-size: 2.074rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.35em;
  padding-top: 1em;
}

h2 {
  font-family: 'Author', sans-serif;
  font-size: 2.488rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.35em;
}

h1 {
  font-family: 'Author', sans-serif;
  font-size: 2.986rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.35em;
}

/* Responsive typography */
@media (max-width: 980px) {
  html { font-size: 17px; }
  body { line-height: 1.55; }
  p, li, span, div { line-height: 1.55; }

  h1 { font-size: 2.488rem; line-height: 1.08; letter-spacing: -0.012em; }
  h2 { font-size: 2.074rem; line-height: 1.12; letter-spacing: -0.012em; }
  h3 { font-size: 1.728rem; line-height: 1.25; letter-spacing: -0.008em; }
  h4 { font-size: 1.440rem; line-height: 1.3; letter-spacing: -0.004em; }
  h5 { font-size: 1.200rem; line-height: 1.35; letter-spacing: 0; }
  h6 { font-size: 1.050rem; line-height: 1.4; letter-spacing: 0; }
}

@media (max-width: 767px) {
  html { font-size: 16px; }
  body { line-height: 1.6; }

  p, li, span, div { font-size: 1rem; line-height: 1.6; }

  h1 { font-size: 2.074rem; line-height: 1.12; letter-spacing: -0.01em; }
  h2 { font-size: 1.728rem; line-height: 1.18; letter-spacing: -0.008em; }
  h3 { font-size: 1.440rem; line-height: 1.25; letter-spacing: -0.004em; }
  h4 { font-size: 1.200rem; line-height: 1.3; letter-spacing: 0; }
  h5 { font-size: 1.050rem; line-height: 1.35; letter-spacing: 0; }
  h6 { font-size: 1.000rem; line-height: 1.4; letter-spacing: 0; }
}

/* Bold / italic */
strong, b { font-family: 'Author', sans-serif; font-weight: 700; }
em, i { font-family: 'Author', sans-serif; font-style: italic; }

/* Inputs */
input, textarea, select { font-family: 'Author', sans-serif !important; }

/* Divi modules inherit Author */
.et_pb_module,
.et_pb_text_inner,
.et_pb_blurb_container,
.et_pb_button,
.et_pb_menu li a,
#top-menu li a,
#et-secondary-nav li a {
  font-family: 'Author', sans-serif;
}

/* Zodiak helpers */
.zodiak-display { font-family: 'Zodiak', serif; font-weight: 700; }
.zodiak-italic { font-family: 'Zodiak', serif; font-style: italic; }

/* Drop cap */
.et-dropcap {
  font-size: 40px;
  line-height: 1em;
  color: #444e59;
  font-family: 'Author', sans-serif;
  font-weight: 700;
  padding-top: 5px;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Adds space before blog post list items */
.entry-content li { margin-top: 0.5em; }

/* =========================================================
   2. BLOG, POSTS & WIDGETS
   ======================================================== */

/* =========================================================
   Featured image on single posts: edge-to-edge (like hub card)
   ======================================================== */

/* =========================================================
   Post Title module: full-bleed image, padded text
   ======================================================== */

/* Ensure featured image is truly edge-to-edge */
.et_pb_post_title .et_pb_title_featured_container {
  margin: 0;
  padding: 0;
}

.et_pb_post_title .et_pb_title_featured_container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Reintroduce padding for text elements only */
.et_pb_post_title h2.entry-title,
.et_pb_post_title .et_pb_title_meta_container {
  padding-left: 16px;
  padding-right: 16px;
}

/* Space between image and title */
.et_pb_post_title h1.entry-title {
  padding-top: 16px;
}

/* Optional: spacing below meta before body content */
.et_pb_post_title .et_pb_title_meta_container {
  padding-bottom: 12px;
}


/* Champions table */
.champions-table .footable-header { font-family: 'Author', sans-serif; }
@media only screen and (max-width: 768px) {
  .champions-table { font-size: 16px; }
}

/* Widgets */
.et_pb_widget { font-family: 'Author', sans-serif !important; }
.et_pb_widget p { font-size: 16px; line-height: 1.7em; }

/* Footer widgets spacing */
#footer-widgets { padding: 3% 0 0; }
.et_pb_gutters3 .footer-widget { margin-bottom: 2%; }


/* =========================================================
   3. HEADER, NAVIGATION & MENUS
   ======================================================== */

/* Remove header shadow */
#main-header {
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

/* Secondary top header bar */
#top-header .container {
  padding-top: 0.5em;
  padding-bottom: 0.75em;
  font-weight: 600;
}

/* Contact info region */
#et-info {
  width: 25%;
  float: right;
  text-align: right;
  font-weight: 500;
}

/* Secondary menu region */
#et-secondary-menu {
  width: 75%;
  float: right;
  text-align: right;
  text-transform: uppercase;
}
#et-secondary-nav li { padding-right: 1.5em; }

@media (max-width: 980px) {
  #et-info {
    width: 50%;
    float: right;
    text-align: right;
    padding-top: 0;
    padding-bottom: 0.5em;
  }
}
@media (max-width: 740px) {
  #et-info { width: 100%; }
}

/* Desktop main menu + CTAs */
@media (min-width: 981px) {
  header.et-l--header .et_pb_menu .et-menu-nav > ul > li > a {
    font-size: 17px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }

  .et_pb_menu--without-logo .et_pb_menu__menu > nav > ul > li > a {
    padding-bottom: 3px !important;
  }

  .cta-menu a,
  .cta-menu > nav > ul > li > a {
    font-size: 16px !important;
    font-family: 'Author', sans-serif;
    letter-spacing: 2px !important;
    padding: 3px 8px 3px 11px !important;
    display: inline-block;
    margin-top: -2px;
    margin-left: 1em;
    border: 2px solid #40C46E;
    border-radius: 6px;
    color: #ffffff !important;
    background-color: #40C46E;
    font-weight: 600 !important;
    box-shadow: 0 6px 12px -6px #000000;
  }

  .cta-menu a:hover {
    font-weight: 600 !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
  }

  .cta-menu-ghost a,
  .cta-menu-ghost > nav > ul > li > a {
    font-size: 16px !important;
    font-family: 'Author', sans-serif;
    letter-spacing: 2px !important;
    padding: 3px 11px !important;
    display: inline-block;
    margin-top: -2px;
    margin-left: 1em;
    border: 1px solid #ffffff !important;
    border-radius: 6px;
    color: #ffffff !important;
    background-color: transparent !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
  }

  .cta-menu-ghost a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
  }
}

/* Tablet inline menu (768–980) */
@media (min-width: 768px) and (max-width: 980px) {
  header.et-l--header .cp-tablet-menu .et_pb_menu__menu { display: flex !important; }
  header.et-l--header .cp-tablet-menu .et_mobile_nav_menu { display: none !important; }

  header.et-l--header .cp-tablet-menu .et-menu-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  header.et-l--header .cp-tablet-menu .et_pb_menu__menu { overflow-x: visible; }

  header.et-l--header .cp-tablet-menu .et-menu-nav > ul > li { margin: 0 !important; }

  header.et-l--header .cp-tablet-menu .et-menu-nav > ul > li > a {
    padding-left: 3px;
    padding-right: 3px;
    font-size: 0.95rem !important;
    letter-spacing: 0.015em;
  }

  header.et-l--header .cp-tablet-menu .et_pb_menu__wrap {
    padding-left: 0;
    padding-right: 0;
    padding-top: 34px !important;
    padding-bottom: 0 !important;
  }

  header.et-l--header .cp-tablet-menu .cta-menu-ghost a,
  header.et-l--header .cp-tablet-menu .cta-menu-ghost > nav > ul > li > a {
    font-size: 0.95rem !important;
    font-family: 'Author', sans-serif;
    letter-spacing: 0.04em !important;
    padding: 3px 10px !important;
    display: inline-block;
    margin-top: -2px;
    margin-left: 0.25em;
    border: 1px solid #ffffff !important;
    border-radius: 6px;
    color: #ffffff !important;
    background-color: transparent !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
  }

  header.et-l--header .cp-tablet-menu .cta-menu-ghost a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
  }
}

/* Dropdowns */
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu {
  background-color: #1E2B49 !important;
  margin-top: 0 !important;
  top: 100% !important;
  padding: 0 !important;
  border-top: 13px solid #3156A6 !important;
  box-shadow: none !important;
  border-radius: 0 0 3px 3px !important;
}

header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu a {
  display: block !important;
  width: 100% !important;
  font-size: 16px !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  padding: 10px 14px;
  color: #ffffff !important;
}

header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li.current-menu-item,
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li.current_page_item,
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li.current-menu-ancestor {
  background-color: rgba(255, 255, 255, 0.13) !important;
}

header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li.current-menu-item > a,
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li.current_page_item > a,
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li.current-menu-ancestor > a {
  background-color: transparent !important;
  color: #ffffff !important;
}

header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu li:last-child > a {
  padding-bottom: 17px !important;
}

/* Allow wrapping inside dropdown items */
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu,
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu a,
header.et-l--header .et-menu li ul.sub-menu .menu-item-dek {
  white-space: normal !important;
}

/* Hide dropdown arrow icons */
header.et-l--header .et_pb_menu .menu-item-has-children > a:first-child:after,
header.et-l--header .et_pb_menu .et-menu-nav li ul.sub-menu .menu-item-has-children > a:first-child:after {
  display: none !important;
  content: none !important;
}

/* Menu item deks */
.et-menu li .menu-item-dek,
.et_mobile_menu li .menu-item-dek {
  font-size: 95%;
  opacity: 0.8;
}
@media (max-width: 980px) {
  .et_mobile_menu li .menu-item-dek { font-size: 90%; }
}

/* Narrow desktop keep one line */
@media (min-width: 981px) and (max-width: 1100px) {
  header.et-l--header .cp-main-menu .et-menu-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  header.et-l--header .cp-main-menu .et_pb_menu__menu { overflow-x: visible; }
  header.et-l--header .cp-main-menu .et-menu-nav > ul > li > a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Sticky Theme Builder header (desktop + tablet) */
@media (min-width: 768px) {
  header.et-l--header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }
}
@media (max-width: 767px) {
  header.et-l--header { position: static; }
}

#main-header,
#main-header .et_mobile_menu {
  position: relative;
  z-index: 9999 !important;
}

/* Page offset under sticky header with overhanging logo */
@media (min-width: 981px) {
  #et-main-area { margin-top: -87px !important; }
}
@media (min-width: 768px) and (max-width: 980px) {
  #et-main-area { padding-top: 0 !important; }
}
@media (max-width: 767px) {
  #et-main-area { padding-top: 0; }
}






/* =========================================================
   4. CUSTOM MOBILE HEADER (cp-mobile-header)
   ======================================================== */

.cp-mobile-header {
  position: relative;
  z-index: 9999;
  font-family: "Author", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cp-mobile-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #3156a6;
  padding: 0.4rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cp-mobile-nav::-webkit-scrollbar { display: none; }
.cp-mobile-nav { scrollbar-width: none; }

.cp-logo {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
  flex: 0 0 auto;
  padding: 2px 0;
  margin-left: -4px;
}
.cp-logo img { height: 48px; width: auto; }

.cp-menu-link {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 0.9rem !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cp-menu-link:focus,
.cp-menu-link:hover { text-decoration: underline; }

.cp-submenus { position: relative; }

.cp-submenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #1E2B49;
  display: none;
  flex-direction: column;
  padding: 0.25rem 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(0.1rem);
}
.cp-submenu.is-open { display: flex; }

.cp-submenu-link {
  display: block;
  padding: 0.8rem 0.9rem;
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cp-submenu-link:first-child { border-top: none; }
.cp-submenu-link:focus,
.cp-submenu-link:hover { background: rgba(255, 255, 255, 0.08); }

@media (min-width: 981px) { .cp-mobile-header { display: none; } }
@media (max-width: 767px) { .cp-mobile-header { position: static !important; } }

/* =========================================================
   5. HEADLINE / GRADIENT SPACING
   ======================================================== */

.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3 {
  margin-top: 0;
  margin-bottom: 0;
}



/* =========================================================
   9. AMELIA BOOKING – GENERAL (V1)
   ======================================================== */

/* Hide employee selection in coaching category */
#coaching .am-select-employee-option { display: none !important; }

/* Hide some Amelia profile dropdown items */
.am-cabinet-profile-dropdown .el-dropdown-menu__item:first-of-type { display: none; }
.am-cabinet-profile-dropdown__email { display: none !important; }

#coach-dashboard .am-cabinet-menu .am-cabinet-menu-item:last-of-type { display: none !important; }
.am-cabinet-timezone { display: none !important; }

#tournament-dashboard .am-cabinet-filter button,
#coach-dashboard .am-cabinet-filter button { display: none !important; }

.intro .am-service-info { display: none !important; }
.intro .amelia-app-booking #am-service-booking .am-service-gallery { min-height: 100px; }

#coaching .amelia-app-booking #am-service-booking .am-service-gallery { display: none !important; }
#coaching .amelia-app-booking #am-service-booking .am-service .am-service-info .el-row { display: none !important; }

/* Hide Amelia event booking buttons on some events */
.am-event-modal__header-booking-btn.is-disabled { display: none; }
#am-modal.am-modal.am-in-body .am-event-modal__header-title-status.full { display: none; }
.amelia-app-booking #amelia-booking-wrap #am-event-calendar-page.am-wrap .am-event-spots-left { display: none; }

/* Hide some Amelia filters on calendar */
.hide-filters .el-collapse-item__content > :first-child { display: none; }
.hide-filters .el-collapse-item__content > :nth-child(3) { display: none; }
.hide-filters .el-collapse-item__content > :last-child { display: none; }

/* Confirmation label sizing in event modal */
.amelia-app-booking #amelia-booking-wrap .el-form-item.am-custom-eventListForm-confirmBookingForm-event .el-form-item__label {
  padding-bottom: 8px !important;
  line-height: 1.5em !important;
}

/* Hide unneeded info in upcoming events on calendar */
.hide-filters .amelia-app-booking #amelia-booking-wrap #am-event-calendar-page .am-event-upcoming__block-bottom { display: none !important; }
.hide-filters .am-event-upcoming__block-top-right { display: none; }

/* Hide filter block on ladder calendar */
#ladder .am-events-filter { display: none !important; }

/* Hide primary CTA button in modal for some contexts */
#am-modal :not(.am-dialog-attendees-wrapper).am-modal.am-in-body .el-button--primary.el-button { display: none !important; }


/* Printable calendars */
.amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-event .am-event-data .am-event-date .am-event-date-day {
  font-weight: 600 !important;
  font-size: 24px !important;
}
#printable .amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-event {
  box-shadow: none !important;
  border: 2px solid #9CA2A7;
}
#printable .am-event-sub-info-capacity { display: none !important; }

@media print {
  #printable .am-events-filter * { display: none !important; }
}

/* TV jitney calendar */
#tv-jitney .am-events-filter { display: none !important; }
#tv-jitney .amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-event {
  margin-bottom: 12px !important;
  margin-top: -2px !important;
  background-color: #447FE5 !important;
  padding: 8px 5px 5px 0 !important;
}
#tv-jitney .amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-event .am-event-data .am-event-info {
  padding: 2px 10px 0 !important;
}
#tv-jitney .am-event-free { display: none !important; }
#tv-jitney .am-event-date { display: none !important; background-color: #FFFFFF !important; }
#tv-jitney .amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-event .am-event-data .am-event-info .am-event-title {
  color: #FFFFFF !important;
  padding-right: 35px !important;
}
#tv-jitney .amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-form-eventListForm.am-event .am-event-data .am-event-info .am-event-sub-info > div {
  color: #FFFFFF !important;
}
#tv-jitney .amelia-app-booking #amelia-booking-wrap #am-events-booking .am-event-list .am-form-eventListForm.am-event .am-event-data .am-event-info .am-event-sub-info-capacity {
  display: none !important;
}
#tv-jitney .am-event-pagination { display: none; }

#am-modal.am-modal.am-in-body .am-event-modal__gallery-selected-image { background-size: contain !important; }

/* FullCalendar widget */
.fc-widget-content { font-size: 12px !important; padding: 0 !important; }
.widget_pgc_calender_widget { width: 100% !important; }
.fc-widget-header, .fc-head-container { padding: 0 !important; }

/* =========================================================
   9a. AMELIA BOOKING – Control visibility of booking buttons (hide by default; display if )
   ======================================================== */

/* Amelia Events List: hide only the "Closed" availability text */
.am-ec__info-availability.closed {
  display: none !important;
}

/* Amelia Calendar: keep the event visible, hide only the "Closed" label */
.am-evt-wrapper.am-evt-closed .am-evt-spots-left {
  display: none !important;
}

/* Optional: if the whole spots block becomes empty and leaves awkward spacing */
.am-evt-wrapper.am-evt-closed .am-evt-spots:has(.am-evt-spots-left) {
  display: none !important;
}
/* Amelia event list: hide booking / waitlist buttons by default */
.am-ec .am-ec__actions-btn {
  display: none !important;
}
/* Amelia calendar modal: hide booking button by default */
.am-elf__footer .am-button--primary {
  display: none !important;
}
/* =========================================================
   AMELIA — CONDITIONAL BOOKING BUTTON VISIBILITY

   Amelia does not expose event tags or event-level metadata
   in the front-end HTML, so CSS cannot directly test whether
   an event is “bookable”.

   Workaround used here:
   • Booking buttons are HIDDEN by default everywhere
     (event list + calendar modal)
   • Events that SHOULD show booking buttons are given a
     specific event colour in Amelia:
         #fa3c52  (RGB 250, 60, 82)

   The presence of this colour is detectable in the DOM via:
   • Event list cards: inline styles on `.am-ec`
   • Calendar tiles: CSS variable `--am-c-evt` on `.am-evt-wrapper`

   CSS (and a small JS helper, if present) uses this colour
   as a feature flag to selectively re-enable booking buttons.

   IMPORTANT:
   • Changing the event colour will break this logic
   • Do not reuse this colour for non-bookable events
   • This is intentionally a functional colour, not decorative

   If Amelia ever exposes event tags or metadata in the DOM,
   this logic should be replaced with a tag- or data-based
   selector instead of colour matching.
   ========================================================= */

/* Event list: show button when #FA3C52 is the event colour
.am-ec[style*="rgb(250, 60, 82)"] .am-ec__actions-btn {
  display: block !important;
}

/* --- Allowed cases --- */

/* List: show button when the event card has our allow class
.am-ec.am-allow-booking .am-ec__actions-btn {
  display: block !important;
}

/* Modal: show primary button when the modal container has our allow class
#amelia-container.am-allow-booking .am-elf__footer .am-button--primary {
  display: inline-flex !important;
}
/* =========================================
   Amelia Event Modal — show “Book event” only when status is OPEN

   What this does:
   1) Hides the modal’s primary booking button by default.
   2) Re-shows it *only* when the modal header contains:
        <p class="am-ec__info-availability open">Open</p>

   Why this works:
   - The “Open/Closed” status exists in the modal markup.
   - We can use :has() to detect that status and conditionally display the button.

   Notes:
   - Chrome supports :has() (you’re good).
   - If you ever need “Join waiting list” too, add another selector for the
     waiting-list status class (if/when you confirm what Amelia uses there).
   ========================================= */

/* 1) Hide the modal’s primary booking button by default */
#amelia-container .am-elf__footer .am-button--primary {
  display: none !important;
}

/* 2) Show it only when the modal status is “Open” */
#amelia-container:has(.am-ec__info-availability.open) .am-elf__footer .am-button--primary {
  display: inline-flex !important;
}

/* Event list: hide booking / waitlist buttons by default */
.am-ec .am-ec__actions-btn {
  display: none !important;
}

/* Event list: show booking button only when status is OPEN */
.am-ec:has(.am-ec__info-availability.open) .am-ec__actions-btn {
  display: block !important; /* or inline-flex if you prefer */
}

/* Ensure waitlist button shows on FULL events (cards) */
.am-ec:has(.am-ec__info-availability.full) .am-ec__actions-btn {
  display: block !important;
}

/* Hide the primary button ONLY when Amelia has disabled it */
#amelia-container .am-elf__footer .am-button--primary.is-disabled,
#amelia-container .am-elf__footer .am-button--primary[disabled] {
  display: none !important;
}

/* Otherwise, let Amelia show the primary button normally */
#amelia-container .am-elf__footer .am-button--primary {
  display: inline-flex !important;
}

/* =========================================================
   10. PMPRO MEMBERSHIP / CHECKOUT / DIRECTORY
   ======================================================== */

input[id="address_line_1"],
input[id="address_line_2"] {
  width: 470px;
  max-width: 90%;
}
input[id="city"] {
  width: 330px;
  max-width: 90%;
}
input[id="postal_code"] {
  width: 125px;
  max-width: 90%;
}

div[id="first_name_div"],
div[id="last_name_div"],
div[id="city_div"],
div[id="postal_code_div"],
div[id="Age_div"],
div[id="gender_div"] {
  display: inline-block !important;
}

div[id="emergency_contact_s_name_div"],
div[id="emergency_contact_s_phone_number_div"] {
  display: inline-block !important;
}

div[id="pmpro_license"] { display: none; }

#pmpro_payment_information_fields,
div#pmpro_payment_information_fields {
  max-width: 600px;
  border: 2px solid #3355A6 !important;
  border-radius: 5px !important;
  padding: 5px 20px 20px 20px !important;
  margin-top: 60px;
}

/* PMPro buttons + login submit; CF7 & Forminator base */
input.pmpro_btn.pmpro_btn-submit,
input.pmpro_btn.pmpro_btn-submit-checkout,
a.pmpro_btn.pmpro_btn-select,
a.pmpro_btn:link,
input#wp-submit,
.wpcf7-form-control.has-spinner.wpcf7-submit,
.forminator-button-submit {
  color: #ffffff !important;
  border-width: 0 !important;
  border-radius: 5px !important;
  letter-spacing: 2px;
  font-size: 14px;
  font-family: 'Author', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  background-color: #40C46E !important;
}

/* Forminator module wrapper styling */
#forminator-module-57189:not(.select2-dropdown) {
  padding: 25px !important;
  background-color: #f9f9f9 !important;
}

form.pmpro_form label,
#loginform label {
  font-family: 'Author', sans-serif;
  font-weight: 600;
  display: block;
  margin: 0;
  text-align: left;
  text-transform: uppercase;
  font-size: smaller;
  letter-spacing: 0.5px;
}

.pmpro_checkout hr { display: none; }

.pmpro_confirmation_wrap li {
  margin-left: 60px !important;
  line-height: 0.8em !important;
}
.pmpro_confirmation_wrap h3,
.pmpro_confirmation_wrap .pmpro_invoice_details,
.pmpro_confirmation_wrap hr,
.pmpro_confirmation_wrap .pmpro_a-print,
.pmpro_confirmation_wrap ul li:last-child {
  display: none !important;
}

.pmpro_checkout-fields .pmpro_level_description_text,
.pmpro_checkout-fields .pmpro_level_expiration_text {
  display: none !important;
}

.pmpro_checkout-fields div#Age_div,
.pmpro_checkout-fields div#gender_div {
  display: none !important;
}

.pmpro_checkout_gateway-stripe #pmpro_checkout_box-emergency-contact,
.pmpro_checkout_gateway-stripe #pmpro_checkout_box-club-roster-settings {
  display: none !important;
}

#pmpro_checkout_box-checkout_boxes h3 { display: none; }

.pmpro_checkout h3 span.pmpro_checkout-h3-msg { font-size: 14px; }

.pmpro_checkout h2 span.pmpro_checkout-h2-msg {
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: normal;
  color: blue;
}

.pmpro_advanced_levels-table h2 {
  font-size: 20px;
  padding-top: 25px;
}
.pmpro_advanced_levels-table td p:last-child { padding-bottom: 25px; }

form.pmpro_form .pmpro_checkout_box-user .pmpro_member_profile_edit-fields div { display: none; }

/* Directory meta inline styling */
.pmpro_member_directory_when_did_you_start_bowling,
.pmpro_member_directory_i_usually_play,
.pmpro_member_directory_i_ll_play_in_tournaments {
  display: inline-flex;
  width: 80%;
}
.pmpro_member_directory_when_did_you_start_bowling strong,
.pmpro_member_directory_i_usually_play strong,
.pmpro_member_directory_i_ll_play_in_tournaments strong {
  margin-right: 0.4em;
  display: inline-flex;
}



/* Member profile page tweaks */
#member-profile .pmpro_actions_nav { text-align: left !important; }
#member-profile hr {
  max-width: 300px !important;
  margin-left: 0 !important;
}

/* Directory search input styling */
.pmpro_member_directory_search.search-form input.search-field {
  border-width: 2px !important;
  border-radius: 5px !important;
  border-style: solid !important;
  font-size: 15px !important;
  padding: 10px !important;
  font-family: 'Author', sans-serif !important;
  font-weight: 500 !important;
  border-color: #bbb !important;
}

/* Directory item styling */
.pmpro_member_directory-item {
  padding: 15px;
  border: 2px solid #bbb;
  border-radius: 5px;
}

.pmpro_member_directory_search .pmpro_member_display_name,
.pmpro_member_display_name {
  padding-top: 0 !important;
  line-height: 0.8em !important;
}

input.wpcf7-form-control.has-spinner.wpcf7-submit { margin-bottom: 60px !important; }

.pmpro_card_title { margin: 0 !important; }

/* Printable membership card */
.pmpro_membership_card-inner { padding: 2%; }

.pmpro_membership_card-after {
  line-height: 0.5em !important;
  margin-top: 18px !important;
}

#pmpro_membership_card_member_since,
#pmpro_membership_card_member_since + p,
#pmpro_membership_card_member_since + p + p {
  display: none !important;
}

img.pmpro_membership_card_image {
  float: left !important;
  width: 93px !important;
  height: 93px !important;
  margin-right: 40px;
  margin-left: 4mm !important;
}

.pmpro_membership_card-print p { font-size: 10px !important; font-family: 'Verdana' !important; }
.pmpro_membership_card-print h1 { font-size: 21px !important; font-family: 'Verdana' !important; padding-left: 4mm !important; }
.pmpro_membership_card-print-sm { width: 86mm !important; height: 54mm !important; }

/* Processing message animation */
form.pmpro_form #pmpro_processing_message {
  color: #3455a6 !important;
  font-weight: 700 !important;
  animation: pmpro_processing_message-spinner 2s ease infinite;
}
@keyframes pmpro_processing_message-spinner {
  from { opacity: 0.5; }
  to { opacity: 1.0; letter-spacing: 2px; }
}

/* PMPro tables responsive on small screens */
@media screen and (max-width: 767px) {
  .pmpro_table tbody tr,
  .pmpro_table tfoot tr {
    display: flex;
    flex-direction: column;
  }
  .pmpro_table tbody tr th,
  .pmpro_table tbody tr td,
  .pmpro_table tfoot tr td {
    display: block;
    width: 100%;
  }
}

/* PMPro member directory card layout tweaks */
.pmpro_member_directory .pmpro_card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pmpro_member_directory .pmpro_card_content {
  flex: 1 1 auto;
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pmpro_member_directory .pmpro_member_profile_field-avatar { text-align: center; }

.pmpro_member_directory .pmpro_member_profile_field-display_name {
  width: 100%;
  margin-top: 0.5em;
}

.pmpro_member_directory .pmpro_member_profile_field-display_name .pmpro_member_profile_field_data {
  width: 100%;
}

.pmpro_member_directory .pmpro_member_profile_field-display_name h2.pmpro_font-large {
  font-size: 1.1rem;
  line-height: 1.2;
  margin: 0.25em 0 0.5em;
  text-align: center;
  white-space: normal;
}

.pmpro_member_directory .pmpro_card_actions {
  padding: 4px 8px !important;
  margin-top: auto;
  border-top: 1px solid #ddd;
  text-align: center;
}

.pmpro_member_directory .pmpro_card_actions a {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
}

.pmpro_member_directory-3col { margin-top: 30px; }

.pmpro_member_profile_field_data .pmpro_font-large {
  font-size: 1.2rem !important;
  font-weight: 450 !important;
}

/* Hide directory search on Rainbowlers roster page */
.page-id-61891 .pmpro_member_directory_search,
.page-id-61891 form.pmpro_member_directory_search_form,
.page-id-61891 .pmpromd_search,
.page-id-61891 form.pmpromd-search-form {
  display: none !important;
}

/* =========================================================
   11. MEMBER HUB — CARDS, BUTTONS, SPACING
   ======================================================== */

.hub-card {
  background: #ffffff;
  border-radius: 6px;
  border: 2px solid #111;
  box-shadow: 8px 14px 14px rgba(0,0,0,0.20);
  padding: 24px 24px 28px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.hub-card .et_pb_image img,
.hub-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hub-card h1,
.hub-card h2,
.hub-card h3,
.hub-card h4 {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.hub-card p { margin-bottom: 0.5rem; }

/* Label strip */
.hub-card-label-module {
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  top: -3px;
  left: 24px;
  z-index: 2;
}

.hub-card-label-module .hub-card-label {
  display: inline-block;
  background: #46A2B7;
  color: #ffffff;
  font-size: 0.8rem;
  font-family: 'Author', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 0.85em;
  padding: 6px 9px 7px 10px;
  border-radius: 0 0 6px 6px;
  border: none;
  box-shadow: none;
}

/* PMPro login box inside hub cards */
.pmpro-login-box .pmpro_card_title { padding: 0 !important; }
.pmpro-login-box .pmpro_card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

/* Solid CTA buttons (hub cards + helper classes) */
.hub-card .et_pb_button { align-self: flex-start; }

.hub-card .et_pb_button,
.btn-solid a,
.hub-btn-solid .et_pb_button,
.hub-card .btn-solid {
  font-size: 16px !important;
  font-family: 'Author', sans-serif;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  padding: 3px 11px !important;
  display: inline-block;
  border: 2px solid #40C46E;
  border-radius: 6px;
  color: #ffffff !important;
  background-color: #40C46E !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 12px -6px #000000;
}

.hub-card .et_pb_button:hover,
.btn-solid a:hover,
.hub-btn-solid .et_pb_button:hover,
.hub-card .btn-solid:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.hub-card .et_pb_button_module_wrapper { margin-top: 1rem; }

/* Ghost CTA (white outline for dark backgrounds) */
.btn-ghost a {
  display: inline-block;
  font-size: 16px !important;
  font-family: 'Author', sans-serif;
  letter-spacing: 2px !important;
  padding: 3px 11px !important;
  border: 1px solid #ffffff !important;
  border-radius: 6px;
  color: #ffffff !important;
  background-color: transparent !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-ghost a:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Ghost button in hub/button modules */
.hub-btn-ghost .et_pb_button {
  font-size: 16px !important;
  font-family: 'Author', sans-serif;
  letter-spacing: 2px !important;
  padding: 3px 11px !important;
  border: 1px solid #ffffff !important;
  border-radius: 6px;
  color: #ffffff !important;
  background-color: transparent !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.hub-btn-ghost .et_pb_button:hover {
  background-color: rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
}

/* Hub-card-specific ghost (blue outline on light backgrounds) */
.hub-card .btn-ghost {
  display: inline-block;
  font-size: 16px;
  font-family: 'Author', sans-serif;
  letter-spacing: 2px;
  padding: 3px 11px;
  border: 1px solid #3156A6 !important;
  border-radius: 6px;
  color: #3156A6 !important;
  background-color: transparent !important;
  font-weight: 500;
  box-shadow: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.hub-card .btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #3156A6 !important;
}

/* Disable Divi button hover icon in hub cards */
.hub-card .et_pb_button:after,
.hub-card .et_pb_button:before {
  display: none !important;
  content: none !important;
  animation: none !important;
  transition: none !important;
}

/* Disable Divi button icon for custom CTA wrappers */
.btn-solid .et_pb_button:after,
.btn-ghost .et_pb_button:after,
.btn-solid .et_pb_button:before,
.btn-ghost .et_pb_button:before {
  display: none !important;
  content: none !important;
  animation: none !important;
  transition: none !important;
}

/* Hide Amelia location pin line sitewide */
.am-event-sub-info img[src*="pin.svg"] { display: none !important; }

/* Amelia events inside hub cards */
.hub-card .am-events-filter { display: none; }
.hub-card .am-events-pagination { display: none; }
.hub-card--events .am-event:nth-of-type(n+4) { display: none !important; }
.hub-card .am-event-list { margin: 0 !important; }
.hub-card .am-event { padding: 6px !important; }

/* PMPro blocks inside hub cards */
.hub-card .pmpro_section { margin: 0 !important; }
.hub-card-memberships .pmpro_section_title { display: none !important; }
.hub-card .pmpro_card { margin: 0 !important; border: none !important; box-shadow: none !important; }
.hub-card .pmpro_card_title { padding: 0 !important; line-height: 1em !important; }
.hub-card-memberships .pmpro_card_content { padding: 6px 0 6px 6px !important; border: 0 !important; }
.hub-card-memberships .pmpro_card_actions { padding: 0 !important; }
.hub-card-memberships .pmpro_cols-3 > * { width: 100% !important; }

/* Member hub row & column spacing */
.member-hub-section .et_pb_row {
  margin-bottom: 30px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.member-hub-section .et_pb_column {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .member-hub-section .et_pb_column { margin-bottom: 24px !important; }
  .member-hub-section .et_pb_column:last-child { margin-bottom: 0 !important; }
  .member-hub-section .hub-card { margin-bottom: 24px !important; }
  .member-hub-section .et_pb_row:last-child .hub-card:last-child { margin-bottom: 0 !important; }
}

/* Member hub: hide hub-card columns that have no modules inside */
.member-hub-section .et_pb_column.hub-card:not(:has(.et_pb_module)) {
  display: none !important;
}

/* Member hub: adjust dark blue cards */
.hub-card.hub-card-news-flash.pricing-card--intro { padding: 0 !important; }
.hub-card.hub-card-news-flash.pricing-card--intro .cbh-cta-h3 { margin-top: 0 !important; padding-top: 0 !important; }
.hub-card.hub-card-news-flash.pricing-card--intro div.btn-ghost { border: 0 !important; }

/* Force specific rows to stack on mobile */
@media (max-width: 980px) {
  .hub-stack-mobile.et_pb_row { display: block !important; }
  .hub-stack-mobile.et_pb_row .et_pb_column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }
}

/* Hide the singles ladder */
.hub-card--banner { display: none !important; }

/* Member resources cards */
.hub-card.resources-card {
  position: relative;
  padding: 12px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  margin-bottom: 0 !important;
}

.hub-card.resources-card h2 {
  font-size: 1.3rem;
  line-height: 1;
  margin: 0;
}

.hub-card.resources-card:hover,
.hub-card.resources-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 10px 16px 18px rgba(0,0,0,0.25);
  background-color: #f7f9fc;
  border-color: #111;
}

.hub-card.resources-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hub-card.resources-card:hover a,
.hub-card.resources-card:focus-within a {
  text-decoration: underline;
}

.hub-card.resources-card .et_pb_module { margin-bottom: 0 !important; }
.hub-card.resources-card .et_pb_text { margin-bottom: 0 !important; }
.hub-card.resources-card .et_pb_module:empty { display: none !important; }

/* Featured blog card: edge-to-edge image */
.hub-card.hub-card--featured {
  padding: 0;
}

.hub-card.hub-card--featured .entry-featured-image-url {
  display: block;
  margin: 0;
}

.hub-card.hub-card--featured .entry-featured-image-url img {
  display: block;
  width: 100%;
  height: auto;
}
/* Restore inner spacing for text content */
.hub-card.hub-card--featured h2,
.hub-card.hub-card--featured .post-meta,
.hub-card.hub-card--featured .post-content {
  padding: 16px 24px 0;
}

.hub-card.hub-card--featured .post-content {
  padding-bottom: 24px;
}

/* Amelia "Coming events" card: hide pagination only here */
.cbh-coming-events .am-els__pagination {
  display: none !important;
}

/* =========================================================
   "From the blog" label on posts
   ======================================================== */

.et_pb_post_title.post-title--from-blog {
  position: relative;
}

/* Label container */
.et_pb_post_title.post-title--from-blog::before {
  content: "From the blog";
  position: absolute;
  top: 0;
  left: 16px;              /* align with text padding */
  z-index: 3;

  background: #46A2B7;
  color: #ffffff;
  font-family: 'Author', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 0.85em;

  padding: 6px 9px 7px 10px;
  border-radius: 0 0 6px 6px;
}

/* =========================================================
   Reusable overlay label (use one class anywhere)
   Add class: cbh-overlay--from-blog
   Optional per-location vars:
     --cbh-label-left: 16px;
     --cbh-label-top: 0px;
     --cbh-label-text: "From the blog";
   ======================================================== */

.cbh-overlay--from-blog {
  position: relative;
  --cbh-label-left: 16px;
  --cbh-label-top: 0px;
  --cbh-label-text: "From the blog";
}

.cbh-overlay--from-blog::before {
  content: var(--cbh-label-text);
  position: absolute;
  top: var(--cbh-label-top);
  left: var(--cbh-label-left);
  z-index: 3;

  display: inline-block;
  background: #46A2B7;
  color: #ffffff;
  font-size: 0.8rem;
  font-family: 'Author', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 0.85em;
  padding: 6px 9px 7px 10px;
  border-radius: 0 0 6px 6px;
  box-shadow: none;
}
.hub-card.cbh-overlay--from-blog { --cbh-label-left: 24px; }
.et_pb_post_title.cbh-overlay--from-blog { --cbh-label-left: 16px; }
.member-resources-page .cbh-overlay--from-blog { --cbh-label-left: 16px; }


/* =========================================================
   12. TOURNAMENT CARDS (AMELIA) — UNIFIED
   ======================================================== */

/* Desktop only: remove Amelia max-width so grid can breathe */
@media (min-width: 981px) {
  .tournament-cards #amelia-container,
  .tournament-cards .am-elf {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Base wrapper grid (default: responsive up to 3-ish) */
.tournament-cards .am-els__wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  align-items: stretch;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Card container */
.tournament-cards .am-ec {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  grid-template-columns: none !important;

  border-radius: 10px;
  border: 2px solid #111 !important;
  background-color: #ffffff;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.18) !important;
}

/* Kill any Amelia internal multi-column quirks */
.tournament-cards .am-ec__info,
.tournament-cards .am-ec__actions {
  column-count: 1 !important;
  column-width: auto !important;
}

/* Info block */
.tournament-cards .am-ec__info {
  margin: 0;
  padding: 24px !important;
  padding-top: 48px !important;
  padding-bottom: 0 !important;
}

/* Title */
.tournament-cards .am-ec__info-name {
  margin: 0 0 4px !important;
  font-family: 'Author', sans-serif;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  line-height: 1.4em !important;
  letter-spacing: 0.01em;
  color: #111111 !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* Meta row */
.tournament-cards .am-ec__info-other {
  display: flex !important;
  flex-wrap: wrap;
  row-gap: 2px !important;
  column-gap: 10px !important;
  margin: 0 0 2px !important;
  font-size: 0.85rem;
}

/* “Upcoming” label */
.tournament-cards .am-ec__info-availability {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Spots left */
.tournament-cards .am-ec__info-capacity {
  margin: 0;
  font-size: 0.85rem;
}

/* Actions area */
.tournament-cards .am-ec__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0 24px 24px !important;
}

/* Price */
.tournament-cards .am-ec__actions-price {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.tournament-cards .am-ec__actions-price p {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA button */
.tournament-cards .am-ec__actions-btn {
  margin: 0;
  width: 100%;
}

.tournament-cards .am-ec__actions-btn .am-button--primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #40C46E !important;
  border-radius: 6px !important;
  background-color: #40C46E !important;
  color: #ffffff !important;

  padding: 10px 16px !important;
  font-family: 'Author', sans-serif !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.14em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-align: center;
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.6);
}

.tournament-cards .am-ec__actions-btn .am-button__inner {
  width: 100%;
  text-align: center;
  color: #ffffff !important;
}

.tournament-cards .am-ec__actions-btn .am-button--primary:hover {
  background-color: #2c9c51 !important;
  border-color: #2c9c51 !important;
  color: #ffffff !important;
}

/* Kill Amelia icon animation */
.tournament-cards .am-ec__actions-btn .am-button__inner::after {
  display: none !important;
}

/* Image wrapper + badge */
.tournament-cards .tournament-card-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible !important;
}

.tournament-cards .tournament-card-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Circular date badge */
.tournament-cards .tournament-card-image-wrapper .am-ec__period {
  position: absolute;
  bottom: -32px;
  right: 0px;
  width: 100px !important;
  height: 100px !important;
  border-radius: 50%;
  background-color: #CC3B2A !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  padding: 6px;
}

.tournament-cards .tournament-card-image-wrapper .am-ec__period-date {
  margin: 0 0 2px;
  font-family: 'Author', sans-serif;
  font-weight: 600;
  line-height: 1.1;
}

.tournament-cards .tournament-card-image-wrapper .am-ec__period-date__day {
  display: block;
  font-size: 1.9rem !important;
  color: #ffffff !important;
}

.tournament-cards .tournament-card-image-wrapper .am-ec__period-date__month {
  display: block;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff !important;
}

.tournament-cards .tournament-card-image-wrapper .am-ec__period-time {
  display: none !important;
}

/* Force Author everywhere in tournament cards */
.tournament-cards #amelia-container,
.tournament-cards #amelia-container * {
  font-family: 'Author', sans-serif !important;
}

/* Ensure white text survives any “make calendar black” rules */
.tournament-cards #amelia-container .am-ec__period,
.tournament-cards #amelia-container .am-ec__period *,
.tournament-cards #amelia-container .am-ec__actions-btn .am-button--primary,
.tournament-cards #amelia-container .am-ec__actions-btn .am-button--primary * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Urgency flag */
.tournament-urgency-flag {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 30;
  pointer-events: none;

  display: inline-block;
  padding: 6px !important;
  max-width: 300px;

  font-family: 'Author', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-align: left;
  line-height: 1 !important;
  text-transform: uppercase;

  color: #000;
  border-radius: 6px 0px 6px 0px;
  box-shadow: 0 6px 12px -6px #000000;
}

.tournament-urgency-flag--last { background-color: #ffe43b; }
.tournament-urgency-flag--spots { background-color: #ff8d01; }

/* Tournaments page – show only the first 4 tournament cards */
.tournament-card-section.tournaments-page .tournament-cards .am-ec:nth-of-type(n+5) {
  display: none !important;
}

/* Tournament listing variant */
.tournament-listing #amelia-container,
.tournament-listing #amelia-container * {
  font-family: 'Author', sans-serif !important;
}
.tournament-listing .am-ec__info-name { font-size: 1.2rem !important; font-weight: 600 !important; }
.tournament-listing .am-ec__period-date { font-size: 1.2rem !important; font-weight: 600 !important; }

/* 4-up desktop layout */
@media (min-width: 1100px) {
  .tournament-cards .am-els__wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tournament-cards .am-ec__info {
    padding: 20px !important;
    padding-top: 48px !important;
    padding-bottom: 0 !important;
  }

  .tournament-cards .am-ec__actions {
    padding: 0 20px 18px !important;
  }

  .tournament-cards .tournament-card-image-wrapper .am-ec__period {
    width: 85px !important;
    height: 85px !important;
    bottom: -20px !important;
    right: 0 !important;
  }

  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date__day { font-size: 1.6rem !important; }
  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date__month { font-size: 0.8rem !important; }

  .tournament-cards .am-ec__info-name {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
  }

  .tournament-cards .am-ec__info-other { margin: 0 0 2px !important; }

  .tournament-cards .am-ec__actions-price {
    margin-top: -4px !important;
    margin-bottom: 4px !important;
  }

  .tournament-cards .am-ec__actions-btn .am-button--primary {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.12em !important;
  }
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .tournament-cards .am-els__wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
	
@media (max-width: 767px) {
  .tournament-cards .am-ec__actions-price {
    display: none !important;
  }
}


  .tournament-cards .tournament-card-image-wrapper .am-ec__period {
    width: 88px !important;
    height: 88px !important;
    bottom: -30px;
    right: 0px;
  }

  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date__day,
  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date__month {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
  }

  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date__day { font-size: 1.45rem !important; }
  .tournament-cards .tournament-card-image-wrapper .am-ec__period-date__month {
    font-size: 0.8rem !important;
    letter-spacing: 0.06em !important;
  }
}

/* =========================================
   TOURNAMENT LISTING ROW — FLUSH LEFT/RIGHT
   Scope: ONLY this row
   ========================================= */

/* Remove Divi's column gutters/padding inside the row */
.tournament-listing .et_pb_column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* If there’s any module padding adding space, remove it too */
.tournament-listing .et_pb_module {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Amelia sometimes constrains width and can look like "padding".
   Let it use the full available width in this row. */
.tournament-listing .amelia-v2-booking,
.tournament-listing .am-elf {
  max-width: 100% !important;
}

/* Some Amelia layouts apply side padding on internal wrappers.
   Nuke only within this row. */
.tournament-listing .am-els__wrapper,
.tournament-listing .am-els,
.tournament-listing #amelia-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.tournament-listing .am-ec__info-name {
	line-height: 1.1em !important;
}

/* hides the enter tournament button on listings (in-club visible to non-members) */
.hide-enter-button .am-ec__actions-btn {
	display:none !important;
}

/* Logged IN: hide the "logged-out" module */
body.logged-in .amelia-inclub--out {
  display: none !important;
}

/* Logged OUT: hide the "logged-in" module */
body:not(.logged-in) .amelia-inclub--in {
  display: none !important;
}

/* =========================================================
   13. CLUB WEEK STRIP — WEEK-AT-A-GLANCE (FINAL)
   ======================================================== */

.club-week-source { display: none !important; }

/* Wrapper */
.club-week-calendar {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: #f1f1f1;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.club-week-strip-wrapper {
  margin: 40px auto 32px;
  max-width: 1200px;
  padding: 0 16px;
  font-family: 'Author', sans-serif;
}

/* Header */
.club-week-strip-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: #000;
}

.club-week-strip-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #000;
}

/* Scroll hint */
.club-week-strip-scroll-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #000;
}

/* Horizontal strip */
.club-week-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.club-week-strip::-webkit-scrollbar { height: 6px; }
.club-week-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

/* Day card */
.club-week-day {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 0.75rem 0.6rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

/* Today */
.club-week-day--today {
  border-color: #3156a6;
  box-shadow: 0 0 0 2px rgba(49, 86, 166, 0.22);
}

/* Day header */
.club-week-day-header {
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 0.3rem;
}

.club-week-day-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #000;
}

.club-week-day--today .club-week-day-name { color: #3156a6; }

.club-week-day-date {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #000;
}

/* Events */
.club-week-events { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.club-week-event { margin: 0.25rem 0; font-size: 0.85rem; line-height: 1.3; }

.club-week-event-time { font-weight: 600; margin-right: 4px; }
.club-week-event-title { font-weight: 400; display: block; font-size: 0.95rem; line-height: 1.4; color: #000; }

.club-week-strip-empty-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #000;
}

@media (min-width: 981px) {
  .club-week-strip-scroll-hint { display: none; }
}

/* Empty days visible but subdued */
.club-week-day--empty {
  display: block !important;
  opacity: 0.45;
  background-color: rgba(0, 0, 0, 0.03);
}
.club-week-day--empty .club-week-day-name,
.club-week-day--empty .club-week-day-date {
  font-weight: normal;
}
.club-week-day--empty .club-week-events { opacity: 0.5; }

/* =========================================================
   14. AMELIA V2 CALENDAR (ID: amelia-v2-booking-1000)
   ======================================================== */

/* Hide spots-left label */
#amelia-v2-booking-1000 .am-evt-spots { display: none !important; }

/* Force all text in this calendar to black */
#amelia-v2-booking-1000,
#amelia-v2-booking-1000 * {
  color: #000 !important;
}

/* Hide month/year selection pulldowns */
#amelia-v2-booking-1000 .am-ecs__header-selection { display: none !important; }

/* Hide Location (2nd), Employee (3rd), Status (4th) filters */
#amelia-v2-booking-1000 .am-ecs__filters-menu__items:nth-child(n+2) { display: none !important; }

/* Calendar background */
#amelia-v2-booking-1000 .am-ecs__page { background-color: #f1f1f1 !important; }

/* Hide Amelia filters UI but keep in DOM */
#amelia-v2-booking-1000 .am-ecs__filters-btn {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

#amelia-v2-booking-1000 #filtersMenu {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#amelia-v2-booking-1000 .am-ecs__side-tab { display: none !important; }
#amelia-v2-booking-1000 .am-icon-search { display: none !important; }

.amelia-v2-booking #amelia-container .am-input-wrapper .am-input { box-shadow: none !important; }

/* Author font only where wanted */
#amelia-v2-booking-1000 .am-ecs__side-main,
#amelia-v2-booking-1000 .am-ecs__side-main *:not([class^="am-icon-"]):not(.fc-icon) {
  font-family: 'Author', sans-serif !important;
  font-size: 0.9rem !important;
}

#amelia-v2-booking-1000 .am-ecs__side-header__text,
#amelia-v2-booking-1000 .am-ecs__side-header__text *:not([class^="am-icon-"]):not(.fc-icon) {
  font-family: 'Author', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  margin-top: 23px !important;
}

#amelia-v2-booking-1000 .cosburn-filter-row,
#amelia-v2-booking-1000 .cosburn-filter-row * {
  font-family: 'Author', sans-serif !important;
  font-size: 0.9rem !important;
}

#amelia-v2-booking-1000 .am-ecs,
#amelia-v2-booking-1000 .am-ecs *:not([class^="am-icon-"]):not(.fc-icon) {
  font-family: 'Author', sans-serif !important;
  font-size: 0.85rem !important;
  background-color: #ffffff !important;
}

#amelia-v2-booking-1000 .am-ecs__header-text,
#amelia-v2-booking-1000 .am-ecs__header-text *:not([class^="am-icon-"]):not(.fc-icon),
#amelia-v2-booking-1000 .am-ecs__side-header__range,
#amelia-v2-booking-1000 .am-ecs__side-header__range *:not([class^="am-icon-"]):not(.fc-icon) {
  font-family: 'Author', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* “Cosburn events” label */
#amelia-v2-booking-1000 .am-ecs__filters::before {
  content: "Cosburn events";
  display: block;
  margin-bottom: 18px;
  font-family: 'Author', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Filter button row */
#amelia-v2-booking-1000 .cosburn-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0px 40px 24px !important;
}

/* Filter buttons */
#amelia-v2-booking-1000 .cosburn-filter-btn {
  display: inline-block;
  position: relative;
  padding: 4px 8px 4px 10px !important;
  background: #FFFFFF !important;

  border-top: none !important;
  border-right: none !important;
  border-left: 4px solid transparent !important;
  border-bottom: 2px solid rgba(0,0,0,0.18) !important;

  border-radius: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

#amelia-v2-booking-1000 .cosburn-filter-btn.active {
  color: #ffffff !important;
  border-bottom-color: rgba(0,0,0,0.25) !important;
}

/* Left color stripes */
#amelia-v2-booking-1000 .cosburn-btn-jitneys { border-left-color: #1589fb !important; color: #1589fb !important; }
#amelia-v2-booking-1000 .cosburn-btn-jitneys.active { background-color: #1589fb !important; }

#amelia-v2-booking-1000 .cosburn-btn-special { border-left-color: #27cc2c !important; color: #27cc2c !important; }
#amelia-v2-booking-1000 .cosburn-btn-special.active { background-color: #27cc2c !important; color: #000 !important; }

#amelia-v2-booking-1000 .cosburn-btn-newbowlers { border-left-color: #774efa !important; color: #774efa !important; }
#amelia-v2-booking-1000 .cosburn-btn-newbowlers.active { background-color: #774efa !important; }

#amelia-v2-booking-1000 .cosburn-btn-tournaments { border-left-color: #fa3d50 !important; color: #fa3d50 !important; }
#amelia-v2-booking-1000 .cosburn-btn-tournaments.active { background-color: #fa3d50 !important; }

#amelia-v2-booking-1000 .cosburn-btn-cards { border-left-color: #fd7e35 !important; color: #fd7e35 !important; }
#amelia-v2-booking-1000 .cosburn-btn-cards.active { background-color: #fd7e35 !important; }

#amelia-v2-booking-1000 .cosburn-btn-rainbowlers { border-left-color: #49bec6 !important; color: #49bec6 !important; }
#amelia-v2-booking-1000 .cosburn-btn-rainbowlers.active { background-color: #49bec6 !important; }

#amelia-v2-booking-1000 .cosburn-btn-all { border-left-color: #4a4a4a !important; color: #4a4a4a !important; }
#amelia-v2-booking-1000 .cosburn-btn-all.active { background-color: #4a4a4a !important; color: #ffffff !important; }

#amelia-v2-booking-1000 .cosburn-btn-clear { border-left-color: #4a4a4a !important; color: #4a4a4a !important; }
#amelia-v2-booking-1000 .cosburn-btn-clear:hover { background-color: rgba(0,0,0,0.08) !important; }
#amelia-v2-booking-1000 .cosburn-btn-clear.active { background-color: #4a4a4a !important; color: #ffffff !important; }

/* Amelia Employee panel — prevent duplicate date range display */
.amelia-v2-booking #amelia-container .am-date-picker.el-date-editor--daterange .el-range-input {
    color: transparent !important;
}

/* Amelia Events – prevent capacity (1/28) from wrapping */
#amelia-container .am-cc__places {
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
}

/* =========================================================
   15. PRICING TABLE
   ======================================================== */

.cosburn-pricing {
  padding: 2.5rem 0;
  background: #f3f6ff;
}

.cosburn-pricing__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-start !important;
  gap: 1.75rem;
}

.pricing-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card__body { padding: 1.5rem 1.5rem 1.5rem; }

.pricing-card__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
}

.pricing-card__price {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  padding: 0;
  color: #00718a;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.pricing-card__subprice {
  font-size: 1rem;
  font-weight: 700;
  color: #24549c;
  margin: 0 0 0.85rem;
}

.pricing-card__list {
  list-style: none !important;
  padding: 0;
  margin: 0 0 1.4rem;
}

.pricing-card__list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.pricing-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #2c9f7f;
  font-size: 1.2rem;
  line-height: 1;
}

.pricing-card__text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 0.7rem;
}

.cosburn-pricing .btn-solid,
.cosburn-pricing .btn-ghost {
  margin-top: 0.75rem;
}

.pricing-card--season {
  background: linear-gradient(135deg, #A8E3BB 0%, #ffffff 55%);
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr);
}

.pricing-card--season .pricing-card__body { padding-bottom: 1.25rem; }

.pricing-card__media {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.pricing-card__image {
  width: 100%;
  height: auto !important;
  display: block;
}

.pricing-illo-placeholder {
  border-radius: 14px;
  background: linear-gradient(135deg, #1f7cff 0%, #2c9f7f 100%);
  min-height: 140px;
}

.pricing-card--trial { border: 1px solid #dde5f7; }

.pricing-card--intro {
  background: radial-gradient(circle at top left, #2747b8 0%, #0b1833 55%, #050a17 100%);
  color: #ffffff;
}

.pricing-card--intro .pricing-card__title,
.pricing-card--intro .pricing-card__text {
  color: #ffffff;
}

.pricing-card--intro .pricing-card__body { padding: 1.6rem 1.6rem 1.5rem; }

.cosburn-pricing__right {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.75rem;
}

@media (max-width: 980px) {
  .cosburn-pricing__inner { flex-direction: column; }
  .pricing-card--season { grid-template-rows: auto auto; }
  .pricing-card__media { padding-top: 0; }
}

@media (max-width: 600px) {
  .cosburn-pricing { padding: 2rem 0; }
  .pricing-card__title { font-size: 1.2rem; }
  .pricing-card__price { font-size: 2rem; }
  .pricing-card__body { padding: 1.35rem 1.25rem 1.35rem; }
}

/* Checklist (checkmarks) */
.checklist {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #1E8A47;
  font-weight: 900;
}

/* =========================================================
   16. BENTO HERO
   ======================================================== */

.cosburn-bento-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.5rem 3rem;
}

.cosburn-bento-hero .cbh-tile {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.cosburn-bento-hero .et_pb_image_wrap {
  border-radius: inherit;
  overflow: hidden;
  display: block;
}

.cosburn-bento-hero .cbh-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.cosburn-bento-hero .cbh-mid-left .et_pb_image img { height: auto !important; }

.cbh-tile-10 {
  background: radial-gradient(circle at top left, #2747b8 0%, #0b1833 55%, #050a17 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  height: 100%;
  border-radius: 6px;
}

.cbh-cta-inner { padding: 1.5rem 1.5rem 1.4rem; }

.cbh-cta-h3 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  font-family: "Author", sans-serif;
}

@media (min-width: 981px) {
  .cosburn-bento-hero .cbh-mid-row {
    display: flex;
    align-items: stretch;
  }

  .cosburn-bento-hero .cbh-mid-left,
  .cosburn-bento-hero .cbh-mid-right {
    display: flex;
    flex-direction: column;
  }

  .cosburn-bento-hero .cbh-mid-left {
    flex: 0 0 64%;
    margin-right: 16px !important;
  }

  .cosburn-bento-hero .cbh-mid-right { flex: 1 1 0; }

  .cosburn-bento-hero .cbh-mid-row .et_pb_module { margin-bottom: 0 !important; }

  .cosburn-bento-hero .cbh-mid-left .et_pb_image { flex: 0 0 auto; }

  .cosburn-bento-hero .cbh-mid-left .cbh-mid-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.3rem;
    background: #ffffff;
    border-radius: 6px;
  }

  .cosburn-bento-hero .cbh-mid-left .cbh-mid-copy h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2.1rem, 2.6vw, 2.7rem);
    line-height: 1.15;
  }

  .cosburn-bento-hero .cbh-mid-left .cbh-mid-copy h2 {
    margin: 0;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    line-height: 1.5;
    font-weight: 500;
  }

  .cosburn-bento-hero .cbh-mid-right .et_pb_image { flex: 0 0 auto; }
  .cosburn-bento-hero .cbh-mid-right .et_pb_image + .et_pb_image { margin-top: 16px !important; }

  .cosburn-bento-hero .cbh-mid-row { margin-bottom: 16px !important; }

  .cosburn-bento-hero .cbh-mid-left .et_pb_image:first-child,
  .cosburn-bento-hero .cbh-mid-left .et_pb_image:first-child .et_pb_image_wrap,
  .cosburn-bento-hero .cbh-mid-left .et_pb_image:first-child img {
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .cosburn-bento-hero .cbh-mid-left .et_pb_image:first-child img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    display: block;
  }

  .cosburn-bento-hero .et_pb_row.et_pb_gutters2 {
    display: flex;
    align-items: stretch;
  }

  .cosburn-bento-hero .et_pb_row.et_pb_gutters2 > .et_pb_column:first-child {
    display: flex !important;
    flex-direction: column;
    height: 100%;
  }

  .cosburn-bento-hero .et_pb_row.et_pb_gutters2 > .et_pb_column:first-child .cbh-tile-1 {
    flex: 1 1 auto;
    margin-bottom: 16px !important;
  }

  .cosburn-bento-hero .et_pb_row.et_pb_gutters2 > .et_pb_column:first-child .cbh-tile-5 {
    flex: 0 0 auto;
    margin-bottom: 16px !important;
  }

  .cosburn-bento-hero .et_pb_row.et_pb_gutters2 > .et_pb_column:first-child .cbh-tile-8 {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
  }
}

/* Keep the bento grid as 2 columns on phones */
@media (max-width: 980px) {
  .bento-phone .et_pb_column {
    width: 48% !important;
    float: left !important;
    clear: none !important;
    margin-right: 0 !important;
  }

  .bento-phone .et_pb_image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .bento-phone .et_pb_image { margin-bottom: 8px; }
}

/* Bento hero v2 wrapper */
.cosburn-bento-hero-v2 {
  overflow: hidden;
  border-radius: 6px;
}

.cosburn-bento-hero-v2 * {
  overflow: hidden;
  border-radius: inherit;
}

.cosburn-bento-hero-v2 .cbh-cta-h3 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  font-family: "Author", sans-serif;
}

.cosburn-bento-hero-v2 .cbh-cta-inner { padding: 0 1.5rem; }

/* Page-specific offset */
@media (min-width: 981px) {
  body.page-id-85 #page-container { margin-top: -127px !important; }
}

/* Posts gap var */
.et_flex_module.et_pb_posts { --vertical-gap: 10px; }

/**************************
 FAQ Styling
***************************/

/* FAQ Search UI */
.cbh-faq-search {
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
}

.cbh-faq-search__label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.cbh-faq-search__controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cbh-faq-search__input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #111;
  border-radius: 6px;
  font-size: 16px;
}

.cbh-faq-search__clear {
  padding: 12px 14px;
  border: 1px solid #111;
  border-radius: 6px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.cbh-faq-search__meta {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.8;
}
/* =========================================
   FAQ Toggles — Neutral, readable, clear UI
   Scope: only inside your central FAQ wrapper
   ========================================= */

.cbh-faq .et_pb_toggle {
  margin: 0;              /* ↓ gap between questions (~50%) */
  border: 0;
  background: transparent;
}

.cbh-faq .et_pb_toggle .et_pb_toggle_title {
  position: relative;
  padding: 12px 12px 12px 48px; /* was 62px */
  margin: 0;

  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;            /* ↓ lighter question weight */
  color: inherit;
  cursor: pointer;

  border-top: 1px solid rgba(0,0,0,0.15);
}

.cbh-faq-category .et_pb_toggle:last-child .et_pb_toggle_title {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.cbh-faq .et_pb_toggle_content {
  padding: 8px 14px 12px 48px;  /* align with title text */
  line-height: 1.65;
  font-size: 16px;
}

/* Remove Divi default icon */
.cbh-faq .et_pb_toggle_title:before {
  display: none !important;
}

/* Custom + / − icon */
.cbh-faq .et_pb_toggle .et_pb_toggle_title:after {
  content: "+";
  position: absolute;
  left: 0;
  top: 14px;              /* align to top padding of title */
  transform: none;        /* remove vertical centering */

  width: 28px;
  height: 28px;

  border: 1px solid #111;      /* ↓ 50% thinner border */
  border-radius: 3px;          /* ↓ tighter radius */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* Open state */
.cbh-faq .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title:after {
  content: "–";
}

/* Subtle interaction cues */
.cbh-faq .et_pb_toggle .et_pb_toggle_title:hover {
  background: rgba(0,0,0,0.03);
}

.cbh-faq .et_pb_toggle .et_pb_toggle_title:focus,
.cbh-faq .et_pb_toggle .et_pb_toggle_title:focus-visible {
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 2px;
}

/* Two-column FAQ layout per category (desktop only) */
@media (min-width: 768px) {

  /* The column that contains the category heading + toggles */
  .cbh-faq-category .et_pb_column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 10px; /* vertical spacing between items */
    align-items: start;
  }

  /* Category heading module spans both columns */
  .cbh-faq-category .et_pb_text {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  /* Each toggle becomes a grid item */
  .cbh-faq-category .et_pb_toggle {
    margin-bottom: 0; /* let grid handle spacing */
  }
}

/* Open-state cue: subtle, readable, not “shouty” */
.cbh-faq .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title {
  background: rgba(0,0,0,0.03);
}

.cbh-faq .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title:after {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.45);
}

/*********************
 Fix rounded corners on images. Apply class fix-rounded-images to section
**********************/

.fix-rounded-images .et_pb_image_wrap,
.fix-rounded-images img{
  overflow: hidden !important;
  border-radius: inherit;
}

/*********************
 Fix membership account page (roster settings, passwords)
**********************/

#pmpro_account-links {
display: none;}

/*********************
 adjust active link colour on menu button
**********************/
/* CTA menu item — active/current link colour override (beats Divi Theme Builder rule) */
.et_pb_menu_0_tb_header.et_pb_menu .cta-menu nav ul li.current-menu-item > a,
.et_pb_menu_0_tb_header.et_pb_menu .cta-menu nav ul li.current_page_item > a,
.et_pb_menu_0_tb_header.et_pb_menu .cta-menu nav ul li.current-menu-ancestor > a,
.et_pb_menu_0_tb_header.et_pb_menu .cta-menu nav ul li.current-menu-parent > a,
.et_pb_menu_0_tb_header.et_pb_menu ul li.cta-menu.current-menu-item > a,
.et_pb_menu_0_tb_header.et_pb_menu ul li.cta-menu.current_page_item > a,
.et_pb_menu_0_tb_header.et_pb_menu ul li.cta-menu.current-menu-ancestor > a,
.et_pb_menu_0_tb_header.et_pb_menu ul li.cta-menu.current-menu-parent > a {
  color: #CFFDBC !important;
}

/*********************
 hide something
**********************/
.temp-hide { 
  display: none !important; 
}

/* =========================================
   Amelia modal — show primary button only when status is OPEN
   ========================================= */

/* Hide by default */
#amelia-container .am-elf__footer .am-button--primary {
  display: none !important;
}

/* Show only when the status is “Open” */
#amelia-container:has(.am-ec__info-availability.open) .am-elf__footer .am-button--primary {
  display: inline-flex !important;
}

/* Event list: hide booking / waitlist buttons by default */
.am-ec .am-ec__actions-btn {
  display: none !important;
}

/* Event list: show booking button only when status is OPEN */
.am-ec:has(.am-ec__info-availability.open) .am-ec__actions-btn {
  display: block !important;
}

/* Make waitlist button span full card width */
.am-ec__actions-btn .am-button--waiting {
  width: 100% !important;
  display: inline-flex !important;
  justify-content: center;
}
/* Waitlist CTA: match green button typography + full-width, keep Amelia's yellow */
.tournament-cards .am-ec__actions-btn .am-button--waiting{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* typography to match primary */
  padding: 10px 16px !important;
  font-family: 'Author', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-align: center;

/* keep your shadow consistency */
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.6);
}

/* Ensure inner span doesn't revert typography */
.tournament-cards .am-ec__actions-btn .am-button--waiting .am-button__inner{
  width: 100%;
  text-align: center;

  font-family: 'Author', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
 }



/* Mobile tweaks */
@media (max-width: 767px) {
  .tournament-cards .am-els__wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tournament-cards .am-ec__actions-price {
    display: none !important;
  }
}

/* =========================================================
   AMELIA CTA RULE (OFFICIAL)
   We do NOT hide buttons by category anymore.

   Non-bookable events (jitneys, info-only, etc.):
   -> Set “Booking closes” to yesterday in Amelia.
   Amelia will mark CTAs as .is-disabled, and we hide those.

   Everything else:
   -> Buttons display normally.
   ========================================================= */

/* Show CTA containers normally (cards) */
.am-ec .am-ec__actions-btn { display: block !important; }

/* Show modal primary CTA normally */
#amelia-container .am-elf__footer .am-button--primary { display: inline-flex !important; }

/* Never show dead/disabled CTAs */
.am-button.is-disabled,
#amelia-container .am-elf__footer .am-button--primary.is-disabled,
#amelia-container .am-elf__footer .am-button--primary[disabled] {
  display: none !important;
}
