/* Beginner pages (/beginners/, /beginnercourses/, /beginnerbootcamps/).
   The price finder, rate cards, payment-plan box, try-out box and Mindbody lists are styled in base.css (same class names
   as the Astro page). This file only adds what those blocks need inside Elementor. Colours come from the design tokens. */

/* ---------- toggle panels and the wrappers on the lean pages: no padding of their own, the shared sections bring theirs ---------- */
.e-con.oj-beg-panel { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --row-gap: 0px; }
.e-con.oj-beg-panel > .elementor-widget-template { width: 100%; }
.e-con.oj-beg-config-wrap { --padding-top: 0px; --padding-bottom: 0px; min-height: 0; }

/* ---------- hero (on the dance video) + toggle ----------
   The hero section has the classes oj-hero oj-hero-media oj-hero-dim oj-center oj-beg-hero and [oj_hero_video] as its
   first widget (el.css paints the video, the dark veil and the white text). Here: the pieces that are ours. */
.e-con.oj-beg-hero h1.elementor-heading-title { font-size: clamp(34px, 9.2vw, 64px); }
.e-con.oj-beg-hero .oj-sub { max-width: 560px; }
.e-con.oj-beg-hero.oj-hero-media { --padding-top: 84px; --padding-bottom: 30px; }
@media (min-width: 760px) { .e-con.oj-beg-hero.oj-hero-media { --padding-top: 110px; --padding-bottom: 56px; } }
/* chips and the season pill as glass on the video (their normal colours would turn white-on-white in dark mode) */
.e-con.oj-beg-hero.oj-hero-media .chip { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.e-con.oj-beg-hero.oj-hero-media .chip b { color: #fff; }
.e-con.oj-beg-hero.oj-hero-media a.chip.oj-beg-chiplink { background: linear-gradient(95deg, var(--accent), var(--accent2)); box-shadow: 0 8px 22px -10px rgba(212, 35, 122, .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
.e-con.oj-beg-hero.oj-hero-media a.chip.oj-beg-chiplink i { background: #fff; }
.e-con.oj-beg-hero.oj-hero-media .oj-beg-season .elementor-heading-title { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.e-con.oj-beg-hero.oj-hero-media .oj-rating { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
/* the season, large, right under the h1 */
.oj-beg-season .elementor-heading-title { display: inline-block; background: var(--pill-bg); color: var(--pill-fg); border-radius: 20px; padding: 11px 22px 12px; font-size: clamp(24px, 6.8vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.oj-beg-season .elementor-heading-title small { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; letter-spacing: 0; opacity: .82; }
/* the two class times of Beginner Thursdays: in the section right under the hero */
.elementor-widget.oj-beg-times { width: 100%; max-width: 520px; }
.oj-beg-times .tboxes { margin-top: 0; }
.oj-beg-eyebrow2 .elementor-heading-title { color: var(--ink2); font-size: 14px; }
.e-con.oj-beg-timesec { --padding-bottom: 0px; }
.e-con.oj-beg-start { --padding-bottom: 14px; }
.e-con.oj-beg-start .oj-beg-tabs { width: 100%; }
/* the toggle has one-word names now: a little larger, one line */
.oj-beg-tabs .oj-seg button b { font-size: 16.5px; }

/* The page already keeps 72px free under the sticky header (scroll-padding in el.css): no second offset on top of it. */
#oj-price, #signup, #tryouts, #ojResult, .step, #st2 .stud { scroll-margin-top: 0; }

/* ---------- pointer to the Black Friday page ("Check our Black Friday offer first") ----------
   beginners.js puts the class oj-beg-offer on <html> until "offerPointer.until" of the settings block.
   oj-beg-offer-only = shown only until then; oj-beg-offer-hide = hidden until then. Both are visible in the editor. */
.oj-beg-offer-only { display: none !important; }
html.oj-beg-offer .oj-beg-offer-only, .elementor-editor-active .oj-beg-offer-only { display: flex !important; }
html.oj-beg-offer a.chip.oj-beg-offer-only, .elementor-editor-active a.chip.oj-beg-offer-only { display: inline-flex !important; }
html.oj-beg-offer .oj-beg-offer-hide { display: none !important; }
.elementor-editor-active .oj-beg-offer-only { outline: 1px dashed var(--line); }
/* the hero chip as that pointer */
.oj-beg-chiplink { background: var(--pill-bg); color: var(--pill-fg); font-size: 14px; padding: 9px 15px; }
.oj-beg-chiplink b { color: inherit; }
.elementor-editor-active .oj-beg-chip .chip + .chip { margin-left: 8px; }

/* ---------- hand-built blocks inside Elementor widgets ---------- */
.oj-beg-finder, .oj-beg-plan, .oj-beg-hint, .oj-beg-tryprices { width: 100%; }
.oj-beg-finder .sh { margin-top: 0; }
.oj-beg-finder .sh .lockrow { margin-top: 0; }
.oj-beg-tryprices .trysh { margin-top: 0; }
.oj-beg-tryprices .ratenote { margin-bottom: 10px; }
.oj-beg-tryprices .sharerow { margin: 0; }
/* nothing to show yet: the summary / payment-plan widget and the hint widget take no room */
.elementor-widget.oj-beg-plan:not(:has(.box > :not([hidden]))) { display: none; }
.elementor-widget.oj-beg-hint:not(:has(p:not([hidden]))) { display: none; }
.oj-beg-hint .reassure { margin: 0; font-size: 14px; color: var(--ink2); }
.oj-beg-hint .reassure b { color: var(--ink); }

/* ---------- sign-up in two steps: 1 buy your pass, 2 register ---------- */
.oj-beg-step { margin-top: 16px; }
.oj-beg-step h3.elementor-heading-title { display: flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.oj-beg-step .sn { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; letter-spacing: 0; }
.oj-beg-steptext.elementor-widget-text-editor { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.oj-beg-steptext.elementor-widget-text-editor strong { color: var(--ink); }
.oj-beg-steptext.elementor-widget-text-editor li { margin: .35em 0; }
.oj-beg-finenote.elementor-widget-text-editor { font-size: 13px; line-height: 1.45; color: var(--ink3); text-align: center; }
.e-con.oj-beg-direct { --row-gap: 12px; }
/* "Buying a pass is not a confirmed registration": the notice under step 1 */
.oj-beg-notice.elementor-widget-text-editor { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.oj-beg-notice.elementor-widget-text-editor p { margin: 0; }
.oj-beg-notice.elementor-widget-text-editor strong { display: block; margin-bottom: 2px; font-size: 16px; letter-spacing: -.01em; }
/* The two pass cards sit one under the other (like /blackfriday/beginners/): each row gets the full width of the card. */
/* pass card = the rate-card look of base.css, on an Elementor container */
.e-con.oj-beg-pass { --padding-top: 14px; --padding-bottom: 4px; --padding-left: 18px; --padding-right: 18px; --row-gap: 0px; border: 2px solid transparent; border-radius: 22px; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--accent), var(--accent2), #ff8a3d) border-box; }
.oj-beg-passtitle h4.elementor-heading-title { font-size: 19px; letter-spacing: -.02em; }
.oj-beg-passsub.elementor-widget-text-editor { font-size: 13px; color: var(--ink3); margin: 2px 0 10px; }
/* one row: who + price across the card, then "Pay now" and "Pay later or in parts" side by side */
.e-con.oj-beg-payrow { border-top: 1px solid var(--line2); border-radius: 0; --padding-top: 0px; --padding-bottom: 14px; }
.e-con.oj-beg-payrow > .oj-beg-prhead { grid-column: 1 / -1; }
.oj-beg-prhead .rr { border-top: 0; padding: 12px 0 2px; align-items: flex-start; }
.oj-beg-prhead .rr .who > span { display: block; }
.oj-beg-prhead .rr .who span b { display: block; margin-top: 2px; color: var(--accent-text); font-weight: 700; font-size: 14px; }
.oj-beg-prhead .rr .big { display: block; }
.oj-beg-payrow .elementor-widget-shortcode .passbtn { min-height: 58px; }
.oj-beg-payrow .passbtn a { min-height: 58px; padding-left: 8px; padding-right: 8px; font-size: 18px; font-weight: 700; }
.oj-beg-payrow .ojb-plan { display: flex; flex-direction: column; gap: 3px; width: 100%; min-height: 58px; padding: 8px; font-size: 15px; font-weight: 700; line-height: 1.15; text-align: center; white-space: normal; }
.oj-beg-payrow .ojb-plan small { font-size: 12px; font-weight: 600; opacity: .85; }
/* the row that matches the price-finder pick */
.oj-beg-payrow.oj-pick .who > b::after { content: 'Your pick'; display: inline-block; margin-left: 8px; vertical-align: 2px; font: 700 11px/1 var(--sans); color: #fff; background: linear-gradient(95deg, var(--accent), var(--accent2)); border-radius: 980px; padding: 5px 8px; }
.e-con.oj-beg-register { margin-top: 2px; }

/* ---------- smaller headings and lists inside the sections ---------- */
.oj-beg-h3 { margin-top: 12px; }
.oj-beg-h3 h3.elementor-heading-title { font-size: 19px; }
.oj-beg-rules.elementor-widget-text-editor { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.oj-beg-rules.elementor-widget-text-editor strong { color: var(--ink); }
.oj-beg-ppinfo { width: 100%; }

/* ---------- fast-tracks block: the small "set-up varies" line under the two set-up cards ---------- */
.oj-beg-ftnote.elementor-widget-text-editor { width: 100%; text-align: center; }
