/* Public class and workshop pages (0.58.0). Colours come from the brand: --accent and --ground are set on the page. */
:root {
    --accent: #2B2F5A; --ground: #F6F2EB; --ink: #1E2140; --card: #FFFDF8; --line: #E4DCCD; --line-strong: #C9BFAE; --muted: #5B5E73;
    --warm: #6A5A3C; --low: #8A3B2E; --ok: #2E6B4A;
    --display: Outfit, "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cl-page { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.55 var(--text); }
a { color: var(--accent); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
.cl-wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cl-narrow { max-width: 640px; }
.cl-header { border-bottom: 1px solid var(--line); }
.cl-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.cl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 22px/1.2 var(--display); letter-spacing: .01em; }
.cl-logo { max-height: 44px; width: auto; display: block; }
.cl-icon { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.cl-nav { display: flex; gap: 20px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.cl-nav a { text-decoration: none; }
.cl-main { padding-top: 28px; padding-bottom: 64px; }
.cl-h1 { margin: 6px 0 16px; font: 600 clamp(34px, 6vw, 52px)/1.05 var(--display); letter-spacing: -.01em; }
.cl-h2 { margin: 32px 0 8px; font: 600 24px/1.2 var(--display); }
.cl-lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.cl-p { margin: 0 0 12px; max-width: 660px; }
.cl-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); }
.cl-muted { color: var(--muted); font-size: 15px; }
.cl-strong { font-weight: 600; }
.cl-label { font-size: 13px; color: var(--muted); }
.cl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.cl-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.cl-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cl-empty { text-align: center; padding: 36px 20px; }
.cl-empty h1 { font: 600 26px var(--display); margin: 0 0 8px; }
.cl-alert { padding: 12px 16px; border-radius: 12px; background: #F8E1DC; color: #6B2418; margin: 0 0 16px; font-weight: 500; }
.cl-note { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--card)); margin: 0 0 14px; font-size: 15px; }

/* list */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cl-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cl-tile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30, 33, 64, .08); }
.cl-tile-img { position: relative; height: 150px; background: color-mix(in srgb, var(--accent) 16%, var(--ground)) center / cover no-repeat; }
.cl-date { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 54px; padding: 6px 0; border-radius: 12px; background: var(--card); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.cl-date b { font: 600 22px/1 var(--display); letter-spacing: 0; }
.cl-tile-body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.cl-tile-title { font: 600 20px/1.2 var(--display); }
.cl-tile-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }
.cl-spots { color: var(--muted); font-weight: 500; }
.cl-spots.is-low { color: var(--low); font-weight: 600; }
.cl-spots.is-full { color: var(--muted); }

/* event */
.cl-hero { position: relative; height: clamp(180px, 30vw, 340px); border-radius: 22px; overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, var(--ground)) center / cover no-repeat; }
.cl-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-cols { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 28px; align-items: flex-start; }
.cl-detail { flex: 999 1 540px; min-width: 0; }
.cl-tickets { flex: 1 1 340px; max-width: 420px; min-width: 0; border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(30, 33, 64, .06); position: sticky; top: 16px; }
.cl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cl-fact { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.cl-fact .cl-strong { font-size: 16px; }
.cl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.cl-teacher { display: flex; gap: 16px; align-items: center; margin-top: 22px; }
.cl-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--accent) 14%, var(--ground)); display: grid; place-items: center; font: 600 20px var(--display); color: var(--accent); }
.cl-contact { margin-top: 22px; }

