.werun-courses-explorer {
  --werun-courses-blue: #13aff0;
  --werun-courses-blue-dark: #087fae;
  --werun-courses-text: #24313a;
  --werun-courses-muted: #6c7882;
  --werun-courses-border: rgba(19, 175, 240, 0.15);
  --werun-courses-panel-shadow: 0 22px 65px rgba(27, 65, 84, 0.18);
  width: 100%;
  color: var(--werun-courses-text);
}

.werun-courses-explorer * { box-sizing: border-box; }
.werun-courses-explorer button,
.werun-courses-explorer input,
.werun-courses-explorer select { font: inherit; }

.werun-courses-explorer__shell {
  width: min(1500px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.werun-courses-explorer__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.werun-courses-explorer__kicker,
.werun-course-card__label {
  display: inline-flex;
  color: var(--werun-courses-blue-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  text-transform: uppercase;
}

.werun-courses-explorer__header h1 {
  margin: 7px 0 5px;
  color: #10202b;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.055em;
}

.werun-courses-explorer__header p {
  max-width: 720px;
  margin: 0;
  color: var(--werun-courses-muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.45;
}

.werun-courses-explorer__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(19,175,240,.13);
  border-radius: 999px;
  color: #61707a;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(42,98,124,.05);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.werun-courses-explorer__filters {
  position: relative;
  z-index: 20;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(19,175,240,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 42px rgba(38,88,111,.07);
}

.werun-courses-explorer__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 11px;
}

.werun-courses-explorer__filters-head strong {
  display: block;
  margin-bottom: 2px;
  color: #142530;
  font-size: 13px;
  font-weight: 800;
}

.werun-courses-explorer__filters-head span:not(.werun-courses-explorer__toolbar-badge) {
  display: block;
  color: var(--werun-courses-muted);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.35;
}

.werun-courses-explorer__filters-meta { display: flex; align-items: center; gap: 10px; }
.werun-courses-explorer__filter-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.werun-courses-explorer__toolbar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--werun-courses-blue-dark);
  background: rgba(19,175,240,.09);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.werun-filterbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(165px, 1fr)) 52px;
  min-height: 58px;
  border: 1px solid rgba(33,102,132,.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(31,76,96,.08), inset 0 1px 0 rgba(255,255,255,.9);
}

.werun-filterbar__search,
.werun-filterbar__trigger {
  min-width: 0;
  min-height: 56px;
  border: 0;
  background: transparent;
}

.werun-filterbar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.werun-filterbar__search > svg,
.werun-filterbar__icon svg,
.werun-filterbar__chevron,
.werun-filterbar__submit svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.werun-filterbar__search > svg { flex: 0 0 auto; width: 18px; height: 18px; color: #83929c; }
.werun-filterbar__search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #1d303c;
  background: transparent;
  font-size: 12px;
  font-weight: 580;
}
.werun-filterbar__search input::placeholder { color: #9aa6ae; font-weight: 480; }

.werun-filterbar__segment { position: relative; min-width: 0; }
.werun-filterbar__segment::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 1px;
  background: rgba(45,86,105,.11);
}

.werun-filterbar__trigger {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 12px;
  cursor: pointer;
  color: #263a46;
  text-align: left;
  transition: background-color .18s ease, color .18s ease;
}
.werun-filterbar__trigger:hover,
.werun-filterbar__segment.is-open .werun-filterbar__trigger { color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.055); }
.werun-filterbar__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.09); }
.werun-filterbar__icon svg { width: 16px; height: 16px; }
.werun-filterbar__trigger small { display: block; margin-bottom: 2px; color: #87949c; font-size: 8px; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.werun-filterbar__trigger strong { display: block; overflow: hidden; color: currentColor; font-size: 11px; font-weight: 720; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.werun-filterbar__chevron { width: 14px; height: 14px; color: #87949c; transition: transform .18s ease; }
.werun-filterbar__segment.is-open .werun-filterbar__chevron { transform: rotate(180deg); }

.werun-filterbar__submit {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  align-self: center;
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg,#13aff0,#078fc8);
  box-shadow: 0 10px 22px rgba(19,175,240,.24);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.werun-filterbar__submit:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(19,175,240,.3); }
.werun-filterbar__submit svg { width: 19px; height: 19px; }

.werun-filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  width: min(520px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid rgba(35,91,116,.15);
  border-radius: 16px;
  background: rgba(255,255,255,.99);
  box-shadow: var(--werun-courses-panel-shadow);
}
.werun-filter-panel[hidden] { display: none; }
.werun-filter-panel--discipline { width: min(430px, calc(100vw - 40px)); }
.werun-filter-panel--effort,
.werun-filter-panel--date { left: 50%; transform: translateX(-50%); }
.werun-filter-panel--date { width: min(500px, calc(100vw - 40px)); }

.werun-filter-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.werun-filter-panel__head strong { display: block; color: #17303d; font-size: 14px; font-weight: 820; }
.werun-filter-panel__head span { display: block; margin-top: 3px; color: #7a8992; font-size: 10px; line-height: 1.35; }
.werun-filter-panel__head > button { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9px; color: #74838c; background: #f1f5f7; cursor: pointer; font-size: 20px; line-height: 1; }

.werun-filter-panel__choices,
.werun-filter-panel__date-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.werun-filter-panel__choices button,
.werun-filter-panel__date-presets button,
.werun-filter-panel__presets button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(43,93,116,.13);
  border-radius: 999px;
  color: #4c606c;
  background: #f7fafb;
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
  transition: all .16s ease;
}
.werun-filter-panel__choices button:hover,
.werun-filter-panel__date-presets button:hover,
.werun-filter-panel__presets button:hover { border-color: rgba(19,175,240,.32); color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.06); }
.werun-filter-panel__choices button.is-selected,
.werun-filter-panel__date-presets button.is-selected { border-color: rgba(19,175,240,.34); color: #fff; background: var(--werun-courses-blue); box-shadow: 0 7px 16px rgba(19,175,240,.18); }

.werun-filter-panel__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.werun-filter-panel__grid label,
.werun-filter-panel__dates label { display: flex; flex-direction: column; gap: 5px; }
.werun-filter-panel__grid label > span,
.werun-filter-panel__dates label > span,
.werun-filter-panel__range > span { color: #60717b; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.werun-filter-panel select,
.werun-filter-panel input[type='search'],
.werun-filter-panel input[type='date'],
.werun-filter-panel input[type='number'] {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(43,93,116,.15);
  border-radius: 10px;
  outline: none;
  color: #273c48;
  background: #fff;
  font-size: 11px;
  font-weight: 560;
  transition: border-color .17s ease, box-shadow .17s ease;
}
.werun-filter-panel select:focus,
.werun-filter-panel input:focus { border-color: rgba(19,175,240,.5); box-shadow: 0 0 0 3px rgba(19,175,240,.1); }

.werun-effort-ranges { display: grid; gap: 18px; }
.werun-dual-range { padding: 15px 16px 14px; border: 1px solid rgba(43,93,116,.1); border-radius: 14px; background: linear-gradient(180deg,#fbfdfe 0%,#f7fafb 100%); }
.werun-dual-range__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.werun-dual-range__head strong { color: #273c48; font-size: 11px; font-weight: 800; }
.werun-dual-range__head span { color: var(--werun-courses-blue-dark); font-size: 10px; font-weight: 760; text-align: right; }
.werun-dual-range__control { position: relative; height: 24px; margin: 0 3px; }
.werun-dual-range__track { position: absolute; z-index: 1; top: 50%; left: 0; right: 0; height: 4px; border-radius: 999px; background: #dce5e9; transform: translateY(-50%); overflow: hidden; }
.werun-dual-range__track span { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg,var(--werun-courses-blue),#0e93d0); }
.werun-dual-range__thumb { position: absolute; z-index: 3; top: 50%; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--werun-courses-blue); box-shadow: 0 2px 8px rgba(12,92,128,.28); transform: translate(-50%,-50%); pointer-events: none; }
.werun-dual-range input[type='range'] { position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 24px; margin: 0; padding: 0; border: 0; outline: none; opacity: 0; background: transparent; pointer-events: none; appearance: none; -webkit-appearance: none; }
.werun-dual-range input[type='range']:focus { box-shadow: none; }
.werun-dual-range input[type='range']::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.werun-dual-range input[type='range']::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; pointer-events: auto; appearance: none; -webkit-appearance: none; }
.werun-dual-range input[type='range']::-moz-range-track { height: 24px; background: transparent; }
.werun-dual-range input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; cursor: grab; pointer-events: auto; }
.werun-dual-range input[type='range']:focus-visible + input[type='range'] { outline: none; }
.werun-dual-range__control:focus-within .werun-dual-range__thumb { box-shadow: 0 0 0 4px rgba(19,175,240,.18),0 2px 8px rgba(12,92,128,.28); }
.werun-dual-range__bounds { display: flex; justify-content: space-between; margin-top: 1px; color: #8a979f; font-size: 8px; font-weight: 650; }
.werun-filter-panel__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.werun-filter-panel__presets--range { margin-top: 12px; }
.werun-filter-panel__presets--range button.is-selected { border-color: rgba(19,175,240,.4); color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.1); box-shadow: inset 0 0 0 1px rgba(19,175,240,.06); }
.werun-filter-panel__actions--effort { min-height: 37px; }

.werun-date-range-picker { margin-top: 14px; padding: 13px; border: 1px solid rgba(43,93,116,.1); border-radius: 15px; background: linear-gradient(180deg,#fbfdfe 0%,#f6fafc 100%); }
.werun-date-range-picker[hidden] { display: none; }
.werun-date-range-picker__toolbar { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; margin-bottom: 12px; }
.werun-date-range-picker__toolbar button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(43,93,116,.12); border-radius: 10px; color: #405762; background: #fff; cursor: pointer; font-size: 22px; line-height: 1; transition: border-color .16s ease,color .16s ease,background .16s ease; }
.werun-date-range-picker__toolbar button:hover { border-color: rgba(19,175,240,.35); color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.06); }
.werun-date-range-picker__toolbar p { margin: 0; color: #60717b; font-size: 10px; font-weight: 720; text-align: center; }
.werun-date-range-picker__months { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.werun-calendar { min-width: 0; }
.werun-calendar + .werun-calendar { padding-left: 18px; border-left: 1px solid rgba(43,93,116,.09); }
.werun-calendar h4 { margin: 0 0 10px; color: #273c48; font-size: 11px; font-weight: 820; text-align: center; }
.werun-calendar__weekdays,.werun-calendar__grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.werun-calendar__weekdays { margin-bottom: 4px; }
.werun-calendar__weekdays span { color: #8a979f; font-size: 7px; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.werun-calendar__blank { min-height: 32px; }
.werun-calendar__day { position: relative; min-width: 0; min-height: 32px; padding: 0; border: 0; border-radius: 9px; color: #334955; background: transparent; cursor: pointer; font-size: 9px; font-weight: 680; transition: color .14s ease,background .14s ease,box-shadow .14s ease; }
.werun-calendar__day:hover:not(:disabled) { color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.09); }
.werun-calendar__day.is-in-range { border-radius: 0; color: #146a91; background: rgba(19,175,240,.12); }
.werun-calendar__day.is-start,.werun-calendar__day.is-end { z-index: 1; color: #fff; background: var(--werun-courses-blue); box-shadow: 0 5px 12px rgba(19,175,240,.22); }
.werun-calendar__day.is-start { border-radius: 9px 3px 3px 9px; }
.werun-calendar__day.is-end { border-radius: 3px 9px 9px 3px; }
.werun-calendar__day.is-start.is-end { border-radius: 9px; }
.werun-calendar__day.is-today:not(.is-start):not(.is-end)::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--werun-courses-blue); transform: translateX(-50%); }
.werun-calendar__day:disabled { color: #c4cdd2; cursor: not-allowed; opacity: .62; }
.werun-filter-panel__actions--date { min-height: 37px; }

.werun-filter-panel__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(43,93,116,.09); }
.werun-filter-panel__clear,
.werun-filter-panel__apply { min-height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer; font-size: 10px; font-weight: 760; }
.werun-filter-panel__clear { border: 0; color: #6b7b84; background: transparent; }
.werun-filter-panel__apply { border: 0; color: #fff; background: var(--werun-courses-blue); box-shadow: 0 8px 18px rgba(19,175,240,.18); }

.werun-courses-explorer__active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.werun-courses-explorer__active-filters[hidden] { display: none; }
.werun-courses-explorer__active-filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 9px; border: 1px solid rgba(19,175,240,.16); border-radius: 999px; color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.07); cursor: pointer; font-size: 9px; font-weight: 700; }
.werun-courses-explorer__active-filters b { font-size: 14px; font-weight: 500; }
.werun-courses-explorer__filter-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.werun-courses-explorer__filter-reset { min-height: 28px; padding: 0 9px; border: 0; color: #78868e; background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; }
.werun-courses-explorer__filter-reset[hidden] { display: none; }

.werun-courses-explorer.is-loading .werun-courses-explorer__grid { opacity: .5; }
.werun-courses-explorer.is-loading .werun-filterbar { box-shadow: 0 0 0 3px rgba(19,175,240,.08), 0 9px 28px rgba(31,76,96,.08); }

.werun-courses-explorer__grid {
  opacity: 0.55;
}

.werun-courses-explorer__toolbar-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--werun-courses-blue-dark);
  background: rgba(19, 175, 240, 0.09);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.werun-courses-explorer__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.werun-course-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--werun-courses-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96));
  box-shadow: 0 7px 18px rgba(47, 97, 120, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.werun-course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 175, 240, 0.26);
  box-shadow: 0 12px 28px rgba(47, 97, 120, 0.085);
}

.werun-course-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(244, 250, 252, 0.96), rgba(250, 253, 254, 0.96));
  text-decoration: none !important;
}

.werun-course-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.werun-course-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center center;
}

.werun-course-card__media img[src] {
  background: transparent;
}

.werun-course-card__media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--werun-courses-blue-dark);
  background: rgba(19, 175, 240, 0.10);
}

.werun-course-card__media-fallback svg,
.werun-course-card__favorite svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.werun-course-card__body {
  flex: 1 1 auto;
  padding: 9px 9px 6px;
}

.werun-course-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 6px;
}

.werun-course-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border: 1px solid rgba(19, 175, 240, 0.12);
  border-radius: 999px;
  color: var(--werun-courses-blue-dark);
  background: rgba(19, 175, 240, 0.08);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.werun-course-card__badge--featured {
  color: #9a6b00;
  border-color: rgba(251, 196, 44, 0.24);
  background: rgba(251, 196, 44, 0.16);
}

.werun-course-card__badge--legendary {
  color: #9a6b00;
  border-color: rgba(251, 196, 44, 0.28);
  background: rgba(255, 250, 226, 0.92);
}

.werun-course-card h2 {
  margin: 0 0 5px;
  color: #1e2b33;
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.werun-course-card h2 a {
  color: inherit;
  text-decoration: none !important;
}

.werun-course-card h2 a:hover {
  color: var(--werun-courses-blue-dark);
}

.werun-course-card__meta,
.werun-course-card__summary {
  margin: 0;
  color: #61707a;
  font-size: 9.5px;
  font-weight: 520;
  line-height: 1.34;
}

.werun-course-card__summary {
  margin-top: 4px;
  color: #33444f;
  font-weight: 700;
}

.werun-course-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 7px 9px 9px;
}

.werun-course-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--werun-courses-blue);
  box-shadow: 0 8px 16px rgba(19, 175, 240, 0.18);
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none !important;
}

