/* T615 — Editorial skin of the customer subpages (schedule, gift voucher, events, reviews, customer account and the
   token pages) of an organization whose booking form is Editorial. The page canvas is the form's own
   (`StorefrontCanvas` with the Editorial attributes of public/editorial-widget.css); this file only re-points the
   classic design-system tokens and the shared elements of the subpages (cards, buttons, links, badges, fields) to
   the Editorial tokens (--ed-*), the same way public/clear-storefront.css does for Clear.
   Every rule is scoped to the subpage marker `data-ed-storefront="v1"` next to `data-editorial`; the booking page,
   the embedded form and the deposit return page never carry it and never link this file.
   The palette is the same on every device (no device scheme): the form is drawn light everywhere. */

/* Classic tokens inside the Editorial subpage only. !important: outranks the owner palette on the canvas, the light
   .bk-skin island and element-level theme blocks (.rating-scope), as in the Clear skin. Semantic colours keep AA on
   every Editorial surface (#fffcf5, #f7f3ea and the soft tints): success #166534 ≥ 5.85:1, warning #9a4a00 ≥ 5.13:1. */
[data-ed-storefront="v1"][data-editorial] {
  --bg: var(--ed-bg) !important; --bg-2: var(--ed-soft) !important; --fg: var(--ed-ink) !important; --muted: var(--ed-muted) !important;
  --card: var(--ed-surface) !important; --card-2: var(--ed-surface) !important; --card-solid: var(--ed-surface) !important;
  --border: var(--ed-line) !important; --border-strong: var(--ed-edge) !important;
  --accent: var(--ed-accent) !important; --accent-solid: var(--ed-accent) !important; --accent-fg: var(--ed-on-accent) !important;
  --accent-2: var(--ed-accent) !important; --accent-3: var(--ed-accent) !important; --grad: var(--ed-accent) !important;
  --surface: var(--ed-surface) !important; --surface-2: var(--ed-soft) !important;
  --danger: var(--ed-danger) !important; --warning: #9a4a00 !important; --success: #166534 !important;
  --radius: var(--ed-radius) !important; --radius-sm: var(--ed-radius) !important; --shadow: none !important; --glow: none !important; --blur: 0px !important;
  --ui-surface: var(--ed-surface) !important;
  --ui-confirmed-bg: var(--ed-soft) !important; --ui-pending-bg: #fff1d6 !important; --ui-done-bg: var(--ed-bg) !important;
  --ui-paid-bg: var(--ed-surface) !important; --ui-paid: var(--ed-accent) !important; --ui-focus: var(--ed-accent) !important;
  --rating-accent: var(--ed-accent) !important;
  color-scheme: light !important;
}
/* The whole page is the form's cream canvas instead of the dark document, also under overscroll. */
html:has([data-ed-storefront="v1"][data-editorial]), html:has([data-ed-storefront="v1"][data-editorial]) body,
:root[data-theme]:has([data-ed-storefront="v1"][data-editorial]), :root[data-theme]:has([data-ed-storefront="v1"][data-editorial]) body { background: #f7f3ea; background-image: none; }
/* A token page whose content brings its own <main> (manage: cancellation) keeps it; the look rides on this wrapper. */
div[data-ed-storefront="v1"][data-editorial] { display: contents; }
/* The subpage keeps its own page padding: the booking page's side gutter on header rows is not added again. */
[data-ed-storefront="v1"][data-editorial] > :is(.bk-header, .bk-actions, .booking-flow-footer, .account-entry-desktop) { padding-inline: 0; }

[data-ed-storefront="v1"][data-editorial] :is(.card, .account-shell-hero, .gift-card) { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-radius); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Headings take the form's display face (Gelasio, Bricolage or Inter by the preset). */
[data-ed-storefront="v1"][data-editorial] :is(h1, h2) { color: var(--ed-ink); background: none; -webkit-text-fill-color: currentColor; font-family: var(--ed-font-display); font-weight: var(--ed-display-weight); line-height: var(--ed-display-leading); letter-spacing: var(--ed-display-tracking); }
[data-ed-storefront="v1"][data-editorial] h3 { color: var(--ed-ink); }
[data-ed-storefront="v1"][data-editorial] :is(.muted, small) { color: var(--ed-muted); }
/* Text keeps its wrapping on the subpages (the widget's no-hyphen rule is for its own short labels). */
[data-ed-storefront="v1"][data-editorial] :is(h1, h2, h3, p, a, button, strong, label, .nm, .account-shell-org, .account-shell-title, .account-touch-summary) { overflow-wrap: break-word; hyphens: auto; }
[data-ed-storefront="v1"][data-editorial] :is(p, li, dd, td, label, span, strong) { min-width: 0; overflow-wrap: anywhere; }
[data-ed-storefront="v1"][data-editorial] :is(a[href^="mailto:"], a[href^="http"], .email, .url, code, input[type="email"], input[type="url"]) { hyphens: none; }
/* Links take the form's link colour from editorial-widget.css and keep the decoration of the start (none), as the form
   draws them: cards, language links, button-like actions and navigation are never underlined (T615 fix1). */
[data-ed-storefront="v1"][data-editorial] :is(button, .btn-primary, .btn-ghost, .bk-action, input, select, textarea) { border-radius: var(--ed-radius); }
[data-ed-storefront="v1"][data-editorial] :is(button, .btn-ghost, .bk-action) { background: var(--ed-surface); border: 1px solid var(--ed-edge); color: var(--ed-ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; text-decoration: none; }
[data-ed-storefront="v1"][data-editorial] .gift-card { border-color: var(--ed-line); }
[data-ed-storefront="v1"][data-editorial] :is(button[type="submit"], .btn-primary) { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-on-accent); background-image: none; font-weight: 600; text-decoration: none; }
[data-ed-storefront="v1"][data-editorial] :is(button, .btn-primary, .btn-ghost, .bk-action, a.badge, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select) { min-height: 44px; }
/* The widget's text rule clears the minimum width of every link and button (editorial-widget.css); the subpage
   controls that are 44 px wide on their own keep that width (globals.css, account.css, the waitlist offer module, the
   name link of the unsubscribe page). */
[data-ed-storefront="v1"][data-editorial] :is(.bk-public-touch-link, .consent-row a, .account-password-reset-link, .rozvrh-cal .scal-head a, .review-form .bk-cat-pill, .event-booking-form button, .gift-category-pills .bk-cat-pill, a[hreflang], a.brand) { min-width: 44px; }
[data-ed-storefront="v1"][data-editorial].account-shell :is(button, .btn-ghost) { min-width: 44px; }
[data-ed-storefront="v1"][data-editorial] :is(input, select, textarea) { background: var(--ed-surface); border: 1px solid var(--ed-edge); color: var(--ed-ink); }
/* The gift and pass fields keep the visible caret and selection the owner palette gave them at the start (the Editorial
   surface #fffcf5 and ink #202a24 are the same in every palette; 14.45:1 both ways). */
[data-ed-storefront="v1"][data-editorial].gift-storefront :is(input, textarea):read-write { caret-color: currentColor; }
[data-ed-storefront="v1"][data-editorial].gift-storefront :is(input, textarea):read-write::selection { color: #fffcf5; background-color: #202a24; }
/* Links, buttons and fields keep the focus ring of the form (editorial-widget.css); the same ring for the rest. */
[data-ed-storefront="v1"][data-editorial] :is(select, [tabindex]):focus-visible { outline: 3px solid var(--ed-accent); outline-offset: 3px; box-shadow: 0 0 0 2px var(--ed-bg); }
/* The chosen chip / pressed toggle is a full accent fill (on-accent text ≥ 8.2:1 in all three palettes). */
[data-ed-storefront="v1"][data-editorial] :is(button, .btn-ghost, .bk-action, .bk-cat-pill):is([aria-checked="true"], [aria-pressed="true"], .sel) { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-on-accent); box-shadow: none; font-weight: 700; }
/* A badge is a label (pill, soft fill); a badge link (schedule filter, back) is a pill control with accent text. */
[data-ed-storefront="v1"][data-editorial] .badge { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid transparent; border-radius: 999px; background: var(--ed-soft); color: var(--ed-ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-ed-storefront="v1"][data-editorial] .gift-card .badge { align-self: flex-start; }
[data-ed-storefront="v1"][data-editorial] a.badge { border-color: var(--ed-line); background: var(--ed-surface); color: var(--ed-accent); font-weight: 600; text-decoration: none; }
[data-ed-storefront="v1"][data-editorial] [data-reschedule-success] { color-scheme: light; }
@media (prefers-reduced-motion: reduce) {
  [data-ed-storefront="v1"][data-editorial] * { transition: none !important; animation: none !important; }
}
