/* Workshops catalogue and course pages. Shared tokens, hero, buttons, and the contact band live in site.css. */
.page-training { --course: var(--accent); --tint: var(--accent-soft); }
.cb-teal { --course: #0d7f73; --tint: #e3f5f1; }
.cb-amber { --course: #a5650b; --tint: #fff3dc; }
.cb-violet { --course: #7443c9; --tint: #f1eaff; }
[data-web-theme="dark"] .cb-teal { --course: #6fdcc3; --tint: #12322f; }
[data-web-theme="dark"] .cb-amber { --course: #f4c977; --tint: #3a2d17; }
[data-web-theme="dark"] .cb-violet { --course: #c9a9ff; --tint: #2c1f46; }
.cb-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--tint, var(--accent-soft)); color: var(--course, var(--accent)); font: 600 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* Catalogue hero */
.cb-hub-layout { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cb-hub-hero .h1 { font-size: clamp(40px, 5.4vw, 64px); }
.cb-hero-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px !important; }
.cb-hero-note li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.cb-hub-facts { flex-shrink: 0; display: grid; gap: 0; min-width: 240px; padding: 8px 24px; }
.cb-hub-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cb-hub-facts div:last-child { border-bottom: 0; }
.cb-hub-facts dt { color: var(--muted); font-size: 13.5px; }
.cb-hub-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

/* Speaker */
.cb-speaker { display: flex; align-items: center; gap: 16px; max-width: 460px; margin-top: 32px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cb-speaker img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.cb-speaker-label { color: var(--muted); font: 600 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cb-speaker p { margin: 2px 0 4px !important; font-size: 15px; line-height: 1.4; }
.cb-speaker p span { display: block; color: var(--muted); font-size: 14px; }
.cb-speaker .text-link { font-size: 14px; }
.cb-speaker .text-link svg { width: 14px; height: 14px; }

/* Catalogue */
.cb-catalogue { padding-top: 48px; }
.cb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cb-filters button { height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.cb-filters button:hover { border-color: var(--ink-2); color: var(--ink); }
.cb-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cb-count { margin-bottom: 24px !important; color: var(--muted); font-size: 14px; }
.cb-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cb-card { --course: var(--accent); --tint: var(--accent-soft); position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.cb-card.cb-teal { --course: #0d7f73; --tint: #e3f5f1; }
.cb-card.cb-amber { --course: #a5650b; --tint: #fff3dc; }
.cb-card.cb-violet { --course: #7443c9; --tint: #f1eaff; }
[data-web-theme="dark"] .cb-card.cb-teal { --course: #6fdcc3; --tint: #12322f; }
[data-web-theme="dark"] .cb-card.cb-amber { --course: #f4c977; --tint: #3a2d17; }
[data-web-theme="dark"] .cb-card.cb-violet { --course: #c9a9ff; --tint: #2c1f46; }
.cb-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--course); }
.cb-card:hover { border-color: var(--course); box-shadow: var(--shadow); transform: translateY(-2px); }
.cb-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cb-number { color: var(--muted); font: 12px/1 var(--mono); }
.cb-card h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.cb-card h3 a::after { content: ''; position: absolute; inset: 0; }
.cb-card > p { color: var(--muted); font-size: 15.5px; }
.cb-practice { margin: 22px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cb-practice-label { display: block; margin-bottom: 14px; color: var(--muted); font: 600 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cb-practice ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cb-practice li { position: relative; min-width: 0; }
.cb-practice li:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 36px; right: 0; border-top: 1px dashed var(--line-strong); }
.cb-step-number { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 8px; background: var(--tint); color: var(--course); font: 600 11px/1 var(--mono); }
.cb-practice strong { display: block; margin-bottom: 2px; font-size: 14px; line-height: 1.4; }
.cb-practice small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.cb-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 13.5px; }
.cb-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cb-price-row small { display: block; color: var(--muted); font-size: 12px; }
.cb-price-row strong { display: block; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.cb-card-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--course) !important; font-size: 14px; font-weight: 600; }
.cb-card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.cb-card:hover .cb-card-link svg { transform: translateX(3px); }
.cb-price-note { margin-top: 24px !important; color: var(--muted); font-size: 14px; }

/* Included, paths */
.cb-included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.cb-included-grid .check-list { color: var(--ink-2); }
.cb-included-grid p { margin-bottom: 14px !important; color: var(--muted); }
.cb-path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cb-path .cb-badge { align-self: flex-start; }
.cb-path h3 { margin: 16px 0 14px; }
.cb-path p { color: var(--muted); font-size: 15.5px; }
.cb-path-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.cb-path-links svg { width: 16px; height: 16px; }
.cb-path-links a { color: var(--accent); font-size: 15px; font-weight: 600; }
.cb-path-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Course page */
.cb-course-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.cb-course-hero .h1 { margin: 20px 0 16px; }
.cb-course-tagline { margin-bottom: 12px !important; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.45; }
.cb-tool-tags { margin-top: 24px; }
.cb-booking { padding: 28px; border-top: 4px solid var(--course); box-shadow: var(--shadow); }
.cb-booking > p { color: var(--muted); font-size: 13.5px; }
.cb-booking-price { display: block; color: var(--ink); font-size: 44px; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.cb-booking dl { margin: 22px 0 24px; border-top: 1px solid var(--line); }
.cb-booking dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cb-booking dt { color: var(--muted); }
.cb-booking dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.cb-booking-link { margin-top: 16px; font-size: 14px; align-self: center; }
.cb-course-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.cb-course-block + .cb-course-block { margin-top: 56px; }
.cb-course-block .h2 { margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 32px); }
.cb-course-block > p { margin-bottom: 14px !important; color: var(--muted); }
.cb-subhead { margin: 24px 0 8px; font-size: 17px; }
.cb-agenda details { border-bottom: 1px solid var(--line); }
.cb-agenda details:first-child { border-top: 1px solid var(--line); }
.cb-agenda summary { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; color: var(--ink); font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.cb-agenda summary::-webkit-details-marker { display: none; }
.cb-agenda summary::after { content: '+'; margin-left: auto; color: var(--course); font-size: 22px; font-weight: 400; line-height: 1; }
.cb-agenda details[open] summary::after { content: '−'; }
.cb-agenda summary:hover { color: var(--course); }
.cb-agenda summary span { flex: 0 0 72px; color: var(--course); font: 600 12px/1.5 var(--mono); white-space: nowrap; }
.cb-agenda details p { padding: 0 24px 22px 90px; color: var(--muted); font-size: 15px; }
.cb-course-aside { display: grid; gap: 20px; align-content: start; }
.cb-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.cb-panel .h3 { margin-bottom: 10px; font-size: 18px; }
.cb-panel p { color: var(--muted); font-size: 15px; }
.cb-panel .text-link { margin-top: 14px; font-size: 14.5px; }
.cb-project { border-color: color-mix(in srgb, var(--course) 45%, transparent); background: var(--tint); }
.cb-project .eyebrow { color: var(--course); }
.cb-example { display: grid; gap: 8px; margin-top: 18px !important; padding-top: 16px !important; border-top: 1px solid color-mix(in srgb, var(--course) 25%, transparent); counter-reset: milestone; }
.cb-example li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14px; }
.cb-example li::before { counter-increment: milestone; content: counter(milestone, decimal-leading-zero); color: var(--course); font: 600 12px/1.7 var(--mono); }
.cb-faq { max-width: 860px; }
.cb-faq .h2 { margin-bottom: 28px; }
.cb-faq details p { padding-left: 0; }

@media (max-width: 960px) {
  .cb-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-course-hero-grid, .cb-course-body { grid-template-columns: 1fr; }
  .cb-booking { max-width: 560px; }
  .cb-hub-layout { flex-direction: column; align-items: stretch; }
  .cb-hub-facts { grid-template-columns: repeat(3, 1fr); padding: 4px 20px; }
  .cb-hub-facts div { border-bottom: 0; border-right: 1px solid var(--line); padding: 14px 16px 14px 0; }
  .cb-hub-facts div:last-child { border-right: 0; }
}
@media (max-width: 640px) {
  .cb-card-grid, .cb-path-grid, .cb-included-grid { grid-template-columns: 1fr; }
  .cb-card { padding: 24px; }
  .cb-hub-facts { grid-template-columns: 1fr; }
  .cb-hub-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .cb-agenda summary { gap: 12px; font-size: 15px; }
  .cb-agenda summary span { flex-basis: 64px; }
  .cb-agenda details p { padding-left: 0; padding-right: 0; }
  .cb-course-tagline { font-size: 18px; }
}
