/*
 * cms-public-page.css — base stylesheet for React-rendered public CMS pages.
 *
 * VERBATIM copy of VisitorEngine.CMS.Renderer.base_css/0. The legacy
 * server-rendered path inlines that Elixir string; the React CSR shell
 * (cms_public_page.html.heex) links this file instead. Both must stay
 * byte-identical while the feature flag can still switch between them —
 * a parity test asserts this (test/visitor_engine/cms/cms_public_css_parity_test.exs).
 *
 * Do not hand-edit one side only.
 */
.ve-linked-gallery { width: 100%; min-width: 0; color: inherit; }
.ve-linked-gallery > p {
padding: 1rem;
color: CanvasText;
background: Canvas;
}
.ve-linked-gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
gap: clamp(1rem, 2vw, 2rem);
align-items: start;
}
.ve-linked-gallery-grid img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: 0.5rem;
}
.ve-gallery-button {
min-width: 44px;
min-height: 44px;
margin-block: 1rem;
padding: 0.5rem 1rem;
border: 1px solid currentColor;
border-radius: 0.25rem;
background: Canvas;
color: CanvasText;
font: inherit;
cursor: pointer;
}
.ve-gallery-button:disabled { cursor: wait; }
.ve-gallery-button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.ve-linked-gallery:focus-visible,
.ve-linked-gallery img:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.ve-gallery-source-settings {
min-width: 0;
overflow-wrap: anywhere;
padding: 1rem;
color: var(--tblr-body-color);
background: var(--tblr-bg-surface);
}
.ve-gallery-source-settings label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; margin-block: 0.5rem; }
.ve-gallery-source-settings select { min-width: 0; min-height: 44px; width: 100%; background: Canvas; color: CanvasText; font: inherit; }
.ve-gallery-settings :is(button, input, select) { min-height: 44px; min-width: 44px; }
.ve-gallery-settings-panel { min-width: 0; max-width: 100%; }
.ve-gallery-settings-panel :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.cms-editor-viewport-status {
color: var(--tblr-body-color);
background: var(--tblr-bg-surface);
}

/* Product List block. One stylesheet for the React component (customer app, public CMS
 bundle, editor canvas) and the server-rendered HTML in renderer.ex, so they share the
 same markup and the same rules. Colours come only from the shared --ve-* branding
 tokens; the fallbacks are the ones the rest of the customer journey uses. */
.ve-product-list,
.ve-product-list * {
box-sizing: border-box;
}

.ve-product-list {
width: 100%;
min-width: 0;
color: var(--ve-body-color, inherit);
}

.ve-product-list__grid {
display: grid;
grid-template-columns: repeat(var(--ve-pl-cols), minmax(0, 1fr));
gap: 16px;
margin: 0;
padding: 0;
list-style: none;
}

.ve-product-list__item {
min-width: 0;
}

/* Products per row on narrow screens: the viewport on public pages, the canvas
 container inside the page builder. Both give the same value. */
@media (max-width: 767px) {
.ve-product-list__grid {
  grid-template-columns: repeat(var(--ve-pl-cols-m), minmax(0, 1fr));
}
}

@container cms-canvas (max-width: 768px) {
.ve-product-list__grid {
  grid-template-columns: repeat(var(--ve-pl-cols-m), minmax(0, 1fr));
}
}

