/* /dancers/ : levels list, the course list with filters, and the rates under it.
   Colours come from the design tokens (light + dark). The level dots (.oj-lv, .oj-lv-blue …) are in el.css. */

/* ---------- hero (dance video behind) ---------- */
.e-con.oj-hero-media .oj-rating { justify-content: flex-start; }

/* ---------- levels: five compact rows in one card ---------- */
.e-con.oj-dl { --row-gap: 0px; --padding-top: 4px; --padding-bottom: 4px; --padding-left: 18px; --padding-right: 18px; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); max-width: 860px; margin-left: auto; margin-right: auto; text-align: left; }
.e-con.oj-dl-item { --row-gap: 6px; --padding-top: 16px; --padding-bottom: 16px; --padding-left: 0px; --padding-right: 0px; border-radius: 0; }
.e-con.oj-dl-item + .e-con.oj-dl-item { border-top: 1px solid var(--line2); }
.oj-dl-title h3.elementor-heading-title { font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.oj-dl-title h3.elementor-heading-title .oj-lv { width: .9em; height: .9em; margin-right: .5em; }
.oj-dl-title h3.elementor-heading-title small { display: block; margin: 3px 0 0 1.55em; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--ink2); }
.oj-dl-text.elementor-widget-text-editor { font-size: 15px; line-height: 1.45; color: var(--ink2); }
.oj-dl-text.elementor-widget-text-editor p { margin: 0 0 .5em; }
.oj-dl-text.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.oj-dl-text.elementor-widget-text-editor strong { color: var(--ink); }
@media (min-width: 760px) {
  .e-con.oj-dl { --padding-left: 26px; --padding-right: 26px; }
  .e-con.oj-dl-item { flex-direction: row !important; column-gap: 24px; --padding-top: 20px; --padding-bottom: 20px; align-items: flex-start; }
  .e-con.oj-dl-item > .oj-dl-title { width: 230px; flex: none; }
  .e-con.oj-dl-item > .oj-dl-text { flex: 1 1 0; min-width: 0; }
}

/* ---------- course list ---------- */
/* While the list is on, Mindbody's own cards are not shown (they only return if the list cannot be built).
   The beginner list is never shown as cards: beginners have their own page. Both stay visible in the editor. */
.oj-dc-on .elementor-widget.oj-dc-src, .elementor-widget.oj-dc-beg { display: none; }
.elementor-editor-active .elementor-widget.oj-dc-src { display: block; opacity: .6; }
.elementor-widget.oj-dc-list { width: 100%; }
.elementor-widget.oj-dc-list:not(:has(.ojc:not([hidden]), .ojc-loading:not([hidden]))) { display: none; }
.elementor-editor-active .elementor-widget.oj-dc-list { display: block; }
.ojc-loading { text-align: center; color: var(--ink3); font-size: 14px; margin: 6px 0; }

.ojc { text-align: left; }
.ojc[hidden] { display: none; }
.ojc-filters { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ojc-fgroup { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ojc-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border: 0; border-radius: 980px; background: var(--bg2); color: var(--ink); font: 600 14.5px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line2); transition: background .15s, color .15s, opacity .15s; -webkit-tap-highlight-color: transparent; }
.e-con.oj-alt .ojc-chip { background: var(--card); }
.ojc-chip[hidden] { display: none; }
.ojc-chip:focus-visible, .ojc-name:focus-visible, .ojc-btn:focus-visible, .ojc-reset:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ojc-chip[data-dance][aria-pressed='true'] { background: var(--pill-bg); color: var(--pill-fg); box-shadow: none; }
/* level buttons: on = full colour, off = washed out */
.ojc-lvchip { padding-left: 12px; }
.ojc-lvchip .oj-lv { width: 14px; height: 14px; margin-right: 7px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 28%, transparent); }
.ojc-lvchip[aria-pressed='true'] { box-shadow: inset 0 0 0 1.5px var(--ink3); }
.ojc-lvchip[aria-pressed='false'] { background: transparent; color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line2); }
.ojc-lvchip[aria-pressed='false'] .oj-lv { opacity: .3; }
.ojc-lvchip[aria-pressed='false']:hover .oj-lv { opacity: .6; }
.ojc-hint { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--ink3); }
.ojc-hint [hidden] { display: none; }

