/* ==========================================================================
   MBJJ v4.2 display layer
   Loaded after club.css + schedule.css. Adds:
   1. Brand type + readability defaults (both themes)
   2. Accessible accent usage (yellow is never small text on white)
   3. Focus, tap-target and motion safety
   4. Dark theme
   5. Text size + high contrast preferences
   6. The Display panel itself
   ========================================================================== */

/* --- 1. Type + readability ------------------------------------------------ */
:root{
  --mbjj-on-accent:#111;
  --mbjj-surface:#fff;
  --mbjj-canvas:#111;
  --mbjj-body-size:1.0625rem;
}
.mbjj-block :is(h1,h2,h3,h4),
.mbjj-schedule :is(h1,h2,h3),
.mbjj-program-body h3,
.mbjj-price{
  font-family:var(--mbjj-font-display,inherit);
  text-wrap:balance;
}
/* Big uppercase headings: keep the punch, loosen the squeeze so words stay legible. */
.mbjj-block :is(h1,h2){letter-spacing:-.035em!important;line-height:.95!important}
.mbjj-block h3{letter-spacing:-.02em!important;line-height:1.1}
.mbjj-block :is(p,li,dd){
  font-size:max(var(--mbjj-body-size),1em);
  line-height:1.62;
  text-wrap:pretty;
}
.mbjj-block :is(.mbjj-lead,.mbjj-hero-copy p,.mbjj-start-card-copy p,.mbjj-sorriso-copy p){max-width:62ch}
.mbjj-block :is(small,.mbjj-small-note,.mbjj-tag,.mbjj-badge){line-height:1.35}

/* Hero tagline reads as a statement, not a footnote. */
.mbjj-hero-copy p{font-size:clamp(1.15rem,1rem + .6vw,1.45rem)!important;font-weight:700;letter-spacing:-.01em}