.ve-product-list__status {
margin: 0;
padding: 24px 16px;
text-align: center;
color: var(--ve-muted-text-color, #6c757d);
background: var(--ve-card-bg, #ffffff);
border: 1px solid var(--ve-hairline, #e9ecef);
border-radius: 12px;
overflow-wrap: anywhere;
}

/* ---- Card (token styled: ProductCard tokenStyled and the server markup) ---- */
.ve-product-card {
display: flex;
flex-direction: column;
height: 100%;
min-width: 0;
overflow: hidden;
background: var(--ve-card-bg, #ffffff);
color: var(--ve-body-color, inherit);
border: 1px solid var(--ve-hairline, #e9ecef);
border-radius: 12px;
}

.ve-product-card__media {
display: block;
margin: 0 auto;
overflow: hidden;
background: var(--ve-inset-bg, #f1f3f5);
border: 0;
padding: 0;
cursor: pointer;
}

.ve-product-card__image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}

.ve-product-card__placeholder {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: var(--ve-btn-bg, #000000);
color: var(--ve-btn-text, #ffffff);
font-size: 3rem;
font-weight: 700;
}

.ve-product-card__body {
display: flex;
flex: 1;
flex-direction: column;
gap: 8px;
min-width: 0;
padding: 16px;
}

.ve-product-card__title {
margin: 0;
font-size: 1.25rem;
line-height: 1.3;
color: var(--ve-heading-color, #212529);
font-family: var(--ve-font-heading, inherit);
overflow-wrap: anywhere;
}

.ve-product-card__title-link {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
text-align: left;
text-decoration: none;
cursor: pointer;
}

.ve-product-card__title-link:hover {
text-decoration: underline;
}

.ve-product-card__description {
display: -webkit-box;
flex: 1;
margin: 0;
overflow: hidden;
font-size: 0.9rem;
line-height: 1.5;
color: var(--ve-muted-text-color, #6c757d);
font-family: var(--ve-font-body, inherit);
overflow-wrap: anywhere;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}

.ve-product-card__footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 12px;
margin-top: auto;
}

.ve-product-card__price {
font-size: 1.5rem;
font-weight: 700;
color: var(--ve-heading-color, #212529);
}

.ve-product-card__action {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 44px;
min-height: 44px;
margin-left: auto;
padding: 0 20px;
border: 1px solid transparent;
border-radius: 8px;
background: var(--ve-btn-bg, #000000);
color: var(--ve-btn-text, #ffffff);
font: inherit;
font-size: 0.9rem;
font-weight: 600;
text-align: center;
text-decoration: none;
cursor: pointer;
touch-action: manipulation;
}

.ve-product-card__action:hover:not(:disabled):not([aria-disabled='true']) {
filter: brightness(1.12);
}

/* Judged against the card, never against the button fill. */
.ve-product-card__action:disabled,
.ve-product-card__action[aria-disabled='true'] {
background: transparent;
border-color: var(--ve-muted-text-color, #6c757d);
color: var(--ve-muted-text-color, #6c757d);
cursor: not-allowed;
}

.ve-product-card__title-link:focus-visible,
.ve-product-card__media:focus-visible,
.ve-product-card__action:focus-visible {
outline: 2px solid var(--ve-btn-bg, #000000);
outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
.ve-product-card {
  transition: transform 200ms ease;
}

.ve-product-card:hover {
  transform: translateY(-2px);
}

.ve-product-card__action {
  transition: filter 150ms ease;
}
}

/* ---- Cart step inside the block ---- */
.ve-product-list__cart-status {
margin: 0 0 12px;
color: var(--ve-muted-text-color, #6c757d);
}

.ve-product-list__cart-error {
margin: 0 0 12px;
padding: 12px;
color: var(--ve-heading-color, #212529);
background: var(--ve-card-bg, #ffffff);
border: 1px solid var(--ve-muted-text-color, #6c757d);
border-radius: 8px;
overflow-wrap: anywhere;
}

/*
 * siteBlocks.css — one stylesheet for the general Carousel, Marquee, Site header
 * and Form dialog blocks. Shared by the React display components and renderer.ex
 * (read at compile time), so both render paths paint identically.
 *
 * z-index scale: 10 carousel controls, 20 header bar, 30 header drawer.
 * Colours come from block props via custom properties; fonts come from the venue
 * brand tokens --ve-font-heading / --ve-font-accent (unset = inherit).
 */

/* Wrapper that every block root hangs from so behaviour can bind to it. */
.ve-block { display: contents; }

/* ── Carousel ─────────────────────────────────────────────────────────────── */
.ve-car { width: 100%; display: flex; justify-content: center; color: var(--ve-car-color, #fff); }
.ve-car__viewport { position: relative; width: 100%; }
.ve-car--hero .ve-car__viewport { max-width: var(--ve-car-max, 600px); height: var(--ve-car-hm, 500px); }
.ve-car--hero .ve-car__track { position: relative; width: 100%; height: 100%; }
.ve-car__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 700ms ease, visibility 0s linear 700ms; }
.ve-car__slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms ease; }
.ve-car__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ve-car__overlay { position: absolute; inset: 0; background: #000; opacity: var(--ve-car-overlay, 0.25); pointer-events: none; }
.ve-car__content { position: relative; z-index: 1; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; margin: 0 auto; max-width: 680px; pointer-events: none; }
.ve-car__eyebrow { margin: 0 0 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: clamp(10px, 3cqw, var(--ve-car-eyebrow, 20px)); font-family: var(--ve-font-heading, inherit); }
.ve-car__heading { margin: 0; line-height: 0.98; font-weight: 400; font-size: clamp(26px, 10cqw, var(--ve-car-heading, 42px)); font-family: var(--ve-font-heading, inherit); }
.ve-car--heading-accent .ve-car__heading { font-family: var(--ve-font-accent, inherit); }
.ve-car__sub { margin: 14px 0 0; line-height: 1.15; font-size: clamp(16px, 6cqw, var(--ve-car-sub, 30px)); font-family: var(--ve-font-heading, inherit); }
.ve-car__text { margin: 14px 0 0; line-height: 1.4; font-size: 16px; }
.ve-car__text + .ve-car__text { margin-top: 10px; }
.ve-car__content--left { width: 100%; margin: 0 auto 0 0; align-items: flex-start; text-align: left; }
.ve-car__button { pointer-events: auto; position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 24px; padding: 12px 22px; border: 1px solid currentColor; color: inherit; background: transparent; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease; }
.ve-car__button:hover, .ve-car__button:focus-visible { background: var(--ve-car-accent, #e2231a); border-color: var(--ve-car-accent, #e2231a); color: #fff; }
.ve-car__link { position: absolute; inset: 0; z-index: 2; }
.ve-car__link:focus-visible, .ve-car__more:focus-visible, .ve-car__card a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.ve-car__prev, .ve-car__next { position: absolute; bottom: 24px; z-index: 10; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ve-car-arrow-bg, #f3eed8); color: var(--ve-car-arrow-color, #111); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity 200ms ease; }
.ve-car__next { right: 24px; }
.ve-car__prev { right: 78px; }
.ve-car__prev:hover, .ve-car__next:hover { opacity: 0.85; }
.ve-car__prev:focus-visible, .ve-car__next:focus-visible, .ve-car__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ve-car__prev svg, .ve-car__next svg { width: 18px; height: 18px; }
.ve-car__dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 10; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.ve-car__dot { pointer-events: auto; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.ve-car__dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ve-car-color, #fff); opacity: 0.5; transition: opacity 200ms ease; }
.ve-car__dot[aria-current='true']::after { opacity: 1; }

.ve-car--cards .ve-car__viewport { max-width: none; }
.ve-car--cards .ve-car__track { display: flex; gap: var(--ve-car-gap, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ve-car--cards .ve-car__track::-webkit-scrollbar { display: none; }
.ve-car__card { flex: 0 0 calc((100% - var(--ve-car-gap, 20px) * (var(--ve-car-perm, 2) - 1)) / var(--ve-car-perm, 2)); scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ve-car__card figure { margin: 0; }
.ve-car__card img { display: block; width: 100%; max-height: 602px; object-fit: cover; }
.ve-car__card h3 { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 400; font-family: var(--ve-font-heading, inherit); }
.ve-car__card h3 a { color: inherit; text-decoration: none; }
.ve-car__card p { margin: 0; font-size: 14px; line-height: 1.45; }
.ve-car__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; text-decoration: none; text-transform: uppercase; letter-spacing: 0.07em; font-size: 12px; font-weight: 600; }
.ve-car__more svg { width: 12px; height: 12px; }
.ve-car--cards .ve-car__prev, .ve-car--cards .ve-car__next { bottom: auto; top: 40%; }

@container cms-canvas (min-width: 769px) {
.ve-car--hero .ve-car__viewport { height: var(--ve-car-h, 700px); }
.ve-car__content { padding: 64px; }
.ve-car--cards .ve-car__card { flex-basis: calc((100% - var(--ve-car-gap, 20px) * (var(--ve-car-per, 3) - 1)) / var(--ve-car-per, 3)); }
}
@container cms-canvas (min-width: 769px) {
.ve-car__eyebrow { font-size: var(--ve-car-eyebrow, 20px); }
.ve-car__heading { font-size: var(--ve-car-heading, 42px); }
.ve-car__sub { font-size: var(--ve-car-sub, 30px); }
}

/* ── Page list ────────────────────────────────────────────────────────────── */
.ve-pl { width: 100%; box-sizing: border-box; color: var(--ve-pl-color, inherit); }
.ve-pl a { color: inherit; text-decoration: none; }
.ve-pl a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ve-pl__status { margin: 0; padding: 24px 0; font-size: 16px; line-height: 1.4; }
.ve-pl__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ve-pl-cols-m, 2), minmax(0, 1fr)); gap: var(--ve-car-gap, 20px); }
.ve-pl__card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ve-pl-border, currentColor); box-sizing: border-box; }
.ve-pl__media { display: block; aspect-ratio: var(--ve-pl-ratio, 4 / 3); overflow: hidden; }
.ve-pl__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ve-pl__body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; align-items: flex-start; }
.ve-pl__title { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 400; font-family: var(--ve-font-heading, inherit); color: var(--ve-pl-accent, currentColor); }
.ve-pl__date { margin: 0; font-size: 13px; line-height: 1.3; }
.ve-pl__excerpt { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ve-pl__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; text-transform: uppercase; letter-spacing: 0.07em; font-size: 12px; font-weight: 600; }
.ve-pl__more svg { width: 12px; height: 12px; }
.ve-pl__card--feature { display: grid; grid-template-columns: 1fr; margin-bottom: var(--ve-car-gap, 20px); }
.ve-pl__card--feature .ve-pl__title { font-size: 28px; }
.ve-pl__pager { margin-top: 28px; }
.ve-pl__pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; }
.ve-pl__page, .ve-pl__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; box-sizing: border-box; font-size: 14px; letter-spacing: 0.05em; }
.ve-pl__page.is-current { color: var(--ve-pl-accent, currentColor); text-decoration: underline; text-underline-offset: 4px; }
.ve-pl__page--previous, .ve-pl__page--next { text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; }

@container cms-canvas (min-width: 769px) {
.ve-pl__grid { grid-template-columns: repeat(var(--ve-pl-cols, 3), minmax(0, 1fr)); }
.ve-pl__card--feature { grid-template-columns: 1fr 1fr; }
.ve-pl__card--feature .ve-pl__body { padding: 32px; justify-content: center; }
.ve-pl__card--feature .ve-pl__title { font-size: 36px; }
}

/* ── Marquee ──────────────────────────────────────────────────────────────── */
.ve-mq { width: 100%; box-sizing: border-box; color: var(--ve-mq-color, #fff); padding: var(--ve-mq-pad, 30px) 20px; overflow: hidden; }
.ve-mq .ve-mq__heading { margin: 0 0 12px; font-size: 32px; line-height: 1.1; letter-spacing: 0.5px; font-weight: 400; font-family: var(--ve-font-accent, inherit); }
.ve-mq__viewport { overflow: hidden; }
.ve-mq__track { display: flex; width: max-content; animation: ve-mq-scroll var(--ve-mq-speed, 50s) linear infinite; }
.ve-mq[data-pause='1']:hover .ve-mq__track, .ve-mq[data-pause='1']:focus-within .ve-mq__track { animation-play-state: paused; }
.ve-mq__group { display: flex; align-items: center; flex-shrink: 0; gap: var(--ve-mq-gap, 70px); padding: 0 calc(var(--ve-mq-gap, 70px) / 2); margin: 0; list-style: none; }
.ve-mq__item { display: flex; align-items: center; flex-shrink: 0; font-size: var(--ve-mq-size, 20px); font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.ve-mq__item a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ve-mq__item a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ve-mq__item img { height: var(--ve-mq-h, 55px); width: auto; display: block; }
@keyframes ve-mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Link grid (image cards with a caption, each linking to a page) ─────────── */
.ve-lg { width: 100%; box-sizing: border-box; color: var(--ve-lg-color, #fff); padding: 32px 24px 64px; scroll-margin-top: 120px; }
.ve-lg__heading-wrap { display: flex; justify-content: center; padding: 24px 16px; }
.ve-lg .ve-lg__heading { margin: 0; padding: 8px 0 10px; color: inherit; font-family: var(--ve-font-accent, inherit); font-size: 18px; font-weight: 400; font-style: normal; line-height: 1.2; letter-spacing: normal; text-transform: none; white-space: nowrap; border-bottom: 2px solid currentColor; }
.ve-lg__grid { display: grid; grid-template-columns: repeat(var(--ve-lg-colsm, 1), minmax(0, 1fr)); gap: 36px var(--ve-lg-gap, 28px); margin: 0; padding: 0; list-style: none; }
.ve-lg--has-heading .ve-lg__grid { margin-top: 8px; }
.ve-lg__item { min-width: 0; }
.ve-lg__card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.ve-lg__image { position: relative; display: block; width: 100%; aspect-ratio: var(--ve-lg-aspect, 9 / 7); overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.ve-lg__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ve-lg__caption { display: flex; align-items: baseline; gap: 10px; padding-left: 12px; margin-top: 20px; font-family: var(--ve-font-accent, inherit); font-size: 26px; font-weight: 400; line-height: 1.2; }
.ve-lg--marker .ve-lg__caption::before { content: ''; display: block; flex: 0 0 auto; width: 1cap; height: 1cap; background: var(--ve-lg-accent, #e2231a); }
.ve-lg .ve-lg__name { margin: 0; padding: 0; min-width: 0; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; font-style: normal; line-height: inherit; letter-spacing: 0.02em; text-transform: uppercase; text-align: left; overflow-wrap: break-word; transition: color 180ms ease; }
@media (hover: hover) { .ve-lg__card:hover .ve-lg__name { color: var(--ve-lg-accent, #e2231a); } }
.ve-lg__card:focus-visible .ve-lg__name { color: var(--ve-lg-accent, #e2231a); }
.ve-lg__card:focus-visible { outline: 2px solid var(--ve-lg-accent, #e2231a); outline-offset: 6px; }
@container cms-canvas (max-width: 749px) {
.ve-lg { padding: 24px 20px 48px; }
  .ve-lg__heading-wrap--hide-mobile { position: relative; display: block; height: 1px; min-height: 0; margin: 0; padding: 0; }
.ve-lg__heading-wrap--hide-mobile .ve-lg__heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@container cms-canvas (min-width: 750px) {
.ve-lg__heading-wrap { padding: 24px 16px; }
.ve-lg .ve-lg__heading { font-size: 24px; }
.ve-lg__grid { grid-template-columns: repeat(var(--ve-lg-colst, 2), minmax(0, 1fr)); row-gap: var(--ve-lg-rowgap, 48px); }
.ve-lg__caption { margin-top: 24px; }
}
@container cms-canvas (min-width: 990px) {
.ve-lg__grid { grid-template-columns: repeat(var(--ve-lg-cols, 4), minmax(0, 1fr)); }
}
/* A grid with no cards is an anchored heading only (e.g. a section divider). */
.ve-lg.ve-lg--empty { padding-top: 0; padding-bottom: 0; }
.ve-lg--empty .ve-lg__grid { display: none; }
@media (prefers-reduced-motion: reduce) { .ve-lg .ve-lg__name { transition: none; } }

/* ── Site header ──────────────────────────────────────────────────────────── */
.ve-hdr { position: relative; z-index: 20; width: 100%; background: var(--ve-hdr-bg, #000); color: var(--ve-hdr-color, #fff); font-size: 13px; }
.ve-hdr a { color: inherit; text-decoration: none; }
.ve-hdr__top { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 24px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.ve-hdr__top a { display: inline-flex; align-items: center; min-height: 44px; }
.ve-hdr__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 5px 28px; min-height: 64px; box-sizing: border-box; }
.ve-hdr__side { display: flex; align-items: center; gap: 24px; min-width: 0; }
.ve-hdr__side--right { justify-content: flex-end; }
.ve-hdr__nav { display: none; align-items: center; gap: 24px; }
.ve-hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; transition: opacity 200ms ease; }
.ve-hdr__nav a:hover, .ve-hdr__drawer a:hover { opacity: 0.7; }
.ve-hdr a:focus-visible, .ve-hdr button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ve-hdr__menu { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ve-hdr__menu svg { width: 22px; height: 22px; }
.ve-hdr__logo { display: block; margin-top: -2px; }
.ve-hdr__logo img { display: block; height: 78px; width: auto; }
.ve-hdr__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ve-hdr-accent, #e2231a); color: inherit; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; transition: background-color 200ms ease; }
.ve-hdr__cta:hover { background: var(--ve-hdr-accent, #e2231a); }
/* The drawer is a modal <dialog>: it renders in the browser top layer, so it always
 covers the viewport even though the page root is a size-containment container. */
.ve-hdr__drawer { box-sizing: border-box; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
.ve-hdr__drawer::backdrop { background: rgba(0, 0, 0, 0.6); }
.ve-hdr__panel { box-sizing: border-box; width: min(480px, 100%); height: 100%; margin-left: auto; overflow-y: auto; overscroll-behavior: contain; background: var(--ve-hdr-bg, #000); color: var(--ve-hdr-color, #fff); display: flex; flex-direction: column; }
.ve-hdr__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 20px; border-bottom: 1px solid #b8b8b8; }
.ve-hdr__close { margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ve-hdr-accent, #e2231a); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ve-hdr__close svg { width: 24px; height: 24px; stroke-width: 1.5; }
.ve-hdr__greeting { margin: 0; font-size: 22px; line-height: 1.1; color: var(--ve-hdr-accent, #e2231a); font-family: var(--ve-font-heading, inherit); }
.ve-hdr__panel > .ve-hdr__status { display: flex; align-items: center; gap: 10px; margin: 0 20px; padding: 20px 0; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; border-bottom: 1px solid #b8b8b8; }
.ve-hdr__panel > .ve-hdr__status::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ve-hdr-accent, #e2231a); }
.ve-hdr__drawer-visit { padding: 14px 20px 0; }
.ve-hdr__drawer-visit a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #b8b8b8; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; }
.ve-hdr__drawer-nav { display: flex; flex-direction: column; padding: 8px 40px 0; }
.ve-hdr__drawer-nav a { display: flex; align-items: center; box-sizing: border-box; padding: 26px 50px 29px 0; font-size: 13px; line-height: 15px; letter-spacing: 0.07em; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.ve-hdr__langs { display: flex; justify-content: flex-end; gap: 24px; margin-top: auto; padding: 12px 25px 17px; border-top: 1px solid #b8b8b8; }
.ve-hdr .ve-hdr__lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 13px; color: #9a9a9a; text-decoration: none; }
.ve-hdr .ve-hdr__lang[aria-current='true'] { color: inherit; text-decoration: underline; text-underline-offset: 6px; }
.ve-hdr-locked { overflow: hidden; }

@container cms-canvas (min-width: 1025px) {
.ve-hdr__nav { display: flex; }
.ve-hdr__bar { padding: 5px 28.8px; }
}
@container cms-canvas (max-width: 768px) {
/* The status line, visit link and languages are all in the drawer on narrow screens. */
.ve-hdr__top { display: none; }
/* A 71px identity strip carries the large square logo; only the 64px bar stays pinned
   once the strip has scrolled away (top: -71px), as on the original site. */
.ve-hdr { position: sticky; top: -71px; padding-top: 71px; }
.ve-hdr__bar { grid-template-columns: 1fr 115px 1fr; padding: 0 10px; }
.ve-hdr__bar > .ve-hdr__side:first-child { grid-column: 1; }
.ve-hdr__bar > .ve-hdr__side--right { grid-column: 3; }
.ve-hdr__logo { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 2; transition: top 200ms ease; }
.ve-hdr__logo img { width: 115px; height: 115px; object-fit: contain; transition: width 200ms ease, height 200ms ease; }
.ve-hdr[data-stuck='true'] .ve-hdr__logo { top: 70px; }
.ve-hdr[data-stuck='true'] .ve-hdr__logo img { width: 55px; height: 55px; }
.ve-hdr__cta { border: 0; padding: 0 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.ve-hdr__cta::after { content: '\00a0\2192'; }
.ve-hdr__cta:hover { background: transparent; opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
.ve-hdr__logo, .ve-hdr__logo img { transition: none; }
}

/* ── Form dialog ──────────────────────────────────────────────────────────── */
.ve-dlg { padding: 0; border: 1px solid #b8b8b8; background: var(--ve-dlg-bg, #f7f5ef); color: var(--ve-dlg-color, #111); max-width: min(920px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); overflow: auto; }
.ve-dlg::backdrop { background: rgba(0, 0, 0, 0.7); }
.ve-dlg__panel { position: relative; display: grid; grid-template-columns: 1fr; }
.ve-dlg__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #111; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ve-dlg__close svg { width: 20px; height: 20px; }
.ve-dlg__close:focus-visible, .ve-dlg__submit:focus-visible, .ve-dlg__input:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.ve-dlg__main { padding: 32px 24px 24px; }
.ve-dlg__title { margin: 0 0 16px; font-size: 28px; line-height: 1.1; font-weight: 400; font-family: var(--ve-font-heading, inherit); }
.ve-dlg__form { display: flex; flex-direction: column; gap: 14px; }
.ve-dlg__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ve-dlg__input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b8b8b8; background: var(--ve-dlg-input-bg, #fff); color: var(--ve-dlg-color, #111); font: inherit; font-weight: 400; }
textarea.ve-dlg__input { min-height: 120px; resize: vertical; }
.ve-dlg__note { margin: 0; font-size: 13px; line-height: 1.4; }
.ve-dlg__note a { color: inherit; text-decoration: underline; }
.ve-dlg__submit { align-self: flex-start; min-height: 48px; padding: 0 24px; border: 1px solid #111; background: #111; color: #fff; font: inherit; text-transform: uppercase; letter-spacing: 0.07em; cursor: pointer; transition: opacity 200ms ease; }
.ve-dlg__submit:hover { opacity: 0.85; }
.ve-dlg__submit:disabled { opacity: 0.5; cursor: default; }
.ve-dlg__status { margin: 0; min-height: 1.4em; font-size: 14px; }
.ve-dlg__status[data-state='error'] { color: #a30f08; }
.ve-dlg__aside { padding: 24px; background: #111; color: #fff; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.ve-dlg__aside-title { margin: 0; font-size: 22px; font-weight: 400; font-family: var(--ve-font-heading, inherit); }
.ve-dlg__aside p { margin: 0; font-size: 14px; line-height: 1.4; white-space: pre-line; }
@media (min-width: 769px) {
.ve-dlg__panel { grid-template-columns: 1.4fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
.ve-car__slide, .ve-car__slide.is-active { transition: none; }
.ve-mq__track { animation: none; }
.ve-car__prev, .ve-car__next, .ve-car__dot::after, .ve-hdr__nav a, .ve-hdr__cta, .ve-dlg__submit { transition: none; }
}

/* Editor canvas shows the dialog contents inline (the real dialog is closed). */
.ve-dlg--inline { display: block; margin: 0 auto; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6; color: #333; background: #ffffff;
}
.landing-container { min-height: 100vh; display: flex; flex-direction: column; container-type: inline-size; container-name: cms-canvas; }
.header {
  color: white; position: relative; overflow: hidden;
  min-height: 60vh; display: flex; align-items: center;
}
.header-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
}
.header-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 0 3rem 6rem; display: flex; justify-content: space-between;
  align-items: flex-start; width: 100%;
}
.logo { margin-bottom: 3rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.logo-text {
  font-size: 4.5rem; font-weight: 700; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); display: block;
}
.tagline { font-size: 1rem; opacity: 0.9; color: #fff; letter-spacing: 0.1em; margin-top: 0.5rem; }
.cta-button {
  display: inline-block; background: #fff; color: #667eea;
  padding: 0.6rem 1.4rem; text-decoration: none; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem; transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); position: absolute; bottom: 2rem; left: 3rem;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); color: #5a67d8; }
.main-content { flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #f8f9fa; padding: 2rem; border-radius: 12px;
  border: 1px solid #e9ecef; transition: all 0.3s ease; display: block;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem; color: #333; }
.feature-description { color: #666; line-height: 1.6; }
.cms-rich-text p { margin: 0 0 0.75em; }
.cms-rich-text p:last-child { margin-bottom: 0; }
.cms-rich-text h1,.cms-rich-text h2,.cms-rich-text h3,.cms-rich-text h4 { color: inherit; margin: 0 0 0.5em; }
.cms-rich-text ul,.cms-rich-text ol { margin: 0 0 0.75em; padding-left: 1.5em; }
.cms-rich-text li { margin-bottom: 4px; }
.cms-rich-text a { color: #2563eb; text-decoration: underline; }
.cms-rich-text strong { font-weight: 700; }
/* Public documents follow the viewport, like the CSR renderer. VL pages
   deliberately disable container-type to keep fixed chrome viewport-bound,
   so their document switch cannot depend on the cms-canvas container. */
.cms-doc-mobile { display: none; }
@media (max-width: 767px) {
  .cms-doc-desktop { display: none; }
  .cms-doc-mobile { display: block; }
}
@container cms-canvas (max-width: 768px) {
  .logo-text { font-size: 2.8rem; }
  .header-content { padding: 0 1.5rem 4rem; flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-button { left: 1.5rem; }

  /* ── CMS Block Responsiveness ───────────────────────────── */

  /* 2-col and 3-col grids collapse to single column on mobile */
  .cms-grid-2col { grid-template-columns: 1fr !important; }
  .cms-grid-3col { grid-template-columns: 1fr !important; }
}
