/* Kurse & Workshops. One teal accent, no per-format colours. */

.page-hero { padding: 36px 0 10px; }
.page-hero h1 {
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 560;
  margin: 8px 0 12px;
}
.lime-dot { color: var(--teal-dark); }
.crumbs { font-size: 13px; color: var(--muted); }
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 36rem; }

.kurse-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.filters, .session-sort { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.session-sort-label { font-size: 13px; color: var(--muted); }

.filters button, .session-sort button, .btn {
  font: 600 14px/1 "DM Sans", sans-serif;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  min-height: 40px;
}

.filters button[aria-pressed="true"],
.session-sort button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #313131;
}

.fc-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  opacity: .75;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.session-grid > .session {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[data-theme="dark"] .session-grid > .session { background: #3a3b3d; }

.session .meta {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.session-price {
  float: right;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.session h2 { font-size: 22px; line-height: 1.25; margin: 4px 0; font-weight: 560; clear: both; }
.session .muted { color: var(--muted); margin: 0; line-height: 1.5; font-size: 15px; }
.session-place, .session-next { font-size: 14px; margin: 0; color: var(--muted); }
.session-next time { color: var(--ink); font-weight: 650; }
.session .btn { align-self: flex-start; margin-top: 8px; text-decoration: none; }
.btn-primary, .session .btn-ghost:hover, .sm-submit {
  background: var(--teal);
  border-color: var(--teal);
  color: #313131;
}
.link-apricot { color: var(--teal-dark); }

.hub-empty { margin-top: 18px; color: var(--muted); }
.sessions-cal { margin-top: 10px; }
.cal-month { margin: 22px 0 8px; font-size: 18px; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-list li { border-bottom: 1px solid var(--line); }
.cal-list a {
  display: grid;
  grid-template-columns: 110px 64px 1fr;
  gap: 10px;
  padding: 10px 0;
  align-items: baseline;
}
.cal-time { color: var(--muted); font-variant-numeric: tabular-nums; }

.cal.is-grid .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cal-nav {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.cal-wd { font-size: 12px; color: var(--muted); text-align: center; }
.cal-day {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: transparent;
}
.cal-day.is-blank { border-color: transparent; }
.cal-day.is-today { outline: 2px solid var(--teal); }
.cal-num { font-size: 12px; color: var(--muted); }
.cal-ev {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: #313131;
  background: #EAFAF8;
  border-radius: 4px;
  padding: 2px 4px;
  text-decoration: none;
}
html[data-theme="dark"] .cal-ev { background: #1e1f21; color: #F7F6F3; }
.cal-empty { color: var(--muted); }

/* ---------- Course modal (redesign 2026-10-30, Sara: cleaner date rows, CI teal) ---------- */
.sm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(49, 49, 49, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .24s cubic-bezier(.4, 0, .2, 1);
}
.sm-overlay.is-open { opacity: 1; }
.sm-card {
  width: min(960px, 100%);
  max-height: min(calc(100dvh - 48px), 860px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(49, 49, 49, .18);
  padding: 20px 28px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  grid-template-rows: auto 1fr;
  column-gap: 28px;
  align-items: start;
}
html[data-theme="dark"] .sm-card { background: #3a3b3d; border-color: #55575a; }
.sm-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
}
.sm-toprow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.sm-eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; font-weight: 650; color: var(--teal-dark); margin: 0; }
.sm-price2 {
  font-size: 12px; font-weight: 650; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--card);
}
.sm-close {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: background .14s, border-color .14s;
}
.sm-close:hover { border-color: var(--teal); background: var(--soft); }
.sm-main { grid-column: 1; min-width: 0; }
.sm-side { grid-column: 2; grid-row: 2; }
.sm-top h2 {
  margin: 4px 0 6px;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
}
.sm-facts { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.sm-lead, .sm-text { color: var(--muted); line-height: 1.6; font-size: 15px; }
.sm-ext { margin: 6px 0; }
.sm-more { margin: 8px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sm-more > summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px;
  cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.sm-more > summary::-webkit-details-marker { display: none; }
.sm-more > summary:hover { color: var(--teal-dark); }
.sm-chev { transition: transform .24s cubic-bezier(.4, 0, .2, 1); color: var(--teal-dark); }
.sm-more[open] .sm-chev { transform: rotate(180deg); }
.sm-more .sm-text { margin: 0 0 12px; white-space: pre-line; }
.sm-more .sm-text-rich { white-space: normal; }

.sm-dates-pick { margin-top: 18px; }
.sm-pick-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sm-label {
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0;
}
.sm-count {
  font-size: 12px; font-weight: 650; line-height: 1; color: var(--teal-dark);
  background: var(--soft); border-radius: 999px; padding: 4px 8px;
}
.sm-tiles {
  display: grid;
  gap: 8px;
  max-height: min(46vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 6px 2px 2px;
  margin-right: -6px;
  scrollbar-width: thin;
}
.sm-tile {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.sm-tile:hover { border-color: var(--teal); }
.sm-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.sm-tile-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; border-radius: 8px; background: var(--soft); color: var(--ink);
  line-height: 1.05; text-align: center; min-height: 58px;
}
.sm-d-wd { font-size: 11px; font-weight: 600; color: var(--muted); }
.sm-d-day { font-family: Manrope, "DM Sans", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sm-d-my { font-size: 10px; font-weight: 650; letter-spacing: .06em; color: var(--muted); }
.sm-d-raw { font-size: 12px; }
.sm-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sm-topic { font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.sm-topic.is-tba { font-weight: 550; color: var(--muted); font-style: italic; }
.sm-tile-lead, .sm-tile-info { font-size: 13px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-tile-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.sm-tile:has(.sm-radio:checked) {
  border-color: var(--teal);
  background: var(--soft);
  box-shadow: 0 0 0 1px var(--teal) inset;
}
.sm-tile:has(.sm-radio:checked) .sm-tile-date { background: var(--teal); color: #313131; }
.sm-tile:has(.sm-radio:checked) .sm-d-wd,
.sm-tile:has(.sm-radio:checked) .sm-d-my { color: #313131; }
.sm-tile:has(.sm-radio:checked) .sm-tile-check {
  border-color: var(--teal); background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--card);
}
.sm-tile:has(.sm-radio:focus-visible) { outline: 3px solid var(--focus, #46c8bb); outline-offset: 2px; }
.sm-visually-hidden, .sm-hp {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.sm-soon { color: var(--muted); }

.sm-side {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
}
html[data-theme="dark"] .sm-side { background: #313131; border-color: #55575a; }
.sm-pick {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  border-left: 3px solid var(--teal);
}
.sm-pick[hidden] { display: none; }
.sm-pick-label { font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.sm-pick-date { font-size: 16px; font-weight: 700; color: var(--ink); }
.sm-pick-topic { font-size: 14px; font-weight: 600; color: var(--ink); }
.sm-pick-info { font-size: 13px; color: var(--muted); }
.sm-side input, .sm-side textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .14s, box-shadow .14s;
}
.sm-side input:focus, .sm-side textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(49, 190, 176, .25); }
html[data-theme="dark"] .sm-side input,
html[data-theme="dark"] .sm-side textarea { background: #3a3b3d; color: #f7f6f3; }
.sm-side textarea { resize: vertical; min-height: 76px; }
.sm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sm-submit, .sm-wl {
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 13px 20px;
  min-height: 48px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.sm-submit:active { transform: scale(.98); }
.sm-msg { font-size: 14px; }
.sm-msg:empty { display: none; }
.sm-msg.is-error { color: #8a2a2a; }
html[data-theme="dark"] .sm-msg.is-error { color: #ffb4b4; }
.sm-msg.is-ok { color: var(--teal-dark); }
.sm-alt { font-size: 13px; color: var(--teal-dark); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.sm-wl-text { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.sm-mta-card { border-top: 1px solid var(--line); padding: 10px 0; }

.inquiry-form label { display: block; margin: 12px 0; font-size: 14px; }
.inquiry-form input, .inquiry-form textarea {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  background: var(--card); color: var(--ink);
}

@media (max-width: 800px) {
  .session-grid, .cal-list a { grid-template-columns: 1fr; }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 54px; }
  .sm-overlay { padding: 0; align-items: flex-end; }
  .sm-card {
    grid-template-columns: 1fr;
    max-height: 100dvh; height: 100dvh;
    border-radius: 0; border: 0;
    padding: 0 18px 24px;
  }
  .sm-bar { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 12px 0 8px; margin: 0; border-bottom: 1px solid var(--line); }
  html[data-theme="dark"] .sm-bar { background: #3a3b3d; }
  .sm-main, .sm-side { grid-column: 1; grid-row: auto; }
  .sm-top { padding-top: 10px; }
  .sm-tiles { max-height: none; overflow: visible; margin-right: 0; padding-right: 2px; }
  .sm-side { position: static; margin-top: 18px; padding: 16px; }
  .sm-tile { grid-template-columns: 56px minmax(0, 1fr) 20px; gap: 12px; padding: 8px 12px 8px 8px; }
  .sm-tile-date { min-height: 54px; }
}
@media (max-width: 380px) { .sm-row { grid-template-columns: 1fr; } }