/* Blocksy header menu: bigger, brand font, no off-brand purple active state. */
.ct-header .ct-menu-link{font-family:var(--mbjj-font-body,inherit);font-size:clamp(12px,.42vw + 8.6px,14px)!important;font-weight:800!important;letter-spacing:.03em}
.ct-header [data-id="menu"] .menu>li>.ct-menu-link{position:relative}
.ct-header :is(.current-menu-item,.current_page_item)>.ct-menu-link{color:var(--mbjj-ink,#111)!important}
.ct-header [data-id="menu"] :is(.current-menu-item,.current_page_item)>.ct-menu-link::after{
  content:"";position:absolute;left:var(--menu-items-spacing,12px);right:var(--menu-items-spacing,12px);bottom:calc(50% - 1.1em);
  height:3px;border-radius:2px;background:var(--mbjj-accent,#fcbf28);
}
/* "Try a free class" in the menu becomes the call-to-action pill.
   Works automatically for links to the trial anchor, or add CSS class mbjj-menu-cta to any menu item. */
.ct-header [data-id="menu"] .menu>li:is(.mbjj-menu-cta,:has(>a[href*="try-free-class"],>a[href$="/trial/"]))>.ct-menu-link{
  background:var(--mbjj-accent,#fcbf28);color:var(--mbjj-on-accent,#111)!important;border-radius:999px;
  height:auto!important;min-height:40px;padding:0 16px!important;margin-inline:6px;
}
.ct-header [data-id="menu"] .menu>li:is(.mbjj-menu-cta,:has(>a[href*="try-free-class"],>a[href$="/trial/"]))>.ct-menu-link::after{display:none}
.ct-header [data-id="menu"] .menu>li:is(.mbjj-menu-cta,:has(>a[href*="try-free-class"],>a[href$="/trial/"]))>.ct-menu-link:hover{background:var(--mbjj-ink,#111);color:#fff!important}

/* Eyebrows: slightly larger, a little less tracking. */
.mbjj-eyebrow{font-size:.8rem!important;letter-spacing:.14em!important}

/* --- 2. Accent contrast ---------------------------------------------------
   The partner accent (yellow on the live site) is ~1.6:1 on white, so on light
   cards eyebrows become ink with an accent marker. On dark surfaces the accent
   text stays (12:1 on #111). */
.mbjj-eyebrow{color:var(--mbjj-ink,#111)}
.mbjj-eyebrow::before{
  content:"";display:inline-block;width:1.4em;height:.32em;margin-right:.55em;
  vertical-align:.18em;border-radius:2px;background:var(--mbjj-accent,#fcbf28);
}
.mbjj-hero-copy .mbjj-eyebrow::before,
.mbjj-program-body .mbjj-eyebrow::before{display:none}
.mbjj-sorriso-nation .mbjj-eyebrow,
.mbjj-footer .mbjj-eyebrow{color:var(--mbjj-accent,#fcbf28)}

/* Text sitting on the accent colour picks black or white automatically (set by PHP). */
.mbjj-button:hover,.mbjj-filter-set button:hover,.mbjj-filter-set button.active,
.mbjj-badge,.mbjj-badge-inline{color:var(--mbjj-on-accent,#111)!important}
.mbjj-badge[style*="--belt"],.mbjj-card-strip + .mbjj-badge{color:#fff!important}

/* Links inside running copy are clearly links. */
.mbjj-block:not(.mbjj-footer) p a:not(.mbjj-button){text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:var(--mbjj-accent,#fcbf28)}

/* --- 3. Focus, targets, motion -------------------------------------------- */
:is(.mbjj-block,.mbjj-schedule,.mbjj-display,.mbjj-footer,.ct-header) :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:3px solid var(--mbjj-accent,#fcbf28)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 6px #111!important;
  border-radius:inherit;
}
.mbjj-button,.mbjj-filter-set button{min-height:44px;padding-inline:20px}

/* Hero actions (new in v4.2) */
.mbjj-hero-actions{margin-top:22px}
.mbjj-hero-actions .mbjj-button{font-size:1rem;min-height:48px;padding-inline:22px}
.mbjj-hero-actions .mbjj-button-primary{background:var(--mbjj-accent,#fcbf28);border-color:var(--mbjj-accent,#fcbf28);color:var(--mbjj-on-accent,#111)!important}
.mbjj-hero-actions .mbjj-button-primary:hover{background:var(--mbjj-ink,#111);border-color:var(--mbjj-ink,#111);color:var(--mbjj-surface,#fff)!important}

@media (prefers-reduced-motion:reduce){
  .mbjj-block *,.mbjj-schedule *,.mbjj-display *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
html[data-mbjj-motion="reduced"]{scroll-behavior:auto!important}
html[data-mbjj-motion="reduced"] *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
html[data-mbjj-motion="reduced"] :is(.mbjj-member-card,.mbjj-tech-card,.mbjj-gallery-card,.mbjj-button):hover{transform:none!important}
html[data-mbjj-motion="reduced"] .mbjj-gallery-card:hover .mbjj-gallery-media img{transform:none!important}

/* --- 4. Dark theme ---------------------------------------------------------
   Same black/white identity, inverted: charcoal cards on a black canvas,
   white type, accent used for emphasis. Custom properties use !important so
   they also beat the inline style="--mbjj-ink:…" the shortcodes print. */
html[data-mbjj-theme="dark"]{color-scheme:dark}
html[data-mbjj-theme="dark"],
html[data-mbjj-theme="dark"] [class*="mbjj-"]{
  --mbjj-paper:#202020!important;
  --mbjj-ink:#f5f5f3!important;
  --mbjj-muted:#c9c9c5!important;
  --mbjj-line:#353535!important;
  --mbjj-surface:#161616;
  --mbjj-canvas:#0a0a0a;
}
html[data-mbjj-theme="dark"] body,
html[data-mbjj-theme="dark"] #main-container,
html[data-mbjj-theme="dark"] .site-main{background-color:var(--mbjj-canvas)!important;color:var(--mbjj-ink)}

/* Every light card/surface the plugin prints */
html[data-mbjj-theme="dark"] :is(
  .mbjj-panel,.mbjj-hero,.mbjj-join-cta,.mbjj-pathway,.mbjj-start-card,.mbjj-first-card,.mbjj-optional,
  .mbjj-gallery,.mbjj-gallery-card,.mbjj-member-card,.mbjj-tech-card,.mbjj-plan,.mbjj-announcement,
  .mbjj-milestone,.mbjj-login-box,.mbjj-dashboard,.mbjj-kids-card,.mbjj-ladder-item,.mbjj-haka,
  .mbjj-haka-line.is-leader,.mbjj-haka-action,.mbjj-haka-number,.mbjj-empty,.mbjj-check-grid label,
  .mbjj-access-gate,.mbjj-access-ok,.mbjj-member-welcome,.mbjj-program-page-hero,.mbjj-belt-ladder,
  .mbjj-coach-card,.mbjj-event-card,.mbjj-testimonial,.mbjj-form,.mbjj-contact-form,.mbjj-trial-form,
  .mbjj-waiver-form,.mbjj-hub-link,.mbjj-hub-nav a,.mbjj-gallery-lightbox-frame,.mbjj-gallery-lightbox-close
){
  background:var(--mbjj-surface)!important;
  color:var(--mbjj-ink)!important;
  border-color:var(--mbjj-line)!important;
  box-shadow:none!important;
}
html[data-mbjj-theme="dark"] .mbjj-hero{border-color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .mbjj-hero:after{border-color:#1d1d1d!important}
html[data-mbjj-theme="dark"] :is(.mbjj-stat-card,.mbjj-mini-stats div,.mbjj-quote,.mbjj-profile-editor,.mbjj-haka-line,.mbjj-gallery-media,.mbjj-pathway li span){background:var(--mbjj-paper)!important;border-color:var(--mbjj-line)!important}
html[data-mbjj-theme="dark"] .mbjj-gallery-placeholder{background:repeating-linear-gradient(135deg,#1a1a1a 0,#1a1a1a 12px,#222 12px,#222 24px)!important}

/* Headings/copy that older layers hard-coded to #111 */
html[data-mbjj-theme="dark"] :is(.mbjj-block,.mbjj-schedule-embed,.mbjj-schedule) :is(h1,h2,h3,h4,strong,label,legend,dt,dd,summary,.mbjj-price),
html[data-mbjj-theme="dark"] .mbjj-hero-copy :is(h1,p,.mbjj-eyebrow),
html[data-mbjj-theme="dark"] .mbjj-schedule-embed{color:var(--mbjj-ink)!important}
html[data-mbjj-theme="dark"] :is(.mbjj-block,.mbjj-schedule) :is(p,li,small,em,time,.mbjj-small-note,.mbjj-lead,.mbjj-detail-line){color:var(--mbjj-muted)!important}
html[data-mbjj-theme="dark"] .mbjj-sorriso-nation .mbjj-eyebrow{color:var(--mbjj-accent,#fcbf28)!important}

/* Buttons: inverted pair */
html[data-mbjj-theme="dark"] .mbjj-button{background:#f5f5f3!important;border-color:#f5f5f3!important;color:#111!important}
html[data-mbjj-theme="dark"] .mbjj-button-outline{background:transparent!important;color:#f5f5f3!important;border-color:#f5f5f3!important}
html[data-mbjj-theme="dark"] :is(.mbjj-button,.mbjj-button-outline):hover{background:var(--mbjj-accent,#fcbf28)!important;border-color:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important}
html[data-mbjj-theme="dark"] .mbjj-hero-actions .mbjj-button-primary{background:var(--mbjj-accent,#fcbf28)!important;border-color:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important}
html[data-mbjj-theme="dark"] .mbjj-tag{background:#f5f5f3!important;color:#111!important}
html[data-mbjj-theme="dark"] .mbjj-filter-set button{background:#1d1d1d!important;color:#f5f5f3!important;border-color:#3a3a3a!important}

/* Forms */
html[data-mbjj-theme="dark"] .mbjj-block :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){
  background:#0f0f0f!important;color:#f5f5f3!important;border-color:#4a4a4a!important;
}
html[data-mbjj-theme="dark"] .mbjj-block :is(input,textarea)::placeholder{color:#8d8d89!important}
html[data-mbjj-theme="dark"] .mbjj-block select option{background:#0f0f0f;color:#f5f5f3}

/* The club logo stays a white emblem; a hairline ring stops it floating */
html[data-mbjj-theme="dark"] .mbjj-logo-card{background:#fff!important;border-color:#f5f5f3!important;box-shadow:0 0 0 8px #1d1d1d!important}
html[data-mbjj-theme="dark"] .mbjj-footer-logo{background:#fff!important}

/* Timetable */
html[data-mbjj-theme="dark"] :is(.mbjj-schedule,.mbjj-schedule-timegrid,.mbjj-timegrid-body,.mbjj-timegrid-corner,.mbjj-timegrid-day-name,.mbjj-calendar-panel,.mbjj-calendar-choice,.mbjj-single,.mbjj-selected-count,.mbjj-weekend-panel,.mbjj-weekday-panel,.mbjj-schedule-tooltip,.mbjj-schedule-footer,.mbjj-notice){
  background:var(--mbjj-surface)!important;color:var(--mbjj-ink)!important;border-color:var(--mbjj-line)!important;box-shadow:none!important;
}
html[data-mbjj-theme="dark"] :is(.mbjj-select-all,.mbjj-clear-all,.mbjj-toolbar-actions button){background:#1f1f1f!important;color:#f5f5f3!important;border-color:#444!important}
html[data-mbjj-theme="dark"] .mbjj-timegrid-day-name{background:#1b1b1b!important}
html[data-mbjj-theme="dark"] .mbjj-day-bg{background:#141414!important}
html[data-mbjj-theme="dark"] .mbjj-time-line{border-color:#2a2a2a!important}
html[data-mbjj-theme="dark"] .mbjj-time-label{color:#a9a9a5!important}
html[data-mbjj-theme="dark"] .mbjj-timegrid-wrap{background:#141414!important}

/* Blocksy header + mobile menu */
html[data-mbjj-theme="dark"] :is(.ct-header,[data-row],#header [data-row]){background-color:#0a0a0a!important;border-color:#222!important}
html[data-mbjj-theme="dark"] .ct-header :is(.ct-menu-link,a,.ct-label){color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-header .current-menu-item>.ct-menu-link{color:var(--mbjj-accent,#fcbf28)!important}
html[data-mbjj-theme="dark"] .ct-header .ct-icon,html[data-mbjj-theme="dark"] .ct-header svg{fill:#f5f5f3}
html[data-mbjj-theme="dark"] .site-logo-container img,
html[data-mbjj-theme="dark"] .ct-header .site-logo-container img{background:#fff;border-radius:50%}
html[data-mbjj-theme="dark"] #offcanvas .ct-panel-inner{background:#0a0a0a!important}
html[data-mbjj-theme="dark"] #offcanvas a{color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-footer,html[data-mbjj-theme="dark"] footer.ct-footer [data-row]{background-color:#0a0a0a!important}

/* --- 5. Text size + contrast ---------------------------------------------- */
html[data-mbjj-text="large"]{font-size:112.5%!important}
html[data-mbjj-text="xlarge"]{font-size:125%!important}
html[data-mbjj-text="large"] body{font-size:1.125rem}
html[data-mbjj-text="xlarge"] body{font-size:1.25rem}
html[data-mbjj-text="large"] .mbjj-block :is(p,li,dd){font-size:1.12rem}
html[data-mbjj-text="xlarge"] .mbjj-block :is(p,li,dd){font-size:1.22rem;line-height:1.68}
html[data-mbjj-text="xlarge"] .mbjj-eyebrow{font-size:.9rem!important}

html[data-mbjj-contrast="high"] [class*="mbjj-"]{--mbjj-muted:#111!important;--mbjj-line:#111!important}
html[data-mbjj-theme="light"][data-mbjj-contrast="high"] :is(.mbjj-hero:not(.has-photo),.mbjj-panel:not(.mbjj-program-links),.mbjj-start-card,.mbjj-first-card,.mbjj-gallery-card,.mbjj-plan,.mbjj-member-card,.mbjj-kids-card,.mbjj-schedule) :is(p,li,small,em,time,.mbjj-small-note){color:#111!important}
html[data-mbjj-theme="light"][data-mbjj-contrast="high"] :is(.mbjj-sorriso-nation,.mbjj-program-card) :is(p,li,small,em,time){color:#fff!important}
html[data-mbjj-theme][data-mbjj-contrast="high"] .mbjj-schedule :is(.mbjj-class-block,.mbjj-weekend-class) :is(p,li,small,em,time,span,.mbjj-class-group){color:#fff!important}
html[data-mbjj-contrast="high"] :is(.mbjj-panel,.mbjj-start-card,.mbjj-first-card,.mbjj-gallery-card,.mbjj-plan,.mbjj-member-card){border:2px solid #111!important}
html[data-mbjj-contrast="high"] .mbjj-block a:not(.mbjj-button){text-decoration:underline!important;text-decoration-color:currentColor!important}
html[data-mbjj-theme="dark"][data-mbjj-contrast="high"],
html[data-mbjj-theme="dark"][data-mbjj-contrast="high"] [class*="mbjj-"]{--mbjj-muted:#fff!important;--mbjj-line:#bdbdbd!important;--mbjj-ink:#fff!important;--mbjj-surface:#000;--mbjj-canvas:#000}
html[data-mbjj-theme="dark"][data-mbjj-contrast="high"] :is(.mbjj-block,.mbjj-schedule) :is(p,li,small,em,time,.mbjj-small-note){color:#fff!important}
html[data-mbjj-theme="dark"][data-mbjj-contrast="high"] :is(.mbjj-panel,.mbjj-start-card,.mbjj-first-card,.mbjj-gallery-card,.mbjj-plan,.mbjj-member-card){border:2px solid #bdbdbd!important}

/* --- 6. Display panel ------------------------------------------------------ */
.mbjj-display{position:fixed;left:16px;bottom:16px;z-index:99990;font-family:var(--mbjj-font-body,inherit);color:#111}
.mbjj-display-toggle{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:#111;color:#fff;border:2px solid #fff;box-shadow:0 10px 26px rgba(0,0,0,.35);
}
.mbjj-display-toggle svg{width:26px;height:26px;fill:currentColor}
.mbjj-display-toggle:hover{background:var(--mbjj-accent,#fcbf28);color:var(--mbjj-on-accent,#111)}
.mbjj-display-panel{
  position:absolute;left:0;bottom:calc(100% + 12px);width:min(330px,calc(100vw - 32px));
  background:#fff;color:#111;border:2px solid #111;border-radius:18px;padding:18px;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.mbjj-display-panel[hidden]{display:none!important}
.mbjj-display-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.mbjj-display-head strong{display:block;font-family:var(--mbjj-font-display,inherit);font-size:1.15rem;font-weight:900;text-transform:uppercase;letter-spacing:-.01em}
.mbjj-display-head small{display:block;font-size:.82rem;color:#555;margin-top:2px}
.mbjj-display-close{width:36px;height:36px;border-radius:50%;border:2px solid #111;background:#fff;color:#111;font-size:1.3rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.mbjj-display fieldset{border:0;margin:0 0 12px;padding:0}
.mbjj-display fieldset{min-inline-size:0;border:0!important;margin:0 0 12px!important;padding:0!important}
.mbjj-display legend{display:block;float:left;width:100%;font-size:.74rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase;margin:0 0 7px!important;padding:0!important;border:0!important}
.mbjj-display legend + .mbjj-display-options{clear:both}
.mbjj-display-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.mbjj-display-options.is-two{grid-template-columns:repeat(2,1fr)}
.mbjj-display-options button,.mbjj-display-reset{
  min-height:42px;border-radius:12px;border:2px solid #d6d6d6;background:#f4f4f2;color:#111;
  font:800 .86rem/1.1 var(--mbjj-font-body,inherit);cursor:pointer;padding:6px 8px;
}
.mbjj-display-options button[aria-pressed="true"]{background:#111;border-color:#111;color:#fff}
.mbjj-display-options button[aria-pressed="true"]::after{content:" ✓"}
.mbjj-display-reset{width:100%;background:transparent;border-style:dashed}
html[data-mbjj-theme="dark"] .mbjj-display-toggle{background:#f5f5f3;color:#111;border-color:#111}
html[data-mbjj-theme="dark"] .mbjj-display-panel{background:#161616;color:#f5f5f3;border-color:#f5f5f3}
html[data-mbjj-theme="dark"] .mbjj-display-head small{color:#bdbdb9}
html[data-mbjj-theme="dark"] .mbjj-display-close{background:#161616;color:#f5f5f3;border-color:#f5f5f3}
html[data-mbjj-theme="dark"] :is(.mbjj-display-options button,.mbjj-display-reset){background:#222;color:#f5f5f3;border-color:#3d3d3d}
html[data-mbjj-theme="dark"] .mbjj-display-options button[aria-pressed="true"]{background:#f5f5f3;color:#111;border-color:#f5f5f3}
.mbjj-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.mbjj-display{left:12px;bottom:12px}.mbjj-display-toggle{width:48px;height:48px}}
@media print{.mbjj-display{display:none!important}}

/* Dark hero eyebrow pill (older layer forces a white pill background) */
html[data-mbjj-theme="dark"] .mbjj-hero-copy .mbjj-eyebrow{background:transparent!important;border-color:#f5f5f3!important;color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .mbjj-hero:before{background:#f5f5f3!important}

/* Timetable in dark mode: lift the class blocks off the grid, darken the time rail. */
html[data-mbjj-theme="dark"] .mbjj-time-label{background:linear-gradient(to right,#161616 0%,#161616 82%,rgba(22,22,22,0))!important;color:#bdbdb9!important}
html[data-mbjj-theme="dark"] .mbjj-time-line{border-top-color:rgba(255,255,255,.08)!important}
html[data-mbjj-theme="dark"] :is(.mbjj-class-block,.mbjj-weekend-class){
  --mbjj-primary:#262626;background:#262626!important;border-color:#3c3c3c!important;
  box-shadow:inset 4px 0 0 var(--mbjj-accent,#fcbf28),0 6px 16px rgba(0,0,0,.5)!important;
}
html[data-mbjj-theme="dark"] :is(.mbjj-class-block,.mbjj-weekend-class) :is(h4,strong,span,small,p){color:#f5f5f3!important}
html[data-mbjj-theme="dark"] :is(.mbjj-class-block,.mbjj-weekend-class):is(:hover,:focus-visible){background:#303030!important;border-color:var(--mbjj-accent,#fcbf28)!important}
/* Class names: no mid-word breaks like "Fundamental s" in narrow columns. */
.mbjj-class-block h4,.mbjj-weekend-class h4{overflow-wrap:normal!important;word-break:normal!important;hyphens:auto}

/* Phones: full-width hero buttons (big thumb targets); readable hamburger in dark. */
@media(max-width:600px){.mbjj-hero-actions{flex-direction:column;align-items:stretch}.mbjj-hero-actions .mbjj-button{width:100%;min-height:52px}}
html[data-mbjj-theme="dark"] .ct-header-trigger{--theme-icon-color:#f5f5f3;color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-header-trigger :is(svg,rect,path){fill:#f5f5f3!important}
/* Mobile off-canvas menu: big, bold, thumb-friendly. */
#offcanvas .mobile-menu .ct-menu-link,#offcanvas .mobile-menu a{font-family:var(--mbjj-font-display,inherit)!important;font-size:1.45rem!important;font-weight:900!important;text-transform:uppercase;letter-spacing:-.01em;min-height:50px;display:flex!important;align-items:center}
#offcanvas .mobile-menu .current-menu-item>a{color:var(--mbjj-accent,#fcbf28)!important}

/* Dark: small "ink" badges flip to white-on-black → black-on-white. */
html[data-mbjj-theme="dark"] :is(.mbjj-required,.mbjj-first-number,.mbjj-gallery-play,.mbjj-pathway li span::before,.mbjj-login-box .login-submit input){background:#f5f5f3!important;color:#111!important;border-color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .mbjj-optional{background:transparent!important;color:#c9c9c5!important;border-color:#555!important}
html[data-mbjj-theme="dark"] .mbjj-haka-callout{background:#f5f5f3!important;color:#111!important}
html[data-mbjj-theme="dark"] .mbjj-haka-callout :is(strong,span){color:#111!important}

/* Programme step numbers: yellow pill with dark number instead of yellow text on white. */
.mbjj-program-info-grid article>span:first-child{display:inline-block;background:var(--mbjj-accent,#fcbf28);color:var(--mbjj-on-accent,#111)!important;padding:.38em .7em;border-radius:999px;line-height:1}
/* Belt ladder headings were inheriting white from an older dark-card rule. */
.mbjj-ladder-block h3{color:var(--mbjj-ink,#111)!important}
/* Kids age cards: headings were white on white on the live site. */
.mbjj-kids-card h3{color:var(--mbjj-ink,#111)!important}
/* "Choose your pathway" heading sits directly on the black canvas in both themes. */
html[data-mbjj-theme="dark"] .mbjj-program-links>.mbjj-section-heading .mbjj-eyebrow{color:var(--mbjj-accent,#fcbf28)!important}
html[data-mbjj-theme="dark"] .mbjj-program-links>.mbjj-section-heading :is(p,.mbjj-lead){color:rgba(255,255,255,.8)!important}
/* Timetable header eyebrow + footer note were hard-coded #111. */
html[data-mbjj-theme="dark"] :is(.mbjj-schedule .mbjj-eyebrow,.mbjj-schedule-footer span,.mbjj-header h2,.mbjj-header .mbjj-year){color:var(--mbjj-ink)!important}

/* --- 7. Font Awesome icons (v4.2) -----------------------------------------
   Works with both Kit modes: webfont (<i>) and SVG (svg.svg-inline--fa). */
.mbjj-icon,.mbjj-block .svg-inline--fa,.mbjj-display .svg-inline--fa{flex:0 0 auto;line-height:1}
.mbjj-button :is(.mbjj-icon,.svg-inline--fa){font-size:.95em;width:1.05em;height:1em}
.mbjj-button:hover :is(.fa-arrow-right,.fa-arrow-up-right-from-square){transform:translateX(2px);transition:transform .16s ease}
.mbjj-footer-nav a{display:inline-flex;align-items:center;gap:.5em}
.mbjj-footer-nav a :is(.mbjj-icon,.svg-inline--fa){width:1.1em;font-size:1em;color:var(--mbjj-accent,#fcbf28)}
.mbjj-display-toggle :is(.mbjj-icon,.svg-inline--fa){font-size:27px;width:27px;height:27px}
.mbjj-display-head strong :is(.mbjj-icon,.svg-inline--fa){font-size:.95em;margin-right:.25em;color:var(--mbjj-accent,#fcbf28)}
.mbjj-display-close :is(.mbjj-icon,.svg-inline--fa){font-size:1rem}
.mbjj-display.has-fa .mbjj-display-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:58px;padding:8px 6px}
.mbjj-display.has-fa .mbjj-display-options button :is(.mbjj-icon,.svg-inline--fa){font-size:1.15rem}
.mbjj-display.has-fa .mbjj-display-options button :is(.is-size-1){font-size:.85rem}
.mbjj-display.has-fa .mbjj-display-options button :is(.is-size-2){font-size:1.1rem}
.mbjj-display.has-fa .mbjj-display-options button :is(.is-size-3){font-size:1.4rem}
.mbjj-display.has-fa .mbjj-display-options button[aria-pressed="true"]::after{content:none}
.mbjj-display.has-fa .mbjj-display-options button[aria-pressed="true"]{box-shadow:inset 0 -4px 0 var(--mbjj-accent,#fcbf28)}
.mbjj-display-reset{display:flex;align-items:center;justify-content:center;gap:8px}

/* --- 8. Photo hero (optional, v4.2) ---------------------------------------
   Black & white photo, dark overlay, white type; logo stays as the emblem. */
.mbjj-hero.has-photo{
  background:#0b0b0b!important;border-color:#0b0b0b!important;color:#fff;isolation:isolate;
  min-height:clamp(420px,58vh,640px);
}
.mbjj-hero.has-photo::after{
  content:""!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;
  border:0!important;border-radius:inherit!important;opacity:1!important;z-index:0!important;
  background:
    linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.66) 48%,rgba(0,0,0,.35) 100%),
    var(--mbjj-hero-photo) center/cover no-repeat!important;
  filter:grayscale(1) contrast(1.08);
}
.mbjj-hero.has-photo::before{background:var(--mbjj-accent,#fcbf28)!important;z-index:1}
.mbjj-hero.has-photo .mbjj-hero-copy :is(h1,p){color:#fff!important}
.mbjj-hero.has-photo .mbjj-hero-copy .mbjj-eyebrow{color:#fff!important;background:transparent!important;border-color:#fff!important}
.mbjj-hero.has-photo .mbjj-button-outline{color:#fff!important;border-color:#fff!important;background:rgba(0,0,0,.25)!important}
.mbjj-hero.has-photo .mbjj-button-outline:hover{background:#fff!important;color:#111!important}
.mbjj-hero.has-photo .mbjj-logo-card{box-shadow:0 24px 60px rgba(0,0,0,.55)!important}
@media(max-width:760px){
  .mbjj-hero.has-photo::after{background:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.85) 70%),var(--mbjj-hero-photo) center/cover no-repeat!important}
}

/* ==========================================================================
   9. Visual upgrade pass (v4.2)
   Black footer, full photo hero, a yellow "Start here" band, consistent
   card shapes and on-brand forms. (Belt stripes removed in v4.2.1; the
   black header now applies to dark mode only.)
   ========================================================================== */
:root{--mbjj-radius-lg:24px;--mbjj-radius-md:18px;--mbjj-frame:#0a0a0a}

/* Dark mode header. Light mode keeps a white header (section 10). */
html[data-mbjj-theme="dark"] #header,html[data-mbjj-theme="dark"] .ct-header [data-row]{background-color:var(--mbjj-frame)!important;border-color:#1f1f1f!important}
#header{position:relative}
html[data-mbjj-theme="dark"] .ct-header :is(.ct-menu-link,.ct-label){color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-header :is(.current-menu-item,.current_page_item)>.ct-menu-link{color:#fff!important}
html[data-mbjj-theme="dark"] .ct-header .ct-menu-link:hover{color:var(--mbjj-accent,#fcbf28)!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .menu>li:is(.mbjj-menu-cta,:has(>a[href*="try-free-class"],>a[href$="/trial/"]))>.ct-menu-link{color:var(--mbjj-on-accent,#111)!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .menu>li:is(.mbjj-menu-cta,:has(>a[href*="try-free-class"],>a[href$="/trial/"]))>.ct-menu-link:hover{background:#fff!important;color:#111!important}
html[data-mbjj-theme="dark"] .ct-header :is(.ct-icon,svg){fill:#f5f5f3}
html[data-mbjj-theme="dark"] .ct-header-trigger{--theme-icon-color:#f5f5f3;color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-header-trigger :is(svg,rect,path){fill:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-header .site-logo-container img{background:#fff;border-radius:50%;box-shadow:0 0 0 3px #fff}
html[data-mbjj-theme="dark"] #offcanvas .ct-panel-inner{background:var(--mbjj-frame)!important}
html[data-mbjj-theme="dark"] #offcanvas :is(a,.ct-menu-link){color:#f5f5f3!important}
html[data-mbjj-theme="dark"] #offcanvas .ct-toggle-close{--theme-icon-color:#f5f5f3}

/* Black footer in both themes. */
#footer.ct-footer,#footer.ct-footer [data-row]{background-color:var(--mbjj-frame)!important;border-color:#1f1f1f!important}
html .mbjj-footer,html[data-mbjj-contrast] .mbjj-footer [class*="mbjj-"]{--mbjj-ink:#f5f5f3!important;--mbjj-muted:#cfcfcb!important;--mbjj-line:#2a2a2a!important;color:#f5f5f3}
.mbjj-footer :is(h2,h3,a,p,div){color:inherit}
.mbjj-footer :is(p,.mbjj-footer-note,.mbjj-footer-meta){color:#cfcfcb!important}
.mbjj-footer h3{color:var(--mbjj-accent,#fcbf28)!important;letter-spacing:.14em}
.mbjj-footer-nav a{color:#f5f5f3!important;text-decoration:none!important}
.mbjj-footer-nav a:hover{color:var(--mbjj-accent,#fcbf28)!important}
.mbjj-footer-logo{background:#fff!important;border-radius:50%}
.mbjj-footer-credit a,.mbjj-footer-bottom,.mbjj-footer-bottom a{color:#bdbdb9!important}
html[data-mbjj-theme="light"][data-mbjj-contrast="high"] .mbjj-footer :is(p,li,small,em,time,a){color:#fff!important}

/* WordPress leaves empty paragraphs around shortcodes; they add stray gaps. */
.entry-content>p:empty{display:none}

/* Consistent card shapes. */
:is(.mbjj-panel,.mbjj-hero,.mbjj-start-card,.mbjj-sorriso-nation,.mbjj-join-cta,.mbjj-pathway,.mbjj-schedule-timegrid){border-radius:var(--mbjj-radius-lg)!important}
:is(.mbjj-program-card,.mbjj-gallery-card,.mbjj-first-card,.mbjj-kids-card,.mbjj-plan,.mbjj-member-card,.mbjj-tech-card,.mbjj-milestone){border-radius:var(--mbjj-radius-md)!important}

/* Photo hero: the photo carries the page (the logo is already on the wall). */
.mbjj-hero.has-photo{grid-template-columns:minmax(0,1fr)!important;align-content:end;padding:clamp(28px,5vw,64px)!important;min-height:clamp(460px,66vh,700px)}
.mbjj-hero.has-photo .mbjj-hero-mark{display:none!important}
.mbjj-hero.has-photo .mbjj-hero-copy{max-width:760px}
.mbjj-hero.has-photo .mbjj-hero-copy h1{font-size:clamp(2.6rem,1.4rem + 5vw,6rem)!important;text-shadow:0 2px 24px rgba(0,0,0,.45)}
.mbjj-hero.has-photo::before{display:none!important}
.mbjj-hero.has-photo::after{
  background:
    linear-gradient(0deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.35) 55%,rgba(0,0,0,.15) 100%),
    linear-gradient(90deg,rgba(0,0,0,.7) 0%,rgba(0,0,0,.1) 70%),
    var(--mbjj-hero-photo) center 35%/cover no-repeat!important;
}

/* Non-photo hero: belt stripe replaces the plain black underline. */

/* "Start here" becomes the loudest block on the page: an accent band. */
html[data-mbjj-theme] .mbjj-start-card.mbjj-block{background:var(--mbjj-accent,#fcbf28)!important;border:0!important;color:var(--mbjj-on-accent,#111)!important;box-shadow:none!important}
.mbjj-start-card::before{display:none!important}
html[data-mbjj-theme] .mbjj-start-card.mbjj-block :is(h2,p,.mbjj-eyebrow,.mbjj-start-card-copy p){color:var(--mbjj-on-accent,#111)!important}
.mbjj-start-card .mbjj-eyebrow::before{background:var(--mbjj-on-accent,#111)}
.mbjj-start-card h2{font-size:clamp(2.4rem,1.6rem + 3.5vw,4.6rem)!important}
html[data-mbjj-theme] .mbjj-start-card .mbjj-button{background:var(--mbjj-on-accent,#111)!important;border-color:var(--mbjj-on-accent,#111)!important;color:var(--mbjj-accent,#fcbf28)!important;min-height:54px;font-size:1.05rem;padding-inline:26px}
html[data-mbjj-theme] .mbjj-start-card .mbjj-button:hover{background:#fff!important;border-color:#fff!important;color:#111!important}

/* Sorriso card: buttons form one tidy column under the logo. */
.mbjj-sorriso-actions{display:grid!important;grid-template-columns:1fr;gap:8px;width:100%}
.mbjj-sorriso-actions .mbjj-button{width:100%;justify-content:center}

/* Programme cards: clearer hover, image depth. */
.mbjj-program-card{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.mbjj-program-card:hover{transform:translateY(-3px);border-color:var(--mbjj-accent,#fcbf28)!important;box-shadow:0 18px 40px rgba(0,0,0,.45)!important}
.mbjj-program-image{position:relative}
.mbjj-program-image::after{content:"";position:absolute;inset:auto 0 0 0;height:40%;background:linear-gradient(0deg,rgba(0,0,0,.55),transparent);pointer-events:none}

/* Gallery cards lift slightly on hover. */
.mbjj-gallery-card:hover{transform:translateY(-3px)}

/* Programme step numbers: compact pills, not full-width bars. */
.mbjj-program-info-grid article>span:first-child{justify-self:start;width:max-content}

/* Forms: brand submit buttons (Blocksy default was bright blue). */
.mbjj-block :is(button[type="submit"],input[type="submit"]){
  appearance:none;background:#111!important;color:#fff!important;border:2px solid #111!important;border-radius:999px!important;
  min-height:50px;padding:0 26px!important;font:900 1rem/1 var(--mbjj-font-body,inherit)!important;cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.mbjj-block :is(button[type="submit"],input[type="submit"]):hover{background:var(--mbjj-accent,#fcbf28)!important;border-color:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important;transform:translateY(-1px)}
html[data-mbjj-theme="dark"] .mbjj-block :is(button[type="submit"],input[type="submit"]){background:var(--mbjj-accent,#fcbf28)!important;border-color:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important}
/* Calmer form fields: roomier inputs, clear focus edge. */
.mbjj-block :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){min-height:48px;border-radius:12px!important}
.mbjj-block :is(input,select,textarea):focus{border-color:var(--mbjj-ink,#111)!important;box-shadow:0 0 0 3px var(--mbjj-accent,#fcbf28)!important;outline:0!important}

@media(max-width:760px){
  .mbjj-hero.has-photo{min-height:clamp(420px,78vh,620px)}
  .mbjj-start-card .mbjj-button{width:100%}
}
html[data-mbjj-motion="reduced"] :is(.mbjj-program-card,.mbjj-gallery-card):hover{transform:none!important}
html[data-mbjj-theme="dark"] .mbjj-filter-set button:is(.active,[aria-pressed="true"]){background:var(--mbjj-accent,#fcbf28)!important;border-color:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important}

/* ==========================================================================
   10. Light theme (v4.2.1)
   Light now means light: pale canvas, white header, white cards with soft
   edges. Black stays for the programme cards, Sorriso card and footer, so the
   black and white identity is still there, just the other way round to dark.
   ========================================================================== */
html[data-mbjj-theme="light"]{--mbjj-canvas:#f2f2ef}
html[data-mbjj-theme="light"] :is(body,#main-container,.site-main){background-color:var(--mbjj-canvas)!important}
html[data-mbjj-theme="light"] :is(#header,.ct-header [data-row]){background-color:#fff!important;border-color:#e4e4e0!important}
html[data-mbjj-theme="light"] #header{box-shadow:0 1px 0 #e4e4e0}

/* White cards get a visible edge + soft shadow so they sit on the pale canvas. */
html[data-mbjj-theme="light"] :is(.mbjj-panel:not(.mbjj-program-links),.mbjj-gallery,.mbjj-first-card,.mbjj-schedule-timegrid,.mbjj-access-gate,.mbjj-member-welcome){
  border-color:#dededa!important;box-shadow:0 1px 2px rgba(0,0,0,.04),0 14px 34px rgba(0,0,0,.06)!important}
html[data-mbjj-theme="light"] .mbjj-hero:not(.has-photo){box-shadow:0 1px 2px rgba(0,0,0,.05),0 18px 44px rgba(0,0,0,.08)!important}

/* The programme heading used to sit on black; give it dark type on the light canvas. */
html[data-mbjj-theme="light"] .mbjj-program-links{background:transparent!important}
html[data-mbjj-theme="light"] .mbjj-program-links>.mbjj-section-heading :is(h2,h3){color:var(--mbjj-ink,#111)!important}
html[data-mbjj-theme="light"] .mbjj-program-links>.mbjj-section-heading .mbjj-eyebrow{color:var(--mbjj-ink,#111)!important}
html[data-mbjj-theme="light"] .mbjj-program-links>.mbjj-section-heading :is(p,.mbjj-lead){color:#4a4a47!important}
/* Black programme cards read as strong tiles on the light canvas. */
html[data-mbjj-theme="light"] .mbjj-program-card{box-shadow:0 18px 40px rgba(0,0,0,.14)!important}
html[data-mbjj-theme="light"] .mbjj-program-card:hover{box-shadow:0 24px 50px rgba(0,0,0,.22)!important}

/* ==========================================================================
   11. One border system (v4.2.2)
   Every container uses the photo-wall treatment: 1px soft edge + soft shadow.
   Inner cards use the same 1px edge without the big shadow. No thick black
   outlines, no heavy black rules. Buttons keep their 2px outline.
   ========================================================================== */
:root{--mbjj-edge:#dededa;--mbjj-edge-inner:#e6e6e2;--mbjj-shadow:0 1px 2px rgba(0,0,0,.04),0 14px 34px rgba(0,0,0,.06)}
html[data-mbjj-theme="dark"]{--mbjj-edge:#2e2e2e;--mbjj-edge-inner:#2a2a2a;--mbjj-shadow:0 1px 2px rgba(0,0,0,.3),0 14px 34px rgba(0,0,0,.35)}

/* Section containers */
html[data-mbjj-theme] :is(.mbjj-panel:not(.mbjj-program-links),.mbjj-hero,.mbjj-sorriso-nation,.mbjj-gallery,.mbjj-schedule-timegrid,.mbjj-join-cta,.mbjj-pathway,.mbjj-access-gate,.mbjj-access-ok,.mbjj-member-welcome,.mbjj-program-page-hero,.mbjj-login-box,.mbjj-dashboard).mbjj-block,
html[data-mbjj-theme] :is(.mbjj-schedule-timegrid,.mbjj-program-page-hero){
  border:1px solid var(--mbjj-edge)!important;box-shadow:var(--mbjj-shadow)!important;
}
/* The Sorriso card is black in both themes: hairline in a dark grey. */
html[data-mbjj-theme] .mbjj-sorriso-nation.mbjj-block{border-color:#262626!important}
/* Photo hero: no frame line over the image. */
html[data-mbjj-theme] .mbjj-hero.has-photo.mbjj-block{border-color:transparent!important}

/* Inner cards */
html[data-mbjj-theme] :is(.mbjj-first-card,.mbjj-kids-card,.mbjj-ladder-item,.mbjj-plan,.mbjj-member-card,.mbjj-tech-card,.mbjj-milestone,.mbjj-gallery-card,.mbjj-empty,.mbjj-calendar-panel,.mbjj-weekend-panel,.mbjj-profile-editor,.mbjj-program-page-visual){
  border:1px solid var(--mbjj-edge-inner)!important;
}
html[data-mbjj-theme] .mbjj-program-page-visual{overflow:hidden;border-radius:var(--mbjj-radius-md)!important}
html[data-mbjj-theme] .mbjj-empty{border-style:dashed!important}

/* Remove the bar under the hero title (both hero styles). */
.mbjj-hero::before,.mbjj-hero.has-photo::before,.mbjj-hero:not(.has-photo)::before{display:none!important}

/* Logo emblem: hairline instead of a thick black ring. */
html[data-mbjj-theme] .mbjj-logo-card{border:1px solid var(--mbjj-edge)!important}

/* Programme step dividers + timetable rules: thin and soft. */
html[data-mbjj-theme] .mbjj-program-info-grid article{border-right:1px solid var(--mbjj-edge)!important}
html[data-mbjj-theme] .mbjj-program-info-grid article:last-child{border-right:0!important}
html[data-mbjj-theme] .mbjj-schedule .mbjj-header{border-bottom:1px solid var(--mbjj-edge)!important}
html[data-mbjj-theme] .mbjj-schedule-footer{border-top:1px solid var(--mbjj-edge)!important}
html[data-mbjj-theme] .mbjj-schedule-embed>.mbjj-section-heading{border-bottom:1px solid var(--mbjj-edge)!important}
html[data-mbjj-theme] .mbjj-timegrid-corner{border:1px solid var(--mbjj-edge)!important}
html[data-mbjj-theme] .mbjj-timegrid-day-name{border-width:1px 1px 1px 0!important;border-style:solid!important;border-color:var(--mbjj-edge)!important}
html[data-mbjj-theme] .mbjj-timegrid-body{border-width:0 1px 1px 1px!important;border-style:solid!important;border-color:var(--mbjj-edge)!important}
/* Black class blocks don't need an outline at all. */
html[data-mbjj-theme="light"] :is(.mbjj-class-block,.mbjj-weekend-class){border-color:transparent!important}

/* Form fields: 1px edge, the yellow focus ring does the emphasis. */
html[data-mbjj-theme] .mbjj-block :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){border:1px solid #cfcfcb!important}
html[data-mbjj-theme="dark"] .mbjj-block :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea){border-color:#4a4a4a!important}
html[data-mbjj-theme] .mbjj-block :is(input,select,textarea):focus{border-color:var(--mbjj-ink,#111)!important}

/* High contrast keeps stronger edges on purpose. */
html[data-mbjj-contrast="high"] :is(.mbjj-panel,.mbjj-hero:not(.has-photo),.mbjj-gallery,.mbjj-first-card,.mbjj-gallery-card,.mbjj-plan,.mbjj-member-card).mbjj-block,
html[data-mbjj-contrast="high"] :is(.mbjj-first-card,.mbjj-gallery-card,.mbjj-plan,.mbjj-member-card){border:2px solid #111!important}
html[data-mbjj-theme="dark"][data-mbjj-contrast="high"] :is(.mbjj-panel,.mbjj-hero:not(.has-photo),.mbjj-gallery,.mbjj-first-card,.mbjj-gallery-card,.mbjj-plan,.mbjj-member-card){border-color:#bdbdbd!important}
html[data-mbjj-theme] .mbjj-schedule :is(input:not([type=checkbox]):not([type=radio]),select){border:1px solid var(--mbjj-edge)!important}

/* ==========================================================================
   12. Member Hub layout (v4.3)
   One level of boxes: the hub itself has no frame, just a header, a pill
   menu and the page's own card. No yellow side stripes inside the hub.
   ========================================================================== */
:root{--mbjj-hub-hover:#ecece8}
html[data-mbjj-theme="dark"]{--mbjj-hub-hover:#262626}

/* The hub shell: no frame, no stripe, no padding. */
html[data-mbjj-theme] .mbjj-member-page.mbjj-block,
.mbjj-member-page.mbjj-block{
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;overflow:visible!important;contain:none!important;
  margin-top:clamp(18px,3vw,32px)!important;margin-bottom:clamp(28px,4vw,48px)!important;
}
.mbjj-member-page::before,
.mbjj-member-page .mbjj-panel::before,
.mbjj-member-page .mbjj-portal::before{display:none!important}

/* Header: eyebrow, greeting and log out. */
.mbjj-hub-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 18px}
.mbjj-hub-head h2{margin:.05em 0 .15em!important;font-size:clamp(2.2rem,1.4rem + 3.4vw,4.2rem)!important;line-height:.95!important;color:var(--mbjj-ink,#111)!important}
.mbjj-hub-head .mbjj-lead{margin:6px 0 0;max-width:640px}
.mbjj-hub-head .mbjj-lead p{margin:0}
.mbjj-hub-head.is-compact{align-items:center;margin-bottom:14px}
.mbjj-hub-head.is-compact .mbjj-eyebrow{margin:0}
.mbjj-hub-logout{flex:0 0 auto}

/* Menu: one rounded bar of pills, active page in the accent colour. */
.mbjj-member-page .mbjj-member-hub-links,
.mbjj-portal .mbjj-member-hub-links{
  display:flex!important;flex-wrap:wrap;justify-content:space-between;gap:2px!important;margin:0 0 22px!important;padding:6px;
  background:var(--mbjj-surface,#fff);border:1px solid var(--mbjj-edge,#dededa);border-radius:18px;box-shadow:var(--mbjj-shadow);
}
html[data-mbjj-theme="light"] .mbjj-member-hub-links{background:#fff}
.mbjj-member-page .mbjj-member-hub-links a,
.mbjj-portal .mbjj-member-hub-links a{
  display:inline-flex!important;align-items:center;gap:8px;min-height:44px;min-width:0!important;
  padding:0 11px!important;border:0!important;border-radius:999px!important;
  background:transparent!important;color:var(--mbjj-ink,#111)!important;box-shadow:none!important;transform:none!important;
  font-size:.9rem;font-weight:700;white-space:nowrap;text-decoration:none!important;flex:0 0 auto;
  transition:background .15s ease,color .15s ease;
}
.mbjj-member-hub-links a strong{color:inherit!important;font-size:inherit!important;font-weight:inherit;text-transform:none!important;letter-spacing:0!important;line-height:1!important}
.mbjj-member-hub-links a .mbjj-icon,.mbjj-member-hub-links a .svg-inline--fa{width:1em;opacity:.7}
.mbjj-member-page .mbjj-member-hub-links a:hover,
.mbjj-portal .mbjj-member-hub-links a:hover{background:var(--mbjj-hub-hover)!important;color:var(--mbjj-ink,#111)!important}
.mbjj-member-page .mbjj-member-hub-links a.is-active,
.mbjj-portal .mbjj-member-hub-links a.is-active{background:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important}
.mbjj-member-hub-links a.is-active :is(.mbjj-icon,.svg-inline--fa){opacity:1}
html[data-mbjj-contrast="high"] .mbjj-member-hub-links a:not(.is-active){text-decoration:underline!important;text-underline-offset:3px}

/* Page content: each section is one card; spacing instead of nesting. */
.mbjj-member-body{display:grid;gap:22px}
.mbjj-member-body>*{margin:0!important}
.mbjj-member-body .mbjj-panel{margin:0!important;max-width:100%!important;width:100%!important}
.mbjj-member-body>div>.mbjj-panel+.mbjj-panel,.mbjj-member-info-stack{display:grid;gap:22px}
.mbjj-member-page .mbjj-dashboard-grid{margin:0!important}
html[data-mbjj-theme] .mbjj-member-page .mbjj-stat-card{background:var(--mbjj-surface,#fff)!important;border:1px solid var(--mbjj-edge)!important;box-shadow:var(--mbjj-shadow);border-radius:var(--mbjj-radius-md,18px)!important;padding:18px!important}
html[data-mbjj-theme="light"] .mbjj-member-page .mbjj-stat-card{background:#fff!important}
html[data-mbjj-theme] .mbjj-member-page .mbjj-profile-editor{margin-top:0!important;background:var(--mbjj-surface,#fff)!important;border:1px solid var(--mbjj-edge)!important;border-radius:var(--mbjj-radius-md,18px)!important;padding:18px 20px!important}
html[data-mbjj-theme="light"] .mbjj-member-page .mbjj-profile-editor{background:#fff!important}

/* Dark: cards inside a card sit one step lighter so they read as separate. */
html[data-mbjj-theme="dark"] .mbjj-panel :is(.mbjj-member-card,.mbjj-tech-card,.mbjj-announcement,.mbjj-milestone,.mbjj-event-card,.mbjj-empty){background:#1d1d1d!important}
html[data-mbjj-theme="dark"] .mbjj-panel .mbjj-plus{background:#2a2a2a!important;color:#f5f5f3!important}

@media(max-width:760px){
  .mbjj-hub-head{flex-direction:column;align-items:flex-start;gap:12px}
  .mbjj-hub-head.is-compact{flex-direction:row;align-items:center}
  .mbjj-member-page .mbjj-member-hub-links,
  .mbjj-portal .mbjj-member-hub-links{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity;padding-bottom:6px!important}
  .mbjj-member-hub-links a{scroll-snap-align:start}
}
/* Avatar initials: readable in dark mode. */
html[data-mbjj-theme="dark"] .mbjj-avatar-fallback{background:#2a2a2a!important;color:#f5f5f3!important}
@media(max-width:1180px){.mbjj-member-page .mbjj-member-hub-links,.mbjj-portal .mbjj-member-hub-links{justify-content:flex-start}}
/* Hub menu: beat the older dark-mode heading colour and the squashed pill size. */
html[data-mbjj-theme] .mbjj-block .mbjj-member-hub-links a strong{color:inherit!important}
html[data-mbjj-theme] .mbjj-block .mbjj-member-hub-links a{min-height:44px!important;padding:0 11px!important}
.mbjj-hub-head h2{font-family:var(--mbjj-font-display,inherit)!important;font-weight:900!important;text-transform:uppercase;letter-spacing:-.04em!important;font-stretch:88%}
.mbjj-member-page-dashboard .mbjj-member-body .mbjj-panel h2{font-size:clamp(1.6rem,1.1rem + 2vw,2.6rem)!important}

/* ==========================================================================
   13. v4.3.1 fixes: payment box, student guide, hub menu
   ========================================================================== */
/* Payment / terms / extra-note boxes: same card style as everything else. */
html[data-mbjj-theme] :is(.mbjj-payment-box,.mbjj-terms,.mbjj-guide-extra){
  background:var(--mbjj-surface,#fff)!important;border:1px solid var(--mbjj-edge-inner,#e6e6e2)!important;
  border-radius:var(--mbjj-radius-md,18px)!important;padding:18px 20px!important;color:var(--mbjj-ink,#111)!important;
}
html[data-mbjj-theme="light"] :is(.mbjj-payment-box,.mbjj-terms,.mbjj-guide-extra){background:#fff!important}
html[data-mbjj-theme="dark"] .mbjj-panel :is(.mbjj-payment-box,.mbjj-terms,.mbjj-guide-extra){background:#1d1d1d!important}
html[data-mbjj-theme] .mbjj-block .mbjj-payment-box :is(p,div,.mbjj-small-note){color:var(--mbjj-muted,#444)!important}
html[data-mbjj-theme] .mbjj-block .mbjj-payment-box strong{color:var(--mbjj-ink,#111)!important}
.mbjj-payment-box>:first-child,.mbjj-payment-box p:first-child{margin-top:0}
.mbjj-payment-box>:last-child{margin-bottom:0}
.mbjj-payment-box p{margin:.5em 0}

/* Student guide: four tidy cards instead of yellow-edged columns. */
html[data-mbjj-theme] .mbjj-guide-grid article{
  border:1px solid var(--mbjj-edge-inner,#e6e6e2)!important;border-left-width:1px!important;border-radius:var(--mbjj-radius-md,18px)!important;
  padding:20px!important;background:var(--mbjj-surface,#fff)!important;
}
html[data-mbjj-theme="light"] .mbjj-guide-grid article{background:#fff!important}
html[data-mbjj-theme="dark"] .mbjj-panel .mbjj-guide-grid article{background:#1d1d1d!important}
.mbjj-guide-grid article h3{margin:0 0 10px!important;display:flex;align-items:center;gap:8px}
.mbjj-guide-grid article h3::before{content:"";width:18px;height:3px;border-radius:2px;background:var(--mbjj-accent,#fcbf28);flex:0 0 auto}
.mbjj-guide-grid ul{margin:0;padding-left:1.1em}
.mbjj-guide-grid li{margin:.3em 0}
/* The payment box inside the guide is already in a card: drop its own frame. */
html[data-mbjj-theme] .mbjj-guide-grid .mbjj-payment-box{background:transparent!important;border:0!important;padding:0!important}
html[data-mbjj-contrast="high"] .mbjj-guide-grid article{border-width:2px!important}

/* Hub menu: an even grid of tabs on desktop (no single orphan on a second row),
   a sideways-scrolling strip on phones. */
@media(min-width:761px){
  html[data-mbjj-theme] .mbjj-block .mbjj-member-hub-links{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}
  html[data-mbjj-theme] .mbjj-block .mbjj-member-hub-links a{justify-content:center;padding:0 8px!important}
}
/* One border system: no yellow side stripes on any section (was on some, not others). */
:is(.mbjj-panel,.mbjj-join-cta,.mbjj-pathway,.mbjj-sorriso-nation,.mbjj-first-class,.mbjj-coaches,.mbjj-trial-form,.mbjj-contact-form,.mbjj-waiver-form,.mbjj-student-guide,.mbjj-events,.mbjj-testimonials,.mbjj-payment-info,.mbjj-portal,.mbjj-member-page,.mbjj-access-gate,.mbjj-form-panel)::before{display:none!important}
/* Timetable download form in dark: dark fields, yellow action button. */
html[data-mbjj-theme="dark"] .mbjj-schedule :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#1d1d1d!important;color:#f5f5f3!important;border-color:#4a4a4a!important;color-scheme:dark}
html[data-mbjj-theme="dark"] .mbjj-schedule :is(input,textarea)::placeholder{color:#9a9a96!important}
html[data-mbjj-theme="dark"] .mbjj-schedule button:not(.mbjj-class-block):not([class*="select"]):not([class*="clear"]):not([data-mbjj-add]):is([type=submit],[data-mbjj-download],.mbjj-download-button),
html[data-mbjj-theme="dark"] .mbjj-schedule-download button{background:var(--mbjj-accent,#fcbf28)!important;color:#111!important;border-color:var(--mbjj-accent,#fcbf28)!important}
html[data-mbjj-theme="dark"] .mbjj-schedule .mbjj-schedule-contact{background:transparent!important;color:#f5f5f3!important;border:2px solid #f5f5f3!important}
html[data-mbjj-theme="dark"] .mbjj-schedule .mbjj-schedule-contact:hover{background:#f5f5f3!important;color:#111!important}
/* Form checkboxes: normal size beside their label, not a full-width grey block. */
.mbjj-block :is(.mbjj-form-row,.mbjj-form,.mbjj-public-form) input[type=checkbox]{width:22px!important;height:22px!important;min-height:0!important;margin:0 10px 0 0!important;padding:0!important;vertical-align:middle;accent-color:var(--mbjj-accent,#fcbf28);flex:0 0 auto}
.mbjj-block .mbjj-form-row label:has(>input[type=checkbox]){display:flex!important;align-items:center;gap:0}

/* ==========================================================================
   14. Header menu + dropdown (v4.3.2)
   No theme-purple hovers: ink text with a yellow underline. The Member Hub
   dropdown is a rounded card in two columns, matching the hub tabs.
   ========================================================================== */
.ct-header [data-id="menu"]{--theme-link-hover-color:var(--mbjj-hdr-ink,#111);--theme-link-active-color:var(--mbjj-hdr-ink,#111);--mbjj-hdr-ink:#111}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"]{--mbjj-hdr-ink:#f5f5f3}
.ct-header [data-id="menu"]>ul>li>.ct-menu-link{color:var(--mbjj-hdr-ink)!important;position:relative}
.ct-header [data-id="menu"]>ul>li:not(.mbjj-menu-cta):not(:has(>a[href*="try-free-class"],>a[href$="/trial/"]))>.ct-menu-link::after{
  content:"";position:absolute;left:var(--menu-items-spacing,12px);right:var(--menu-items-spacing,12px);bottom:calc(50% - 1.1em);height:3px;border-radius:2px;
  background:var(--mbjj-accent,#fcbf28);transform:scaleX(0);transform-origin:left;transition:transform .18s ease,opacity 0s}
.ct-header [data-id="menu"]>ul>li:is(:hover,:focus-within,.current-menu-item,.current-menu-ancestor,.current_page_item)>.ct-menu-link::after{transform:scaleX(1)}
.ct-header [data-id="menu"]>ul>li:is(:hover,.current-menu-ancestor,.current-menu-item)>.ct-menu-link{color:var(--mbjj-hdr-ink)!important}
.ct-header [data-id="menu"] .ct-toggle-dropdown-desktop,.ct-header [data-id="menu"] .ct-menu-link svg{fill:currentColor!important;color:var(--mbjj-hdr-ink)!important}

/* Dropdown card */
.ct-header [data-id="menu"] .sub-menu{
  --dropdown-width:auto;background:#fff!important;border:1px solid var(--mbjj-edge,#dededa)!important;border-radius:16px!important;
  box-shadow:0 18px 40px rgba(0,0,0,.14)!important;padding:8px!important;margin-top:0!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(150px,1fr));gap:2px;width:max-content!important;min-width:320px;overflow:visible;
}
.ct-header [data-id="menu"] .sub-menu>li{width:auto!important;border:0!important;margin:0!important}
.ct-header [data-id="menu"] .sub-menu .ct-menu-link{
  color:#111!important;padding:10px 12px!important;border-radius:10px!important;font-size:.86rem!important;font-weight:700!important;
  text-transform:none!important;letter-spacing:0!important;line-height:1.2!important;min-height:40px;display:flex!important;align-items:center;
  transition:background .14s ease;
}
.ct-header [data-id="menu"] .sub-menu .ct-menu-link:is(:hover,:focus-visible){background:#f2f2ef!important;color:#111!important}
.ct-header [data-id="menu"] .sub-menu :is(.current-menu-item,.current_page_item)>.ct-menu-link{background:var(--mbjj-accent,#fcbf28)!important;color:var(--mbjj-on-accent,#111)!important}
.ct-header [data-id="menu"] .sub-menu .ct-menu-link::after{display:none!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .sub-menu{background:#161616!important;border-color:#2e2e2e!important;box-shadow:0 18px 40px rgba(0,0,0,.6)!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link{color:#f5f5f3!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:is(:hover,:focus-visible){background:#262626!important;color:#fff!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .sub-menu :is(.current-menu-item,.current_page_item)>.ct-menu-link{background:var(--mbjj-accent,#fcbf28)!important;color:#111!important}
/* Phone menu (offcanvas): no purple there either. */
#offcanvas{--theme-link-hover-color:var(--mbjj-accent,#fcbf28);--theme-link-active-color:var(--mbjj-accent,#fcbf28)}
html[data-mbjj-contrast="high"] .ct-header [data-id="menu"] .sub-menu{border:2px solid currentColor!important}

/* High contrast fixes (v4.3.2)
   - The photo hero keeps white text (it was turning near-black over the photo in light mode).
   - Card headings always use the text colour, whatever the page around them sets. */
html[data-mbjj-contrast="high"] .mbjj-hero.has-photo :is(h1,p,.mbjj-lead,.mbjj-eyebrow){color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.85)}
html[data-mbjj-contrast="high"] .mbjj-hero.has-photo::after{background:linear-gradient(0deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.6) 60%,rgba(0,0,0,.45) 100%),var(--mbjj-hero-photo) center 35%/cover no-repeat!important}
html[data-mbjj-theme="light"] :is(.mbjj-announcement,.mbjj-member-card,.mbjj-tech-card,.mbjj-milestone,.mbjj-event-card,.mbjj-plan,.mbjj-first-card,.mbjj-guide-grid article,.mbjj-stat-card,.mbjj-kids-card) :is(h3,h4){color:var(--mbjj-ink,#111)!important}

/* ==========================================================================
   15. Member profile editor (v4.4): photo + About
   ========================================================================== */
.mbjj-profile-photo-row{display:flex;gap:16px;align-items:flex-start;margin:12px 0}
.mbjj-profile-photo{width:84px;height:84px;border-radius:50%;overflow:hidden;flex:0 0 auto;display:grid;place-items:center;
  background:var(--mbjj-hub-hover,#ecece8);border:1px solid var(--mbjj-edge,#dededa);font:900 2rem/1 var(--mbjj-font-display,inherit);color:var(--mbjj-ink,#111)}
.mbjj-profile-photo img{width:100%;height:100%;object-fit:cover}
.mbjj-profile-photo-row p{margin:0;flex:1;display:grid;gap:6px}
.mbjj-profile-form input[type=file]{min-height:0!important;padding:8px 0!important;border:0!important;background:transparent!important}
.mbjj-profile-form .mbjj-check{display:flex!important;align-items:center;gap:8px;font-weight:700}
.mbjj-profile-form .mbjj-small-note{display:block;margin-top:4px}
.mbjj-notice{padding:12px 16px;border-radius:12px;font-weight:700;margin:0 0 4px}
.mbjj-notice.is-success{background:#effaf2;color:#14532d;border:1px solid #b8dcc1}
.mbjj-notice.is-error{background:#fdf0f0;color:#7f1d1d;border:1px solid #f0c2c2}
html[data-mbjj-theme="dark"] .mbjj-notice.is-success{background:#10261a;color:#c9f2d6;border-color:#245c38}
html[data-mbjj-theme="dark"] .mbjj-notice.is-error{background:#2a1212;color:#ffd4d4;border-color:#6b2626}
.mbjj-member-about{margin:0 0 14px;color:var(--mbjj-ink,#111)}
.mbjj-member-about p{margin:0 0 .6em}
@media(max-width:600px){.mbjj-profile-photo-row{flex-direction:column}}
/* Dropdown stays open while the mouse travels to it (v4.4.1):
   an invisible bridge covers any gap under the menu item, and closing waits a moment. */
.ct-header [data-id="menu"] .menu-item-has-children>.sub-menu::before{content:""!important;display:block!important;position:absolute!important;left:-12px!important;right:-12px!important;top:-24px!important;height:24px!important;width:auto!important;background:transparent!important;pointer-events:auto!important}
.ct-header [data-id="menu"] .menu-item-has-children>.sub-menu{transition:opacity .15s ease .3s,visibility 0s linear .45s,transform .15s ease .3s!important}
.ct-header [data-id="menu"] .menu-item-has-children:is(:hover,:focus-within)>.sub-menu{transition-delay:0s!important}
.ct-header [data-id="menu"] .menu-item-has-children>.sub-menu{overflow:visible!important}
/* Second bridge on the menu item itself: the hover area extends 24px below it. */
.ct-header [data-id="menu"]>ul>li.menu-item-has-children{position:relative}
.ct-header [data-id="menu"]>ul>li.menu-item-has-children::after{content:"";position:absolute;left:0;right:0;top:100%;height:24px;z-index:9;pointer-events:none}
.ct-header [data-id="menu"]>ul>li.menu-item-has-children:hover::after{pointer-events:auto}

/* ==========================================================================
   16. Member training panel (v4.5): totals, streak and a 12-week calendar
   ========================================================================== */
.mbjj-training{margin:0;padding:20px;border:1px solid var(--mbjj-edge,#dededa);border-radius:var(--mbjj-radius-md,18px);background:var(--mbjj-surface,#fff);box-shadow:var(--mbjj-shadow)}
html[data-mbjj-theme="light"] .mbjj-training{background:#fff}
.mbjj-panel .mbjj-training{box-shadow:none;margin-top:16px}
html[data-mbjj-theme="dark"] .mbjj-panel .mbjj-training{background:#1d1d1d}
.mbjj-training-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
html[data-mbjj-theme] .mbjj-training-head h3{margin:0!important;font-size:1.3rem!important;color:var(--mbjj-ink,#111)!important}
.mbjj-training-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:16px}
.mbjj-training-stats div{display:grid;gap:2px;padding:12px 14px;border-radius:14px;background:var(--mbjj-hub-hover,#f2f2ef)}
.mbjj-training-stats strong{font:900 1.9rem/1 var(--mbjj-font-display,inherit);color:var(--mbjj-ink,#111)}
.mbjj-training-stats span{font-size:.85rem;font-weight:700;color:var(--mbjj-muted,#444)}
.mbjj-training-cal{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,auto);grid-template-columns:repeat(12,minmax(0,22px));gap:4px}
.mbjj-cal-day{display:block;aspect-ratio:1;border-radius:4px;background:var(--mbjj-hub-hover,#ecece8);min-width:10px}
.mbjj-cal-day.is-on{background:var(--mbjj-accent,#fcbf28)}
.mbjj-cal-day.is-future{background:transparent;border:1px dashed var(--mbjj-edge,#dededa)}
html[data-mbjj-contrast="high"] .mbjj-cal-day.is-on{background:var(--mbjj-ink,#111)}
.mbjj-training-key{display:flex;align-items:center;gap:8px;margin:10px 0 0}
.mbjj-training-key .mbjj-cal-day{width:14px;height:14px;min-width:14px}

/* ==========================================================================
   17. Timetable: day columns (v4.5.1)
   Every class is a full card: time, full name, who it's for, + Add.
   Only days with classes show; phones get day tabs instead of a sideways scroll.
   ========================================================================== */
.mbjj-week-tools{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:6px 0 16px}
.mbjj-week-filter{display:inline-flex;gap:4px;padding:5px;border-radius:999px;background:var(--mbjj-surface,#fff);border:1px solid var(--mbjj-edge,#dededa)}
html[data-mbjj-theme="light"] .mbjj-week-filter{background:#fff}
.mbjj-week-filter button{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:var(--mbjj-ink,#111);font:800 .95rem/1 var(--mbjj-font-body,inherit);cursor:pointer}
.mbjj-week-filter button:hover{background:var(--mbjj-hub-hover,#ecece8)}
.mbjj-week-filter button.is-active{background:var(--mbjj-club-yellow,#fcbf28);color:#111}
html[data-mbjj-theme] .mbjj-schedule .mbjj-week-hint{margin:0;font-size:.95rem;color:var(--mbjj-muted,#444)!important}

.mbjj-week-daytabs{display:none}
.mbjj-week{display:grid;grid-template-columns:repeat(var(--mbjj-week-cols,5),minmax(0,1fr));gap:12px;align-items:start}
.mbjj-week-day.is-empty{display:none}
html[data-mbjj-theme] .mbjj-schedule .mbjj-week-dayname{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px!important;padding:0 0 10px;
  border-bottom:3px solid var(--mbjj-edge,#dededa);font:900 1.05rem/1 var(--mbjj-font-display,inherit)!important;text-transform:uppercase;letter-spacing:.04em;color:var(--mbjj-ink,#111)!important}
.mbjj-week-day.is-today .mbjj-week-dayname{border-bottom-color:var(--mbjj-club-yellow,#fcbf28)!important}
.mbjj-today-badge{font:800 .72rem/1 var(--mbjj-font-body,inherit);font-style:normal;text-transform:uppercase;letter-spacing:.08em;padding:5px 8px;border-radius:999px;background:var(--mbjj-club-yellow,#fcbf28);color:#111}
.mbjj-week-list{display:grid;gap:10px}

/* Class card */
html[data-mbjj-theme] .mbjj-schedule .mbjj-slot{position:relative;display:grid;gap:6px;padding:14px 14px 12px;border-radius:16px;background:#111;color:#f5f5f3;border:2px solid #111;box-shadow:0 8px 20px rgba(0,0,0,.12)}
html[data-mbjj-theme="dark"] .mbjj-schedule .mbjj-slot{background:#1d1d1d;border-color:#2e2e2e;box-shadow:none}
.mbjj-slot[hidden]{display:none!important}
.mbjj-slot-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
html[data-mbjj-theme] .mbjj-schedule .mbjj-slot-time{font:800 .95rem/1.2 var(--mbjj-font-body,inherit);color:#f5f5f3!important;white-space:nowrap}
.mbjj-slot-status{padding:4px 8px;border-radius:999px;font:900 .7rem/1 var(--mbjj-font-body,inherit);text-transform:uppercase;letter-spacing:.06em;background:var(--mbjj-club-yellow,#fcbf28);color:#111}
.mbjj-slot.is-next .mbjj-slot-status{background:#f5f5f3}
html[data-mbjj-theme] .mbjj-schedule .mbjj-slot.is-now{border-color:var(--mbjj-club-yellow,#fcbf28);box-shadow:0 0 0 3px rgba(252,191,40,.35)}
html[data-mbjj-theme] .mbjj-schedule .mbjj-slot h4{margin:0!important;font:900 1.15rem/1.15 var(--mbjj-font-display,inherit)!important;color:#fff!important;letter-spacing:-.01em;overflow-wrap:normal;word-break:normal;hyphens:manual}
html[data-mbjj-theme] .mbjj-schedule .mbjj-slot-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0;font-size:.85rem;color:#cfcfcb!important}
.mbjj-slot-tag{padding:3px 8px;border-radius:999px;font-weight:800;font-size:.75rem;background:#f5f5f3;color:#111}
.mbjj-slot.is-kids .mbjj-slot-tag{background:var(--mbjj-club-yellow,#fcbf28)}
.mbjj-slot.is-all .mbjj-slot-tag{background:#3a3a3a;color:#f5f5f3}
html[data-mbjj-theme] .mbjj-schedule .mbjj-slot-coach{margin:0;font-size:.85rem;color:#cfcfcb!important}

/* + Add toggle (the checkbox drives the existing calendar download) */
.mbjj-slot-add{position:relative;display:inline-flex;align-items:center;justify-content:center;justify-self:start;min-height:40px;margin-top:4px;padding:0 14px;border-radius:999px;
  border:2px solid rgba(255,255,255,.55);color:#f5f5f3;font-weight:800;font-size:.85rem;cursor:pointer;user-select:none}
.mbjj-slot-add:hover{border-color:#fff}
.mbjj-slot-add input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.mbjj-slot-add:focus-within{outline:3px solid var(--mbjj-club-yellow,#fcbf28);outline-offset:2px}
.mbjj-slot-add-on{display:none}
.mbjj-slot-add:has(input:checked){background:var(--mbjj-club-yellow,#fcbf28);border-color:var(--mbjj-club-yellow,#fcbf28);color:#111}
.mbjj-slot-add:has(input:checked) .mbjj-slot-add-on{display:inline}
.mbjj-slot-add:has(input:checked) .mbjj-slot-add-off{display:none}

/* Selection bar: appears once something is added */
.mbjj-week-selectbar{position:sticky;bottom:14px;z-index:20;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px auto 0;width:max-content;max-width:100%;
  padding:8px 8px 8px 18px;border-radius:999px;background:#111;color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.mbjj-week-selectbar[hidden]{display:none}
.mbjj-week-selected{font-weight:800}
.mbjj-week-selectbar .mbjj-clear-all{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #555;background:transparent;color:#fff;font-weight:700;cursor:pointer}
.mbjj-week-go{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border-radius:999px;background:var(--mbjj-club-yellow,#fcbf28);color:#111!important;font-weight:900;text-decoration:none!important}

/* High contrast: plain black cards with white edges */
html[data-mbjj-contrast="high"] .mbjj-schedule .mbjj-slot{border-color:#fff!important;background:#000!important}

/* Tablets: let the columns wrap instead of squeezing */
@media (max-width:1000px){.mbjj-week{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}
/* Phones: day tabs, one day at a time */
@media (max-width:700px){
  .mbjj-week-daytabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 14px;padding-bottom:4px}
  .mbjj-week-daytabs button{flex:1 0 auto;min-height:48px;min-width:56px;padding:0 12px;border-radius:14px;border:1px solid var(--mbjj-edge,#dededa);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111);font-weight:900;text-transform:uppercase;cursor:pointer}
  .mbjj-week-daytabs button.is-active{background:var(--mbjj-club-yellow,#fcbf28);border-color:var(--mbjj-club-yellow,#fcbf28);color:#111}
  .mbjj-week-daytabs button[hidden]{display:none}
  .mbjj-week{display:block}
  .mbjj-week-day{display:none}
  .mbjj-week-day.is-current{display:block}
  .mbjj-week-filter{width:100%}.mbjj-week-filter button{flex:1}
}
.mbjj-nowrap{white-space:nowrap}
html[data-mbjj-theme] .mbjj-schedule .mbjj-today-badge{color:#111!important;background:var(--mbjj-club-yellow,#fcbf28)!important}
.mbjj-week-daytabs{scrollbar-width:none}.mbjj-week-daytabs::-webkit-scrollbar{display:none}
@media (max-width:700px){.mbjj-schedule .mbjj-header .mbjj-brand{display:none!important}}
/* Calendar form fields never wider than their box; normal case, not shouty capitals. */
.mbjj-schedule .mbjj-calendar-panel :is(select,input:not([type=checkbox]):not([type=hidden])){width:100%!important;max-width:100%!important;box-sizing:border-box!important;text-transform:none!important;letter-spacing:0!important}
.mbjj-schedule .mbjj-calendar-controls{min-width:0}
.mbjj-schedule .mbjj-calendar-controls>*{min-width:0}
@media (max-width:700px){.mbjj-schedule .mbjj-calendar-controls,.mbjj-schedule .mbjj-term-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.mbjj-schedule .mbjj-term-fields label{min-width:0}}

/* ==========================================================================
   18. Timetable time positions (v4.5.2)
   Desktop: each day is a compact 15-minute grid with an hours rail, so classes
   sit at their real times and longer classes are taller. Tablets/phones: list.
   ========================================================================== */
.mbjj-week-rail{display:none}
.mbjj-slot-top .mbjj-slot-add{margin:0;flex:0 0 auto}
.mbjj-slot-meta .mbjj-slot-status{margin-left:auto}
@media (min-width:1001px){
  .mbjj-week{--mbjj-row-h:30px;grid-template-columns:48px repeat(var(--mbjj-week-cols,5),minmax(0,1fr));gap:10px}
  .mbjj-week-rail{display:block}
  .mbjj-week-rail .mbjj-week-dayname{border-bottom-color:transparent!important;visibility:hidden}
  .mbjj-week-rail .mbjj-week-list,
  .mbjj-week-day.is-timed .mbjj-week-list{display:grid;gap:0;grid-template-rows:repeat(var(--mbjj-week-rows,16),var(--mbjj-row-h))}
  .mbjj-week-rail span{grid-row:var(--r);grid-column:1;align-self:start;transform:translateY(-50%);font:700 .72rem/1 var(--mbjj-font-body,inherit);color:var(--mbjj-muted,#444);text-align:right;padding-right:6px;white-space:nowrap}
  .mbjj-week-day.is-timed .mbjj-week-list{background:repeating-linear-gradient(to bottom,var(--mbjj-edge,#dededa) 0 1px,transparent 1px calc(var(--mbjj-row-h) * 4))}
  html[data-mbjj-theme] .mbjj-schedule .mbjj-week-day.is-timed .mbjj-slot{grid-row:var(--r) / span var(--s);grid-column:1;margin:1px 0;padding:6px 10px;gap:2px;align-content:start;overflow:hidden;border-radius:12px;box-shadow:none}
  .mbjj-week-day.is-list .mbjj-week-list{gap:8px}
  html[data-mbjj-theme] .mbjj-schedule .mbjj-week .mbjj-slot{padding:8px 10px;gap:3px;border-radius:12px}
  html[data-mbjj-theme] .mbjj-schedule .mbjj-week .mbjj-slot h4{font-size:.98rem!important;line-height:1.1!important}
  html[data-mbjj-theme] .mbjj-schedule .mbjj-week .mbjj-slot-time{font-size:.82rem}
  html[data-mbjj-theme] .mbjj-schedule .mbjj-week .mbjj-slot-meta{font-size:.74rem;gap:4px;flex-wrap:nowrap;min-width:0}
  .mbjj-week .mbjj-slot-group{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .mbjj-week .mbjj-slot-tag{font-size:.68rem;padding:2px 6px;flex:0 0 auto}
  .mbjj-week .mbjj-slot-add{min-height:26px;padding:0 9px;font-size:.72rem;border-width:1.5px}
  .mbjj-week .mbjj-slot-status{font-size:.62rem;padding:3px 6px;flex:0 0 auto}
}

/* ==========================================================================
   19. Header menu hover = yellow underline (v4.5.3)
   The 4.3.2 "show underline" rule lost on specificity to the hidden-underline
   rule, so no underline ever appeared. Forced here, plus the same underline
   for dropdown items instead of a grey box.
   ========================================================================== */
.ct-header [data-id="menu"]>ul>li:is(:hover,:focus-within,.current-menu-item,.current-menu-ancestor,.current_page_item)>.ct-menu-link::after{transform:scaleX(1)!important;opacity:1!important}
.ct-header [data-id="menu"] .sub-menu .ct-menu-link{text-decoration:none!important;text-underline-offset:5px;text-decoration-thickness:3px!important}
.ct-header [data-id="menu"] .sub-menu .ct-menu-link:is(:hover,:focus-visible){background:transparent!important;text-decoration:underline!important;text-decoration-color:var(--mbjj-club-yellow,#fcbf28)!important}
html[data-mbjj-theme="dark"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:is(:hover,:focus-visible){background:transparent!important}
.ct-header [data-id="menu"] .sub-menu :is(.current-menu-item,.current_page_item)>.ct-menu-link:is(:hover,:focus-visible){background:var(--mbjj-accent,#fcbf28)!important;text-decoration-color:#111!important}

/* ==========================================================================
   20. Page H1 + price list (v4.5.4)
   The first block heading on a page is now an H1 (for Google and screen
   readers). These rules keep it looking exactly like the H2 it replaced.
   ========================================================================== */
.mbjj-panel h1.mbjj-page-h1,.mbjj-join-cta h1.mbjj-page-h1,.mbjj-pathway h1.mbjj-page-h1{letter-spacing:-.07em;text-transform:uppercase}
html[data-mbjj-theme="dark"] .mbjj-header h1.mbjj-page-h1{color:var(--mbjj-ink)!important}
.mbjj-hub-head h1.mbjj-page-h1{margin:.05em 0 .15em!important;font-size:clamp(2.2rem,1.4rem + 3.4vw,4.2rem)!important;line-height:.95!important;color:var(--mbjj-ink,#111)!important;font-family:var(--mbjj-font-display,inherit)!important;font-weight:900!important;text-transform:uppercase;letter-spacing:-.04em!important;font-stretch:88%}
.mbjj-start-card h1.mbjj-page-h1{font-size:clamp(2.4rem,1.6rem + 3.5vw,4.6rem)!important}
html[data-mbjj-theme] .mbjj-start-card.mbjj-block h1.mbjj-page-h1{color:var(--mbjj-on-accent,#111)!important}
.mbjj-member-page .mbjj-dashboard-head h1.mbjj-page-h1{margin:0!important;color:var(--mbjj-ink,#111)!important}

/* Prices in the "Cost + how to pay" card */
.mbjj-price-list{list-style:none;margin:.6em 0 .8em;padding:0;display:grid;gap:8px}
.mbjj-price-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 14px;border-radius:12px;background:var(--mbjj-soft,#f4f4f1);border:1px solid var(--mbjj-edge,#dededa)}
.mbjj-price-list strong{font-family:var(--mbjj-font-display,inherit);font-size:1.45rem;font-weight:900;letter-spacing:-.02em;color:var(--mbjj-ink,#111)}
.mbjj-price-list span{color:var(--mbjj-muted,#555);font-weight:600}
html[data-mbjj-theme="dark"] .mbjj-price-list li{background:#1f1f1f;border-color:#2e2e2e}
html[data-mbjj-theme="dark"] .mbjj-price-list strong{color:#f5f5f3}
html[data-mbjj-theme="dark"] .mbjj-price-list span{color:#c9c9c5}

/* ==========================================================================
   21. Competition team from Smoothcomp (v4.5.5) + coach initials
   ========================================================================== */
.mbjj-comp-medals{display:flex;flex-wrap:wrap;gap:8px;margin:.4em 0 1.2em;padding:0}
.mbjj-comp-medals span{display:inline-flex;align-items:baseline;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid var(--mbjj-edge,#dededa);background:var(--mbjj-soft,#f4f4f1);font-weight:700;color:var(--mbjj-ink,#111)}
.mbjj-comp-medals strong{font-family:var(--mbjj-font-display,inherit);font-size:1.25rem;font-weight:900}
.mbjj-comp-medals span::before{content:"";width:10px;height:10px;border-radius:50%;align-self:center;background:var(--dot,#111)}
.mbjj-comp-medals .is-gold{--dot:#d4a017}.mbjj-comp-medals .is-silver{--dot:#a8a9ad}.mbjj-comp-medals .is-bronze{--dot:#b87333}
.mbjj-comp-medals .is-total{background:var(--mbjj-club-yellow,#fcbf28);border-color:transparent;color:#111}.mbjj-comp-medals .is-total::before{display:none}
.mbjj-panel h3.mbjj-comp-subhead{color:var(--mbjj-ink,#111)!important;margin:1.2em 0 .6em!important;font-size:1.05rem!important;text-transform:uppercase;letter-spacing:.06em!important}
.mbjj-comp-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.mbjj-comp-card{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;border:1px solid var(--mbjj-edge,#dededa);background:var(--mbjj-card,#fff);color:var(--mbjj-ink,#111)!important;text-decoration:none!important;transition:border-color .15s ease,transform .15s ease}
.mbjj-comp-card:hover{border-color:var(--mbjj-club-yellow,#fcbf28);transform:translateY(-2px)}
.mbjj-comp-card img{width:64px;height:64px;flex:0 0 64px;border-radius:12px;object-fit:cover;background:#eee}
.mbjj-comp-body{display:grid;gap:2px;min-width:0}
.mbjj-comp-body strong{font-size:1rem;line-height:1.2}
.mbjj-comp-date{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--mbjj-ink,#111);opacity:.75}
.mbjj-comp-meta{font-size:.85rem;color:var(--mbjj-muted,#555)}
.mbjj-comp-results{list-style:none;margin:0;padding:0;display:grid;gap:0;border-top:1px solid var(--mbjj-edge,#dededa)}
.mbjj-comp-results li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:12px 2px;border-bottom:1px solid var(--mbjj-edge,#dededa)}
.mbjj-comp-results a{display:grid;gap:2px;color:var(--mbjj-ink,#111)!important;text-decoration:none!important;min-width:0}
.mbjj-comp-results a:hover strong{text-decoration:underline;text-decoration-color:var(--mbjj-club-yellow,#fcbf28);text-decoration-thickness:3px;text-underline-offset:4px}
.mbjj-comp-results a span{font-size:.85rem;color:var(--mbjj-muted,#555)}
.mbjj-comp-won{display:flex;gap:6px;flex-wrap:wrap}
.mbjj-comp-won span{padding:3px 10px;border-radius:999px;font-size:.8rem;font-weight:800;color:#111}
.mbjj-comp-won .is-gold{background:#f5d76e}.mbjj-comp-won .is-silver{background:#dcdde0}.mbjj-comp-won .is-bronze{background:#e2b48a}
html[data-mbjj-theme="dark"] :is(.mbjj-comp-medals span:not(.is-total),.mbjj-comp-card){background:#1a1a1a;border-color:#2e2e2e;color:#f5f5f3!important}
html[data-mbjj-theme="dark"] :is(.mbjj-comp-date,.mbjj-comp-body strong,.mbjj-comp-results a,.mbjj-comp-medals span:not(.is-total)){color:#f5f5f3!important}
html[data-mbjj-theme="dark"] :is(.mbjj-comp-meta,.mbjj-comp-results a span){color:#c9c9c5!important}
html[data-mbjj-theme="dark"] :is(.mbjj-comp-results,.mbjj-comp-results li){border-color:#2e2e2e}
.mbjj-coach-placeholder{font-family:var(--mbjj-font-display,inherit);font-weight:900;letter-spacing:-.02em}
html[data-mbjj-theme="dark"] .mbjj-panel h3.mbjj-comp-subhead{color:#f5f5f3!important}
.mbjj-comp-medals .is-total,.mbjj-comp-medals .is-total strong,html[data-mbjj-theme] .mbjj-comp-medals .is-total strong{color:#111!important}
.mbjj-comp-won span,html[data-mbjj-theme] .mbjj-comp-won span{color:#111!important}
/* Coach cards (v4.5.6): square photos so heads aren't cropped; four across on desktop, two on tablet/phone. */
.mbjj-coach-photo{aspect-ratio:1/1!important;height:auto!important;object-position:50% 25%}
/* v4.5.9: black belts get the red rank bar, so they don't read as a plain black strip. */
.mbjj-belt-is-black .mbjj-belt-band{background:#d61f26!important}
/* v4.5.8: don't rely on the theme for box sizing; the timetable's padding pushed it wider than the page on some themes. */
.mbjj-schedule{box-sizing:border-box}
@media (min-width:1001px){.mbjj-coach-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (min-width:520px) and (max-width:1000px){.mbjj-coach-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:519px){.mbjj-coach-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.mbjj-coach-body{padding:12px!important}.mbjj-coach-body h3{font-size:1.15rem!important}}

/* ==========================================================================
   22. Shop, reviews, coach progress notes, training videos, membership tags (v4.6.0)
   ========================================================================== */
.mbjj-shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin-top:8px}
.mbjj-shop-item{display:flex;flex-direction:column;padding:0!important;overflow:hidden;border-radius:18px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-shop-photo{display:block;width:100%;aspect-ratio:1/1;height:auto!important;object-fit:cover;background:var(--mbjj-paper,#f4f4f1)}
.mbjj-shop-placeholder{display:grid;place-items:center}
.mbjj-shop-placeholder img{width:42%;height:auto;border-radius:50%;opacity:.35;filter:grayscale(1)}
.mbjj-shop-body{display:flex;flex-direction:column;gap:.35rem;padding:16px 18px 18px;flex:1}
.mbjj-shop-body h3{margin:0!important;font-size:1.25rem!important}
.mbjj-shop-body .mbjj-actions{margin-top:auto;padding-top:.6rem}
.mbjj-shop-category{margin:0!important;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem!important;font-weight:800;color:var(--mbjj-muted,#555)}
.mbjj-shop-price{margin:0!important;font-family:var(--mbjj-font-display,inherit);font-weight:900;font-size:1.35rem!important}
.mbjj-shop-stock{margin:0!important;font-weight:700;font-size:.9rem!important}
.mbjj-block .mbjj-shop-item.is-sold-out .mbjj-shop-stock{color:#b42318!important}
html[data-mbjj-theme="dark"] .mbjj-block .mbjj-shop-item.is-sold-out .mbjj-shop-stock{color:#ff8a80!important}
.mbjj-shop-item.is-sold-out .mbjj-shop-photo{filter:grayscale(1);opacity:.6}
.mbjj-shop-sizes{display:flex;flex-wrap:wrap;gap:6px;margin:.2rem 0 0!important}
.mbjj-shop-sizes span{padding:3px 9px;border-radius:999px;border:1px solid var(--mbjj-line,#e6e6e6);font-size:.82rem;font-weight:700}

.mbjj-stars{margin:0 0 .4rem!important;color:var(--mbjj-club-yellow,#fcbf28);font-size:1.15rem!important;letter-spacing:.08em;line-height:1}
.mbjj-stars span{color:var(--mbjj-line,#d9d9d6)}
.mbjj-story-source{display:inline-flex;align-items:center;gap:6px;margin-top:.4rem;font-size:.85rem;font-weight:700;color:var(--mbjj-muted,#555)!important;text-decoration:none}
a.mbjj-story-source:hover{text-decoration:underline;text-decoration-color:var(--mbjj-club-yellow,#fcbf28);text-underline-offset:3px}

.mbjj-progress-notes{margin-top:1.4rem}
.mbjj-progress-notes h3{margin:0 0 .7rem!important}
.mbjj-note-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.mbjj-note{padding:16px 18px!important;border-radius:16px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-note h4{margin:.1rem 0 .4rem!important;font-size:1.1rem}
.mbjj-note-meta{margin:0!important;font-size:.82rem!important;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--mbjj-muted,#555)}
.mbjj-note div>p:last-child{margin-bottom:0}

.mbjj-video{position:relative;width:100%;aspect-ratio:16/9;margin:.8rem 0 .2rem;border-radius:14px;overflow:hidden;background:#000}
.mbjj-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.mbjj-plan-tags{display:flex;flex-wrap:wrap;gap:6px;margin:.3rem 0 .6rem!important}
.mbjj-plan-tags span{padding:4px 10px;border-radius:999px;background:var(--mbjj-paper,#f4f4f1);border:1px solid var(--mbjj-line,#e6e6e6);font-size:.82rem;font-weight:700;color:var(--mbjj-ink,#111)}
.mbjj-block .mbjj-story-card{border:1px solid var(--mbjj-line,#e6e6e6)!important;border-left-width:1px!important;border-radius:18px;padding:20px 22px!important;background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-block .mbjj-story-card blockquote{margin:0 0 .8rem!important;padding:0!important;border:0!important}
.mbjj-testimonials > .mbjj-actions{margin-top:18px}

/* ==========================================================================
   23. Map, location, About, privacy + terms (v4.6.1)
   ========================================================================== */
.mbjj-map{position:relative;width:100%;aspect-ratio:4/3;min-height:260px;border-radius:18px;overflow:hidden;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-paper,#f4f4f1);margin:.9rem 0}
.mbjj-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
html[data-mbjj-theme="dark"] .mbjj-map iframe{filter:invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9)}
.mbjj-location-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:28px;align-items:center}
.mbjj-location-grid .mbjj-map{margin:0}
.mbjj-location-address{display:flex;align-items:center;gap:8px;font-weight:800;font-size:1.1rem!important}
@media (max-width:860px){.mbjj-location-grid{grid-template-columns:1fr;gap:18px}}
.mbjj-first-location .mbjj-map{aspect-ratio:16/10;min-height:200px}

.mbjj-about-story{max-width:760px;margin-top:1.2rem}
.mbjj-about-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:1.4rem}
.mbjj-block .mbjj-about-values .mbjj-card{padding:20px 22px!important;border-radius:18px;border:1px solid var(--mbjj-line,#e6e6e6)!important;background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-about-values h3{margin:0 0 .35rem!important}
.mbjj-about-values p{margin:0!important}

.mbjj-legal h3{margin:1.6rem 0 .5rem!important;font-size:1.25rem!important}
.mbjj-legal :is(p,li){max-width:72ch}
.mbjj-legal ul{padding-left:1.2rem}
.mbjj-legal li{margin:.3rem 0}

.mbjj-form-privacy{margin-top:.8rem!important}
.mbjj-footer-legal{display:flex;flex-wrap:wrap;gap:18px}
.mbjj-footer-legal a{font-size:.85rem;font-weight:700;text-decoration:none}
.mbjj-footer-legal a:hover{text-decoration:underline;text-decoration-color:var(--mbjj-club-yellow,#fcbf28);text-underline-offset:3px}

/* v4.6.2: the newer sections join the same content column, padding and heading colours as the rest,
   so they sit inside Blocksy's page width instead of running edge to edge. */
.mbjj-about,.mbjj-location,.mbjj-legal,.mbjj-shop,.mbjj-complaint-form,.mbjj-home-schedule,.mbjj-home-programmes,.mbjj-home-about,.mbjj-home-ready{
  width:min(calc(100% - 32px), var(--mbjj-content-max))!important;
  max-width:var(--mbjj-content-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  border-radius:var(--mbjj-card-radius)!important;
  box-sizing:border-box!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
@media (max-width:760px){
  .mbjj-about,.mbjj-location,.mbjj-legal,.mbjj-shop,.mbjj-complaint-form,.mbjj-home-schedule,.mbjj-home-programmes,.mbjj-home-about,.mbjj-home-ready{width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;border-radius:18px!important}
}
:is(.mbjj-about,.mbjj-location,.mbjj-legal,.mbjj-shop,.mbjj-progress-notes,.mbjj-testimonials,.mbjj-home-schedule,.mbjj-home-programmes,.mbjj-home-about,.mbjj-home-ready,.mbjj-kids-benefits,.mbjj-age-groups,.mbjj-trial-modal) :is(h2,h3,h4){color:var(--mbjj-ink,#111)!important}
html[data-mbjj-theme="dark"] :is(.mbjj-about,.mbjj-location,.mbjj-legal,.mbjj-shop,.mbjj-progress-notes,.mbjj-testimonials,.mbjj-home-schedule,.mbjj-home-programmes,.mbjj-home-about,.mbjj-home-ready,.mbjj-kids-benefits,.mbjj-age-groups,.mbjj-trial-modal) :is(h2,h3,h4){color:#f5f5f3!important}

/* ==========================================================================
   24. Parents + guardians in the Member Hub (v4.7.0)
   ========================================================================== */
.mbjj-family-switch{display:flex;flex-wrap:wrap;gap:8px;margin:.4rem 0 1.2rem}
.mbjj-family-switch a{padding:8px 16px;border-radius:999px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)!important;font-weight:800;text-decoration:none!important}
.mbjj-family-switch a.is-active{background:var(--mbjj-club-yellow,#fcbf28);border-color:transparent;color:#111!important}
.mbjj-family{margin-top:1.4rem}
.mbjj-family-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:.6rem}
.mbjj-block .mbjj-family-card{padding:16px 18px!important;border-radius:16px;border:1px solid var(--mbjj-line,#e6e6e6)!important;background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111);display:flex;flex-direction:column;gap:.45rem}
.mbjj-family-card h4,.mbjj-family-card p{margin:0!important}
.mbjj-family-card .mbjj-button{align-self:flex-start;margin-top:.3rem}
.mbjj-note-photo{display:block;width:100%;max-width:420px;height:auto!important;border-radius:12px;margin-top:.7rem}
:is(.mbjj-family,.mbjj-member-progress) :is(h3,h4){color:var(--mbjj-ink,#111)!important}
html[data-mbjj-theme="dark"] :is(.mbjj-family,.mbjj-member-progress) :is(h3,h4){color:#f5f5f3!important}

/* v4.8.1: complaints form */
.mbjj-safety-notice{margin:0 0 1.2rem!important;padding:14px 18px!important;border-radius:14px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-paper,#f4f4f1);color:var(--mbjj-ink,#111)}
.mbjj-safety-notice a{font-weight:800}

/* ==========================================================================
   25. Text links match the site (v4.8.2)
   Links inside club sections take the text colour with the yellow underline,
   so new pages never fall back to the theme's blue/purple. Buttons and menus keep their own look.
   ========================================================================== */
.mbjj-block :is(p,li,dd,dt,td,blockquote,h3,h4,.mbjj-notice,.mbjj-lead,.mbjj-small-note) a:not([class*="mbjj-button"]):not(nav a),
.mbjj-block :is(p,li,dd,dt,td,blockquote,h3,h4,.mbjj-notice,.mbjj-lead,.mbjj-small-note) a:not([class*="mbjj-button"]):not(nav a):visited{
  color:inherit!important;
  text-decoration-line:underline!important;
  text-decoration-color:var(--mbjj-club-yellow,#fcbf28)!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:3px!important;
}
.mbjj-block :is(p,li,dd,dt,td,blockquote,h3,h4,.mbjj-notice,.mbjj-lead,.mbjj-small-note) a:not([class*="mbjj-button"]):not(nav a):hover{text-decoration-thickness:3px!important}
.mbjj-block :is(p,li,dd,dt,td,blockquote,h3,h4,.mbjj-notice,.mbjj-lead,.mbjj-small-note) a:not([class*="mbjj-button"]):not(nav a):focus-visible{outline:2px solid var(--mbjj-club-yellow,#fcbf28);outline-offset:2px;border-radius:2px}
.mbjj-sorriso-mark a{color:inherit!important}

/* ==========================================================================
   26. Booking pop-up, contact tab, week grid, kids benefits + age groups (v4.9.0)
   ========================================================================== */
/* Homepage: where and when */
.mbjj-home-schedule-card{padding:22px!important;border-radius:18px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-home-schedule-card h3{margin:0 0 .5rem!important}
.mbjj-contact-lines{list-style:none;margin:.8rem 0!important;padding:0!important;display:grid;gap:6px}
.mbjj-contact-lines li{display:flex;align-items:center;gap:8px;margin:0!important}
.mbjj-week-grid-wrap{margin-top:22px;overflow-x:auto;border-radius:16px;border:1px solid var(--mbjj-line,#e6e6e6)}
.mbjj-week-grid{width:100%;border-collapse:collapse;min-width:640px;background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-week-grid caption{caption-side:top;text-align:center;padding:12px;background:var(--mbjj-ink,#111);color:var(--mbjj-surface,#fff);font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.78rem}
.mbjj-week-grid :is(th,td){border:1px solid var(--mbjj-line,#e6e6e6);padding:8px 6px;text-align:center;vertical-align:middle;font-size:.85rem}
.mbjj-week-grid thead th{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;background:var(--mbjj-paper,#f4f4f1)}
.mbjj-week-grid tbody th{font-weight:900;white-space:nowrap;background:var(--mbjj-paper,#f4f4f1)}
.mbjj-week-class{display:block;line-height:1.25}
.mbjj-week-class+.mbjj-week-class{margin-top:6px}
.mbjj-week-class strong{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}
.mbjj-week-class small{display:block;font-size:.72rem;color:var(--mbjj-muted,#555)}
.mbjj-week-class.is-kids strong::before,.mbjj-week-key::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--mbjj-club-yellow,#fcbf28);margin-right:6px;vertical-align:1px}
.mbjj-week-key{margin-left:.4em}
.mbjj-week-list{display:none}
@media (max-width:760px){
  .mbjj-week-grid-wrap{display:none}
  .mbjj-week-list{display:grid;gap:10px;margin-top:18px}
  .mbjj-week-day{padding:14px 16px;border-radius:14px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff)}
  .mbjj-week-day h3{margin:0 0 .35rem!important;font-size:1rem!important;text-transform:uppercase;letter-spacing:.1em}
  .mbjj-week-day ul{list-style:none;margin:0!important;padding:0!important}
  .mbjj-week-day li{margin:.2rem 0!important}
  .mbjj-week-day li span{display:inline-block;min-width:4.2em;font-weight:800}
}

/* Kids page */
.mbjj-benefit-grid,.mbjj-age-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin-top:1.2rem}
.mbjj-block :is(.mbjj-benefit-grid,.mbjj-age-grid) .mbjj-card{padding:20px 22px!important;border-radius:18px;border:1px solid var(--mbjj-line,#e6e6e6)!important;background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-benefit-number{display:block;font-weight:900;letter-spacing:.14em;font-size:.75rem;color:var(--mbjj-muted,#555);margin-bottom:.3rem}
.mbjj-benefit-grid h3,.mbjj-age-grid h3{margin:0 0 .4rem!important;font-size:1.15rem!important}
.mbjj-benefit-grid p,.mbjj-age-grid p{margin:0!important}
.mbjj-age-grid ul{list-style:none;margin:0 0 .9rem!important;padding:0!important}
.mbjj-age-grid li{margin:.25rem 0!important}
.mbjj-age-grid li small{display:block;color:var(--mbjj-muted,#555)}
.mbjj-age-grid .mbjj-card{display:flex;flex-direction:column}
.mbjj-age-grid .mbjj-button{margin-top:auto;align-self:flex-start}
.mbjj-age-note{background:var(--mbjj-paper,#f4f4f1)!important}

/* Booking pop-up */
html.mbjj-trial-open{overflow:hidden}
.mbjj-trial-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px}
.mbjj-trial-modal[hidden]{display:none!important}
.mbjj-trial-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.mbjj-trial-dialog{position:relative;width:min(640px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:28px clamp(18px,4vw,34px)!important;border-radius:22px;background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111);box-shadow:0 30px 80px rgba(0,0,0,.35)}
.mbjj-trial-dialog h2{margin:.1rem 0 .4rem!important;font-size:clamp(1.8rem,5vw,2.6rem)!important}
.mbjj-trial-dialog .mbjj-form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.mbjj-trial-x{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:50%;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111);font-size:1.5rem;line-height:1;cursor:pointer}
.mbjj-trial-x:focus-visible{outline:2px solid var(--mbjj-club-yellow,#fcbf28);outline-offset:2px}

/* Sticky call / book tab */
.mbjj-contact-tab{position:fixed;z-index:9990;right:0;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:stretch;gap:0;border-radius:12px 0 0 12px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.mbjj-contact-tab a{display:flex;align-items:center;justify-content:center;text-decoration:none!important;font-weight:900}
.mbjj-contact-tab-icon{width:44px;height:44px;background:var(--mbjj-ink,#111);color:var(--mbjj-surface,#fff)!important;font-size:1.05rem}
.mbjj-contact-tab-icon.is-whatsapp{background:#1f9d55}
.mbjj-contact-tab-book{writing-mode:vertical-rl;padding:16px 0;width:44px;background:var(--mbjj-club-yellow,#fcbf28);color:#111!important;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem}
.mbjj-contact-tab a:focus-visible{outline:3px solid #fff;outline-offset:-3px}
@media (max-width:760px){
  /* Small pill, lined up with the Display button (48px at 12px from the bottom), shown once you scroll past the top. */
  .mbjj-contact-tab{top:auto;bottom:16px;right:12px;transform:translateY(160%);opacity:0;pointer-events:none;flex-direction:row;border-radius:999px;transition:transform .25s ease,opacity .25s ease}
  .mbjj-contact-tab.is-shown{transform:none;opacity:1;pointer-events:auto}
  .mbjj-contact-tab-icon{width:40px;height:40px;font-size:.95rem}
  .mbjj-contact-tab-book{writing-mode:horizontal-tb;width:auto;padding:0 14px;height:40px;font-size:.72rem;letter-spacing:.08em}
  .mbjj-contact-tab-book .mbjj-tab-long{display:none}
}
@media (min-width:761px){.mbjj-contact-tab-book .mbjj-tab-short{display:none}}
@media (prefers-reduced-motion:reduce){.mbjj-contact-tab{transition:none}}
@media print{.mbjj-contact-tab,.mbjj-trial-modal{display:none!important}}

@media (min-width:1001px){.mbjj-benefit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:640px) and (max-width:1000px){.mbjj-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ==========================================================================
   27. Card icons + phone alignment (v4.9.1)
   ========================================================================== */
.mbjj-card-top{display:flex;align-items:center;gap:10px;margin-bottom:.55rem}
.mbjj-block span.mbjj-card-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:12px;background:var(--mbjj-club-yellow,#fcbf28);color:#111!important;font-size:1.05rem;letter-spacing:0;text-transform:none;font-weight:400;line-height:1}
.mbjj-block span.mbjj-card-icon .mbjj-icon{margin:0!important;color:#111!important}
.mbjj-card-top .mbjj-benefit-number,.mbjj-card-top .mbjj-first-number{margin:0!important}
.mbjj-kids-card > .mbjj-card-icon,.mbjj-about-values .mbjj-card > .mbjj-card-icon{margin-bottom:.6rem}
.mbjj-age-grid li{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:baseline}
.mbjj-age-grid li .mbjj-icon{grid-row:1;opacity:.7}
.mbjj-age-grid li small{grid-column:2}
.mbjj-slot-line{display:flex;flex-wrap:wrap;column-gap:10px}
.mbjj-slot-line span{white-space:nowrap}
.mbjj-program-info-grid .mbjj-card-top{margin-bottom:0}
html[data-mbjj-contrast="high"] .mbjj-block span.mbjj-card-icon{outline:2px solid #111}

@media (max-width:700px){
  /* One text inset on every section card, so headings and text line up as you scroll. */
  .mbjj-hero,.mbjj-hero.has-photo,.mbjj-sorriso-nation,.mbjj-start-card{padding-left:22px!important;padding-right:22px!important}
  .mbjj-program-links>.mbjj-section-heading{padding-left:22px!important;padding-right:22px!important}
  .mbjj-sorriso-nation .mbjj-eyebrow{letter-spacing:.12em}
  /* Room at the bottom so the floating buttons never sit over the last links. */
  body{padding-bottom:72px}
}

/* ==========================================================================
   28. Member profile: view first, edit on request (v4.9.2)
   ========================================================================== */
.mbjj-profile-view{margin:18px 0;padding:20px 22px;border-radius:18px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-profile-view-head{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.mbjj-profile-view-head h3{margin:0 0 .35rem!important;font-size:1.4rem!important;color:var(--mbjj-ink,#111)!important}
.mbjj-profile-view-head p{margin:.35rem 0 0!important}
.mbjj-profile-view-photo{flex:0 0 auto;width:84px;height:84px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--mbjj-paper,#f4f4f1);border:2px solid var(--mbjj-line,#e6e6e6);font-weight:900;font-size:2rem}
.mbjj-profile-view-photo img{width:100%;height:100%!important;object-fit:cover}
.mbjj-profile-view-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:0 0 .8rem!important}
.mbjj-profile-view-row{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--mbjj-paper,#f4f4f1)}
.mbjj-profile-view-row dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:var(--mbjj-muted,#555)}
.mbjj-profile-view-row dd{margin:.2rem 0 0!important}
.mbjj-profile-view-row .mbjj-card-icon{width:34px!important;height:34px!important;border-radius:10px!important;font-size:.9rem!important}
.mbjj-profile-editor > summary{list-style:none;margin-bottom:0!important}
.mbjj-profile-editor > summary::-webkit-details-marker{display:none}
.mbjj-profile-editor[open] > summary{margin-bottom:14px!important}
.mbjj-profile-editor[open] > summary .mbjj-button{background:transparent;color:var(--mbjj-ink,#111)!important}
html[data-mbjj-theme] .mbjj-member-page .mbjj-profile-editor:not([open]){background:transparent!important;border:0!important;padding:0!important}
.mbjj-profile-link{margin:16px 0 0!important}
@media (max-width:520px){.mbjj-profile-view{padding:16px}.mbjj-profile-view-photo{width:68px;height:68px}}

/* ==========================================================================
   29. Curriculum + notes to students (v5.0.0)
   ========================================================================== */
.mbjj-tech-placeholder .mbjj-card-icon{width:48px!important;height:48px!important;font-size:1.25rem!important}
.mbjj-filter-set button .mbjj-icon{margin-right:6px}
.mbjj-note-to{margin:0 0 .3rem!important;font-size:.82rem!important;font-weight:700;color:var(--mbjj-muted,#555)}
.mbjj-note-to .mbjj-icon{margin-right:6px}
.mbjj-note-item{display:flex;align-items:center;gap:10px;margin-top:.8rem;padding:10px 12px;border-radius:14px;background:var(--mbjj-paper,#f4f4f1);color:var(--mbjj-ink,#111)!important;text-decoration:none!important;border:1px solid var(--mbjj-line,#e6e6e6)}
.mbjj-note-item:hover{border-color:var(--mbjj-club-yellow,#fcbf28)}
.mbjj-note-item small{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--mbjj-muted,#555)}
.mbjj-note-item strong{display:block}
.mbjj-new-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:#e11d2e;color:#fff;font-size:.72rem;font-weight:900;line-height:1}
.mbjj-note-pref{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:16px;padding-top:14px;border-top:1px solid var(--mbjj-line,#e6e6e6)}
.mbjj-note-pref .mbjj-notice{flex-basis:100%;margin:0!important}
.mbjj-note-pref .mbjj-check{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.mbjj-tech-card:target{outline:3px solid var(--mbjj-club-yellow,#fcbf28);outline-offset:3px}
.mbjj-block .mbjj-note-list a.mbjj-note-item,.mbjj-block .mbjj-note-list a.mbjj-note-item:visited{text-decoration:none!important}
.mbjj-member-progress .mbjj-progress-notes{margin-bottom:1.4rem}

/* ==========================================================================
   30. Homepage layout from Hayley's sketch (v5.1.0)
   ========================================================================== */
/* Hero: club name, one headline, one button, then the ways to get in touch */
.mbjj-hero-copy p.mbjj-hero-line{margin:.35em 0 0!important;font-size:clamp(1.25rem,1rem + 1.2vw,2rem)!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.02em;line-height:1.15}
.mbjj-hero-copy .mbjj-hero-actions{margin-top:22px}
.mbjj-block ul.mbjj-hero-contact{list-style:none;display:flex;flex-wrap:wrap;gap:8px 18px;margin:18px 0 0!important;padding:0!important}
.mbjj-hero-contact li{margin:0!important}
.mbjj-block .mbjj-hero-contact a{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-weight:800;font-size:.95rem;color:var(--mbjj-ink,#111)!important;text-decoration:none!important}
.mbjj-hero-contact a:hover{text-decoration:underline!important;text-decoration-color:var(--mbjj-club-yellow,#fcbf28)!important;text-underline-offset:4px}
.mbjj-hero.has-photo .mbjj-hero-contact a,html[data-mbjj-theme="dark"] .mbjj-hero-contact a{color:#fff!important}
.mbjj-hero.has-photo .mbjj-hero-copy p.mbjj-hero-line{text-shadow:0 2px 16px rgba(0,0,0,.5)}

/* Programmes: two photo cards in a panel, headed like every other section */
.mbjj-home-programme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}
.mbjj-home-programme{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff);color:var(--mbjj-ink,#111)}
.mbjj-home-programme-photo{display:block;aspect-ratio:16/10;background:var(--mbjj-paper,#f4f4f1);position:relative;overflow:hidden}
.mbjj-home-programme-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.mbjj-home-programme:hover .mbjj-home-programme-photo img{transform:scale(1.03)}
.mbjj-home-programme-photo .mbjj-program-placeholder{position:absolute;inset:0}
.mbjj-home-programme-body{display:flex;flex-direction:column;gap:12px;flex:1;padding:22px 24px 24px}
.mbjj-block .mbjj-home-programme h3{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0!important;font-size:clamp(1.5rem,1.1rem + 1.2vw,2.1rem)!important;line-height:1!important;font-weight:950!important;text-transform:uppercase;letter-spacing:-.04em}
.mbjj-age-badge{display:inline-grid;place-items:center;min-width:3.1em;height:1.9em;padding:0 .7em;border-radius:999px;background:var(--mbjj-club-yellow,#fcbf28);color:#111;font-size:.55em;font-weight:900;letter-spacing:0}
.mbjj-block .mbjj-home-programme ul{list-style:none;margin:0!important;padding:0!important;display:grid;gap:6px}
.mbjj-block .mbjj-home-programme li{display:flex;align-items:baseline;gap:10px;margin:0!important;font-weight:700;font-size:1.05rem;color:var(--mbjj-ink,#111)}
.mbjj-home-programme li .mbjj-icon{color:var(--mbjj-club-yellow,#fcbf28);flex:0 0 auto}
.mbjj-home-programme .mbjj-button{align-self:flex-start;margin-top:auto}
.mbjj-home-programme .mbjj-button .mbjj-icon,.mbjj-home-about .mbjj-button .mbjj-icon,.mbjj-home-ready .mbjj-button .mbjj-icon{margin-left:2px}

/* About us teaser */
.mbjj-home-about-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}
.mbjj-home-about .mbjj-card{padding:18px!important;border-radius:16px;border:1px solid var(--mbjj-line,#e6e6e6);background:var(--mbjj-surface,#fff)}
.mbjj-home-about .mbjj-card>.mbjj-card-icon{margin-bottom:.6rem}
.mbjj-block .mbjj-home-about .mbjj-card h3{font-size:1.1rem!important;margin:0 0 .35rem!important}
.mbjj-home-about .mbjj-card p{margin:0!important;font-size:.95rem;line-height:1.5;color:var(--mbjj-muted,#444)}

/* Where and when: day summary instead of the full grid. Every class is one row: dot | time | name. */
.mbjj-home-schedule.is-compact .mbjj-location-grid{align-items:stretch}
.mbjj-home-schedule.is-compact .mbjj-location-grid .mbjj-map{height:100%;min-height:280px;aspect-ratio:auto}
.mbjj-home-schedule.is-compact .mbjj-home-schedule-card{margin:0!important}
.mbjj-week-summary{display:grid;gap:0;margin-top:22px;border:1px solid var(--mbjj-line,#e6e6e6);border-radius:16px;overflow:hidden;background:var(--mbjj-surface,#fff)}
.mbjj-week-summary .mbjj-week-day{display:grid!important;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:16px;padding:12px 18px;border:0;border-radius:0;background:transparent}
.mbjj-week-summary .mbjj-week-day+.mbjj-week-day{border-top:1px solid var(--mbjj-line,#e6e6e6)}
.mbjj-block .mbjj-week-summary .mbjj-week-day h3{margin:0!important;padding:0;border:0;font-size:.9rem!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.14em}
.mbjj-block .mbjj-week-summary ul{list-style:none;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px 18px}
.mbjj-block .mbjj-week-summary li{display:grid;grid-template-columns:8px 4.2em minmax(0,1fr);column-gap:8px;align-items:baseline;margin:0!important;font-size:.92rem;line-height:1.35;color:var(--mbjj-ink,#111)}
.mbjj-week-summary li::before{content:"";width:8px;height:8px;border-radius:50%;background:transparent;transform:translateY(-1px)}
.mbjj-week-summary li.is-kids::before{background:var(--mbjj-club-yellow,#fcbf28)}
.mbjj-week-summary li time{font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.mbjj-block .mbjj-week-summary li span{display:block;min-width:0;font-weight:500;overflow-wrap:normal;word-break:normal}
.mbjj-home-schedule.is-compact .mbjj-small-note{margin-top:12px!important}

/* Ready to get started? */
.mbjj-home-ready{text-align:center}
.mbjj-home-ready .mbjj-lead{margin-left:auto!important;margin-right:auto!important}
.mbjj-home-ready .mbjj-actions{justify-content:center}
.mbjj-home-ready .mbjj-button{font-size:1.05rem;padding:14px 22px}

@media (max-width:1000px){
  .mbjj-home-about-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .mbjj-home-programme-grid{grid-template-columns:1fr;gap:16px;margin-top:16px}
  .mbjj-home-schedule.is-compact .mbjj-location-grid .mbjj-map{height:auto;aspect-ratio:4/3;min-height:240px}
  .mbjj-home-programme-body{padding:18px 18px 20px}
  .mbjj-home-about-grid{grid-template-columns:1fr;gap:10px}
  .mbjj-week-summary .mbjj-week-day{grid-template-columns:1fr;gap:8px;padding:12px 16px}
  .mbjj-block .mbjj-week-summary ul{grid-template-columns:1fr}
  .mbjj-hero .mbjj-hero-copy h1,.mbjj-hero.has-photo .mbjj-hero-copy h1{font-size:clamp(2rem,10vw,3rem)!important;overflow-wrap:anywhere}
  .mbjj-block ul.mbjj-hero-contact{gap:4px 16px}
  .mbjj-home-ready .mbjj-button{width:100%}
}

/* v5.1.1: the belt ladder on its own page (/belt-progression/) sits in the content column like the other sections.
   Inside the Kids and Adults pages it is already sized by .mbjj-program-page. */
.entry-content > .mbjj-belt-ladder,.entry-content > p > .mbjj-belt-ladder{
  width:min(calc(100% - 32px), var(--mbjj-content-max))!important;
  max-width:var(--mbjj-content-max)!important;
  margin-left:auto!important;margin-right:auto!important;
  border-radius:var(--mbjj-card-radius)!important;box-sizing:border-box!important;
}
@media (max-width:760px){
  .entry-content > .mbjj-belt-ladder,.entry-content > p > .mbjj-belt-ladder{width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;border-radius:18px!important}
}
