/* ==========================================================================
   Codegevity Courses — front-end styles (list shortcode + single view)
   Prefix: .clp-  |  Four layouts via a modifier on .clp:
     .clp--rows      wide horizontal cards
     .clp--grid      vertical card grid (dark stage panel)
     .clp--table     compact roster rows
     .clp--featured  featured next course + condensed rows
   Adapted from the approved Main Stage design bundle (design_handoff_course_list),
   prefix renamed msc- -> clp- to match the plugin's naming rules. Everything below
   the "WORDPRESS ADDITIONS" marker is new; everything above it is the approved
   design, unchanged apart from the prefix.
   Scoped so it cannot leak into or inherit from Elementor/theme styles.
   ========================================================================== */


.clp {
  /* palette */
  --clp-ink:        #0f1115;
  --clp-ink-soft:   #22262e;
  --clp-gold:       #f2c14e;
  --clp-gold-deep:  #b8801a;
  --clp-gold-line:  #6b5a25;
  --clp-paper:      #ffffff;
  --clp-sand:       #faf8f5;
  --clp-line:       #e2ddd4;
  --clp-line-soft:  #eeeae3;
  --clp-text:       #57534c;
  --clp-faint:      #8a8378;
  --clp-label:      #a09889;

  /* dark surfaces (grid + featured panels) */
  --clp-dk-card:    #191c22;
  --clp-dk-line:    #2a2e37;
  --clp-dk-text:    #cfcabf;
  --clp-dk-muted:   #9b958a;
  --clp-dk-label:   #7d766a;

  /* type */
  --clp-font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --clp-font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --clp-font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --clp-radius:     6px;
  --clp-radius-sm:  4px;
  --clp-radius-xs:  3px;

  font-family: var(--clp-font-body);
  color: var(--clp-ink);
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;   /* layouts respond to the shortcode's own width */
}

.clp *,
.clp *::before,
.clp *::after { box-sizing: border-box; }

.clp p { margin: 0; text-wrap: pretty; }
.clp h2, .clp h3, .clp h4 { margin: 0; font-family: var(--clp-font-display); letter-spacing: -0.02em; }
.clp ul { margin: 0; padding: 0; list-style: none; }
.clp a { text-decoration: none; color: inherit; }

/* --------------------------------------------------------------- shells --- */
.clp__panel {
  background: var(--clp-paper);
  border: 1px solid var(--clp-line);
  border-radius: var(--clp-radius);
  padding: clamp(20px, 3cqi, 36px) clamp(18px, 3cqi, 34px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.clp__panel--dark {
  background: var(--clp-ink);
  border-color: var(--clp-ink);
  padding: clamp(24px, 3.4cqi, 44px) clamp(20px, 3.2cqi, 38px);
  gap: 28px;
}

.clp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--clp-ink);
  padding-bottom: 16px;
}
.clp__panel--dark .clp__head { border-bottom: 0; padding-bottom: 0; }

.clp__eyebrow {
  font-family: var(--clp-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clp-faint);
  margin-bottom: 6px;
}
.clp__panel--dark .clp__eyebrow { color: var(--clp-gold); margin-bottom: 8px; }

