:root {
  --font-family-caption: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-small: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-lead: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-quote: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-h3: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-h2: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-h1: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-48: 12rem;
  --space-64: 16rem;
  --space-80: 20rem;
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 15px 50px rgba(0,0,0,0.55), 0 0 30px rgba(255,255,255,0.12);
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;
  --container-3xl: 48rem;
  --container-4xl: 56rem;
  --container-5xl: 64rem;
  --container-6xl: 72rem;
  --container-7xl: 80rem;
  --container-bleed: 100%;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* module: contact-form */
/*
 * REQ-96 — every rule here belongs to an INVARIANT element: presentation fixed
 * by an obligation, not by taste (DOC-25 §10.3). There is deliberately nothing
 * about a field's surface, height, spacing or arrangement — all of that is the
 * `form` slot's L1 subtree, and the module has no way to express it.
 */

/* The module's own chrome must contribute no layout to the L1 it wraps. */
.contact-form,
.contact-form__inner,
.contact-form__form { margin: 0; padding: 0; border: 0; }

/*
 * The programmatic label: present and associated for assistive technology,
 * removed from the visual flow so it neither paints nor displaces the L1
 * layout. Obligation, not styling — which is why a designer cannot vary it.
 */
.contact-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot is removed from the visual + accessibility tree without display:none
   (some bots skip display:none fields).
   [[BUG-402]] — every hiding property is `!important`, so no page rule can undo
   it: L1 never emits `!important`, and a rule that moved it out of absolute
   positioning (where `clip` stops applying), widened it or lifted its overflow
   used to show "Leave this field empty" and a box to a person, whose enquiry was
   then discarded as spam. The component repeats these declarations inline, with
   margin, padding and border zeroed too, so the honeypot stays hidden on a page
   whose `theme.css` is stale or missing. */
.contact-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* The Turnstile mount sits just before the Send button and takes no space
   until the widget occupies it: [[BUG-444]] it is boxless (`display: contents`)
   so, empty, it adds no grid cell or flex gap beside the button, and the widget
   (`interaction-only`) draws into it only when Cloudflare needs the visitor. */
.contact-form__turnstile { margin: 0; display: contents; }

/* [[BUG-444]] — the "sent" status block that takes the Send button's place
   (an invariant element: the framework's word that the send worked). Its own
   block, in the form's own type and colour, the framework's line first. */
.contact-form__status { display: block; margin: 0; padding: 0; }
.contact-form__sent { margin: 0; font-weight: 600; }
.contact-form__success-message { margin: 0.25em 0 0; }

/* module: carousel */
/*
 * REQ-96 — every rule here is behavioural mechanics or an invariant state
 * signal. There is deliberately no `gap`, no `flex-basis`, and nothing about a
 * dot's size or colour: a slide's width is its own L1 subtree's sizing, and a
 * dot's look is the L1 control node naming it.
 */

/* The track — a pure CSS scroll-snap row: genuinely swipeable/scrollable, no JS. */
.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

/* A slide is a snap target sized by its own content — never by a view dial. */
.carousel__slide {
  scroll-snap-align: center;
  flex: 0 0 auto;
  min-width: 0;
}

/*
 * REQ-116 — the settled state, for the edit render only.
 *
 * The slides are all in the DOM already (a scroll track, not `display: none`),
 * so their copy is reachable — but with behaviour off they sit scrolled out of
 * view, which makes them awkward to click and impossible to see. Nothing in
 * the edit channel is interactive enough to reveal them, so the track wraps
 * and every slide is on screen simultaneously.
 *
 * The rule keys off the document-level `data-fc-edit` marker the page
 * assembler sets on `<body>`, so it is inert in every other channel. Any future
 * behavior module that hides content behind its behaviour declares its own
 * settled state the same way — the channel does not need to know what a
 * carousel is.
 */
[data-fc-edit] .carousel__track {
  flex-wrap: wrap;
  overflow-x: visible;
  scroll-snap-type: none;
}

/*
 * The one invariant state signal (DOC-25 §10.3): which slide is current must
 * be discernible, and a static L1 subtree has no state axis to say it with.
 * Opacity is the minimal, size- and colour-agnostic way to express it, so the
 * dot's actual look stays entirely L1's.
 */
[data-carousel-dot] { opacity: 0.4; }
[data-carousel-dot][data-carousel-current] { opacity: 1; }

/* module: account-portal */
/*
 * Every rule here belongs to an INVARIANT element: presentation fixed by an
 * obligation, not by taste ([[DOC-25]] §10.3). There is deliberately nothing
 * about the portal's type, colour, spacing or arrangement — all of that is the
 * `body` and `erasure` slots' L1 subtrees, and the module has no way to express
 * it ([[REQ-183]]).
 */

/* The module's own chrome must contribute no layout to the L1 it wraps. */
.account-portal,
.account-portal__body,
.account-portal__erasure { margin: 0; padding: 0; border: 0; }

/*
 * The three elements the client writes into. They inherit their type and colour
 * from the L1 around them — a portal's own design paints them — so the only
 * rule they carry is that they take no space of their own before they hold
 * anything. Obligation, not styling: a designer who could give these a fixed
 * height would leave a gap on the page of a visitor whose account failed to
 * load, and the gap would look like the missing sentence.
 */
.account-portal__identity,
.account-portal__holdings,
.account-portal__error { margin: 0; }

/*
 * The agreements region ([[REQ-245]]), on exactly the reasoning above.
 *
 * A LIST ARRIVES WITH LAYOUT NOBODY CHOSE — a browser's own left padding and a
 * marker — and the module's chrome must contribute none to the L1 it sits in.
 * The page author cannot reach these elements to undo it (they are invariant),
 * so removing the user-agent default is an obligation and not a look: what is
 * left inherits its type, colour and spacing from the L1 around it, exactly as
 * the three lines above do.
 */
.account-portal__agreements,
.account-portal__preferences,
.account-portal__preference,
.account-portal__agreementshead,
.account-portal__prefserror { margin: 0; padding: 0; border: 0; }
.account-portal__preferences { list-style: none; }

/*
 * The sign-in addresses region ([[REQ-368]]), on the agreements' reasoning: the
 * list and its form arrive with user-agent layout nobody chose, and the page
 * author cannot reach these invariant elements to undo it.
 */
.account-portal__emails,
.account-portal__emailshead,
.account-portal__addresses,
.account-portal__address,
.account-portal__addform,
.account-portal__emailserror { margin: 0; padding: 0; border: 0; }
.account-portal__addresses { list-style: none; }

/* module: account-chrome */
/*
 * Every rule here belongs to an INVARIANT element or to a behavioural STATE
 * ([[DOC-25]] §10.3, [[REQ-200]]). There is deliberately nothing about the
 * chrome's type, colour, spacing or arrangement — all of that is the slots'
 * L1 subtrees, and the module has no way to express it.
 */

/* The module's own chrome must contribute no layout to the L1 it wraps. */
.account-chrome,
.account-chrome__state,
.account-chrome__part { margin: 0; padding: 0; border: 0; }

/*
 * WHICH STATE IS CURRENT — the one thing a static L1 subtree has no axis to say.
 * The snapshot carries every state and the serving Worker rewrites
 * `data-account-chrome` to name the current one; these rules are what make that
 * one attribute visible. Obligation, not taste: a designer who could vary them
 * could leave a page showing a Sign In control to somebody already signed in.
 */
.account-chrome[data-account-chrome='signed-out'] [data-account-chrome-when='signed-in'],
.account-chrome[data-account-chrome='signed-in'] [data-account-chrome-when='signed-out'] {
  display: none;
}

/*
 * The builder link is a THIRD state, not a decoration of the second: it appears
 * only when the signed-in person operates at least one business, which the
 * Worker marks with `data-account-chrome-businesses`. Absent, it is not there.
 * It sits INSIDE the signed-in subtree, beside the avatar, so L1 arranges the
 * two as one row ([[BUG-299]]); the rule hides the control itself.
 */
.account-chrome:not([data-account-chrome-businesses]) [data-account-chrome-builder] {
  display: none;
}

/*
 * The programmatic label for the address field: present and associated for
 * assistive technology, removed from the visual flow so it neither paints nor
 * displaces the L1 layout. Obligation, not styling — which is why a designer
 * cannot vary it. What a VISITOR reads is `config.labelMode`: the words go
 * inside the box, or the page authors them beside it ([[BUG-76]] Defect 1b).
 */
.account-chrome__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/*
 * WHICH PART OF THE DIALOG IS CURRENT — the form, the confirmation, or the
 * network error ([[BUG-76]] Defect 4a). Behavioural, exactly as the chrome's
 * three session states are: a static L1 subtree has no axis to say "not until
 * the address has been sent", and `client.js` moves the `hidden` attribute. The
 * wrappers are structure and nothing else; what each part LOOKS like is entirely
 * its slot's, which is the difference from the module-painted paragraphs these
 * replaced.
 */
.account-chrome__part[hidden] { display: none; }

/*
 * THE DIALOG IS INLINE UNTIL SCRIPT SAYS OTHERWISE. With no JavaScript the form
 * is an ordinary part of the page and posts natively, so it must lay out like
 * one; `client.js` sets `data-account-chrome-enhanced` on the section and only
 * then does the form become an overlay. Covering the page and centring on it is
 * behavioural — a modal that did not would not be one — and no L1 axis can
 * express `position: fixed`. What the panel LOOKS like is entirely its slot's.
 */
.account-chrome__dialog { margin: 0; padding: 0; border: 0; }

.account-chrome[data-account-chrome-enhanced] .account-chrome__dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.account-chrome[data-account-chrome-enhanced] .account-chrome__dialog[hidden] {
  display: none;
}

/* module: checkout */
/*
 * [[REQ-675]] — the one piece of the shop the page's script makes rather than
 * the site's L1: Add to cart's small confirmation ("Added to your cart." with
 * View cart and Keep shopping). It is behavioural chrome, like the account
 * dialog's overlay: it sits over the page, at its corner, without moving
 * anything, and it inherits the page's type. Obligation, not taste: a
 * confirmation that pushed the page down would move the button the buyer just
 * pressed.
 */
[data-cart-confirm] {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  z-index: 2147482000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  /* [[BUG-424]] — only as wide as it needs: 360px at most on a computer, the
     full width less the margins on a phone. */
  box-sizing: border-box;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font: inherit;
}
[data-cart-confirm][hidden] { display: none; }
[data-cart-confirm] p { margin: 0; flex-basis: 100%; }
[data-cart-confirm] a,
[data-cart-confirm] button {
  font: inherit;
  color: inherit;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
/* [[BUG-424]] — View cart is the primary button (filled; the page's script
   gives it the look of the Add to cart pressed), Keep shopping the secondary. */
[data-cart-confirm] [data-cart-confirm-view] {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}
@media (max-width: 480px) {
  [data-cart-confirm] { inset-inline-start: 16px; width: auto; max-width: none; }
}
/* [[BUG-424]] — a checkout with nothing left to buy: what was taken out, "Your
   cart is empty" and the way back to the shop, in the page's own type. */
[data-checkout-empty] { display: flex; flex-direction: column; gap: 12px; padding-block: 48px; }
[data-checkout-empty] p { margin: 0; }
[data-checkout-empty] p[hidden] { display: none; }

/* module: booking-embed */
/*
 * [[REQ-698]] — the booking frame's mechanics only: the full content width,
 * the provider's height on wide screens (`--booking-embed-min-height`, set per
 * instance) and the viewport's on narrow ones. Never a fixed width.
 */
.booking-embed {
  width: 100%;
}
.booking-embed__frame {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  height: 100vh;
  height: 100dvh;
}
@media (min-width: 768px) {
  .booking-embed__frame {
    height: var(--booking-embed-min-height, 1400px);
  }
}

/* module: video-embed */
/*
 * [[REQ-717]] — the video box's mechanics only: the full width of its container
 * on narrow screens, the named shape kept at every width
 * (`--video-embed-w` / `--video-embed-h`, set per instance), and a tall shape
 * narrowed on a wide screen so it never runs past the window's height. The
 * play button's look is fixed, not taste: it is the obligation that says
 * "this is a video and nothing has loaded yet".
 */
.video-embed {
  margin: 0;
  width: 100%;
}
.video-embed__box {
  position: relative;
  width: 100%;
  width: min(100%, calc(85vh * var(--video-embed-w, 16) / var(--video-embed-h, 9)));
  margin-inline: auto;
  aspect-ratio: var(--video-embed-w, 16) / var(--video-embed-h, 9);
  overflow: hidden;
  background-color: #000000;
}
.video-embed__play,
.video-embed__frame,
.video-embed__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.video-embed__play {
  cursor: pointer;
  background-color: #000000;
  color: #ffffff;
  font: inherit;
  text-align: left;
}
.video-embed__play:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -6px;
}
.video-embed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* [[BUG-495]] — the title's TYPE is the site's body role (drawn as an L1 run);
 * its white-on-black look is the play button's, so these two classes outrank
 * the run's own colour. */
.video-embed__play .video-embed__title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px 24px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  color: #ffffff;
  overflow-wrap: anywhere;
}
.video-embed__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.72);
}
.video-embed__icon::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 27px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}
.video-embed__play:hover .video-embed__icon,
.video-embed__play:focus-visible .video-embed__icon {
  background-color: #cc0000;
}
.video-embed__video {
  object-fit: contain;
  background-color: #000000;
}
.video-embed__fallback {
  margin-top: 0.5em;
}