.werun-course-card__button:hover {
  color: #fff;
  background: #0f99d6;
}

.werun-course-card__favorite {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(19, 175, 240, 0.16);
  border-radius: 50%;
  color: var(--werun-courses-blue-dark);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.werun-course-card__favorite:hover,
.werun-course-card__favorite.is-favorite {
  color: #b88700;
  border-color: rgba(251, 196, 44, 0.42);
  background: rgba(255, 247, 219, 0.98);
}

.werun-course-card__favorite:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 210px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #fff;
  background: rgba(22, 27, 31, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  pointer-events: none;
}

.werun-course-card__favorite[data-werun-favorite-message]::before {
  content: attr(data-werun-favorite-message);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  width: max-content;
  max-width: 230px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #fff;
  background: rgba(22, 27, 31, 0.94);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  pointer-events: none;
}

.werun-course-card__favorite[data-werun-favorite-message]::after {
  display: none;
}

.werun-courses-explorer__more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.werun-courses-explorer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(19, 175, 240, 0.22);
  border-radius: 999px;
  color: var(--werun-courses-blue-dark);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(47, 97, 120, 0.07);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.werun-courses-explorer__button:hover {
  background: rgba(234, 248, 255, 0.96);
}

.werun-courses-explorer__button.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.werun-courses-explorer__button.has-error {
  border-color: rgba(198, 38, 38, 0.26);
  color: #a52626;
}

.werun-courses-explorer__empty {
  padding: 24px;
  border: 1px dashed rgba(19, 175, 240, 0.26);
  border-radius: 18px;
  color: var(--werun-courses-muted);
  background: rgba(247, 252, 255, 0.82);
  text-align: center;
}

.werun-courses-explorer__empty strong {
  display: block;
  margin-bottom: 7px;
  color: #23323c;
  font-size: 15px;
  font-weight: 850;
}

.werun-courses-explorer__empty p {
  margin: 0;
  font-weight: 600;
}

.werun-courses-explorer__filter-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


html.werun-theme-dark .werun-courses-explorer {
  --werun-courses-text: #e8f3f7;
  --werun-courses-muted: rgba(226,239,244,.72);
  --werun-courses-border: rgba(72,185,228,.22);
  --werun-courses-panel-shadow: 0 24px 70px rgba(0,0,0,.42);
}
html.werun-theme-dark .werun-courses-explorer__header h1,
html.werun-theme-dark .werun-courses-explorer__filters-head strong,
html.werun-theme-dark .werun-course-card h2,
html.werun-theme-dark .werun-courses-explorer__empty strong,
html.werun-theme-dark .werun-filter-panel__head strong { color: #f4fbfd; }
html.werun-theme-dark .werun-courses-explorer__count,
html.werun-theme-dark .werun-courses-explorer__filters,
html.werun-theme-dark .werun-course-card,
html.werun-theme-dark .werun-courses-explorer__button,
html.werun-theme-dark .werun-courses-explorer__empty { background: rgba(14,31,39,.9); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
html.werun-theme-dark .werun-filterbar,
html.werun-theme-dark .werun-filter-panel { border-color: rgba(72,185,228,.18); background: #10242d; }
html.werun-theme-dark .werun-filterbar__search input,
html.werun-theme-dark .werun-filterbar__trigger,
html.werun-theme-dark .werun-filter-panel select,
html.werun-theme-dark .werun-filter-panel input { color: #edf8fb; }
html.werun-theme-dark .werun-filter-panel select,
html.werun-theme-dark .werun-filter-panel input,
html.werun-theme-dark .werun-dual-range { border-color: rgba(72,185,228,.18); background: linear-gradient(180deg,rgba(8,27,36,.88),rgba(5,19,26,.72)); }
html.werun-theme-dark .werun-dual-range__head strong { color: #e9f5f9; }
html.werun-theme-dark .werun-dual-range__track { background: rgba(180,215,228,.2); }
html.werun-theme-dark .werun-dual-range__bounds { color: #8299a4; }
html.werun-theme-dark .werun-dual-range__thumb {
  border-color: #dff6ff;
  box-shadow: 0 0 0 2px rgba(19,175,240,.28),0 0 12px rgba(19,175,240,.42);
}

html.werun-theme-dark .werun-date-range-picker,
html.werun-theme-dark .werun-filter-panel__choices button,
html.werun-theme-dark .werun-filter-panel__date-presets button,
html.werun-theme-dark .werun-filter-panel__presets button { color: rgba(236,247,250,.84); border-color: rgba(72,185,228,.18); background: rgba(5,19,26,.55); }
html.werun-theme-dark .werun-filter-panel__choices button.is-selected,
html.werun-theme-dark .werun-filter-panel__date-presets button.is-selected { color: #fff; background: var(--werun-courses-blue); }
html.werun-theme-dark .werun-course-card__media { background: rgba(232,241,245,.92); }
html.werun-theme-dark .werun-course-card__meta,
html.werun-theme-dark .werun-course-card__summary { color: rgba(235,245,248,.78); }
html.werun-theme-dark .werun-course-card__badge { color: #91d9f5; border-color: rgba(72,185,228,.22); background: rgba(19,175,240,.12); }
html.werun-theme-dark .werun-course-card__badge--featured,
html.werun-theme-dark .werun-course-card__badge--legendary { color: #ffd76a; border-color: rgba(251,196,44,.32); background: rgba(251,196,44,.14); }

@media (max-width: 1399px) {
  .werun-filterbar { grid-template-columns: minmax(190px,1.1fr) repeat(4,minmax(145px,1fr)) 50px; }
  .werun-courses-explorer__grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 1199px) {
  .werun-courses-explorer__shell { width: calc(100% - 44px); }
  .werun-filterbar { grid-template-columns: minmax(190px,1fr) repeat(2,minmax(160px,1fr)) 50px; }
  .werun-filterbar__segment:nth-of-type(3),
  .werun-filterbar__segment:nth-of-type(4) { border-top: 1px solid rgba(45,86,105,.1); }
  .werun-filterbar__segment:nth-of-type(3) { grid-column: 1 / 3; }
  .werun-filterbar__segment:nth-of-type(4) { grid-column: 3 / 4; }
  .werun-filterbar__submit { grid-column: 4; grid-row: 2; }
  .werun-courses-explorer__grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
}

@media (max-width: 1024px) {
  .werun-courses-explorer__shell { width: calc(100% - 34px); padding-top: 30px; }
  .werun-filterbar { display: flex; flex-wrap: wrap; }
  .werun-filterbar__search { flex: 1 1 calc(100% - 58px); }
  .werun-filterbar__segment { flex: 1 1 25%; border-top: 1px solid rgba(45,86,105,.1); }
  .werun-filterbar__segment::before { top: 10px; bottom: 10px; }
  .werun-filterbar__submit { flex: 0 0 46px; margin-right: 5px; }
  .werun-filter-panel--effort,
  .werun-filter-panel--date { left: 0; transform: none; }
  .werun-courses-explorer__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .werun-courses-explorer__shell { width: calc(100% - 22px); padding-top: 26px; padding-bottom: 70px; }
  .werun-courses-explorer__header,
  .werun-courses-explorer__filters-head { align-items: flex-start; flex-direction: column; }
  .werun-courses-explorer__header h1 { font-size: clamp(38px,15vw,52px); }
  .werun-courses-explorer__header p { font-size: 13px; }
  .werun-courses-explorer__filters { padding: 10px; border-radius: 16px; }
  .werun-courses-explorer__toolbar-badge { display: none; }
  .werun-filterbar { display: grid; grid-template-columns: 1fr 1fr 48px; border-radius: 13px; }
  .werun-filterbar__search { grid-column: 1 / 3; min-height: 50px; }
  .werun-filterbar__submit { grid-column: 3; grid-row: 1; width: 38px; height: 38px; margin: 0; }
  .werun-filterbar__segment { min-width: 0; border-top: 1px solid rgba(45,86,105,.1); }
  .werun-filterbar__segment:nth-of-type(odd)::before { display: none; }
  .werun-filterbar__segment:nth-of-type(3) { grid-column: auto; }
  .werun-filterbar__segment:nth-of-type(4) { grid-column: auto; }
  .werun-filterbar__trigger { min-height: 54px; grid-template-columns: 24px minmax(0,1fr) 12px; padding: 0 9px; gap: 6px; }
  .werun-filterbar__icon { width: 24px; height: 24px; border-radius: 7px; }
  .werun-filterbar__trigger strong { font-size: 10px; }
  .werun-filter-panel { position: fixed; left: 11px !important; right: 11px; bottom: 11px; top: auto; width: auto !important; max-height: min(78vh,650px); overflow-y: auto; transform: none !important; border-radius: 18px; }
  .werun-filter-panel__grid,
  .werun-effort-ranges { gap: 12px; }
  .werun-dual-range { padding: 13px 12px; }
  .werun-dual-range__head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .werun-dual-range__head span { text-align: left; }
  .werun-filter-panel__actions { position: sticky; bottom: -16px; margin-right: -16px; margin-left: -16px; padding: 12px 16px 0; background: inherit; }
  .werun-courses-explorer__count { min-height: 38px; }
  .werun-courses-explorer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .werun-course-card__body,
  .werun-course-card__actions { padding-right: 11px; padding-left: 11px; }
}

@media (max-width: 520px) {
  .werun-filterbar { grid-template-columns: 1fr 48px; }
  .werun-filterbar__search { grid-column: 1; }
  .werun-filterbar__submit { grid-column: 2; }
  .werun-filterbar__segment { grid-column: 1 / 3 !important; }
  .werun-filterbar__segment::before { display: none; }
  .werun-filterbar__trigger { grid-template-columns: 28px minmax(0,1fr) 14px; }
  .werun-date-range-picker { padding: 11px; }
  .werun-date-range-picker__months { grid-template-columns: 1fr; }
  .werun-calendar + .werun-calendar { display: none; }
  .werun-calendar__day,.werun-calendar__blank { min-height: 36px; }
  .werun-courses-explorer__grid { grid-template-columns: 1fr; gap: 10px; }
  .werun-course-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 158px;
    border-radius: 15px;
  }
  .werun-course-card:hover { transform: none; }
  .werun-course-card__media {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 112px;
    height: 100%;
    min-height: 158px;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .werun-course-card__media img { object-position: center center; }
  .werun-course-card__body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 11px 11px 5px;
  }
  .werun-course-card__badges { gap: 3px; margin-bottom: 6px; }
  .werun-course-card__badge { max-width: 100%; font-size: 6.5px; }
  .werun-course-card h2 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .werun-course-card__meta,
  .werun-course-card__summary { font-size: 10.5px; line-height: 1.3; }
  .werun-course-card__meta { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .werun-course-card__summary { margin-top: 5px; }
  .werun-course-card__actions {
    grid-column: 2;
    grid-row: 2;
    gap: 7px;
    padding: 6px 10px 10px 11px;
  }
  .werun-course-card__button { min-height: 31px; padding: 0 11px; font-size: 9px; }
  .werun-course-card__favorite { width: 31px; height: 31px; }
  .werun-course-card__favorite svg { width: 18px; height: 18px; }
}

/* --------------------------------------------------------------------------
 * WeRun Search Bar — composant premium réutilisable (0.6.9)
 * -------------------------------------------------------------------------- */
.werun-courses-explorer__grid {
  opacity: 1;
  transition: opacity .18s ease;
}
.werun-courses-explorer.is-loading .werun-courses-explorer__grid { opacity: .48; }

.werun-courses-explorer__filters {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.werun-courses-explorer__filters-head {
  margin: 0 0 12px;
}

.werun-filterbar {
  display: grid;
  grid-template-columns: 150px 210px 185px 165px minmax(190px,1fr) 58px;
  grid-template-areas: "sport location effort date search submit";
  min-height: 64px;
  overflow: visible;
  border: 1px solid rgba(30,76,98,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 46px rgba(25,63,82,.12), inset 0 1px 0 rgba(255,255,255,.96);
}

.werun-filterbar__search { grid-area: search; }
.werun-filterbar__segment:nth-of-type(1) { grid-area: sport; }
.werun-filterbar__segment:nth-of-type(2) { grid-area: location; }
.werun-filterbar__segment:nth-of-type(3) { grid-area: effort; }
.werun-filterbar__segment:nth-of-type(4) { grid-area: date; }
.werun-filterbar__submit { grid-area: submit; }

.werun-filterbar__search,
.werun-filterbar__trigger {
  min-height: 62px;
}

.werun-filterbar__segment::before {
  top: 15px;
  bottom: 15px;
  background: rgba(39,75,93,.12);
}

.werun-filterbar__trigger {
  grid-template-columns: minmax(0,1fr) 15px;
  gap: 8px;
  padding: 0 16px;
  border-radius: 0;
}

.werun-filterbar__icon,
.werun-filterbar__trigger small {
  display: none;
}

.werun-filterbar__trigger strong {
  font-size: 12px;
  font-weight: 690;
  letter-spacing: -.01em;
}

.werun-filterbar__trigger:hover,
.werun-filterbar__segment.is-open .werun-filterbar__trigger {
  color: #087fae;
  background: rgba(19,175,240,.055);
}

.werun-filterbar__segment:first-of-type .werun-filterbar__trigger {
  border-radius: 17px 0 0 17px;
}

.werun-filterbar__search {
  gap: 9px;
  padding: 0 15px;
}

.werun-filterbar__search::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 1px;
  background: rgba(39,75,93,.12);
}

.werun-filterbar__search { position: relative; }
.werun-filterbar__search > svg { width: 17px; height: 17px; color: #748792; }
.werun-filterbar__search input { font-size: 12px; font-weight: 560; }
.werun-filterbar__search input::placeholder { color: #8897a0; }

.werun-filterbar__submit {
  width: 46px;
  height: 46px;
  margin-right: 6px;
  border-radius: 14px;
  box-shadow: 0 11px 25px rgba(19,175,240,.28);
}

.werun-filter-panel {
  top: calc(100% + 12px);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(20,54,70,.22);
}

.werun-filter-panel--discipline { width: min(470px,calc(100vw - 40px)); }
.werun-filter-panel--location { width: min(580px,calc(100vw - 40px)); }
.werun-filter-panel--effort { width: min(560px,calc(100vw - 40px)); }
.werun-filter-panel--date { width: min(540px,calc(100vw - 40px)); }

.werun-filter-panel__choices button,
.werun-filter-panel__date-presets button,
.werun-filter-panel__presets button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 11px;
}

.werun-filter-panel select,
.werun-filter-panel input[type='search'],
.werun-filter-panel input[type='date'],
.werun-filter-panel input[type='number'] {
  min-height: 44px;
  border-radius: 11px;
  font-size: 12px;
}

.werun-courses-explorer__active-filters { margin-top: 11px; }
.werun-courses-explorer__filter-actions { margin-top: 5px; }

@media (max-width: 1280px) {
  .werun-filterbar {
    grid-template-columns: 135px 185px 165px 145px minmax(170px,1fr) 56px;
  }
  .werun-filterbar__trigger { padding: 0 13px; }
}

@media (max-width: 1080px) {
  .werun-filterbar {
    grid-template-columns: repeat(4,minmax(0,1fr)) 56px;
    grid-template-areas:
      "search search search search submit"
      "sport location effort date submit";
    border-radius: 17px;
  }
  .werun-filterbar__search { min-height: 54px; border-bottom: 1px solid rgba(39,75,93,.1); }
  .werun-filterbar__search::before { display: none; }
  .werun-filterbar__segment { border-top: 0 !important; }
  .werun-filterbar__segment:first-of-type .werun-filterbar__trigger { border-radius: 0 0 0 16px; }
  .werun-filterbar__trigger { min-height: 56px; }
  .werun-filterbar__submit { grid-row: 1 / 3; align-self: center; }
  .werun-filter-panel--effort,
  .werun-filter-panel--date { left: auto; right: 0; transform: none; }
}

@media (max-width: 760px) {
  .werun-courses-explorer__filters { padding: 0; }
  .werun-courses-explorer__filters-head { margin-bottom: 10px; }
  .werun-filterbar {
    grid-template-columns: 1fr 52px;
    grid-template-areas:
      "search submit"
      "sport sport"
      "location location"
      "effort effort"
      "date date";
    border-radius: 16px;
  }
  .werun-filterbar__search { grid-column: auto; min-height: 54px; }
  .werun-filterbar__submit { grid-column: auto; grid-row: 1; width: 40px; height: 40px; margin-right: 6px; }
  .werun-filterbar__segment { grid-column: auto !important; border-top: 1px solid rgba(39,75,93,.1) !important; }
  .werun-filterbar__segment::before { display: none; }
  .werun-filterbar__segment:first-of-type .werun-filterbar__trigger { border-radius: 0; }
  .werun-filterbar__trigger { min-height: 50px; padding: 0 14px; }
  .werun-filterbar__trigger strong { font-size: 11px; }
  .werun-filter-panel {
    left: 10px !important;
    right: 10px;
    bottom: 10px;
    width: auto !important;
    max-height: min(82vh,680px);
    border-radius: 20px;
  }
}

/* 0.6.10 — Menu Sports : liste verticale premium et compacte. */
.werun-filter-panel--discipline {
  width: min(360px, calc(100vw - 40px));
  padding: 16px;
}
.werun-filter-panel--discipline .werun-filter-panel__head {
  margin-bottom: 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(43,93,116,.09);
}
.werun-sport-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 410px;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(32,112,145,.24) transparent;
}
.werun-sport-list::-webkit-scrollbar { width: 6px; }
.werun-sport-list::-webkit-scrollbar-track { background: transparent; }
.werun-sport-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(32,112,145,.22);
}
.werun-sport-option {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #314954;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.werun-sport-option:hover,
.werun-sport-option:focus-visible {
  color: #087fae;
  background: rgba(19,175,240,.065);
  border-color: rgba(19,175,240,.12);
  outline: none;
}
.werun-sport-option:active { transform: translateY(1px); }
.werun-sport-option.is-selected {
  color: #0b7199;
  background: linear-gradient(90deg, rgba(19,175,240,.12), rgba(19,175,240,.045));
  border-color: rgba(19,175,240,.16);
  box-shadow: inset 3px 0 0 #13aff0;
}
.werun-sport-option__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #0d8fbe;
  background: rgba(19,175,240,.09);
  border: 1px solid rgba(19,175,240,.12);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.werun-sport-option__icon .werun-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.werun-sport-option:hover .werun-sport-option__icon,
.werun-sport-option:focus-visible .werun-sport-option__icon,
.werun-sport-option.is-selected .werun-sport-option__icon {
  color: #fff;
  background: #13aff0;
  border-color: #13aff0;
  transform: translateY(-1px);
}
.werun-sport-option__label {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 690;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.werun-sport-option__check {
  width: 16px;
  height: 16px;
  color: #13aff0;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .16s ease, transform .16s ease;
}
.werun-sport-option__check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.werun-sport-option.is-selected .werun-sport-option__check {
  opacity: 1;
  transform: scale(1);
}
html.werun-theme-dark .werun-filter-panel--discipline .werun-filter-panel__head {
  border-bottom-color: rgba(72,185,228,.12);
}
html.werun-theme-dark .werun-sport-option { color: rgba(236,247,250,.84); }
html.werun-theme-dark .werun-sport-option:hover,
html.werun-theme-dark .werun-sport-option:focus-visible {
  color: #fff;
  background: rgba(19,175,240,.10);
  border-color: rgba(72,185,228,.16);
}
html.werun-theme-dark .werun-sport-option.is-selected {
  color: #fff;
  background: linear-gradient(90deg, rgba(19,175,240,.20), rgba(19,175,240,.07));
  border-color: rgba(72,185,228,.18);
}

html.werun-theme-dark .werun-sport-option__icon {
  color: #68c9ee;
  background: rgba(19,175,240,.12);
  border-color: rgba(72,185,228,.18);
}
html.werun-theme-dark .werun-sport-option:hover .werun-sport-option__icon,
html.werun-theme-dark .werun-sport-option:focus-visible .werun-sport-option__icon,
html.werun-theme-dark .werun-sport-option.is-selected .werun-sport-option__icon {
  color: #fff;
  background: #13aff0;
  border-color: #13aff0;
}
@media (max-width: 720px) {
  .werun-filter-panel--discipline { padding: 16px; }
  .werun-sport-list { max-height: min(56vh, 430px); }
  .werun-sport-option { min-height: 46px; padding: 0 13px; }
  .werun-sport-option__label { font-size: 12px; }
}

/* 0.6.11 — Localisation moderne et recherchable. */
.werun-filter-panel--location {
  width: min(640px, calc(100vw - 40px));
}

.werun-location-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(43,93,116,.15);
  border-radius: 12px;
  background: #fff;
  transition: border-color .17s ease, box-shadow .17s ease;
}
.werun-location-search:focus-within {
  border-color: rgba(19,175,240,.52);
  box-shadow: 0 0 0 3px rgba(19,175,240,.1);
}
.werun-location-search > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #748792;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.werun-location-search > input[type='search'] {
  min-height: 44px;
  padding: 0;
  border: 0;
  box-shadow: none !important;
  background: transparent;
  font-size: 12px;
}

.werun-location-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(35,91,116,.15);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(27,65,84,.18);
}
.werun-location-suggestions[hidden] { display: none; }
.werun-location-suggestions__group + .werun-location-suggestions__group { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(43,93,116,.08); }
.werun-location-suggestions__group > strong {
  display: block;
  padding: 4px 8px 6px;
  color: #7a8992;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.werun-location-suggestions__group button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: #263b47;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.werun-location-suggestions__group button:hover,
.werun-location-suggestions__group button:focus-visible { color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.075); outline: none; }
.werun-location-suggestions__group button span { overflow: hidden; font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.werun-location-suggestions__group button small { margin-left: 12px; color: #81909a; font-size: 9px; font-weight: 560; white-space: nowrap; }
.werun-location-suggestions__empty { margin: 0; padding: 12px; color: #7a8992; font-size: 10px; text-align: center; }

.werun-location-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: #8a979f;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.werun-location-divider::before,
.werun-location-divider::after { content: ''; flex: 1 1 auto; height: 1px; background: rgba(43,93,116,.09); }

.werun-location-browse {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}
.werun-location-select { position: relative; min-width: 0; }
.werun-location-select > button {
  display: grid;
  grid-template-columns: minmax(0,1fr) 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(43,93,116,.14);
  border-radius: 10px;
  color: #344b58;
  background: #f9fbfc;
  cursor: pointer;
  text-align: left;
}
.werun-location-select > button:hover,
.werun-location-select.is-open > button { border-color: rgba(19,175,240,.38); color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.055); }
.werun-location-select > button span { overflow: hidden; font-size: 10.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.werun-location-select > button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .16s ease; }
.werun-location-select.is-open > button svg { transform: rotate(180deg); }

.werun-location-select__menu {
  position: absolute;
  z-index: 11;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  min-width: 220px;
  max-height: 300px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(35,91,116,.15);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(27,65,84,.17);
}
.werun-location-select__menu[hidden] { display: none; }
.werun-location-select__menu > input[type='search'] { min-height: 36px; margin-bottom: 7px; font-size: 10px; }
.werun-location-select__menu > div { max-height: 220px; overflow: auto; }
.werun-location-select__option {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  color: #425864;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 620;
  text-align: left;
}
.werun-location-select__option:hover,
.werun-location-select__option:focus-visible { color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.07); outline: none; }
.werun-location-select__option.is-selected { color: var(--werun-courses-blue-dark); background: rgba(19,175,240,.1); font-weight: 760; }
.werun-location-select__empty { display: block; padding: 12px 8px; color: #85939c; font-size: 9px; text-align: center; }
.werun-filter-panel__actions--location { justify-content: flex-start; }
.werun-filter-panel__actions--location .werun-filter-panel__clear { padding-left: 0; }

html.werun-theme-dark .werun-location-search,
html.werun-theme-dark .werun-location-suggestions,
html.werun-theme-dark .werun-location-select__menu { border-color: rgba(255,255,255,.13); background: #16232a; }
html.werun-theme-dark .werun-location-select > button { border-color: rgba(255,255,255,.12); color: #d8e4ea; background: rgba(255,255,255,.035); }
html.werun-theme-dark .werun-location-suggestions__group button,
html.werun-theme-dark .werun-location-select__option { color: #d6e2e8; }
html.werun-theme-dark .werun-location-search > input[type='search'] { color: #eef6f8; }

@media (max-width: 760px) {
  .werun-filter-panel--location { width: auto; }
  .werun-location-browse { grid-template-columns: 1fr; }
  .werun-location-select__menu { position: static; min-width: 0; margin-top: 6px; box-shadow: none; }
  .werun-location-suggestions { max-height: 42vh; }
  .werun-location-suggestions__group button { grid-template-columns: 1fr; }
  .werun-location-suggestions__group button small { margin: 2px 0 0; }
}

/* 0.6.12 — Double curseur Distance & D+. */

html.werun-theme-dark .werun-date-range-picker__toolbar button { color: #d8e4e9; border-color: rgba(255,255,255,.12); background: #24343c; }
html.werun-theme-dark .werun-date-range-picker__toolbar p,html.werun-theme-dark .werun-calendar h4 { color: #e4edf1; }
html.werun-theme-dark .werun-calendar + .werun-calendar { border-left-color: rgba(255,255,255,.09); }
html.werun-theme-dark .werun-calendar__day { color: #d9e4e8; }
html.werun-theme-dark .werun-calendar__day:disabled { color: #60717a; }


/* 0.6.14 — Barre fermée : libellés harmonisés, recherche automatique sans bouton. */
.werun-filterbar {
  grid-template-columns: 150px 185px 190px 150px minmax(250px,1fr);
  grid-template-areas: "sport location effort date search";
}
.werun-filterbar__search {
  padding-right: 20px;
  border-radius: 0 17px 17px 0;
}
.werun-filterbar__search input {
  font-size: 12.5px;
}
.werun-filterbar__submit {
  display: none !important;
}

@media (max-width: 1280px) {
  .werun-filterbar {
    grid-template-columns: 135px 170px 175px 140px minmax(220px,1fr);
  }
}

@media (max-width: 1080px) {
  .werun-filterbar {
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-template-areas:
      "search search search search"
      "sport location effort date";
  }
  .werun-filterbar__search {
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 760px) {
  .werun-filterbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "sport"
      "location"
      "effort"
      "date";
  }
  .werun-filterbar__search {
    grid-column: 1;
    border-radius: 15px 15px 0 0;
    padding-right: 15px;
  }
}

/* 0.6.15 — Passe de finition visuelle : panneaux plus compacts et contrastes harmonisés. */
.werun-filter-panel {
  padding: 14px;
  border-radius: 16px;
}

.werun-filter-panel--discipline { width: min(330px, calc(100vw - 40px)); }
.werun-filter-panel--location { width: min(600px, calc(100vw - 40px)); }
.werun-filter-panel--effort { width: min(520px, calc(100vw - 40px)); }
.werun-filter-panel--date { width: min(500px, calc(100vw - 40px)); }

.werun-filter-panel__head {
  gap: 10px;
  margin-bottom: 10px;
}
.werun-filter-panel__head strong { font-size: 13px; }
.werun-filter-panel__head span {
  margin-top: 2px;
  font-size: 9px;
}
.werun-filter-panel__head > button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 18px;
}

.werun-filter-panel--discipline {
  padding: 14px;
}
.werun-filter-panel--discipline .werun-filter-panel__head {
  margin-bottom: 7px;
  padding: 0 1px 8px;
}
.werun-sport-list {
  gap: 2px;
  max-height: 360px;
}
.werun-sport-option {
  min-height: 37px;
  padding: 0 10px;
  border-radius: 9px;
}
.werun-sport-option__label { font-size: 10px; }

.werun-location-search {
  min-height: 41px;
  padding: 0 11px;
  border-radius: 10px;
}
.werun-location-search > input[type='search'] {
  min-height: 39px;
  font-size: 10.5px;
}
.werun-location-divider {
  margin: 11px 0 8px;
  font-size: 7px;
}
.werun-location-browse { gap: 7px; }
.werun-location-select > button {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
}
.werun-location-select > button span { font-size: 9.5px; }
.werun-location-select__menu {
  min-width: 205px;
  max-height: 270px;
  padding: 7px;
  border-radius: 10px;
}
.werun-location-select__menu > input[type='search'] {
  min-height: 33px;
  margin-bottom: 5px;
  font-size: 9px;
}
.werun-location-select__menu > div { max-height: 200px; }
.werun-location-select__option {
  min-height: 29px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 8.75px;
  line-height: 1.28;
}
.werun-location-suggestions {
  max-height: 320px;
  padding: 7px;
}
.werun-location-suggestions__group button {
  min-height: 34px;
  padding: 6px 8px;
}
.werun-location-suggestions__group button span { font-size: 10px; }
.werun-location-suggestions__group button small { font-size: 8px; }

.werun-effort-ranges { gap: 12px; }
.werun-dual-range {
  padding: 12px 13px 11px;
  border-radius: 12px;
}
.werun-dual-range__head {
  margin-bottom: 10px;
}
.werun-dual-range__head strong { font-size: 10px; }
.werun-dual-range__head span { font-size: 9px; }
.werun-filter-panel__presets--range { margin-top: 8px; }
.werun-filter-panel__presets button,
.werun-filter-panel__date-presets button {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 9px;
}

.werun-date-range-picker {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
}
.werun-date-range-picker__toolbar {
  grid-template-columns: 30px 1fr 30px;
  margin-bottom: 9px;
}
.werun-date-range-picker__toolbar button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 19px;
}
.werun-date-range-picker__months { gap: 13px; }
.werun-calendar + .werun-calendar { padding-left: 13px; }
.werun-calendar h4 {
  margin-bottom: 7px;
  font-size: 10px;
}
.werun-calendar__day,
.werun-calendar__blank { min-height: 28px; }
.werun-calendar__day { font-size: 8px; }

.werun-filter-panel__actions {
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
}
.werun-filter-panel__clear {
  min-height: 32px;
  padding: 0 12px !important;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--werun-courses-blue);
  box-shadow: 0 7px 16px rgba(19,175,240,.17);
  font-size: 9px;
  font-weight: 760;
  transition: color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.werun-filter-panel__clear:hover,
.werun-filter-panel__clear:focus-visible {
  color: #fff;
  background: #0f99d6;
  box-shadow: 0 9px 20px rgba(19,175,240,.24);
  outline: none;
  transform: translateY(-1px);
}

.werun-courses-explorer__filter-reset {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(19,175,240,.2);
  border-radius: 999px;
  color: #087fae;
  background: rgba(19,175,240,.08);
  font-size: 9px;
  font-weight: 760;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.werun-courses-explorer__filter-reset:hover,
.werun-courses-explorer__filter-reset:focus-visible {
  border-color: var(--werun-courses-blue);
  color: #fff;
  background: var(--werun-courses-blue);
  outline: none;
}

.werun-courses-explorer__active-filters button {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.werun-courses-explorer__active-filters button:hover,
.werun-courses-explorer__active-filters button:focus-visible {
  border-color: var(--werun-courses-blue);
  color: #fff;
  background: var(--werun-courses-blue);
  outline: none;
}
.werun-courses-explorer__active-filters button:hover b,
.werun-courses-explorer__active-filters button:focus-visible b { color: #fff; }

html.werun-theme-dark .werun-filter-panel__clear,
html.werun-theme-dark .werun-courses-explorer__filter-reset:hover,
html.werun-theme-dark .werun-courses-explorer__filter-reset:focus-visible,
html.werun-theme-dark .werun-courses-explorer__active-filters button:hover,
html.werun-theme-dark .werun-courses-explorer__active-filters button:focus-visible {
  color: #fff;
}

@media (max-width: 760px) {
  .werun-filter-panel { padding: 13px; }
  .werun-filter-panel--discipline { padding: 13px; }
  .werun-sport-option {
    min-height: 42px;
    padding: 0 11px;
  }
  .werun-sport-option__label { font-size: 11px; }
  .werun-location-select__option { min-height: 34px; font-size: 10px; }
  .werun-calendar__day,
  .werun-calendar__blank { min-height: 34px; }
  .werun-calendar__day { font-size: 9px; }
}

/* 0.6.16 — targeted polish: compact geography lists and secondary actions. */
.werun-location-select__menu {
  min-width: 198px;
  max-height: 250px;
  padding: 6px;
  border-radius: 9px;
}
.werun-location-select__menu > input[type='search'] {
  min-height: 30px;
  margin-bottom: 4px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 8.25px;
}
.werun-location-select__menu > div { max-height: 185px; }
.werun-location-select__option {
  min-height: 25px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 7.75px;
  font-weight: 620;
  line-height: 1.18;
}
.werun-location-select__option.is-selected { font-weight: 740; }

.werun-filter-panel__actions--location {
  margin-top: 7px;
  padding-top: 7px;
}
.werun-filter-panel__actions--location .werun-filter-panel__clear {
  min-height: 27px;
  padding: 0 10px !important;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(19,175,240,.14);
  font-size: 8px;
  font-weight: 740;
}
.werun-filter-panel__actions--location .werun-filter-panel__clear:hover,
.werun-filter-panel__actions--location .werun-filter-panel__clear:focus-visible {
  box-shadow: 0 6px 13px rgba(19,175,240,.2);
  transform: none;
}

.werun-courses-explorer__filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(19,175,240,.38);
  border-radius: 9px;
  color: #087fae;
  background: rgba(19,175,240,.09);
  box-shadow: 0 5px 14px rgba(19,175,240,.10);
  font-size: 8.5px;
  font-weight: 760;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.werun-courses-explorer__filter-reset::before {
  content: '\21BB';
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.werun-courses-explorer__filter-reset:hover,
.werun-courses-explorer__filter-reset:focus-visible {
  border-color: var(--werun-courses-blue);
  color: #fff;
  background: var(--werun-courses-blue);
  box-shadow: 0 7px 18px rgba(19,175,240,.22);
  transform: translateY(-1px);
}
html.werun-theme-dark .werun-courses-explorer__filter-reset {
  color: #b7e8fa;
  border-color: rgba(72,185,228,.40);
  background: rgba(72,185,228,.12);
}
html.werun-theme-dark .werun-courses-explorer__filter-reset:hover,
html.werun-theme-dark .werun-courses-explorer__filter-reset:focus-visible {
  color: #fff;
  border-color: var(--werun-courses-blue);
  background: var(--werun-courses-blue);
}

@media (max-width: 760px) {
  .werun-location-select__option {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 8.25px;
  }
  .werun-filter-panel__actions--location .werun-filter-panel__clear,
  .werun-courses-explorer__filter-reset {
    min-height: 30px;
    font-size: 8.5px;
  }
}

/* 0.6.17 — force compact typography in custom geography dropdowns against theme button styles. */
.werun-courses-explorer .werun-filter-panel--location .werun-location-select__menu button.werun-location-select__option {
  min-height: 27px !important;
  padding: 4px 7px !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 620 !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.werun-courses-explorer .werun-filter-panel--location .werun-location-select__menu button.werun-location-select__option.is-selected {
  font-weight: 740 !important;
}
.werun-courses-explorer .werun-filter-panel--location .werun-location-select__menu > input[type='search'] {
  font-size: 10px !important;
  line-height: 1.2 !important;
}
@media (max-width: 760px) {
  .werun-courses-explorer .werun-filter-panel--location .werun-location-select__menu button.werun-location-select__option {
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

/* 0.6.19 — Contraste des boutons de fermeture des panneaux. */
.werun-courses-explorer .werun-filter-panel__head > button[data-werun-panel-close]:hover,
.werun-courses-explorer .werun-filter-panel__head > button[data-werun-panel-close]:focus-visible {
  color: #ffffff !important;
  background: var(--werun-courses-blue, #13aff0) !important;
}

/* 0.6.22 — harmonise les actions secondaires des panneaux et la réinitialisation globale. */
.werun-filter-panel__actions .werun-filter-panel__clear,
.werun-filter-panel__actions--location .werun-filter-panel__clear,
.werun-courses-explorer__filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px !important;
  border-radius: 9px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.werun-filter-panel__actions .werun-filter-panel__clear,
.werun-filter-panel__actions--location .werun-filter-panel__clear {
  border: 1px solid var(--werun-courses-blue);
  color: #fff;
  background: var(--werun-courses-blue);
  box-shadow: 0 5px 13px rgba(19,175,240,.16);
}
.werun-filter-panel__actions .werun-filter-panel__clear:hover,
.werun-filter-panel__actions .werun-filter-panel__clear:focus-visible,
.werun-filter-panel__actions--location .werun-filter-panel__clear:hover,
.werun-filter-panel__actions--location .werun-filter-panel__clear:focus-visible {
  border-color: #0f99d6;
  color: #fff;
  background: #0f99d6;
  box-shadow: 0 7px 17px rgba(19,175,240,.22);
  transform: translateY(-1px);
}

.werun-courses-explorer__filter-reset {
  gap: 6px;
  border: 1px solid rgba(19,175,240,.38);
  color: #087fae;
  background: rgba(19,175,240,.09);
  box-shadow: 0 5px 13px rgba(19,175,240,.10);
}
.werun-courses-explorer__filter-reset::before {
  font-size: 13px;
}
.werun-courses-explorer__filter-reset:hover,
.werun-courses-explorer__filter-reset:focus-visible {
  border-color: var(--werun-courses-blue);
  color: #fff;
  background: var(--werun-courses-blue);
  box-shadow: 0 7px 17px rgba(19,175,240,.22);
  transform: translateY(-1px);
}

html.werun-theme-dark .werun-filter-panel__actions .werun-filter-panel__clear,
html.werun-theme-dark .werun-filter-panel__actions--location .werun-filter-panel__clear {
  color: #fff;
  border-color: var(--werun-courses-blue);
  background: var(--werun-courses-blue);
}

@media (max-width: 760px) {
  .werun-filter-panel__actions .werun-filter-panel__clear,
  .werun-filter-panel__actions--location .werun-filter-panel__clear,
  .werun-courses-explorer__filter-reset {
    min-height: 34px;
    padding: 0 13px !important;
    font-size: 10px;
  }
}

/* 0.6.25 — harmonisation visuelle du haut de la page Courses avec les pages événement. */
.werun-courses-explorer {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: clip;
  background:
    radial-gradient(circle at 84% 2%, rgba(19,175,240,.085), transparent 29%),
    linear-gradient(180deg, rgba(239,249,253,.72) 0, rgba(247,252,254,.42) 185px, rgba(255,255,255,0) 410px);
}

.werun-courses-explorer__shell {
  width: min(1500px, calc(100% - 56px));
  padding-top: 14px;
  padding-bottom: 64px;
}

.werun-courses-explorer__header {
  align-items: center;
  margin-bottom: 10px;
}

.werun-courses-explorer__kicker {
  font-size: 9px;
  letter-spacing: .09em;
}

.werun-courses-explorer__header h1 {
  margin: 6px 0 4px;
  font-family: Oswald, sans-serif;
  font-size: clamp(40px, 3.6vw, 54px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.035em;
}

.werun-courses-explorer__header p {
  font-size: 13px;
  font-weight: 560;
  line-height: 1.38;
}

.werun-courses-explorer__count {
  min-height: 32px;
  padding: 0 12px;
  border-color: rgba(19,175,240,.18);
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 22px rgba(42,98,124,.045);
  font-size: 10.5px;
}

.werun-courses-explorer__filters {
  margin-bottom: 14px;
}

.werun-courses-explorer__filters-head {
  margin: 0 0 9px;
}

.werun-courses-explorer__filters-head strong {
  margin-bottom: 1px;
  font-size: 13px;
}

.werun-courses-explorer__filters-head span:not(.werun-courses-explorer__toolbar-badge) {
  font-size: 10.5px;
  line-height: 1.3;
}

.werun-courses-explorer__toolbar-badge {
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(19,175,240,.12);
  background: rgba(255,255,255,.72);
  box-shadow: 0 6px 18px rgba(42,98,124,.035);
}

@media (max-width: 1024px) {
  .werun-courses-explorer__shell {
    width: calc(100% - 34px);
    padding-top: 12px;
  }
}

@media (max-width: 760px) {
  .werun-courses-explorer__shell {
    width: calc(100% - 22px);
    padding-top: 12px;
    padding-bottom: 60px;
  }
  .werun-courses-explorer__header {
    gap: 10px;
    margin-bottom: 10px;
  }
  .werun-courses-explorer__header h1 {
    font-size: clamp(38px, 14vw, 50px);
  }
}

/* 0.6.26 — prolonger le fond Courses sous le header sans déplacer le contenu. */
.werun-courses-explorer {
  margin-top: -56px;
  padding-top: 56px;
}

@media (max-width: 1024px) {
  .werun-courses-explorer {
    margin-top: -40px;
    padding-top: 40px;
  }
}

@media (max-width: 760px) {
  .werun-courses-explorer {
    margin-top: -24px;
    padding-top: 24px;
  }
}


/* 0.6.27 — simplification éditoriale de l’en-tête Courses et accents de charte. */
.werun-courses-explorer__shell {
  padding-top: 6px;
}

.werun-courses-explorer__filters-head > div:first-child {
  display: flex;
  align-items: center;
  min-height: 27px;
}

.werun-courses-explorer__toolbar-badge {
  color: #434445;
  border-color: rgba(251,196,44,.62);
  background: rgba(251,196,44,.30);
  box-shadow: 0 6px 18px rgba(151,112,0,.07);
}

html.werun-theme-dark .werun-courses-explorer__toolbar-badge {
  color: #fff0b0;
  border-color: rgba(251,196,44,.38);
  background: rgba(251,196,44,.16);
}

@media (max-width: 1024px) {
  .werun-courses-explorer__shell {
    padding-top: 6px;
  }
}

@media (max-width: 760px) {
  .werun-courses-explorer__shell {
    padding-top: 8px;
  }
}


/* 0.6.29 — accès ciblé aux événements passés, sans modifier la barre de filtres. */
.werun-courses-explorer__temporal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(19,175,240,.22);
  border-radius: 999px;
  color: #0f7faa;
  background: rgba(19,175,240,.065);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.werun-courses-explorer__temporal-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.werun-courses-explorer__temporal-toggle:hover,
.werun-courses-explorer__temporal-toggle:focus-visible {
  color: #fff;
  border-color: #13aff0;
  background: #13aff0;
  outline: none;
  transform: translateY(-1px);
}
.werun-courses-explorer__temporal-toggle.is-past {
  color: #0f7faa;
  border-color: rgba(19,175,240,.22);
  background: rgba(19,175,240,.065);
}
.werun-courses-explorer__temporal-toggle.is-past:hover,
.werun-courses-explorer__temporal-toggle.is-past:focus-visible {
  color: #fff;
  border-color: #13aff0;
  background: #13aff0;
}
html.werun-theme-dark .werun-courses-explorer__temporal-toggle {
  color: #a9e3fb;
  border-color: rgba(19,175,240,.34);
  background: rgba(19,175,240,.12);
}
html.werun-theme-dark .werun-courses-explorer__temporal-toggle.is-past {
  color: #a9e3fb;
  border-color: rgba(19,175,240,.34);
  background: rgba(19,175,240,.12);
}
@media (max-width: 760px) {
  .werun-courses-explorer__filters-meta { gap: 6px; }
  .werun-courses-explorer__temporal-toggle { min-height: 26px; padding: 0 8px; font-size: 8.5px; }
}

/* 0.6.31 — contraste forcé du bouton de bascule temporelle au survol/focus. */
.werun-courses-explorer .werun-courses-explorer__temporal-toggle:hover,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle:focus-visible,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle.is-past:hover,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle.is-past:focus-visible {
  color: #fff !important;
}

.werun-courses-explorer .werun-courses-explorer__temporal-toggle:hover span,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle:focus-visible span,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle.is-past:hover span,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle.is-past:focus-visible span {
  color: #fff !important;
}

.werun-courses-explorer .werun-courses-explorer__temporal-toggle:hover svg,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle:focus-visible svg,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle.is-past:hover svg,
.werun-courses-explorer .werun-courses-explorer__temporal-toggle.is-past:focus-visible svg {
  color: #fff !important;
  stroke: #fff !important;
}

/* 0.6.34 — harmonisation typographique avec les pages événement WeRun. */
.werun-courses-explorer {
  font-family: Inter, Arial, sans-serif;
}

.werun-courses-explorer__header h1 {
  font-family: Raleway, sans-serif;
  font-size: clamp(40px, 3.45vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.034em;
}

.werun-courses-explorer__kicker,
.werun-courses-explorer__toolbar-badge,
.werun-course-card__badge,
.werun-course-card__label {
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .045em;
}

.werun-courses-explorer__header p,
.werun-courses-explorer__filters-head span,
.werun-course-card__meta,
.werun-course-card__summary,
.werun-filter-panel__head span {
  font-family: Inter, Arial, sans-serif;
}

.werun-courses-explorer__filters-head strong,
.werun-filter-panel__head strong,
.werun-dual-range__head strong,
.werun-calendar h4,
.werun-course-card h2 {
  font-family: Raleway, sans-serif;
  font-weight: 800;
  letter-spacing: -.018em;
}

.werun-course-card h2 {
  line-height: 1.22;
}

.werun-filterbar__trigger strong,
.werun-filterbar__search input,
.werun-sport-option__label,
.werun-location-select > button span,
.werun-location-select__option,
.werun-filter-panel__choices button,
.werun-filter-panel__date-presets button,
.werun-filter-panel__presets button,
.werun-courses-explorer__temporal-toggle,
.werun-courses-explorer__reset,
.werun-filter-panel__clear,
.werun-course-card__button {
  font-family: Inter, Arial, sans-serif;
}

.werun-courses-explorer__toolbar-badge,
.werun-course-card__badge {
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .werun-courses-explorer__header h1 {
    font-size: clamp(38px, 13vw, 50px);
  }
}

/* 0.6.35 — alignement des couleurs typographiques sur la base visuelle des pages événement. */
.werun-courses-explorer {
  --werun-courses-text: #434445;
  --werun-courses-ink: #434445;
}

.werun-courses-explorer__header h1,
.werun-courses-explorer__filters-head strong,
.werun-filter-panel__head strong,
.werun-dual-range__head strong,
.werun-calendar h4,
.werun-course-card h2 {
  color: var(--werun-courses-ink);
}


/* 0.6.36 — conserve la pill compteur en casse normale. */
.werun-courses-explorer .werun-courses-explorer__toolbar-badge {
  text-transform: none;
}


/* 0.6.38 — correctif mobile robuste : panneaux au-dessus du voile et continuité du fond. */
@media (max-width: 760px) {
  html.werun-courses-mobile-panel-open,
  body.werun-courses-mobile-panel-open {
    overflow: hidden !important;
  }

  .werun-courses-explorer {
    margin-top: -48px;
    padding-top: 48px;
    overflow: visible !important;
  }

  .werun-courses-explorer.is-mobile-panel-open::before {
    content: '';
    position: fixed;
    z-index: 99990;
    inset: 0;
    background: rgba(15, 34, 44, .34);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .werun-courses-explorer__filters.is-mobile-panel-open {
    position: relative;
    z-index: 99991 !important;
    overflow: visible !important;
  }

  .werun-courses-explorer .werun-filter-panel {
    position: fixed !important;
    z-index: 99992 !important;
    top: auto !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 18px;
  }

  .werun-courses-explorer .werun-filter-panel[hidden] {
    display: none !important;
  }

  .werun-courses-explorer .werun-filter-panel:not([hidden]) {
    display: block !important;
  }

  .werun-courses-explorer .werun-filter-panel__head > button {
    min-width: 34px;
    min-height: 34px;
    touch-action: manipulation;
  }

  .werun-courses-explorer .werun-filterbar__trigger,
  .werun-courses-explorer .werun-filter-panel button,
  .werun-courses-explorer .werun-filter-panel input {
    touch-action: manipulation;
  }
}

/* 0.6.39 — finition ciblée du mode sombre : en-tête et barre de recherche. */
html.werun-theme-dark .werun-courses-explorer {
  --werun-courses-text: #edf4f7;
  --werun-courses-muted: #b9cbd3;
  --werun-courses-ink: #edf4f7;
  background: var(--werun-page-bg, #0d151a) !important;
}

html.werun-theme-dark .werun-courses-explorer__kicker {
  color: #5bc2eb;
}

html.werun-theme-dark .werun-courses-explorer__header h1 {
  color: #edf4f7;
}

html.werun-theme-dark .werun-courses-explorer__header p,
html.werun-theme-dark .werun-courses-explorer__filters-head span:not(.werun-courses-explorer__toolbar-badge) {
  color: #b9cbd3;
}

html.werun-theme-dark .werun-courses-explorer__filters {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.werun-theme-dark .werun-courses-explorer__filters-head strong {
  color: #eaf3f6;
}

html.werun-theme-dark .werun-filterbar {
  border-color: rgba(91,194,235,.22);
  background: rgba(18,38,47,.96);
  box-shadow: 0 18px 46px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
}

html.werun-theme-dark .werun-filterbar__segment::before {
  background: rgba(132,191,214,.13);
}

html.werun-theme-dark .werun-filterbar__trigger {
  color: #dbe8ed;
}

html.werun-theme-dark .werun-filterbar__trigger:hover,
html.werun-theme-dark .werun-filterbar__segment.is-open .werun-filterbar__trigger {
  color: #fff;
  background: rgba(19,175,240,.11);
}

html.werun-theme-dark .werun-filterbar__chevron,
html.werun-theme-dark .werun-filterbar__search > svg {
  color: #85a8b7;
}

html.werun-theme-dark .werun-filterbar__search {
  background: rgba(5,18,24,.24);
}

html.werun-theme-dark .werun-filterbar__search input[type='search'] {
  color: #edf6f9 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.werun-theme-dark .werun-filterbar__search input[type='search']::placeholder {
  color: #8fa7b1;
}

html.werun-theme-dark .werun-courses-explorer__temporal-toggle,
html.werun-theme-dark .werun-courses-explorer__temporal-toggle.is-past {
  color: #b7e7f9;
  border-color: rgba(91,194,235,.32);
  background: rgba(19,175,240,.11);
}

html.werun-theme-dark .werun-courses-explorer__toolbar-badge {
  color: #ffe69a;
  border-color: rgba(251,196,44,.38);
  background: rgba(251,196,44,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

@media (max-width: 760px) {
  html.werun-theme-dark .werun-filterbar__search {
    border-bottom-color: rgba(132,191,214,.13);
  }
}

/* Mode intégré des shortcodes Courses et Carte. */
.werun-courses-explorer--embed {
  left: auto;
  width: 100%;
  margin-left: 0;
  background: transparent;
}

.werun-courses-explorer--embed .werun-courses-explorer__shell {
  padding-top: 0;
  padding-bottom: 24px;
}

/* Les styles de liens d’un article ne doivent pas recolorer les CTA des cartes. */
.werun-courses-explorer--embed .werun-course-card__button,
.werun-courses-explorer--embed .werun-course-card__button:visited,
.werun-courses-explorer--embed .werun-course-card__button:hover,
.werun-courses-explorer--embed .werun-course-card__button:focus-visible {
  color: #ffffff !important;
}

.werun-courses-explorer__embed-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.werun-courses-explorer__explore-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(19, 175, 240, 0.24);
  border-radius: 999px;
  color: var(--werun-courses-blue-dark);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(47, 97, 120, 0.07);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.werun-courses-explorer__explore-link:hover,
.werun-courses-explorer__explore-link:focus-visible {
  border-color: rgba(19, 175, 240, 0.42);
  color: var(--werun-courses-blue-dark);
  background: rgba(234, 248, 255, 0.98);
  transform: translateY(-1px);
}

html.werun-theme-dark .werun-courses-explorer__explore-link {
  color: #b9eaff;
  background: rgba(22, 36, 45, 0.9);
  border-color: rgba(96, 204, 250, 0.22);
}

@media (max-width: 767px) {
  .werun-courses-explorer--embed .werun-courses-explorer__shell {
    padding-bottom: 18px;
  }

  .werun-courses-explorer__embed-cta {
    justify-content: center;
  }
}

/* ==========================================================
   Mode carrousel accueil
   ========================================================== */
.werun-courses-explorer--carousel {
  background: transparent;
}

.werun-courses-explorer--carousel .werun-courses-explorer__shell {
  width: min(1500px, calc(100% - 56px));
  padding-top: 8px;
  padding-bottom: 28px;
}

.werun-courses-carousel__header {
  margin: 0 0 18px;
  text-align: center;
}

.werun-courses-carousel__header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--werun-courses-blue-dark);
  font-family: Raleway, sans-serif;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.werun-courses-carousel__header h2::before,
.werun-courses-carousel__header h2::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: rgba(19,175,240,.72);
}

.werun-courses-carousel {
  position: relative;
}

.werun-courses-carousel__viewport {
  width: 100%;
  overflow: hidden;
}

.werun-courses-explorer--carousel .werun-courses-carousel__track {
  --werun-carousel-visible: 6;
  display: flex;
  gap: 12px;
  width: 100%;
  opacity: 1;
  transform: translate3d(0,0,0);
  transition: transform .36s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.werun-courses-explorer--carousel .werun-course-card {
  flex: 0 0 calc((100% - (var(--werun-carousel-visible) - 1) * 12px) / var(--werun-carousel-visible));
  min-width: 0;
}

.werun-courses-explorer--carousel .werun-course-card__media {
  aspect-ratio: 1 / 1;
}

.werun-courses-explorer--carousel .werun-courses-explorer__embed-cta {
  margin-top: -6px;
}

.werun-courses-explorer--carousel .werun-course-card__body {
  padding: 9px 9px 10px;
}

.werun-courses-explorer--carousel .werun-course-card__badges {
  min-height: 16px;
  margin-bottom: 6px;
  overflow: hidden;
}

.werun-courses-explorer--carousel .werun-course-card__badge:nth-child(n+3) {
  display: none;
}

.werun-courses-explorer--carousel .werun-course-card h2 {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.werun-courses-explorer--carousel .werun-course-card__meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.werun-courses-explorer--carousel .werun-course-card__summary,
.werun-courses-explorer--carousel .werun-course-card__actions {
  display: none;
}

.werun-courses-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 1px solid rgba(19,175,240,.24);
  border-radius: 50%;
  color: var(--werun-courses-blue-dark);
  background: rgba(255,255,255,.94);
  box-shadow: 0 9px 24px rgba(47,97,120,.12);
  cursor: pointer;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.werun-courses-carousel__arrow--prev { left: -17px; }
.werun-courses-carousel__arrow--next { right: -17px; }

.werun-courses-carousel__arrow:hover,
.werun-courses-carousel__arrow:focus-visible {
  background: #fff;
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.werun-courses-carousel__arrow:disabled {
  opacity: .28;
  cursor: default;
  transform: translateY(-50%);
}

.werun-courses-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 8px;
  margin-top: 6px;
}

.werun-courses-carousel__dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(19,175,240,.24);
  cursor: pointer;
  transition: width .18s ease, background-color .18s ease;
}

.werun-courses-carousel__dots button.is-active {
  width: 18px;
  background: var(--werun-courses-blue);
}

html.werun-theme-dark .werun-courses-carousel__header h2 { color: #79d2f3; }
html.werun-theme-dark .werun-courses-carousel__arrow {
  color: #9adff7;
  border-color: rgba(91,194,235,.24);
  background: rgba(21,37,46,.94);
  box-shadow: 0 9px 24px rgba(0,0,0,.24);
}
html.werun-theme-dark .werun-courses-carousel__dots button { background: rgba(91,194,235,.25); }
html.werun-theme-dark .werun-courses-carousel__dots button.is-active { background: #5bc2eb; }

@media (max-width: 1080px) {
  .werun-courses-explorer--carousel .werun-courses-explorer__shell {
    width: calc(100% - 34px);
  }
}

@media (max-width: 720px) {
  .werun-courses-explorer--carousel .werun-courses-explorer__shell {
    width: calc(100% - 22px);
    padding-bottom: 20px;
  }

  .werun-courses-carousel__header { margin-bottom: 14px; }
  .werun-courses-carousel__header h2 { font-size: 16px; }
  .werun-courses-carousel__header h2::before,
  .werun-courses-carousel__header h2::after { width: 18px; }
  .werun-courses-carousel__arrow { width: 30px; height: 30px; font-size: 21px; }
  .werun-courses-carousel__arrow--prev { left: -8px; }
  .werun-courses-carousel__arrow--next { right: -8px; }
  .werun-courses-explorer--carousel .werun-course-card__media { aspect-ratio: 1 / 1; }
  .werun-courses-explorer--carousel .werun-courses-explorer__embed-cta { justify-content: flex-end; }
}

/* 0.7.55 — empêcher les modes intégrés de remonter sur le contenu précédent. */
.werun-courses-explorer--embed,
.werun-courses-explorer--carousel {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html.werun-theme-dark .werun-courses-explorer--embed,
html.werun-theme-dark .werun-courses-explorer--carousel {
  background: transparent !important;
}