/* ticket box */
.cl-tickets h2 { margin: 0; font: 600 22px var(--display); }
.cl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cl-left { font-size: 14px; font-weight: 600; color: var(--low); }
.cl-left.is-plenty { color: var(--muted); font-weight: 500; }
.cl-bar { height: 6px; margin: 10px 0 18px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); overflow: hidden; }
.cl-bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
.cl-types { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.cl-types legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.cl-type { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cl-type[aria-pressed="true"] { border: 2px solid var(--accent); padding: 11px 13px; background: color-mix(in srgb, var(--accent) 6%, #fff); }
.cl-type small { display: block; font-size: 14px; color: var(--muted); }
.cl-type b { white-space: nowrap; }
.cl-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.cl-step { display: flex; align-items: center; gap: 6px; }
.cl-step button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-size: 20px; color: var(--ink); cursor: pointer; }
.cl-step button:disabled { opacity: .4; cursor: default; }
.cl-step output { min-width: 28px; text-align: center; font-weight: 600; font-size: 18px; }
.cl-total { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cl-total b { font-size: 18px; }
.cl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: 600 16px var(--text); text-decoration: none; cursor: pointer; }
.cl-btn:hover { color: #fff; filter: brightness(1.08); }
.cl-btn:disabled { opacity: .55; cursor: default; filter: none; }
.cl-btn.is-quiet { background: transparent; color: var(--accent); border: 1px solid var(--line-strong); min-height: 46px; font-size: 15px; }
.cl-btn.is-quiet:hover { color: var(--ink); }
.cl-fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.cl-form { display: grid; gap: 12px; }
.cl-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.cl-form label span { font-weight: 400; color: var(--muted); }
.cl-form input:not([type="checkbox"]), .cl-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font: 16px var(--text); }
.cl-form textarea { min-height: 80px; resize: vertical; }
.cl-form input:focus, .cl-form textarea:focus, .cl-type:focus-visible, .cl-btn:focus-visible, .cl-step button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.cl-check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; }
.cl-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.cl-summary { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--card)); font-size: 14px; }
.cl-back { border: 0; background: none; color: var(--accent); font: 500 14px var(--text); padding: 0; margin-bottom: 12px; cursor: pointer; }
.cl-waiver { max-height: 160px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.cl-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.cl-msg.is-error { background: #F8E1DC; color: #6B2418; }
.cl-msg.is-ok { background: #DDEFE3; color: #1E4D33; }
.cl-done { text-align: center; }
.cl-done h2 { font-size: 30px; margin: 10px 0 6px; }
.cl-dl { display: grid; gap: 0; margin: 18px 0 0; text-align: left; }
.cl-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cl-dl dt { color: var(--muted); }
.cl-dl dd { margin: 0; font-weight: 600; text-align: right; }
.cl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-actions .cl-btn { flex: 1 1 140px; width: auto; margin-top: 0; }
.cl-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #DDEFE3; color: #1E4D33; }
.cl-badge.is-off { background: #EEE8DC; color: var(--muted); }
.cl-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
    .cl-wrap { padding-left: 16px; padding-right: 16px; }
    .cl-cols { gap: 24px; margin-top: 20px; }
    .cl-tickets { position: static; max-width: none; padding: 18px; }
    .cl-hero { border-radius: 16px; }
    .cl-brand { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .cl-tile { transition: none; } }

/* Inside another website (0.59.0) */
body.cl-embed { background: var(--ground); }
.cl-embed .cl-main { padding-top: 12px; padding-bottom: 24px; }
.cl-embed .cl-wrap { max-width: none; }
.cl-embed .cl-tickets { position: static; }
.cl-backlink { display: inline-block; margin: 0 0 12px; font-size: 15px; font-weight: 500; text-decoration: none; }

/* Sessions and repeating classes (0.61.0) */
.cl-repeat { font-size: 14px; font-weight: 600; color: var(--accent); }
.cl-schedule { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 8px; max-width: 660px; }
.cl-schedule li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.cl-schedule li.is-past { opacity: .55; }
.cl-sched-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.cl-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-date-chip { display: grid; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); min-width: 120px; }
.cl-date-chip span { font-size: 14px; color: var(--muted); }
.cl-date-chip:hover { border-color: var(--accent); color: var(--ink); }
.cl-date-chip.is-full { opacity: .6; }

.cl-credit-choice{margin:0 0 20px}.cl-credit-choice .cl-check{padding:12px;border:1px solid var(--line);border-radius:12px;margin:10px 0;min-height:44px;align-items:center}.cl-credit-choice .cl-check:has(input:checked){border-color:var(--accent);background:var(--ground)}.cl-credit-manage{display:inline-block;margin:0 0 10px;font-size:14px}
.cl-embed-portal { margin: 22px 0 4px; text-align: center; font-size: 15px; }
