/* TIMEPLUS TH — Workshop hub (listing + detail). CI: #014f77 · #1f2020 · #2992d0 · #ffffff · Outfit + Anuphan */
:root {
  --blue: #014f77;
  --blue-2: #015a88;
  --blue-deep: #013b5a;
  --sky: #2992d0;
  --sky-soft: #e3f1fa;
  --ink: #1f2020;
  --text: #2c3136;
  --muted: #5d656d;
  --line: #e3e8ec;
  --mist: #f3f6f9;
  --white: #ffffff;
  --radius: 20px;
  --pad: clamp(16px, 5vw, 64px);
  --en: "Outfit", "Anuphan", system-ui, sans-serif;
  --th: "Anuphan", "Outfit", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--text); font-family: var(--th); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.en { font-family: var(--en); }

/* ---------- Sample notice ---------- */
.sample-bar { background: var(--ink); color: rgba(255,255,255,.85); font-size: 13px; text-align: center; padding: 8px 16px; }
.sample-bar b { color: var(--sky); font-weight: 600; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--blue); color: var(--white); box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 72px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 700; font-size: 20px; letter-spacing: .5px; white-space: nowrap; }
.brand img { width: 32px; height: auto; }
.brand span { color: var(--sky); font-weight: 600; }
.head-cta { justify-self: end; }
.head-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font: 600 12px/1 var(--en); letter-spacing: .6px; }
.lang-switch a { padding: 7px 10px; border-radius: 999px; color: rgba(255,255,255,.72); transition: background-color .15s, color .15s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { background: #fff; color: var(--blue); }
.menu { display: flex; align-items: center; gap: 6px; }
.menu__link { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-family: var(--th); font-weight: 500; font-size: 15px; color: rgba(255,255,255,.85); transition: color .15s, background-color .15s; }
.menu__link:hover, .menu__drop:focus-within > .menu__link, .menu__drop.is-open > .menu__link { color: var(--white); background: rgba(255,255,255,.08); }
.menu__link.is-active { color: var(--white); font-weight: 600; }
.menu__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--sky); }
.menu__link svg { width: 11px; height: 8px; transition: transform .2s; }
.menu__drop { position: relative; }
.menu__drop.is-open > .menu__link svg { transform: rotate(180deg); }
.drop { position: absolute; left: 50%; top: calc(100% + 10px); min-width: 240px; padding: 8px; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 20px 50px rgba(1,30,48,.25); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .15s, transform .15s, visibility .15s; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu__drop.is-open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1101px) { .menu__drop:hover .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); } .menu__drop:hover > .menu__link svg { transform: rotate(180deg); } }
.drop a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.drop a:hover, .drop a:focus-visible { background: var(--mist); color: var(--blue); outline: none; }
.drop a small { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--sky-soft); color: var(--blue); font-family: var(--en); font-weight: 600; font-size: 12px; text-align: center; }
.drop a.drop__all { margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; font-weight: 600; color: var(--blue); }
.menu .menu__cta { display: none; }
.burger { display: none; justify-self: end; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--white); position: relative; transition: transform .2s, background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.site-head.is-open .burger span { background: transparent; }
.site-head.is-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.site-head.is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
#categories, #organizers, #workshops { scroll-margin-top: 92px; }
@media (max-width: 1100px) {
  .site-head .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .site-head .head-cta { display: none; }
  .burger { display: inline-flex; }
  .head-end { gap: 10px; }
  .menu { display: none; }
  .site-head.is-open .menu { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); overflow-y: auto; padding: 10px var(--pad) 20px; background: var(--blue); box-shadow: 0 20px 40px rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.1); }
  .site-head.is-open .menu__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 17px; }
  .site-head.is-open .menu__link.is-active::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .drop { position: static; min-width: 0; padding: 4px 0 8px 12px; background: transparent; color: var(--white); box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .menu__drop.is-open .drop { display: block; transform: none; }
  .drop a { padding: 11px 12px; color: rgba(255,255,255,.88); }
  .drop a:hover { background: rgba(255,255,255,.08); color: var(--white); }
  .drop a.drop__all { color: var(--white); border-bottom-color: rgba(255,255,255,.12); }
  .drop a small { background: rgba(255,255,255,.14); color: var(--white); }
  .site-head.is-open .menu .menu__cta { display: inline-flex; margin-top: 12px; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--th); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .2s, background-color .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--sky { background: var(--sky); color: var(--white); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: var(--white); }
.btn--line { background: var(--white); border: 1.5px solid var(--line); color: var(--blue); }
.btn--line:hover { border-color: var(--sky); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { background: #c9d1d8; color: #fff; cursor: not-allowed; transform: none; }

/* ---------- Listing hero ---------- */
.list-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: var(--white); padding: 56px 0 120px; }
.list-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.list-hero .dots { position: absolute; right: var(--pad); top: 36px; z-index: -1; width: 420px; height: 120px; opacity: .5; background-image: radial-gradient(circle, #fff 2px, transparent 2.5px); background-size: 60px 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--sky); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--sky); }
.list-hero h1 { margin-top: 18px; font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.15; }
.list-hero h1 .en { font-weight: 700; }
.list-hero p.lead { margin-top: 14px; max-width: 620px; font-weight: 300; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.85); }
.search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 720px; margin-top: 32px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.search svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 4px; font-size: 16px; color: var(--ink); background: transparent; }
.search input::placeholder { color: #8a939b; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.75); }
.quick button { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); cursor: pointer; color: var(--white); }
.quick button:hover { background: rgba(255,255,255,.14); }

/* ---------- Filter panel ---------- */
.filters { position: relative; z-index: 2; margin-top: -72px; padding: 22px 24px; border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 40px rgba(1,79,119,.10); display: flex; flex-direction: column; gap: 18px; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); transition: all .15s; }
.cat:hover { border-color: var(--sky); color: var(--blue); }
.cat.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cat small { margin-left: 6px; font-weight: 500; opacity: .6; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding: 10px 38px 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mist); cursor: pointer; font-size: 14px; font-weight: 500; }
.select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filter-row .spacer { flex: 1; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count b { color: var(--ink); }
.reset { border: 0; background: none; cursor: pointer; color: var(--sky); font-weight: 600; font-size: 14px; padding: 6px 4px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(1,79,119,.14); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--mist); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip--sky { background: var(--sky-soft); color: var(--blue); }
.chip--warn { background: #fff1e6; color: #b45309; }
.chip--full { background: #f1f2f4; color: #8a939b; }
.card h3 { font-weight: 700; font-size: 19px; line-height: 1.45; color: var(--ink); }
.card p.short { font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card__org { font-size: 13.5px; color: var(--muted); }
.card__org b { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
.price { font-family: var(--en); font-weight: 700; font-size: 20px; color: var(--blue); white-space: nowrap; }
.price small { font-family: var(--th); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 2px; }
.price.free { color: var(--sky); }

/* Generated cover (brand polygons + dots). New categories retain a readable CI-blue fallback. */
.cover { position: relative; overflow: hidden; height: 168px; background-color: var(--blue, #014f77); color: var(--white); isolation: isolate; }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cover::before { content: ""; position: absolute; left: 18px; top: 18px; width: 150px; height: 46px; opacity: .55; background-image: radial-gradient(circle, #fff 1.6px, transparent 2px); background-size: 22px 22px; z-index: -1; }
.cover__mark { position: absolute; right: -14px; bottom: -22px; width: 120px; opacity: .14; }
.cover__cat { position: absolute; left: 18px; bottom: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--en); font-weight: 600; font-size: 12.5px; letter-spacing: .3px; }
.cover__date { position: absolute; right: 16px; top: 16px; min-width: 64px; padding: 8px 10px; border-radius: 14px; background: var(--white); color: var(--ink); text-align: center; line-height: 1; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.cover__date b { display: block; font-family: var(--en); font-weight: 700; font-size: 26px; color: var(--blue); }
.cover__date small { display: block; margin-top: 4px; font-weight: 600; font-size: 12px; color: var(--muted); }
.cover--lg { height: auto; min-height: 340px; border-radius: 0; }
.cover--lg .cover__mark { width: 260px; right: 4%; bottom: -40px; opacity: .12; }
.cover--lg::before { left: auto; right: var(--pad); top: 32px; width: 300px; height: 90px; background-size: 30px 30px; }
.c-design { background: #014f77; }
.c-tech { background: #1f2020; }
.c-business { background: #0b6a9c; }
.c-marketing { background: #2992d0; }
.c-creative { background: #013b5a; }
.c-skills { background: #24566f; }

/* Empty state */
.empty { margin-top: 32px; padding: 56px 24px; border-radius: var(--radius); background: var(--white); border: 1.5px dashed var(--line); text-align: center; }
.empty h3 { font-weight: 700; font-size: 22px; color: var(--ink); }
.empty p { margin-top: 8px; color: var(--muted); }
.empty .btn { margin-top: 18px; }

/* Organizer CTA */
.org-cta { position: relative; overflow: hidden; isolation: isolate; margin: 80px 0 0; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--blue); color: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.org-cta::after { content: ""; position: absolute; right: -40px; top: -40px; z-index: -1; width: 260px; height: 260px; background: var(--blue-2); clip-path: polygon(0 0, 100% 0, 100% 70%, 30% 100%); }
.org-cta h2 { margin-top: 12px; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; }
.org-cta p { margin-top: 10px; max-width: 560px; font-weight: 300; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-foot { margin-top: 96px; background: var(--ink); color: rgba(255,255,255,.65); padding: 36px 0 44px; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-foot .brand { color: var(--white); font-size: 18px; }
.site-foot .brand img { width: 28px; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot nav a:hover { color: var(--white); }
.site-foot .site-foot__bottom { position: relative; align-items: flex-end; gap: 20px; margin-top: 32px; padding-top: 22px; font-size: 12px; }
.site-foot .site-foot__bottom::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: rgba(255,255,255,.14); }
.site-foot__credit { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.site-foot__credit a { color: #fff; font-weight: 600; }
.site-foot__credit a:hover { color: var(--sky); }
.site-foot__credit small { font: 400 11px/1.5 var(--en); color: rgba(255,255,255,.48); }

/* ---------- Detail ---------- */
.crumb { font-size: 14px; color: rgba(255,255,255,.75); }
.crumb a:hover { color: var(--white); text-decoration: underline; }
.d-hero { position: relative; color: var(--white); }
.d-hero__inner { position: relative; padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; }
.d-hero h1 { max-width: 820px; font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; }
.d-hero p.short { max-width: 720px; font-weight: 300; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.88); }
.d-hero .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.d-hero .chip { background: rgba(255,255,255,.16); color: var(--white); }
.d-hero .by { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--white); font-family: var(--en); font-weight: 700; font-size: 16px; }
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.avatar--sm { width: 36px; height: 36px; font-size: 14px; }
.avatar--xl { width: 112px; height: 112px; font-size: 40px; }
.avatar.has-photo { overflow: hidden; background: var(--mist); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }

.d-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; margin-top: -40px; position: relative; z-index: 2; }
.d-main { display: flex; flex-direction: column; gap: 24px; }
.panel { padding: 30px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.panel h2 { font-weight: 700; font-size: 22px; color: var(--ink); }
.panel > p { margin-top: 12px; font-weight: 300; font-size: 16.5px; line-height: 1.8; color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; overflow: hidden; }
.fact { padding: 20px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact small { display: block; font-size: 13px; color: var(--muted); }
.fact b { display: block; margin-top: 6px; font-weight: 600; font-size: 16px; color: var(--ink); }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23014f77' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.agenda { list-style: none; margin: 16px 0 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.agenda li:last-child { border-bottom: 1px solid var(--line); }
.agenda b { font-family: var(--en); font-weight: 600; color: var(--blue); }
.bullets { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; }
.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--sky); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.teacher { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.teacher b { display: block; font-weight: 700; font-size: 18px; color: var(--ink); }
.teacher div span { display: block; margin-top: 2px; font-family: var(--en); color: var(--sky); font-weight: 500; }
.teacher p { margin-top: 6px; font-weight: 300; font-size: 15px; color: var(--muted); }

.book { position: sticky; top: 96px; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(1,79,119,.12); display: flex; flex-direction: column; gap: 16px; }
.book .price { font-size: 34px; }
.book__rows { display: flex; flex-direction: column; }
.book__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.book__row span:first-child { color: var(--muted); }
.book__row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.seats { display: flex; flex-direction: column; gap: 8px; }
.seats__bar { height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.seats__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.seats__text { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.seats__text b { color: var(--ink); }
.book__share { display: flex; gap: 10px; }
.book__share .btn { flex: 1; padding: 11px 14px; font-size: 14px; }
.note { font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }

.related { margin-top: 72px; }
.related h2 { font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--ink); }
.related .grid { margin-top: 24px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,22,28,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__box { width: min(440px, 100%); padding: 32px 28px 26px; border-radius: 24px; background: var(--white); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: pop .25s ease; }
.modal__box img { width: 64px; margin: 0 auto 14px; }
.modal__box h3 { font-weight: 700; font-size: 22px; color: var(--ink); }
.modal__box p { margin-top: 10px; font-weight: 300; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.modal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 110; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; transition: opacity .2s, transform .2s; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .d-layout { grid-template-columns: 1fr; margin-top: -32px; }
  .book { position: static; }
  .d-layout .book { order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .list-hero { padding: 40px 0 104px; }
  .list-hero .dots { display: none; }
  .search { padding: 6px 6px 6px 16px; }
  .search .btn { padding: 11px 16px; }
  .filters { padding: 18px 16px; }
  .filter-row .spacer { display: none; }
  .select, .select select { width: 100%; }
  .filter-row .select { flex: 1 1 calc(50% - 10px); }
  .grid { grid-template-columns: 1fr; }
  .org-cta { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .checks, .two { grid-template-columns: 1fr; }
  .agenda li { grid-template-columns: 72px 1fr; }
  .cover--lg { min-height: 300px; }
  .cover--lg .cover__mark { width: 180px; }
  .cover--lg::before { display: none; }
  .site-foot nav { flex-wrap: wrap; }
  .site-foot .site-foot__bottom { align-items: flex-start; flex-direction: column; }
  .site-foot__credit { text-align: left; }
}

/* Workshop discovery refresh */
.list-hero { padding: 76px 0 142px; background: radial-gradient(circle at 72% 42%, #0d6893 0, #014f77 46%, #013f61 100%); }
.list-hero__bg { opacity: .35; }
.list-hero .dots { right: 5%; top: 9%; opacity: .22; }
.list-hero__layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); align-items: center; gap: clamp(42px, 6vw, 92px); }
.list-hero__content { position: relative; z-index: 1; }
.list-hero .eyebrow { color: #8cd4f9; }
.list-hero .eyebrow::before { background: #8cd4f9; }
.list-hero h1 { margin-top: 24px; max-width: 780px; font-size: clamp(43px, 5.2vw, 70px); line-height: 1.13; letter-spacing: -.035em; }
.list-hero h1 span { color: #98dcff; }
.list-hero p.lead { max-width: 580px; margin-top: 24px; font-size: 17px; line-height: 1.85; color: rgba(255,255,255,.78); }
.list-hero .search { max-width: 660px; margin-top: 36px; padding: 8px 8px 8px 20px; border-radius: 18px; box-shadow: 0 24px 54px rgba(0,27,44,.2); }
.list-hero .search .btn { border-radius: 12px; }
.hero-explore { position: relative; overflow: hidden; min-height: 355px; padding: 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.055)); box-shadow: 0 28px 60px rgba(0,27,44,.18); backdrop-filter: blur(10px); }
.hero-explore::before { content: ""; position: absolute; right: -70px; top: -80px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.025); pointer-events: none; }
.hero-explore__top { display: flex; align-items: center; gap: 12px; font: 600 11px var(--en); letter-spacing: 2.2px; color: #b9e8ff; }
.hero-explore__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #8dd9ff; color: #014f77; font-size: 22px; line-height: 1; letter-spacing: 0; }
.hero-explore p { position: relative; margin: 33px 0 24px; font-weight: 700; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.25; }
.hero-explore__links { position: relative; display: grid; }
.hero-explore__links a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 13px 2px; border-top: 1px solid rgba(255,255,255,.25); transition: padding .2s, color .2s; }
.hero-explore__links a:hover { padding-left: 8px; color: #a4e1ff; }
.hero-explore__links small { font: 500 12px var(--en); color: #a4d4ee; }
.hero-explore__links span { font: 600 18px var(--en); }
.hero-explore__links b { font: 400 22px var(--en); }
.filters { margin-top: -66px; border: 1px solid rgba(1,79,119,.08); border-radius: 26px; box-shadow: 0 20px 46px rgba(1,55,84,.09); }
.cat { border-radius: 12px; }
.select select { background: #f7fafc; }
.grid { gap: 22px; }
.card { border-radius: 22px; box-shadow: 0 3px 12px rgba(1,55,84,.035); }
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(1,55,84,.13); }
.card .cover { height: 190px; }
.card__body { padding: 23px; gap: 12px; }
.card h3 { font-size: 20px; }
.empty--workshops { padding: 64px 24px 70px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(1,55,84,.04); }
.empty__symbol { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; background: var(--sky-soft); color: var(--blue); transform: rotate(-9deg); }
.empty__symbol span { font-size: 42px; line-height: 1; transform: rotate(9deg); }
.empty--workshops h3 { font-size: clamp(23px, 2.7vw, 30px); }
.empty--workshops p { max-width: 510px; margin: 12px auto 0; line-height: 1.75; }
@media (max-width: 900px) {
  .list-hero__layout { grid-template-columns: 1fr; gap: 34px; }
  .hero-explore { min-height: auto; }
  .hero-explore p { margin: 20px 0; }
}
@media (max-width: 720px) {
  .list-hero { padding: 54px 0 106px; }
  .list-hero h1 { font-size: clamp(38px, 9vw, 54px); }
  .list-hero p.lead { font-size: 15.5px; }
  .list-hero .search { margin-top: 26px; border-radius: 16px; }
  .hero-explore { padding: 22px; border-radius: 22px; }
  .hero-explore p { font-size: 27px; }
  .filters { margin-top: -48px; border-radius: 20px; }
  .hero-explore { display: none; }
  .filter-row .select { flex: 1 1 calc(50% - 5px); }
  .filter-row .result-count { order: 9; flex: 1 1 auto; padding: 4px 2px 0; }
  .filter-row .reset { order: 10; padding-top: 4px; }
  .table { min-width: 720px; }
  .table td:first-child { min-width: 210px; }
  .card .cover { height: 180px; }
}

/* Category banner (listing filtered by category) */
.cat-banner { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; min-height: 200px; margin: 26px 0 4px; padding: 32px 36px; border-radius: 24px; background: linear-gradient(135deg, #e7f3fa, #f6fafc); border: 1px solid #dde9f0; color: var(--ink); }
.cat-banner.has-image { min-height: 260px; border: 0; background: #013b5a var(--cat-img) center / cover no-repeat; color: #fff; }
.cat-banner.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,34,54,.88) 0%, rgba(1,34,54,.55) 55%, rgba(1,34,54,.15) 100%); }
.cat-banner > * { position: relative; }
.cat-banner__text { max-width: 620px; }
.cat-banner h2 { margin-top: 10px; font: 700 clamp(28px, 3.4vw, 42px)/1.15 var(--en); }
.cat-banner__text > p:not(.eyebrow) { margin-top: 8px; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.cat-banner.has-image .eyebrow { color: #9ddfff; }
.cat-banner.has-image .eyebrow::before { background: #9ddfff; }
.cat-banner.has-image .cat-banner__text > p:not(.eyebrow) { color: rgba(255,255,255,.86); }
.cat-banner__count { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; color: var(--muted); }
.cat-banner__count b { font: 700 40px/1 var(--en); color: var(--blue); }
.cat-banner.has-image .cat-banner__count { color: rgba(255,255,255,.8); }
.cat-banner.has-image .cat-banner__count b { color: #fff; }
@media (max-width: 720px) {
  .cat-banner { flex-direction: column; align-items: flex-start; min-height: 0; padding: 24px 22px; }
  .cat-banner.has-image { min-height: 220px; justify-content: flex-end; }
  .cat-banner__count { flex-direction: row; align-items: baseline; gap: 6px; }
  .cat-banner__count b { font-size: 26px; }
}

/* Category bar: popular chips + searchable "more" panel (scales to many categories) */
.cat-bar { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cat-bar .cats { flex: 1 1 auto; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.cat-bar .cat { display: inline-flex; align-items: center; white-space: nowrap; }
.cat-more { position: relative; flex: none; }
.cat-more > summary { list-style: none; gap: 6px; }
.cat-more > summary::-webkit-details-marker { display: none; }
.cat--more { background: var(--sky-soft); border-color: transparent; color: var(--blue); }
.cat--more small { margin-left: 0; opacity: .8; }
.cat--more svg { width: 11px; height: 8px; transition: transform .2s; }
.cat-more[open] > .cat--more { background: var(--blue); color: #fff; }
.cat-more[open] > .cat--more svg { transform: rotate(180deg); }
.cat-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(560px, calc(100vw - 2 * var(--pad))); padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(1,30,48,.18); }
.cat-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cat-panel__head b { font-size: 17px; color: var(--ink); }
.cat-panel__head b small { margin-left: 4px; font: 600 13px var(--en); color: var(--muted); }
.cat-panel__close { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; font-size: 20px; line-height: 1; color: var(--text); }
.cat-panel__search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--mist); color: var(--muted); }
.cat-panel__search:focus-within { border-color: var(--sky); background: #fff; }
.cat-panel__search svg { flex: none; width: 17px; height: 17px; }
.cat-panel__search input { flex: 1; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.cat-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 320px; margin-top: 12px; overflow-y: auto; overscroll-behavior: contain; }
.cat-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--text); transition: background .15s, color .15s; }
.cat-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-opt small { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--sky-soft); color: var(--blue); font: 600 12px var(--en); text-align: center; }
.cat-opt:hover, .cat-opt:focus-visible { background: var(--mist); color: var(--blue); outline: none; }
.cat-opt.is-active { background: var(--blue); color: #fff; }
.cat-opt.is-active small { background: rgba(255,255,255,.2); color: #fff; }
.cat-opt.is-empty { color: var(--muted); font-weight: 500; }
.cat-opt.is-empty small { background: transparent; font: 500 12px var(--th); color: #98a2ab; }
.cat-panel__none { padding: 18px 4px 6px; text-align: center; font-size: 14px; color: var(--muted); }
.cat-more__backdrop { display: none; }
@media (max-width: 720px) {
  .cat-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 61; width: auto; max-height: 82vh; display: flex; flex-direction: column; padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border: 0; animation: cat-sheet .22s ease-out; }
  .cat-panel__grid { max-height: none; flex: 1; grid-template-columns: 1fr; }
  .cat-panel__close { display: grid; place-items: center; }
  .cat-panel__search input { font-size: 16px; }
  .cat-more[open] .cat-more__backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(15,22,28,.45); }
  .cat--more span { display: none; }
}
@keyframes cat-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Instructor panel with photo + bio */
.teacher--full { align-items: flex-start; }
.teacher .teacher__bio { margin-top: 10px; font-size: 15.5px; line-height: 1.75; color: var(--text); }
.book__cert { color: #146c43; font-weight: 600; }
.chip--type { background: #fff4e5; color: #b54708; }
.chip--type-hero { background: #ffd66b !important; color: #5b4300 !important; }
