/* ==========================================================================
   VOUCHER — reworked layout, 11 Nov 2026
   Source: "Reworked SVG Layouts Only / Web 1920 – 8.svg" (1920 × 5416).
   Editorial text blocks move 6–8px right (the shared left edges of the
   reworked pages: x416 / x1106), "Create your voucher" becomes the 80px
   page title, the card + form shift 4px right, form heading is 24px Demibold.
   Loaded after styles.css + components.css; this page only.
   ========================================================================== */
.page-voucher { --hu: min(1px, calc(100vw / 1920)); }
@media (min-width: 992px) {
  .page-voucher .voucher-create_heading { box-sizing: border-box; height: calc(360 * var(--hu)); padding: calc(var(--cp, 135) * var(--hu)) 0 0; font-weight: 700; font-size: clamp(40px, calc(80 * var(--hu)), 80px); line-height: 1; letter-spacing: .005em; text-transform: uppercase; color: var(--ink); }
  .page-voucher .voucher-builder { padding-left: calc(412 * var(--hu)); padding-bottom: calc(var(--bb, 220) * var(--hu)); }
  .page-voucher .voucher-builder_form { max-width: calc(674 * var(--hu)); padding-top: calc(42 * var(--hu)); }
  .page-voucher .voucher-builder_field label[for="voucherRecipient"] { font-weight: 600; font-size: max(17px, calc(24 * var(--hu))); color: var(--ink); margin-bottom: calc(var(--lm, 16) * var(--hu)); }
}

/* ==========================================================================
   Two vouchers (26 Nov 2026): the toggle at the top of "Create your voucher".
   Quartier LôDzè (from CHF 100, not valid at the baths) | Les Bains Publics (from CHF 50, baths only).
   Uses the site's chips, colours and focus style; the thumb slides under the chosen option.
   ========================================================================== */
.voucher-toggle_label { display: block; margin: 0 0 16px; font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--ink); }
.voucher-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--maroon-warm); background: var(--cream); min-width: 0; }
.voucher-toggle_option { position: relative; z-index: 1; display: flex; align-items: center; min-height: 72px; padding: 10px 20px; cursor: pointer; color: var(--maroon-warm); transition: color var(--dur-2) var(--ease-out); }
.voucher-toggle_option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.voucher-builder_field .voucher-toggle_option { display: flex; margin: 0; font-size: inherit; font-style: normal; }
.voucher-builder_field .voucher-toggle_option input { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; }
.voucher-toggle:has(input:focus-visible) { outline: 3px solid var(--maroon-warm); outline-offset: 3px; }
.voucher-toggle_text { display: grid; gap: 2px; }
.voucher-toggle_text b { font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.voucher-toggle_text small { font-size: 16px; line-height: 1.2; }
.voucher-toggle_option.is-on { color: var(--cream); }
.voucher-toggle.is-baths .voucher-toggle_option.is-on { color: var(--maroon-warm); }
.voucher-toggle_thumb { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 50%; background: var(--maroon-warm); transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.voucher-toggle.is-baths .voucher-toggle_thumb { transform: translateX(100%); background: var(--pale-blue-cdb); }
.voucher-builder_hint { margin: -2px 0 0; font-size: 16px; line-height: 1.3; color: var(--maroon-warm); }
.voucher-builder_hint.is-error { color: var(--red-deep); font-weight: 700; }
.voucher-builder_field input[aria-invalid="true"] { border-color: var(--red-deep); border-width: 2px; }
.voucher-card_chip { margin: 0 0 16px; }
/* the toggle sits above the voucher panel, in the preview column */
.voucher-builder_preview .voucher-builder_field { margin-bottom: 28px; }
@media (min-width: 992px) { .page-voucher .voucher-builder_preview { padding-top: calc(42 * var(--hu)); } }
.voucher-card[data-voucher="baths"] .voucher-card_pattern { background-image: repeating-linear-gradient(45deg, var(--pale-blue-cdb) 0 6px, var(--maroon-warm) 6px 12px); }
@media (prefers-reduced-motion: reduce) { .voucher-toggle_thumb, .voucher-toggle_option { transition: none; } }
@media (max-width: 479px) { .voucher-toggle_option { padding: 10px 12px; } .voucher-toggle_text b { font-size: 18px; } .voucher-toggle_text small { font-size: 14px; } }

/* ==========================================================================
   Voucher body copy: the 1920 positions stay, but the line-heights are unitless so the lines never crowd
   when the window is narrower than 1920 (the old rules shrank the line-height and kept the type at 24px).
   ========================================================================== */
@media (min-width: 1280px) {
  .page-voucher .voucher-editorial .voucher-editorial_col p.voucher-editorial_lead { font-size: clamp(20px, calc(32 * var(--vu)), 32px); line-height: 1.375; }
  .page-voucher .voucher-editorial .voucher-editorial_col p.voucher-editorial_footnote { font-size: 16px; line-height: 1.4; }
  .page-voucher .is-intro .voucher-editorial_col p:not(.voucher-editorial_lead):not(.voucher-editorial_footnote),
  .page-voucher .is-rules .voucher-editorial_col p { font-size: clamp(20px, calc(24 * var(--vu)), 24px); line-height: 1.4; }
  .page-voucher .voucher-editorial.is-intro { height: max(calc(1160 * var(--vu)), 790px); }
  .page-voucher .voucher-editorial.is-rules { height: max(calc(760 * var(--vu)), 640px); }
}