/* responsive TextRun typography (REQ-70) */
@media (min-width: 640px) { [style*="--fc-rt-fs:"] { font-size: var(--fc-rt-fs-sm, var(--fc-rt-fs)) !important; } }
@media (min-width: 768px) { [style*="--fc-rt-fs:"] { font-size: var(--fc-rt-fs-md, var(--fc-rt-fs-sm, var(--fc-rt-fs))) !important; } }
@media (min-width: 1024px) { [style*="--fc-rt-fs:"] { font-size: var(--fc-rt-fs-lg, var(--fc-rt-fs-md, var(--fc-rt-fs-sm, var(--fc-rt-fs)))) !important; } }
@media (min-width: 1280px) { [style*="--fc-rt-fs:"] { font-size: var(--fc-rt-fs-xl, var(--fc-rt-fs-lg, var(--fc-rt-fs-md, var(--fc-rt-fs-sm, var(--fc-rt-fs))))) !important; } }
@media (min-width: 640px) { [style*="--fc-rt-lh:"] { line-height: var(--fc-rt-lh-sm, var(--fc-rt-lh)) !important; } }
@media (min-width: 768px) { [style*="--fc-rt-lh:"] { line-height: var(--fc-rt-lh-md, var(--fc-rt-lh-sm, var(--fc-rt-lh))) !important; } }
@media (min-width: 1024px) { [style*="--fc-rt-lh:"] { line-height: var(--fc-rt-lh-lg, var(--fc-rt-lh-md, var(--fc-rt-lh-sm, var(--fc-rt-lh)))) !important; } }
@media (min-width: 1280px) { [style*="--fc-rt-lh:"] { line-height: var(--fc-rt-lh-xl, var(--fc-rt-lh-lg, var(--fc-rt-lh-md, var(--fc-rt-lh-sm, var(--fc-rt-lh))))) !important; } }
@media (min-width: 640px) { [style*="--fc-rt-ls:"] { letter-spacing: var(--fc-rt-ls-sm, var(--fc-rt-ls)) !important; } }
@media (min-width: 768px) { [style*="--fc-rt-ls:"] { letter-spacing: var(--fc-rt-ls-md, var(--fc-rt-ls-sm, var(--fc-rt-ls))) !important; } }
@media (min-width: 1024px) { [style*="--fc-rt-ls:"] { letter-spacing: var(--fc-rt-ls-lg, var(--fc-rt-ls-md, var(--fc-rt-ls-sm, var(--fc-rt-ls)))) !important; } }
@media (min-width: 1280px) { [style*="--fc-rt-ls:"] { letter-spacing: var(--fc-rt-ls-xl, var(--fc-rt-ls-lg, var(--fc-rt-ls-md, var(--fc-rt-ls-sm, var(--fc-rt-ls))))) !important; } }

/* callout / left-bar treatment (REQ-32) */
blockquote.fc-callout {
  margin: 0;
  border-inline-start: var(--space-1) solid currentColor;
  padding-inline-start: var(--space-6);
  color: inherit;
  /* A callout is a weight-emphasised statement — medium (500), a subtle step
     above body copy without the slab of full bold. This is the one place a
     callout's weight is defined; a site-def never sets a raw font-weight.
     REQ-350 — a literal: the theme's weight scale it used to read is retired. */
  font-weight: 500;
}
blockquote.fc-callout--italic { font-style: italic; }