.ojc-head { display: none; }
.ojc-list { list-style: none; margin: 14px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.e-con.oj-alt .ojc-list { border-color: transparent; }
.ojc.ojc-empty .ojc-list { display: none; }
/* rows: a line between them (the last one is clipped by the list's rounded box, also when rows are filtered out) */
.ojc-row { display: grid; align-items: center; margin: 0 0 -1px; padding: 13px 14px; border-bottom: 1px solid var(--line2); }
.ojc-row[hidden] { display: none; }
.ojc-name { grid-area: name; min-width: 0; margin: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font: 400 16px/1.25 var(--sans); letter-spacing: -.015em; cursor: default; }
button.ojc-name { cursor: pointer; }
.ojc-name b { font-weight: 700; }
.ojc-name small { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.ojc-name .oj-lv { width: 12px; height: 12px; margin-right: 8px; vertical-align: 0; }
button.ojc-name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ojc-day, .ojc-time, .ojc-dates { font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ojc-day { grid-area: day; font-weight: 700; color: var(--ink); }
.ojc-time { grid-area: time; }
.ojc-dates { grid-area: dates; }
.ojc-full, .ojc-yr { display: none; }
@media (max-width: 759px) {
  /* phones: the course on the first line, then day + time and the dates (the dates drop to a new line when it gets tight); the button on the right */
  .ojc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name btn' 'meta btn'; column-gap: 12px; row-gap: 4px; }
  .ojc-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 1px; min-width: 0; }
  .ojc-time, .ojc-dates { white-space: nowrap; }
  .ojc-dates { color: var(--ink3); }
}
.ojc-btn { grid-area: btn; min-height: 40px; padding: 10px 16px; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.ojc-closed { grid-area: btn; font-size: 13px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.ojc-none { margin: 14px 0 0; padding: 18px 14px; text-align: center; font-size: 15px; color: var(--ink2); background: var(--bg2); border-radius: var(--radius); }
.e-con.oj-alt .ojc-none { background: var(--card); }
.ojc-none[hidden], .ojc-begnote[hidden] { display: none; }
.ojc-reset { border: 0; background: none; padding: 0; color: var(--accent-text); font: 600 15px/1.3 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ojc-status { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--ink3); min-height: 1.2em; }
.ojc-begnote { margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--ink2); }
.ojc-begnote a { color: var(--accent-text); font-weight: 600; }

@media (min-width: 760px) {
  .ojc-filters { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  /* table-like grid: Day | Time | Course | Dates | Sign up */
  .ojc-meta { display: contents; }
  .ojc-head, .ojc-row { display: grid; grid-template-columns: 112px 118px minmax(0, 1fr) 150px 112px; grid-template-areas: 'day time name dates btn'; column-gap: 14px; }
  .ojc-head { margin: 16px 0 0; padding: 0 18px 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); }
  .ojc-head + .ojc-list { margin-top: 0; }
  .ojc.ojc-empty .ojc-head { display: none; }
  .ojc-row { padding: 12px 18px; }
  .ojc-day, .ojc-time, .ojc-dates { font-size: 15px; }
  .ojc-time, .ojc-dates { color: var(--ink2); }
  .ojc-full, .ojc-yr { display: inline; }
  .ojc-abbr { display: none; }
  .ojc-name { font-size: 16.5px; }
  .ojc-btn, .ojc-closed { justify-self: end; }
}

/* ---------- rates, straight under the list ---------- */
.e-con.oj-dc-rates { --row-gap: 14px; --padding-top: 0px; --padding-bottom: 0px; margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line2); border-radius: 0; width: 100%; scroll-margin-top: 0; }
@media (min-width: 760px) { .e-con.oj-dc-rates { margin-top: 44px; padding-top: 44px; } }
.e-con.oj-dc-rates .oj-small.elementor-widget-text-editor { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; color: var(--ink2); }

/* ---------- intensives: the page's own note when Mindbody's list is empty ---------- */
.elementor-widget.oj-di-none { display: none; width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; background: var(--card); border-radius: 16px; padding: 16px 18px; font-size: 15px; color: var(--ink2); text-align: center; }
#intensives:has(.mb.mb-empty) .elementor-widget.oj-di-none, .elementor-editor-active .elementor-widget.oj-di-none { display: block; }
.oj-di-none a { color: var(--accent-text); font-weight: 600; }

/* ---------- the shared "Plan ahead" block as a section of its own: title and intro centred like the other sections ---------- */
#plan .oj-plan-title, #plan .oj-plan > .elementor-widget-text-editor { text-align: center; margin-left: auto; margin-right: auto; }
#plan .oj-plan > .elementor-widget-text-editor { max-width: 600px; }
#plan .oj-plan-title h3.elementor-heading-title { font-size: clamp(30px, 7.5vw, 42px); }
#intensives .elementor-widget-shortcode:has(.mb.mb-empty) { display: none; }

/* text widgets with the class oj-center (the notes under the levels and the formats) */
.elementor-widget-text-editor.oj-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
