.leocourses {
  --leo-brand: #cf0a2c;
  --leo-text: #20262d;
  --leo-muted: #5f6b76;
  --leo-line: #e3e3e3;
  --leo-shadow: 0 4px 18px rgb(0 0 0 / 5%);
  color: var(--leo-text);
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 56px;
}
.leocourses *, .leocourses *::before, .leocourses *::after { box-sizing: border-box; }
.leocourses [hidden], .leocourses .leo-hidden { display: none !important; }
.leocourses .leo-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.leocourses .leo-sidebar { position: sticky; top: 100px; display: grid; gap: 20px; min-width: 0; }
.leocourses .leo-filter-panel, .leocourses .leo-course-card, .leocourses .leo-help-panel {
  background: #fff; border: 1px solid var(--leo-line); border-radius: 8px; box-shadow: var(--leo-shadow);
}
.leocourses .leo-filter-panel { padding: 22px; }
.leocourses .leo-filter-heading { margin-bottom: 24px; }
.leocourses .leo-filter-heading h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.leocourses .leo-filter-heading > span { color: var(--leo-muted); font-size: 14px; }
.leocourses .leo-field { display: grid; gap: 8px; margin: 0 0 24px; font-weight: 700; font-size: 15px; }
.leocourses input[type="search"] { width: 100%; min-width: 0; padding: 12px 13px; background: #fff; color: var(--leo-text); border: 1px solid #cbd0d4; border-radius: 8px; font: inherit; font-weight: 400; }
/* Override the theme's select:focus SVG rather than resetting only its size. */
.leocourses .leo-field select[data-leo-month] {
  all: revert;
  appearance: auto;
  -webkit-appearance: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background-color: #fff;
  background-image: none;
  border: 1px solid #cbd0d4;
  border-radius: 8px;
  color: var(--leo-text);
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
.leocourses .leo-field select[data-leo-month]:focus-visible { outline: 2px solid var(--leo-brand); outline-offset: 3px; }
.leocourses .leo-fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.leocourses .leo-fieldset legend { padding: 0; margin: 0 0 12px; font-size: 15px; font-weight: 700; float: none; width: auto; }
.leocourses .leo-checkbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; margin: 0; cursor: pointer; font-size: 14px; line-height: 1.4; }
/* The DRK theme paints custom checkbox backgrounds, pseudo-elements and shadows.
   Use native controls here and show an outline only for keyboard navigation. */
.leocourses .leo-checkbox input[type="checkbox"] {
  all: revert;
  appearance: auto;
  -webkit-appearance: auto;
  box-sizing: border-box;
  flex: 0 0 17px;
  width: 17px;
  min-width: 17px;
  max-width: 17px;
  height: 17px;
  margin: 2px 0 0;
  padding: 0;
  position: static;
  accent-color: var(--leo-brand);
  cursor: pointer;
}
.leocourses .leo-checkbox input[type="checkbox"]::before,
.leocourses .leo-checkbox input[type="checkbox"]::after { content: none; display: none; }
.leocourses .leo-checkbox input[type="checkbox"]:focus { outline: none; box-shadow: none; }
.leocourses .leo-checkbox input[type="checkbox"]:focus-visible { outline: 2px solid var(--leo-brand); outline-offset: 3px; }
.leocourses .leo-checkbox input[type="checkbox"]:checked + span { color: inherit; border: 0; box-shadow: none; }
.leocourses .leo-checkbox > span:not(.leo-filter-count) { flex: 1; min-width: 0; }
.leocourses .leo-checkbox strong { display: block; font-weight: 600; }
.leocourses .leo-checkbox small { display: block; margin-top: 4px; color: var(--leo-muted); font-size: 12px; }
.leocourses .leo-filter-count { background: #f2f3f4; border-radius: 4px; padding: 1px 7px; color: var(--leo-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.leocourses .leo-reset { background: none; border: 0; border-top: 1px solid var(--leo-line); border-radius: 0; padding: 18px 0 0; width: 100%; color: var(--leo-brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.leocourses .leo-help-panel { background: #f8f8f8; padding: 20px 22px; box-shadow: none; font-size: 14px; }
.leocourses .leo-help-panel strong { font-size: 16px; }
.leocourses .leo-help-panel p { margin: 8px 0 12px; color: var(--leo-muted); }
.leocourses .leo-help-panel a { color: var(--leo-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.leocourses .leo-results { min-width: 0; }
/* The grid-elements theme forces header margins to zero. Padding survives it. */
.leocourses .leo-results-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0; padding: 0 0 28px; }
.leocourses .leo-eyebrow { margin: 0 0 5px; color: var(--leo-brand); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.leocourses .leo-results-heading h2 { margin: 0; color: var(--leo-text); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 700; }
.leocourses .leo-result-count { flex: 0 0 auto; padding-bottom: 2px; color: var(--leo-muted); font-size: 14px; }
.leocourses .leo-cards { display: grid; gap: 20px; }
.leocourses .leo-course-card { padding: 24px; transition: border-color .2s, box-shadow .2s; }
.leocourses .leo-course-card:hover { border-color: #cbd0d4; box-shadow: 0 8px 24px rgb(0 0 0 / 7%); }
.leocourses .leo-card-header { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.leocourses .leo-card-title { min-width: 0; }
.leocourses .leo-card-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.leocourses .leo-course-code { color: var(--leo-brand); font-size: 13px; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.leocourses .leo-availability { border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.leocourses .leo-availability--available { color: #25613b; background: #edf6ef; }
.leocourses .leo-availability--full { color: #8e2637; background: #fceef0; }
.leocourses .leo-availability--unknown { color: #555; background: #f3f3f3; }
.leocourses .leo-card-title h3 { margin: 0 0 6px; color: var(--leo-text); font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.leocourses .leo-date-badge { flex: 0 0 62px; padding: 8px 6px; background: #fbf0f2; border: 1px solid #f4dce1; border-radius: 6px; color: var(--leo-brand); text-align: center; line-height: 1.1; }
.leocourses .leo-date-badge strong { display: block; font-size: 28px; font-weight: 700; }
.leocourses .leo-date-badge span { display: block; padding-top: 5px; font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.leocourses .leo-description { margin: 18px 0 4px; font-size: 15px; color: var(--leo-muted); }
.leocourses .leo-participants { margin: 4px 0 0; font-size: 14px; color: var(--leo-muted); }
.leocourses .leo-course-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; padding: 0; border: 0; }
.leocourses .leo-course-facts > div { min-width: 0; padding: 14px 16px; background: #fbfbfb; border: 1px solid #f0f0f0; border-radius: 8px; }
.leocourses .leo-course-facts dt { margin: 0 0 8px; color: var(--leo-muted); font-size: 14px; font-weight: 700; }
.leocourses .leo-course-facts dd { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.leocourses .leo-address > span { display: block; }
.leocourses .leo-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 4px; border: 0; }
.leocourses .leo-booking { display: inline-flex; gap: 18px; justify-content: center; align-items: center; padding: 12px 18px; min-height: 46px; background: var(--leo-brand); border: 1px solid var(--leo-brand); border-radius: 6px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; text-align: center; }
.leocourses .leo-booking:hover { background: #a1001d; border-color: #a1001d; color: #fff; text-decoration: none; }
.leocourses .leo-booking::before, .leocourses .leo-booking::after { content: none; display: none; }
.leocourses .leo-booking:disabled { background: #e6e8eb; border-color: #d5d9dd; color: #68717a; cursor: not-allowed; opacity: 1; }
.leocourses :is(a, button, input, select):focus-visible { outline: 3px solid #245f9b; outline-offset: 3px; }
.leocourses .leo-empty, .leocourses .leo-notice { padding: 32px 24px; border: 1px dashed #cbd0d4; border-radius: 8px; background: #f8f8f8; }
.leocourses .leo-empty h3 { margin: 0 0 8px; font-size: 20px; }
.leocourses .leo-empty p { margin: 0; color: var(--leo-muted); }
.leocourses .leo-footnote { margin: 20px 0 0; font-size: 12px; line-height: 1.5; color: var(--leo-muted); }
@media (max-width: 850px) {
  .leocourses .leo-layout { grid-template-columns: 1fr; }
  .leocourses .leo-sidebar { position: static; }
  .leocourses .leo-checkbox { max-width: 520px; }
}
@media (max-width: 500px) {
  .leocourses .leo-course-card, .leocourses .leo-filter-panel { padding: 18px; }
  .leocourses .leo-results-heading { flex-wrap: wrap; gap: 8px; }
  .leocourses .leo-course-facts { grid-template-columns: 1fr; gap: 16px; }
  .leocourses .leo-card-header { gap: 12px; }
  .leocourses .leo-card-footer { flex-wrap: wrap; }
  .leocourses .leo-booking { flex: 1; min-width: 0; padding: 10px 12px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .leocourses .leo-course-card { transition: none; } }
