/* ============================================================
   Event signup wizard — templates/event/register.html.twig, in
   the « Nuages » design (layout.clouds, quiet sky): one step on
   the screen at a time, like an app, on a phone as on a computer
   (Kurukha, 2026-11-28). Choices are soft cards outlined in the
   emblem's blue once chosen; the one button that moves on is the
   gold pill of every clouds page. Notes are plain lines, not boxes.
   Conditional parts show through :has() on the form's own inputs,
   so they work without JavaScript; assets/event-signup.js adds the
   steps, the prices and the cost bar.
   Also read by the registration's page and the account's profile
   (.sdl-ev-check, .sdl-ev-details, .sdl-ev-summary, .sdl-ev-policy).
   ============================================================ */

.sdl-ev {
  --ev-card: var(--sdl-clouds-card, #f4f7fa);
  --ev-edge: #d3dce4;
  --ev-line: #dfe6ec;
  --ev-blue: var(--sdl-clouds-link, #1d3f95);
  --ev-blue-soft: #e6f1fb;
  --ev-text: var(--sdl-clouds-text, #3c4246);
  --ev-muted: var(--sdl-clouds-muted, #5d6469);
  --ev-gold: var(--sdl-clouds-gold, #f6d27a);
  --ev-gold-edge: var(--sdl-clouds-gold-edge, #e3b44c);
  --ev-gold-deep: var(--sdl-clouds-gold-deep, #efc35a);
  --ev-danger: var(--sdl-danger, #8f3a2f);
  width: 100%; max-width: 620px; margin: 0 auto;
}
.sdl-clouds__body.sdl-ev-body { gap: 0; }
.sdl-ev-sky .sdl-clouds__title { margin-top: 14px; }
.sdl-ev-form { display: grid; gap: 28px; }
/* A form left half-filled, offered back: a soft card, not an alert. */
.sdl-ev .sdl-flash.sdl-ev-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 22px; padding: 14px 16px;
  border: 0; border-radius: 18px; background: var(--ev-blue-soft); color: var(--ev-text); font-size: 14.5px; }
.sdl-ev .sdl-flash.sdl-ev-draft[hidden] { display: none; }
.sdl-ev-draft > .bi { color: var(--ev-blue); }
.sdl-ev-draft > span:not(.sdl-ev-draft__actions) { flex: 1 1 200px; }
.sdl-ev-draft__actions { display: flex; gap: 8px; margin-left: auto; }
.sdl-ev > .sdl-flash, .sdl-ev > .sdl-ev-note { margin-bottom: 18px; }

/* ---- Steps ---- */
/* Without JavaScript every step shows, each in its card with its number and title. */
.sdl-ev-step { min-width: 0; padding: clamp(20px, 4vw, 32px); border-radius: 24px; background: var(--ev-card);
  scroll-margin-top: 96px; }
.sdl-ev-step__count { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ev-blue); }
.sdl-ev-step__title { margin: 0 0 22px; font-family: var(--sdl-serif); font-weight: 400; font-size: 26px; line-height: 1.2; text-wrap: balance; }
.sdl-ev-lead { margin: 0 0 22px; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--ev-muted); }

.sdl-ev-group { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
.sdl-ev-group:last-child { margin-bottom: 0; }
legend.sdl-ev-label, .sdl-ev-label { float: none; display: block; width: auto; margin: 0 0 12px; padding: 0;
  font-family: var(--sdl-sans); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--sdl-ink); }

/* Radios stay real inputs, hidden behind their labels but still focusable. */
.sdl-ev-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* ---- Option cards (tiers, accommodations, meal formulas) ---- */
.sdl-ev-opts { display: grid; gap: 10px; }
.sdl-ev-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.sdl-ev-opt:has(.sdl-ev-input:disabled) { cursor: not-allowed; }
.sdl-ev-opt__body { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px;
  border: 2px solid transparent; border-radius: 18px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.sdl-ev-opt:hover .sdl-ev-opt__body { border-color: var(--ev-edge); }
.sdl-ev-input:checked + .sdl-ev-opt__body { border-color: var(--ev-blue); box-shadow: 0 4px 14px rgba(29, 63, 149, .10); }
.sdl-ev-input:focus-visible + .sdl-ev-opt__body { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
.sdl-ev-input:disabled + .sdl-ev-opt__body { opacity: .5; border-color: transparent; }
.sdl-ev-opt__check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border: 2px solid var(--ev-edge); border-radius: 50%; color: transparent; font-size: 13px; }
.sdl-ev-input:checked + .sdl-ev-opt__body .sdl-ev-opt__check { border-color: var(--ev-blue); background: var(--ev-blue); color: #fff; }
.sdl-ev-opt__main { flex: 1; min-width: 0; }
.sdl-ev-opt__name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.sdl-ev-opt__sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ev-muted); }
.sdl-ev-opt__price { flex: none; text-align: right; font-family: var(--sdl-serif); font-size: 21px; line-height: 1.1;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.sdl-ev-opt__price small { display: block; margin-top: 3px; font-family: var(--sdl-sans); font-size: 12px; color: var(--ev-muted); }

/* ---- Day chips ---- */
.sdl-ev-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.sdl-ev-chip { position: relative; display: flex; margin: 0; cursor: pointer; }
.sdl-ev-chip__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 74px; padding: 8px 4px; border: 2px solid transparent; border-radius: 16px; background: #fff;
  line-height: 1.15; text-align: center; transition: background .12s, border-color .12s; }
.sdl-ev-chip:hover .sdl-ev-chip__body { border-color: var(--ev-edge); }
.sdl-ev-chip__body small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-muted); }
.sdl-ev-chip__body b { font-family: var(--sdl-serif); font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; }
.sdl-ev-chip__body em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ev-blue); }
.sdl-ev-input:checked + .sdl-ev-chip__body { border-color: var(--ev-blue); background: var(--ev-blue); color: #fff; }
.sdl-ev-input:checked + .sdl-ev-chip__body small,
.sdl-ev-input:checked + .sdl-ev-chip__body em { color: rgba(255, 255, 255, .82); }
.sdl-ev-input:focus-visible + .sdl-ev-chip__body { outline: 2px solid var(--ev-blue); outline-offset: 2px; }

/* ---- Segmented choices ---- */
.sdl-ev-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.sdl-ev-seg__item { position: relative; flex: 1 1 0; min-width: 130px; margin: 0; cursor: pointer; }
.sdl-ev-seg__item > span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 8px 14px;
  border: 2px solid transparent; border-radius: 16px; background: #fff; font-size: 15px; font-weight: 600; text-align: center;
  transition: background .12s, border-color .12s; }
.sdl-ev-seg__item:hover > span { border-color: var(--ev-edge); }
.sdl-ev-seg__item > .sdl-ev-input:checked + span { border-color: var(--ev-blue); background: var(--ev-blue); color: #fff; }
.sdl-ev-seg__item > .sdl-ev-input:focus-visible + span { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
.sdl-ev-seg__item > .sdl-ev-input:disabled + span { opacity: .5; }

/* ---- Notes and errors ---- */
/* A note is a plain line under its question: no box, no border (Kurukha, 2026-11-28: less noise). */
.sdl-ev-note { max-width: 62ch; margin: 10px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--ev-muted); }
.sdl-ev-note--warn { padding: 10px 14px; border-radius: 14px; background: #fff4d6; color: #6b4a00; }
.sdl-ev-note--danger { padding: 10px 14px; border-radius: 14px; background: #fbeeeb; color: var(--ev-danger); font-weight: 600; }
/* An answer the server refused stands out: its message, and the question it is
   about, framed in red until the answer changes (assets/event-signup.js takes the
   mark away then). Kurukha, 2026-11-26: the page went to the error without showing it. */
.sdl-ev-errors ul, .sdl-ev .sdl-field > ul { list-style: none; position: relative; margin: 0 0 12px; padding: 10px 14px 10px 40px;
  border-radius: 14px; background: #fbeeeb; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ev-danger); }
.sdl-ev-errors ul::before, .sdl-ev .sdl-field > ul::before { content: "!"; position: absolute; left: 12px; top: 11px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--ev-danger); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.sdl-ev-group:has(> .sdl-ev-errors), .sdl-ev .sdl-field:has(> ul, > .sdl-ev-errors) {
  padding: 14px; border-radius: 18px; background: #fdf6f4; box-shadow: inset 0 0 0 2px var(--ev-danger); }
.sdl-ev .sdl-field:has(> ul) :is(input, select, textarea) { border-color: var(--ev-danger); }
.sdl-ev-refused { animation: sdl-ev-refused 1.2s ease-out 2; }
@keyframes sdl-ev-refused {
  from { box-shadow: inset 0 0 0 2px var(--ev-danger), 0 0 0 0 rgba(143, 58, 47, .4); }
  to { box-shadow: inset 0 0 0 2px var(--ev-danger), 0 0 0 12px rgba(143, 58, 47, 0); }
}
@media (prefers-reduced-motion: reduce) { .sdl-ev-refused { animation: none; } }
.sdl-ev-form > ul { list-style: none; margin: 0; padding: 12px 16px; border-radius: 14px; background: #fbeeeb;
  color: var(--ev-danger); font-size: 14px; font-weight: 600; }

/* ---- Details ---- */
.sdl-ev-account { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 14px 18px;
  border-radius: 18px; background: var(--ev-blue-soft); color: var(--ev-text); font-size: 14px; }
.sdl-ev-account strong { display: block; font-size: 16px; color: var(--sdl-ink); }
.sdl-ev-account .bi { color: var(--ev-blue); }
.sdl-ev-account__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--ev-blue); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.sdl-ev-recall { margin: 0 0 24px; font-size: 14px; color: var(--ev-muted); }
.sdl-ev-recall a { color: var(--ev-blue); font-weight: 600; }
.sdl-ev-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 14px; }
.sdl-ev .sdl-field { margin-bottom: 20px; }
.sdl-ev .sdl-field > label { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.sdl-ev .sdl-field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 52px; border: 1px solid var(--ev-edge); border-radius: 14px; background: #fff; }
.sdl-ev .sdl-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 1px; }
.sdl-ev .sdl-field textarea { min-height: 80px; }
.sdl-ev .sdl-field select, .sdl-ev-profile .sdl-field select { appearance: auto; }
.sdl-ev .sdl-help { margin: 6px 2px 0; font-size: 13px; color: var(--ev-muted); }
.sdl-ev .sdl-form-notice { margin: 16px 2px 0; font-size: 13px; line-height: 1.55; color: var(--ev-muted) !important; }
.sdl-ev .sdl-form-notice a { color: var(--ev-blue); font-weight: 600; }

/* A box to tick: a soft card, outlined in blue once ticked. Also on the
   registration's page and in the account's profile. */
.sdl-ev-check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; padding: 14px 16px;
  border: 2px solid transparent; border-radius: 16px; background: #fff; cursor: pointer;
  font-size: 14.5px; line-height: 1.45; }
.sdl-ev-check:hover { border-color: var(--ev-edge, #d3dce4); }
.sdl-ev-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ev-blue, #1d3f95); }
.sdl-ev-check:has(input:checked) { border-color: var(--ev-blue, #1d3f95); }
.sdl-ev-check:has(input:focus-visible) { outline: 2px solid var(--ev-blue, #1d3f95); outline-offset: 2px; }

/* ---- Summary ---- */
.sdl-ev-summary { margin-bottom: 22px; padding: 6px 20px; border-radius: 20px; background: #fff; }
.sdl-ev-summary__fallback { margin: 0; padding: 14px 0; color: var(--ev-muted); font-size: 14px; }
.sdl-ev-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--ev-line); font-size: 15px; }
.sdl-ev-summary__row:last-child { border-bottom: 0; }
.sdl-ev-summary__key { min-width: 0; }
.sdl-ev-summary__who { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); }
.sdl-ev-summary__val { flex: none; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sdl-ev-summary__row--detail { padding-top: 0; margin-top: -4px; font-size: 13px; color: var(--ev-muted); }
.sdl-ev-summary__row--total { font-weight: 600; }
.sdl-ev-summary__row--total .sdl-ev-summary__val { font-family: var(--sdl-serif); font-size: 28px; font-weight: 400; }
.sdl-ev-summary__row--deposit .sdl-ev-summary__val { color: var(--ev-blue); font-weight: 700; }
.sdl-ev-policy { margin-bottom: 22px; padding: 16px 18px; border-radius: 18px; background: #fff;
  font-size: 14px; line-height: 1.55; color: var(--ev-text); }
.sdl-ev-policy__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--sdl-ink); }
.sdl-ev-policy__confirms { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--sdl-ink); }
/* Until when a cancellation gets the deposit back: dated, hard to miss (Kurukha, 2026-11-26). */
.sdl-ev-policy__refund { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px;
  font-size: 14px; font-weight: 700; color: var(--ev-danger); }
.sdl-ev-policy__refund .bi { flex: none; margin-top: 2px; }
.sdl-ev-policy__refund:last-child { margin-bottom: 0; }
.sdl-ev-policy p:last-child { margin-bottom: 0; }
.sdl-ev-submit-note { margin: 12px 0 0; font-size: 13.5px; text-align: center; color: var(--ev-muted); }
.sdl-ev .sdl-btn--block { min-height: 54px; font-size: 16px; font-weight: 700; }

/* ---- Registration summary: details ---- */
.sdl-ev-details { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.sdl-ev-details dt { font-weight: 500; color: var(--ev-muted, #5d6469); }
.sdl-ev-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .sdl-ev-details { grid-template-columns: 1fr; gap: 2px; } .sdl-ev-details dd { margin-bottom: 8px; } }

/* ---- The bar at the bottom: the one button that moves on, like an app's ----
   No running total (Kurukha, 2026-11-29): before the summary nothing is chosen yet. */
.sdl-ev-nextbar { position: sticky; bottom: 0; z-index: 20;
  margin: 0 calc(-1 * var(--sdl-clouds-pad, 20px)); padding: 12px var(--sdl-clouds-pad, 20px) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ev-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
.sdl-ev-nextbar__next { min-height: 52px; font-size: 16px; font-weight: 700; }

/* ---- Progress header: where one is, and the way back ---- */
.sdl-ev-progress { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 44px 1fr; align-items: center;
  column-gap: 8px; margin: 0 calc(-1 * var(--sdl-clouds-pad, 20px)); padding: 10px var(--sdl-clouds-pad, 20px) 14px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
.sdl-ev-progress__back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--ev-card); color: var(--sdl-ink); font-size: 18px; }
.sdl-ev-progress__back:hover { background: #e7edf2; }
.sdl-ev-progress__back:disabled { visibility: hidden; }
.sdl-ev-progress__back:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
.sdl-ev-progress__count { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-blue); }
.sdl-ev-progress__title { display: block; font-family: var(--sdl-serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.sdl-ev-progress__dots { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 12px; }
.sdl-ev-progress__dots span { flex: 1; height: 4px; border-radius: 2px; background: #e4e9ee; }
.sdl-ev-progress__dots span.is-on { background: var(--ev-blue); }

/* ---- One step at a time (assets/event-signup.js) ---- */
.sdl-ev-form.is-stepper { gap: 18px; }
.sdl-ev-form.is-stepper .sdl-ev-step:not(.is-current) { display: none; }
.sdl-ev-form.is-stepper .sdl-ev-step__count,
.sdl-ev-form.is-stepper .sdl-ev-step__title { display: none; }
/* A question that only says the step's title again, already in the header. */
.sdl-ev-form.is-stepper .sdl-ev-label--echo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: no-preference) {
  .sdl-ev-form.is-stepper .sdl-ev-step.is-current { animation: sdl-ev-in .22s ease-out; }
}
@keyframes sdl-ev-in { from { opacity: .4; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ---- Conditional parts, driven by the inputs ---- */
.sdl-ev-form:has([name="event_signup[stay]"][value="elsewhere"]:checked) [data-ev-show="onsite"],
.sdl-ev-form:has([name="event_signup[stay]"][value="onsite"]:checked) [data-ev-show="elsewhere"],
.sdl-ev-form:not(:has([name="event_signup[transport]"][value="train"]:checked)) [data-ev-show="train"],
.sdl-ev-form:not(:has([name="event_signup[roomSharing]"][value="together"]:checked)) [data-ev-show="partner"],
.sdl-ev-form:has([name="event_signup[roomSharing]"][value="together"]:checked) [data-ev-show="alone"],
.sdl-ev-form:not(:has([data-ev-shared] .sdl-ev-input:checked)) [data-ev-show="sharing"] { display: none; }

/* ---- Phone ---- */
@media (max-width: 699.98px) {
  /* The sky says only where one is: the steps come up on the first screen. */
  .sdl-clouds__sky--quiet .sdl-clouds__top.sdl-ev-sky { padding-block: 16px 22px; }
  .sdl-ev-sky .sdl-clouds__title { margin-top: 10px; font-size: 30px; }
  .sdl-ev-sky .sdl-clouds__dates { margin-top: 6px; font-size: 14px; }
  .sdl-ev-step { padding: 18px 14px; border-radius: 20px; }
  .sdl-ev-opt__body { gap: 12px; padding: 13px 14px; }
  .sdl-ev-progress__title { font-size: 22px; }
}

/* ---- The event's page: what registering takes, then the one button ---- */
.sdl-ev-gate { margin: 0; padding: clamp(22px, 4vw, 34px); border-radius: 24px; background: var(--ev-card); }
.sdl-ev-gate__title { margin: 0 0 20px; font-family: var(--sdl-serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.sdl-ev-gate__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sdl-ev-gate__row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; }
.sdl-ev-gate__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--ev-card); color: var(--ev-muted); font-size: 17px; }
.sdl-ev-gate__row.is-done .sdl-ev-gate__icon { background: var(--ev-blue); color: #fff; }
.sdl-ev-gate__row.is-due .sdl-ev-gate__icon { background: #fbeeeb; color: var(--ev-danger); }
.sdl-ev-gate__row > div { min-width: 0; align-self: center; }
.sdl-ev-gate__name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.sdl-ev-gate__text { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ev-muted); }
.sdl-ev-gate__text--small { margin-top: 8px; font-size: 13px; }
.sdl-ev-gate__text a, .sdl-ev-gate__note a { color: var(--ev-blue); font-weight: 600; }
.sdl-ev-gate__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sdl-ev-gate__refund { margin-top: 6px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ev-danger); }
.sdl-ev-gate__go { margin: 22px 0 0; }
.sdl-ev-gate__go .sdl-btn--block { min-height: 54px; font-size: 16px; font-weight: 700; }
.sdl-ev-gate__note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; text-align: center; color: var(--ev-muted); }
p.sdl-ev-gate.sdl-ev-gate__note { text-align: left; font-size: 15px; color: var(--ev-text); }

/* ---- A registration's own page: its state, the amounts, the details ---- */
.sdl-ev--page { display: grid; gap: 18px; }
.sdl-ev--page > .sdl-ev-step.mt-3 { margin-top: 0 !important; }
/* A message about the registration: a soft card in its colour, not an alert box. */
.sdl-ev .sdl-flash { display: flex; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 14px 18px;
  border: 0; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.sdl-ev .sdl-flash > .bi { flex: none; margin-top: 1px; font-size: 18px; }
.sdl-ev .sdl-flash--success { background: #e7f3ec; color: #1f5b3a; }
.sdl-ev .sdl-flash--warning { background: #fff4d6; color: #6b4a00; }
.sdl-ev .sdl-flash--danger { background: #fbeeeb; color: var(--ev-danger); }
.sdl-ev--page .sdl-ev-step__title { margin-bottom: 16px; }
.sdl-ev--page .sdl-ev-details { padding: 16px 20px; border-radius: 18px; background: #fff; font-size: 15px; }
.sdl-ev--page form[data-ev-pay] .sdl-btn--block + .sdl-btn--block { margin-top: 10px; }
.sdl-ev--page .text-center a { color: var(--ev-blue); font-weight: 600; }

/* ---- Back from PayPal: a check, one sentence, the way on ---- */
.sdl-ev-done { padding: clamp(26px, 5vw, 40px); border-radius: 24px; background: var(--ev-card); text-align: center; }
.sdl-ev-done__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ev-blue); color: #fff; font-size: 30px; }
.sdl-ev-done__icon--refund { background: var(--ev-blue-soft); color: var(--ev-blue); }
.sdl-ev-done__icon--warn { background: #fff4d6; color: #6b4a00; }
.sdl-ev-done__title { margin: 0 0 14px; font-family: var(--sdl-serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.sdl-ev-done p { max-width: 46ch; margin: 0 auto 14px; font-size: 16px; line-height: 1.6; color: var(--ev-text); }
.sdl-ev-done .sdl-ev-done__note { font-size: 14px; color: var(--ev-muted); }
.sdl-ev-done .sdl-flash { margin: 0 0 14px !important; text-align: left; }
.sdl-ev-done .sdl-btn--block, .sdl-ev-done__go .sdl-btn--block { min-height: 52px; margin-top: 8px; font-size: 16px; font-weight: 700; }
.sdl-ev-done__go { display: grid; gap: 4px; margin-top: 18px; }

/* ---- The stay on its calendar: the summary of the form, and the registration's page ----
   The same dots as the office's page of a registration (templates/event/_stay_days.html.twig,
   stay-calendar.css), each priced row ending with what it counts, comes to and is owed to
   (Kurukha, 2026-11-28). Too narrow for that, the prices go under the calendar, in a list. */
.sdl-ev-summary { container-type: inline-size; }
.sdl-ev-facts { display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 0; padding: 14px 0; border-bottom: 1px solid var(--ev-line); }
.sdl-ev-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); }
.sdl-ev-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.sdl-ev-facts > div { min-width: 0; }
.sdl-ev-summary .stay-days { padding: 14px 0 12px; }
.sdl-ev .stay-days__grid { font-size: 14px; border-spacing: 3px; }
.sdl-ev .stay-days__grid td { width: 2.1em; height: 1.7em; }
.sdl-ev .stay-days__grid th[scope="row"] { padding-right: 8px; }
/* The dots of the two ends of the stay, which a touch adds or takes off (Kurukha,
   2026-11-29): the whole cell is the button; an addable one wears a dashed ring, so
   the start and the end of the stay show where it can grow. */
.sdl-ev .stay-days__toggle { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 28px;
  margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sdl-ev .stay-days__toggle .stay-days__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c); transition: transform .12s ease, box-shadow .12s ease; }
.sdl-ev .stay-days__toggle.is-addable .stay-days__dot { background: #fff; box-shadow: none; outline: 1.5px dashed var(--c); outline-offset: 1px; }
.sdl-ev .stay-days__toggle:hover .stay-days__dot { transform: scale(1.18); }
.sdl-ev .stay-days__toggle:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 1px; }
.sdl-ev .stay-days__hint { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ev-muted); }
@media (prefers-reduced-motion: reduce) { .sdl-ev .stay-days__toggle .stay-days__dot { transition: none; } }
.sdl-ev .stay-days__grid td.stay-days__price { padding-left: 12px; font-size: 13.5px; }
.sdl-ev .stay-days__grid td.stay-days__sum { padding-left: 10px; font-size: 15px; font-weight: 600; }
.sdl-ev .stay-days__grid td.stay-days__sum .sdl-ev-summary__who { margin-top: 2px; font-weight: 700; }
.sdl-ev-ends { display: flex; gap: 8px; align-items: baseline; margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--ev-muted); }
.sdl-ev-priced { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; margin: 0; padding: 2px 0 14px; }
.sdl-ev-priced dt { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font-weight: 600; }
.sdl-ev-priced dt small { display: block; font-size: 13px; font-weight: 400; color: var(--ev-muted); }
.sdl-ev-priced dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sdl-ev-summary__totals { border-top: 1px solid var(--ev-line); }
@container (max-width: 499.98px) { .sdl-ev-summary .stay-days__wide { display: none; } }
@container (min-width: 500px) { .sdl-ev-summary .stay-days__narrow { display: none; } }

/* ---- An event's head on the sky: the title, then one line per thing the event is ----
   (Kurukha, 2026-11-28: after a date tile and two calendar leaves, « remets le mode texte,
   mais rajoute des infos »): the days, the teacher, the place, a registration's reference. */
.sdl-ev-sky .sdl-ev-head { margin-top: 14px; }
.sdl-ev-head .sdl-clouds__title.sdl-clouds__title--compact { margin-top: 0; }
.sdl-ev-about { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none;
  font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--sdl-clouds-text, #3c4246); }
.sdl-ev-about li { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.sdl-ev-about .bi { flex: none; width: 18px; color: var(--sdl-clouds-link, #1d3f95); font-size: 16px; }
@media (max-width: 699.98px) {
  .sdl-ev-sky .sdl-ev-head { margin-top: 10px; }
  .sdl-ev-sky .sdl-ev-head .sdl-clouds__title { margin-top: 0; }
  .sdl-ev-about { gap: 6px; margin-top: 12px; font-size: 15px; }
}

/* A choice inside a white box (how the membership will be paid, in the summary): grey like the step behind. */
.sdl-ev-policy .sdl-ev-seg__item > span { background: var(--ev-card); }

/* ---- The rates on the summary: pick another to see what it changes (Kurukha, 2026-11-29) ---- */
.sdl-ev-tierswitch { padding: 14px 0; border-top: 1px solid var(--ev-line); }
.sdl-ev-tierswitch__label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); }
.sdl-ev-tierswitch__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.sdl-ev-tierswitch__choice { min-width: 0; min-height: 44px; padding: 6px 4px; border: 2px solid transparent; border-radius: 14px; overflow-wrap: anywhere;
  background: var(--ev-card); color: var(--sdl-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.sdl-ev-tierswitch__choice:hover { border-color: var(--ev-edge); }
.sdl-ev-tierswitch__income { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; line-height: 1.25; color: var(--ev-muted); }
.sdl-ev-tierswitch__choice.is-on .sdl-ev-tierswitch__income { color: rgba(255, 255, 255, .85); }
.sdl-ev-tierswitch__choice.is-on { border-color: var(--ev-blue); background: var(--ev-blue); color: #fff; }
.sdl-ev-tierswitch__choice:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
.sdl-ev-tierswitch__note { margin: 8px 2px 0; font-size: 12.5px; color: var(--ev-muted); }
/* An amount the rate picked changes: what it was, struck through, the way it went, what it is. */
.sdl-ev-change { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.sdl-ev-change__was { font-size: .8em; font-weight: 400; color: var(--ev-muted); }
.sdl-ev-change__arrow { font-size: .7em; }
.sdl-ev-change__arrow.is-up { color: #b8261c; }
.sdl-ev-change__arrow.is-down { color: #187a3a; }

/* ---- A registration awaiting its deposit: the step left, its deadline, the way to pay (Kurukha, 2026-11-29) ---- */
.sdl-ev-pending { padding: clamp(20px, 4vw, 28px); border-radius: 24px; background: var(--ev-card); }
.sdl-ev-pending .sdl-todo { margin-bottom: 0; }
.sdl-ev-pending .sdl-steps li + li::before { background: #dfe6ec; }
.sdl-ev-pending .sdl-steps li.is-done + li::before { background: var(--ev-blue); }
.sdl-ev-pending .sdl-steps__dot { background: #fff; }

/* The deposit's button on two lines: what it does, then how (Kurukha, 2026-11-29). */
.sdl-ev-confirm { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.2; text-align: center; }
.sdl-ev-confirm > span { font-size: 16px; font-weight: 700; }
.sdl-ev-confirm > small { font-size: 13px; font-weight: 500; opacity: .85; }
.sdl-ev--page .sdl-btn--block:has(.sdl-ev-confirm) { min-height: 58px; padding-block: 8px; }
