/* /ceu — the course catalog with the live Buy flow. Builds on css/landing.css
   (tokens, navy band, masthead, buttons, tiles, footer); only store rules here. */

.cat-hero {
  padding: clamp(18px, 3vw, 40px) 0 clamp(36px, 5vw, 64px);
}
.cat-hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 16px 0 0;
  color: #fff;
  text-wrap: balance;
  max-width: 18em;
}
.cat-hero h1 .l2 {
  color: var(--band-gold);
}
.cat-hero .lede {
  max-width: 38em;
}

.catalog {
  padding: clamp(28px, 3.4vw, 48px) 0 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.catalog .course-card {
  gap: 10px;
  padding: 22px 22px 20px;
}
.catalog .course-card.rbt {
  background: var(--rbt-bg);
  border-color: var(--rbt-rule);
  color: var(--rbt-ink);
}
.catalog .course-card h3 {
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.008em;
  margin: 0;
}
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.chip-ce {
  font: 700 13px/1.3 var(--display);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip-ce::before {
  content: "";
  width: 12px;
  height: 10px;
  background: currentColor;
  -webkit-mask: var(--stair) center / contain no-repeat;
  mask: var(--stair) center / contain no-repeat;
}
.course-card.rbt .chip-ce {
  color: var(--rbt-minus);
}
.chip-units {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-2);
}
.course-card.rbt .chip-units {
  color: var(--rbt-ink-2);
  background: var(--rbt-card);
}
.catalog .desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.course-card.rbt .desc,
.course-card.rbt .course-meta {
  color: var(--rbt-ink-2);
}
.catalog .objectives {
  margin: 2px 0 0;
  padding: 0 0 0 18px;
  list-style: disc;
  border: 0;
  counter-reset: none;
  font-size: 14px;
  color: var(--ink-2);
}
.catalog .objectives li {
  display: list-item;
  padding: 0;
  border: 0;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
}
.catalog .objectives li::before {
  content: none;
}
.catalog .disclaimer {
  color: var(--rbt-ink-2);
}
.catalog .disclaimer.ceu-ica {
  margin-top: 8px;
}
/* Board #398: Responsible Trainer of record on the RBT 40-hour card. */
.catalog .disclaimer.ceu-rt {
  margin-top: 8px;
  font-weight: 600;
  color: var(--rbt-ink);
}
.course-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-3);
  min-height: 1em;
}
.course-card.rbt .course-meta {
  border-top-color: var(--rbt-rule);
}
.course-buy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.course-price {
  font: 800 28px/1 var(--display);
  letter-spacing: -0.01em;
}
.course-price small {
  font: 400 13.5px/1 var(--text);
  color: var(--ink-2);
  margin-left: 6px;
  letter-spacing: 0;
}
.course-card.rbt .course-price small,
.course-card.rbt .buy-note {
  color: var(--rbt-ink-2);
}
.catalog .buy-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
}
.catalog .course-cta {
  width: 100%;
}
.catalog button.course-cta:disabled {
  opacity: 0.7;
  cursor: wait;
  translate: none;
}
.buy-error {
  font-size: 14px;
  color: #b42318;
  margin: 0;
}
.buy-error a {
  font-weight: 700;
  color: inherit;
}
:root[data-theme="dark"] .buy-error {
  color: #fda29b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .buy-error {
    color: #fda29b;
  }
}

.notice {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent-mark);
  border-radius: var(--r-inner);
  padding: 14px 18px;
  margin-bottom: var(--gap);
  font-size: 16px;
  box-shadow: var(--sh-1);
}

.empty-state {
  text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 40px);
  max-width: 760px;
  margin: 0 auto;
}
.empty-state h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.empty-state p {
  color: var(--ink-2);
  max-width: 32em;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.empty-state .course-cta {
  width: auto;
}

.legal a {
  color: inherit;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Board #355 R2: pre-approval "Continuing education — coming soon" tile (reuses the course-card structure) */
.catalog .course-card.ce-soon { border-style: dashed; }
.catalog .course-card.ce-soon .course-cta { margin-top: auto; }

/* Board #380 D3: RBT PD bundle — full-width card, each course also sold on its own (D2) */
.catalog .course-card.bundle { grid-column: 1 / -1; }
.bundle-courses {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px var(--gap);
}
.bundle-courses li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
}
.bundle-course-name {
  font: 700 15px/1.35 var(--display);
}
.bundle-buy-one {
  width: 100%;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .bundle-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bundle-courses { grid-template-columns: 1fr; }
}
.buy-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Board #427 (B&P 17538(d), 17500.6): the refund / license / seller
   disclosure under every Enroll button. Same size as the course description
   text (15px), never smaller than the offer it qualifies. */
.catalog .pos-disclosure {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 4px 0 0;
}
.course-card.rbt .pos-disclosure {
  color: var(--rbt-ink-2);
}
.catalog .pos-disclosure a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.footer-tm {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.85;
  margin-top: 10px;
}