.clp__title { font-size: clamp(24px, 3cqi, 34px); font-weight: 800; }
.clp__panel--dark .clp__title { color: #fff; }

.clp__meta { font-family: var(--clp-font-mono); font-size: 12px; color: var(--clp-text); }

.clp__waitlink {
  font-family: var(--clp-font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--clp-gold);
  border-bottom: 1px solid var(--clp-gold-line);
  padding-bottom: 3px;
}
.clp__waitlink:hover { color: #fff; border-color: #fff; }

/* ---------------------------------------------------------- state badge --- */
.clp-badge {
  font-family: var(--clp-font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 8px;
  border-radius: var(--clp-radius-xs);
  white-space: nowrap;               /* never let a two-word state wrap */
  background: var(--clp-badge-bg, var(--clp-line-soft));
  color: var(--clp-badge-fg, var(--clp-text));
}
.clp-badge--lg { font-size: 11px; padding: 6px 10px; letter-spacing: 0.14em; }

/* One class per registration state. Applied to the card/row root; the badge,
   availability line and left rule all read from these custom properties. */
.clp-course[data-state="open"],
.clp-feature[data-state="open"] { --clp-badge-bg:#e7f2e4; --clp-badge-fg:#2b5a22; --clp-avail:#2b5a22; }
.clp-course[data-state="filling"],
.clp-feature[data-state="filling"] { --clp-badge-bg:#fdf0d6; --clp-badge-fg:#7a5310; --clp-avail:#a06a10; }
.clp-course[data-state="full"],
.clp-feature[data-state="full"] { --clp-badge-bg:#f6e3e0; --clp-badge-fg:#7d2f24; --clp-avail:#7d2f24; }
.clp-course[data-state="waitlist"],
.clp-feature[data-state="waitlist"] { --clp-badge-bg:#e5ecf5; --clp-badge-fg:#284b73; --clp-avail:#284b73; }
.clp-course[data-state="soon"],
.clp-feature[data-state="soon"] { --clp-badge-bg:#eeebe4; --clp-badge-fg:#5c564a; --clp-avail:#5c564a; }
.clp-course[data-state="running"],
.clp-feature[data-state="running"] { --clp-badge-bg:#e6efee; --clp-badge-fg:#1f4d49; --clp-avail:#1f4d49; }
.clp-course[data-state="past"],
.clp-feature[data-state="past"] { --clp-badge-bg:#efece6; --clp-badge-fg:#8a8378; --clp-avail:#8a8378; }

/* dimmed treatment for archived terms */
.clp-course[data-state="past"],
.clp-feature[data-state="past"] { opacity: 0.55; }
.clp-course[data-state="past"] .clp-course__photo { filter: grayscale(1) opacity(0.55); }

/* -------------------------------------------------------------- buttons --- */
.clp-btn {
  display: block;
  text-align: center;
  font-family: var(--clp-font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 16px;
  border-radius: var(--clp-radius-sm);
  border: 1px solid var(--clp-ink);
  background: var(--clp-paper);
  color: var(--clp-ink);
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.clp-btn:hover { opacity: 0.86; }
.clp-btn--sm { font-size: 12px; padding: 11px 10px; letter-spacing: 0.05em; }
.clp-btn--primary { background: var(--clp-ink); color: var(--clp-gold); border-color: var(--clp-ink); }
.clp-btn--secondary { background: var(--clp-paper); color: var(--clp-ink); border-color: var(--clp-ink); }
.clp-btn--inert {
  background: #f2efe9; color: var(--clp-label); border-color: #e6e1d8;
  cursor: default; pointer-events: none;
}
/* on dark panels */
.clp__panel--dark .clp-btn--primary   { background: var(--clp-gold); color: var(--clp-ink); border-color: var(--clp-gold); }
.clp__panel--dark .clp-btn--secondary { background: transparent; color: var(--clp-gold); border-color: var(--clp-gold-line); }
.clp__panel--dark .clp-btn--inert     { background: var(--clp-ink-soft); color: var(--clp-dk-label); border-color: var(--clp-dk-line); }

.clp-price { font-family: var(--clp-font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.clp-price__unit { font-size: 12px; color: var(--clp-faint); font-weight: 400; }
.clp-avail { font-size: 13px; font-weight: 500; color: var(--clp-avail, var(--clp-text)); }

.clp-field { display: flex; flex-direction: column; gap: 3px; }
.clp-field__label {
  font-family: var(--clp-font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clp-label);
}
.clp-field__value { font-size: 14px; font-weight: 500; color: var(--clp-ink); }
.clp-field__sub   { font-size: 13px; color: var(--clp-text); }

/* ==========================================================================
   LAYOUT A — .clp--rows : wide horizontal cards
   ========================================================================== */
.clp--rows .clp-list { display: flex; flex-direction: column; gap: 22px; }

.clp--rows .clp-course {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  border: 1px solid var(--clp-line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--clp-paper);
  transition: border-color .15s ease;
}
.clp--rows .clp-course:hover { border-color: var(--clp-ink); }

.clp-course__media { position: relative; background: #e8e3da; min-height: 212px; }
.clp-course__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.clp-course__media .clp-badge { position: absolute; top: 12px; left: 12px; }

.clp--rows .clp-course__body { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.clp-course__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.clp-course__season {
  font-family: var(--clp-font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clp-gold-deep);
  white-space: nowrap;
}
.clp-course__dot { width: 3px; height: 3px; border-radius: 50%; background: #c9c2b6; }
.clp-course__sessions {
  font-family: var(--clp-font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clp-faint);
}
.clp-course__name { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.clp-course__desc { font-size: 14px; line-height: 1.55; color: var(--clp-text); max-width: 60ch; }

.clp-course__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--clp-line);
}

.clp-course__rail {
  padding: 22px 24px;
  background: var(--clp-sand);
  border-left: 1px solid var(--clp-line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.clp-course__age {
  font-family: var(--clp-font-mono);
  font-size: 11px; letter-spacing: 0.06em; color: var(--clp-faint);
}

@container (max-width: 900px) {
  .clp--rows .clp-course { grid-template-columns: 1fr; }
  .clp-course__media { min-height: 190px; }
  .clp-course__rail { border-left: 0; border-top: 1px solid var(--clp-line); }
}

/* ==========================================================================
   LAYOUT B — .clp--grid : vertical cards on a dark panel
   ========================================================================== */
.clp--grid .clp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.clp--grid .clp-course {
  display: flex; flex-direction: column;
  background: var(--clp-dk-card);
  border: 1px solid var(--clp-dk-line);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.clp--grid .clp-course:hover { border-color: var(--clp-gold); }
.clp--grid .clp-course__media { height: 170px; background: var(--clp-ink-soft); }
.clp--grid .clp-course__photo { opacity: 0.9; }
.clp--grid .clp-course__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,0.9), rgba(15,17,21,0));
}
.clp--grid .clp-course__media .clp-badge { top: 12px; right: 12px; left: auto; }
.clp--grid .clp-course__season {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--clp-font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--clp-gold);
}
.clp--grid .clp-course__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.clp--grid .clp-course__name { font-size: 19px; color: #fff; line-height: 1.25; }
.clp--grid .clp-course__desc { font-size: 13px; color: var(--clp-dk-muted); }

.clp--grid .clp-course__facts {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--clp-dk-line);
  border-bottom: 1px solid var(--clp-dk-line);
}
.clp--grid .clp-field { flex-direction: row; gap: 10px; font-size: 13px; color: var(--clp-dk-text); }
.clp--grid .clp-field__label { min-width: 64px; padding-top: 2px; color: var(--clp-dk-label); font-size: 10px; letter-spacing: 0.1em; }

.clp--grid .clp-course__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.clp--grid .clp-course__pricerow { display: flex; align-items: baseline; justify-content: space-between; }
.clp--grid .clp-price { font-size: 24px; color: #fff; }
.clp--grid .clp-avail { font-size: 12px; color: var(--clp-dk-text); }
.clp--grid .clp-course[data-state="open"] .clp-avail,
.clp--grid .clp-course[data-state="filling"] .clp-avail { color: var(--clp-gold); }
.clp--grid .clp-course__footnote {
  font-family: var(--clp-font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6f6a5f; text-align: center;
}

/* ==========================================================================
   LAYOUT C — .clp--table : compact roster rows
   ========================================================================== */
.clp--table .clp-thead,
.clp--table .clp-course {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) 1.2fr 1.4fr 0.85fr 1fr 150px;
  gap: 20px;
}
.clp--table .clp-thead {
  padding: 0 6px 12px;
  border-bottom: 2px solid var(--clp-ink);
  font-family: var(--clp-font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clp-faint);
}
.clp--table .clp-course {
  align-items: center;
  padding: 18px 6px;
  border-bottom: 1px solid var(--clp-line-soft);
}
.clp--table .clp-course:hover { background: var(--clp-sand); }
.clp--table .clp-course__kicker { gap: 5px 8px; }
.clp--table .clp-course__season { font-size: 10px; letter-spacing: 0.12em; }
.clp--table .clp-badge { font-size: 9px; padding: 3px 6px; letter-spacing: 0.1em; }
.clp--table .clp-course__name { font-size: 16px; line-height: 1.25; }
.clp--table .clp-course__line { font-size: 12px; color: var(--clp-faint); }
.clp--table .clp-price { font-size: 17px; font-weight: 700; }
.clp--table .clp-avail { font-size: 12.5px; }

@container (max-width: 1000px) {
  .clp--table .clp-thead { display: none; }
  .clp--table .clp-course {
    grid-template-columns: minmax(0, 1fr) 150px;
    row-gap: 10px;
    align-items: start;
  }
  .clp--table .clp-course > .clp-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@container (max-width: 560px) {
  .clp--table .clp-course { grid-template-columns: 1fr; }
  .clp--table .clp-course > .clp-btn { grid-column: 1; grid-row: auto; }
}

/* ==========================================================================
   LAYOUT D — .clp--featured : hero course + condensed rows
   ========================================================================== */
.clp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  border-radius: 5px;
  overflow: hidden;
  background: var(--clp-ink);
}
.clp-feature__media { position: relative; min-height: 400px; background: var(--clp-ink-soft); }
.clp-feature__media .clp-badge { position: absolute; top: 18px; left: 18px; }
.clp-feature__body { padding: clamp(24px, 3cqi, 40px); display: flex; flex-direction: column; gap: 18px; }
.clp-feature__eyebrow {
  font-family: var(--clp-font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clp-gold);
}
.clp-feature__name { font-size: clamp(24px, 3cqi, 32px); font-weight: 800; color: #fff; line-height: 1.15; }
.clp-feature__desc { font-size: 15px; line-height: 1.6; color: #a8a29a; max-width: 48ch; }
.clp-feature__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--clp-dk-line);
  border-bottom: 1px solid var(--clp-dk-line);
}
.clp-feature__facts .clp-field__label { color: var(--clp-dk-label); }
.clp-feature__facts .clp-field__value { color: #fff; }
.clp-feature__facts .clp-field__sub { color: #a8a29a; }
.clp-feature__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; }
.clp-feature__price { display: flex; flex-direction: column; }
.clp-feature__price .clp-price { font-size: 30px; color: #fff; }
.clp-feature__price .clp-avail { font-size: 12px; color: var(--clp-gold); margin-top: 4px; }
.clp-feature__cta .clp-btn {
  flex: 1; min-width: 180px;
  background: var(--clp-gold); color: var(--clp-ink); border-color: var(--clp-gold);
  padding: 16px 22px;
}
.clp-feature__cta .clp-btn:hover { background: #fff; opacity: 1; }

.clp--featured .clp-subhead {
  font-family: var(--clp-font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clp-faint);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clp-ink);
}
.clp--featured .clp-list .clp-course {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 1.1fr 1fr 140px;
  gap: 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--clp-line-soft);
}
.clp--featured .clp-list .clp-course:hover { background: var(--clp-sand); }
.clp-course__date {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 10px;
  border-left: 3px solid var(--clp-badge-bg, var(--clp-line));
}
.clp-course__day   { font-family: var(--clp-font-display); font-size: 20px; font-weight: 800; line-height: 1; }
.clp-course__month { font-family: var(--clp-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clp-faint); }
.clp--featured .clp-list .clp-course__name { font-size: 15px; }
.clp-course__status { display: flex; align-items: center; gap: 10px; }

@container (max-width: 900px) {
  .clp-feature { grid-template-columns: 1fr; }
  .clp-feature__media { min-height: 220px; }
  .clp-feature__facts { grid-template-columns: 1fr; }
  .clp--featured .clp-list .clp-course { grid-template-columns: 84px minmax(0, 1fr); row-gap: 10px; align-items: start; }
  .clp--featured .clp-list .clp-course > .clp-btn { grid-column: 2; }
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.clp-empty {
  border: 1px dashed #cfc8bb;
  border-radius: 5px;
  padding: clamp(32px, 5cqi, 52px) 34px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--clp-sand);
}
.clp-empty__eyebrow {
  font-family: var(--clp-font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clp-gold-deep);
}
.clp-empty__title { font-size: 24px; font-weight: 800; }
.clp-empty__text { font-size: 15px; line-height: 1.6; color: var(--clp-text); max-width: 52ch; }
.clp-empty .clp-btn {
  margin-top: 8px;
  background: var(--clp-ink); color: var(--clp-gold); border-color: var(--clp-ink);
  padding: 14px 28px;
}
.clp-empty .clp-btn:hover { background: #2a2e37; opacity: 1; }

/* ==========================================================================
   ACCESSIBILITY / MOTION / PRINT
   ========================================================================== */
.clp-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.clp a:focus-visible,
.clp .clp-btn:focus-visible { outline: 3px solid var(--clp-gold-deep); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .clp *, .clp *::before, .clp *::after { transition: none !important; animation: none !important; }
}

@media print {
  .clp .clp-btn { display: none; }
  .clp__panel, .clp-course { break-inside: avoid; border-color: #999; }
  .clp__panel--dark, .clp--grid .clp-course, .clp-feature { background: #fff !important; color: #000 !important; }
}


/* ==========================================================================
   WORDPRESS ADDITIONS — everything below is new relative to the design bundle
   ========================================================================== */

/* FIX vs the design bundle: `container-type: inline-size` zeroes the element's
   intrinsic inline size, so as a flex/grid item (an Elementor container, most
   page builders) the whole panel collapses to 0 width. Fill the parent
   explicitly -- a no-op in normal block flow. */
.clp { width: 100%; min-width: 0; }

/* Elementor flexbox containers size widgets by content unless alignment is
   Stretch, so the shortcode widget itself shrink-wraps the zero-width list and
   the width:100% above has nothing to fill. Make any builder widget that holds
   a course list span its row. */
.elementor-widget:has(.clp),
.elementor-shortcode:has(> .clp) { width: 100%; }

/* Utility stacks replacing the reference markup's inline styles. */
.clp-stack   { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.clp-stack--loose { gap: 6px; }

/* Fact groups hide cleanly when a course is missing data. */
.clp-field:empty { display: none; }

/* ------------------------------------------------------------ single view --- */
.clp--single { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) 20px; }

.clp--single .clp-feature { margin-bottom: 34px; }

.clp-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.clp-single__back {
  font-family: var(--clp-font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clp-faint);
  margin-bottom: 18px;
  display: inline-block;
}
.clp-single__back:hover { color: var(--clp-ink); }

.clp-single__content {
  font-family: var(--clp-font-body);
  font-size: 16px; line-height: 1.7; color: var(--clp-ink-soft);
  max-width: 70ch;
}
.clp-single__content p { margin: 0 0 1.2em; }
.clp-single__content h2,
.clp-single__content h3 { font-family: var(--clp-font-display); letter-spacing: -0.02em; margin: 1.6em 0 0.6em; }
.clp-single__content ul,
.clp-single__content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.clp-single__content ul { list-style: disc; }
.clp-single__content ol { list-style: decimal; }
.clp-single__content img { max-width: 100%; height: auto; border-radius: 5px; }

.clp-single__terms {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px; margin-top: 8px;
  border-top: 1px dashed var(--clp-line);
}
.clp-single__term {
  font-family: var(--clp-font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--clp-line);
  border-radius: var(--clp-radius-xs);
  background: var(--clp-sand);
  color: var(--clp-text);
}
a.clp-single__term:hover { border-color: var(--clp-ink); color: var(--clp-ink); }

/* Cards without a featured image: drop the photo column instead of leaving a
   hole. The sample/import path has no images until the client uploads them. */
.clp--rows .clp-course--noimg { grid-template-columns: minmax(0, 1fr) 230px; }

@container (max-width: 900px) {
	.clp--rows .clp-course--noimg { grid-template-columns: 1fr; }
}

.clp--grid .clp-course--noimg .clp-course__media { height: 64px; }

.clp-feature--noimg { grid-template-columns: minmax(0, 1fr); }
.clp-feature--noimg .clp-feature__media { display: none; }

/* FIX vs the design bundle: `.clp a { color: inherit }` (specificity 0,1,1)
   outranks the single-class button/link color rules (0,1,0), which turned
   primary buttons ink-on-ink and the dark-panel waitlist link white. Restore
   the intended colors at (0,2,0). */
.clp .clp-btn             { color: var(--clp-ink); }
.clp .clp-btn--primary    { color: var(--clp-gold); }
.clp .clp-btn--secondary  { color: var(--clp-ink); }
.clp .clp-btn--inert      { color: var(--clp-label); }
.clp .clp__panel--dark .clp-btn--primary   { color: var(--clp-ink); }
.clp .clp__panel--dark .clp-btn--secondary { color: var(--clp-gold); }
.clp .clp__panel--dark .clp-btn--inert     { color: var(--clp-dk-label); }
.clp .clp-feature__cta .clp-btn            { color: var(--clp-ink); }
.clp .clp-feature__cta .clp-btn:hover      { color: var(--clp-ink); }
.clp .clp-empty .clp-btn                   { color: var(--clp-gold); }
.clp .clp__waitlink                        { color: var(--clp-gold); }
.clp .clp__waitlink:hover                  { color: #fff; }
.clp .clp-single__term                     { color: var(--clp-text); }

/* ------------------------------------------------------------ archive view --- */
.clp-archive { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) 20px; }

/* New-tab indicator on registration CTAs. Type, not an icon set. */
.clp-btn__ext {
	display: inline-block;
	margin-left: 7px;
	font-size: 0.85em;
	font-weight: 700;
	transform: translateY(-1px);
	opacity: 0.75;
}
.clp-btn:hover .clp-btn__ext { opacity: 1; }

/* Tiered pricing: labelled amount columns instead of a run-on sentence. */
.clp-tiers {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	flex-wrap: wrap;
}
.clp-tier { display: flex; flex-direction: column; gap: 3px; }
.clp-tier__label {
	font-family: var(--clp-font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--clp-faint);
	white-space: nowrap;
}
.clp-price--alt { font-size: 20px; color: var(--clp-text); }

/* dark surfaces */
.clp__panel--dark .clp-tier__label,
.clp-feature .clp-tier__label { color: var(--clp-dk-label); }
.clp__panel--dark .clp-price--alt { color: var(--clp-dk-text); }
.clp-feature .clp-price--alt { font-size: 21px; color: #a8a29a; }

/* grid cards: slightly tighter */
.clp--grid .clp-price--alt { font-size: 17px; }

/* compact variant for the table layout */
.clp-tiers--sm { gap: 12px; }
.clp-tiers--sm .clp-price { font-size: 17px; font-weight: 700; }
.clp-tiers--sm .clp-price--alt { font-size: 14px; }
.clp-tiers--sm .clp-tier__label { font-size: 9px; }

/* ------------------------------------------------------- instructor credit --- */
.clp-people {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	padding-top: 12px;
	border-top: 1px dashed var(--clp-line);
}
.clp-person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.clp-person__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--clp-line-soft);
}
.clp-person__name {
	font-size: 13px;
	font-weight: 500;
	color: var(--clp-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* dark surfaces */
.clp__panel--dark .clp-people,
.clp-feature .clp-people { border-top-color: var(--clp-dk-line); }
.clp__panel--dark .clp-person__name,
.clp-feature .clp-person__name { color: var(--clp-dk-text); }
.clp__panel--dark .clp-person__avatar,
.clp-feature .clp-person__avatar { background: var(--clp-ink-soft); }

/* --------------------------------------------------------- instructor bios --- */
.clp-bios { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--clp-ink); }
.clp-bios__heading {
	font-family: var(--clp-font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--clp-faint);
	margin: 0 0 18px;
}
.clp-bios__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 14px;
}

/* Each instructor is a contained card so a name without a bio still reads as a
   deliberate unit rather than text floating beside a circle. */
.clp-bio {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	min-width: 0;
	padding: 18px 20px;
	background: var(--clp-sand);
	border: 1px solid var(--clp-line);
	border-radius: 5px;
	transition: border-color .15s ease;
}
.clp-bio:hover { border-color: var(--clp-ink); }

/* No role and no bio: centre the name against the headshot. */
.clp-bio--compact { align-items: center; padding: 14px 20px; }

.clp-bio__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--clp-paper);
	border: 1px solid var(--clp-line);
}
.clp-bio--compact .clp-bio__photo { width: 56px; height: 56px; }

.clp-bio__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--clp-font-display);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--clp-gold-deep);
	background: var(--clp-paper);
	border-color: #e6dcc4;
}
.clp-bio--compact .clp-bio__photo--initials { font-size: 17px; }

.clp-bio__body { min-width: 0; }
.clp-bio__name {
	font-family: var(--clp-font-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0;
}
/* Force our own colour: the theme's link colour was bleeding into names. */
.clp .clp-bio__name,
.clp .clp-bio__name a { color: var(--clp-ink); }
.clp .clp-bio__name a:hover { color: var(--clp-gold-deep); }

.clp-bio__role {
	font-family: var(--clp-font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--clp-gold-deep);
	margin-top: 5px;
}
.clp-bio__text { font-size: 13.5px; line-height: 1.6; color: var(--clp-text); margin-top: 8px; }

@container (max-width: 560px) {
	.clp-bio { gap: 13px; padding: 15px 16px; }
	.clp-bio__photo { width: 60px; height: 60px; }
}
}

/* --------------------------------------------------- taxonomy archive head --- */
.clp-termhead { display: flex; gap: 22px; align-items: flex-start; min-width: 0; }
.clp-termhead__photo {
	width: 116px;
	height: 116px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--clp-sand);
	border: 1px solid var(--clp-line);
}
.clp-termhead__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--clp-font-display);
	font-size: 34px;
	font-weight: 800;
	color: var(--clp-gold-deep);
	border-color: #e6dcc4;
}
.clp-termhead__body { min-width: 0; }
.clp-termhead__eyebrow {
	font-family: var(--clp-font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--clp-faint);
	margin-bottom: 6px;
}
.clp-termhead__name {
	font-family: var(--clp-font-display);
	font-size: clamp(24px, 3cqi, 34px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
	color: var(--clp-ink);
}
.clp-termhead__role {
	font-family: var(--clp-font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--clp-gold-deep);
	margin-top: 8px;
}
.clp-termhead__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--clp-text);
	max-width: 62ch;
	margin-top: 12px;
}
.clp-termhead__text--address { font-size: 14px; }
.clp .clp-termhead__map {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--clp-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--clp-ink);
	border-bottom: 1px solid var(--clp-line);
	padding-bottom: 3px;
}
.clp .clp-termhead__map:hover { color: var(--clp-gold-deep); border-color: var(--clp-gold-deep); }
.clp-termhead__count {
	font-family: var(--clp-font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--clp-faint);
	margin-top: 14px;
}

@container (max-width: 640px) {
	.clp-termhead { gap: 16px; }
	.clp-termhead__photo { width: 80px; height: 80px; }
	.clp-termhead__photo--initials { font-size: 24px; }
}

/* Instructor credits link through to their archive. */
.clp a.clp-person__name { color: var(--clp-text); border-bottom: 1px solid transparent; }
.clp a.clp-person__name:hover { color: var(--clp-ink); border-bottom-color: var(--clp-line); }
.clp__panel--dark a.clp-person__name,
.clp-feature a.clp-person__name { color: var(--clp-dk-text); }
.clp__panel--dark a.clp-person__name:hover,
.clp-feature a.clp-person__name:hover { color: var(--clp-gold); border-bottom-color: var(--clp-gold-line); }

/* ------------------------------------------------------------- back link --- */
.clp-backlink { margin-top: 22px; text-align: center; }
.clp .clp-backlink a {
	display: inline-block;
	font-family: var(--clp-font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--clp-text);
	padding: 12px 22px;
	border: 1px solid var(--clp-line);
	border-radius: var(--clp-radius-sm);
	background: var(--clp-paper);
	transition: border-color .15s ease, color .15s ease;
}
.clp .clp-backlink a:hover { color: var(--clp-ink); border-color: var(--clp-ink); }

/* The term empty state uses the shared .clp-empty block; give its title room. */
.clp-empty__title { max-width: 28ch; }

/* ==========================================================================
   FIX: Elementor's frontend.min.css sets `.elementor img { border-radius:0;
   border:none }` at specificity (0,1,1), which outranks our single-class image
   rules (0,1,0) and squares off every avatar. Restate them at (0,2,0).
   ========================================================================== */
.clp img.clp-person__avatar { border-radius: 50%; }
.clp img.clp-bio__photo,
.clp img.clp-termhead__photo { border-radius: 50%; border: 1px solid var(--clp-line); }
.clp .clp-single__content img { border-radius: 5px; }

/* ==========================================================================
   Term archive rhythm
   ========================================================================== */
/* Every stacked block on a term archive after the first. Deliberately not an
   adjacent-sibling rule: the shortcode emits its JSON-LD <script> between the
   course panel and the back link, which would break `+`. */
.clp-archive > .clp:not(:first-child) { margin-top: 16px; }

/* A term header carrying only a name and a count does not need hero padding. */
.clp__panel--term { padding: clamp(20px, 2.6cqi, 30px) clamp(18px, 3cqi, 34px); }
.clp__panel--term-simple { padding: clamp(18px, 2.2cqi, 26px) clamp(18px, 3cqi, 34px); }

.clp-termhead--simple .clp-termhead__name { font-size: clamp(22px, 2.6cqi, 30px); }
.clp-termhead--simple .clp-termhead__count { margin-top: 10px; }

/* Give the person layout a little more room to breathe than the simple one. */
.clp-termhead--person .clp-termhead__text { margin-top: 10px; }
.clp-termhead--person .clp-termhead__count { margin-top: 16px; }

.clp-backlink { margin-top: 0; }

/* ------------------------------------------------------------- venue head --- */
/* A venue photo is landscape, so it banners across the top instead of sitting
   beside the text the way a circular headshot does. */
.clp-termhead--venue { flex-direction: column; gap: 0; }

.clp .clp-termhead__banner {
	display: block;
	width: 100%;
	height: clamp(160px, 22cqi, 260px);
	object-fit: cover;
	border-radius: 5px;
	border: 1px solid var(--clp-line);
	margin-bottom: 20px;
	background: var(--clp-sand);
}

.clp-termhead--venue .clp-termhead__text--address {
	font-size: 15px;
	color: var(--clp-ink);
	margin-top: 10px;
}
