/* Output primitives. Editor styles are never included in a downloaded site. */
.preview-viewport { container-type: inline-size;--layout-content-width:1200px;--layout-hero-width:1920px;--layout-gutter:calc(var(--preview-space)*3); background:var(--theme-page-background,var(--preview-bg));color:var(--theme-text,var(--preview-ink)); }
.mock-site { position:relative;min-height:100%;font-family:var(--theme-font,var(--preview-body));font-size:var(--preview-body-size,15px);font-weight:var(--preview-body-weight,400);line-height:var(--preview-line-height,1.5);text-transform:var(--preview-body-casing,none);overflow-wrap:break-word;word-break:normal; }
.mock-site *, .mock-site *::before, .mock-site *::after { box-sizing:border-box; }
.mock-site [hidden] { display:none !important; }
.mock-site :is(h1,h2,h3,h4,p,figure,blockquote) { margin:0 0 var(--preview-space); }
.mock-site :is(h1,h2,h3,h4) { font-family:var(--theme-heading-font,var(--preview-heading));font-weight:var(--preview-heading-weight,700);line-height:var(--preview-heading-line-height,1.15);text-wrap:balance;word-break:normal;overflow-wrap:break-word; }
/* Inspire's Case choice is for headings, the brand and the menu (buttons have their own rule below).
   Body text is only in capitals when Case is All caps (--preview-body-casing, on .mock-site). */
.mock-site :is(h1,h2,h3,h4,.layout-brand) { text-transform:var(--preview-casing,none); }
.mock-site [data-layout-variant^="menu/"] nav a:not(.preview-button) { text-transform:var(--theme-nav-casing,var(--preview-casing,none)); }
.mock-site h1 { font-size:calc(clamp(2rem,4.5cqw,4rem)*var(--preview-scale,1));letter-spacing:var(--theme-desktop-heading-tracking,-.035em); }
.mock-site h2 { font-size:calc(clamp(1.65rem,3.4cqw,2.7rem)*var(--preview-scale,1));letter-spacing:-.025em; }
.mock-site h3 { font-size:calc(1.15rem*var(--preview-scale,1)); }
/* Script heading fonts have tiny lowercase letters for their size, so the same px size reads as much
   smaller than the body text. font-size-adjust scales each one up until its lowercase letters are a
   set height, more for the small ones. They also have one weight, their own spacing and tall loops:
   no faux bold, no tightened tracking, and the line height the font itself asks for at its adjusted
   size (a number would be taken from the unadjusted size and pack the lines). */
.preview-viewport[data-heading-script] .mock-site :is(h1,h2,h3,h4,.layout-brand) { font-size-adjust:ex-height .38;font-weight:400;letter-spacing:normal;line-height:normal; }
.preview-viewport[data-heading-script] .mock-site .layout-brand { font-size-adjust:ex-height .58; }
/* Small headings sit in narrow cards: above .25 a long word ("Subscriptions" in Cookie) no
   longer fits a three-across card and splits mid-word (Claude, 2026-11-27; was .58). */
.preview-viewport[data-heading-script] .mock-site :is(h3,h4):not(.layout-brand) { font-size-adjust:ex-height .25; }
/* On a phone-width site big script headings scale up less too. :not() matches the specificity
   of the rules above. */
@container (max-width: 640px) {
  .preview-viewport[data-heading-script] .mock-site :is(h1,h2):not(.layout-brand) { font-size-adjust:ex-height .27; }
}
.mock-site p { white-space:pre-line; }
.mock-site :is(a,button) { color:inherit; }
.mock-site a { text-underline-offset:.2em; }
.mock-site :is(a,button,summary):focus-visible { outline:2px solid currentColor;outline-offset:4px; }
.mock-site a[aria-disabled] { text-decoration:none; }
.mock-site button { font:inherit;cursor:pointer; }
.mock-site button:disabled { opacity:.4;cursor:default; }
.layout-section { --section-bg:var(--theme-page-background,var(--preview-bg));--section-ink:var(--theme-text,var(--preview-ink));--section-line:var(--theme-line-color,var(--preview-line));--section-box:100cqw;--section-gutter:max(var(--layout-gutter),(var(--section-box) - var(--layout-content-width))/2);padding:calc(var(--preview-space)*3) var(--section-gutter);background:var(--section-bg);color:var(--section-ink); }
.layout-section > *, .layout-items > * { min-width:0; }
.layout-section[data-layout-variant^="hero/"] { --section-box:min(100cqw,var(--layout-hero-width));max-width:var(--layout-hero-width);margin-inline:auto; }
.layout-section > :last-child, .layout-copy > :last-child { margin-bottom:0; }
.layout-section .layout-heading { max-width:760px;margin-bottom:calc(var(--preview-space)*2); }
.layout-section h1 { color:var(--section-title,var(--section-ink)); }
.layout-section h2 { color:var(--section-heading,var(--section-ink)); }
.layout-section h3 { color:var(--section-card-heading,var(--section-ink)); }
.layout-section .layout-eyebrow { font-size:.8em;letter-spacing:.12em;font-weight:700;text-transform:uppercase; }
.layout-section.layout-section-break { border-top:var(--theme-border-style,var(--preview-border-style));border-top-color:var(--section-line); }
.layout-image { aspect-ratio:3/2;overflow:hidden;border-radius:var(--theme-radius,var(--preview-radius)); }
.layout-image img { width:100%;height:100%;display:block;object-fit:cover; }
.layout-card { margin:0;padding:var(--preview-space);background:var(--section-card-bg,var(--theme-card-background,var(--preview-surface)));border:var(--theme-border-style,var(--preview-border-style));border-color:var(--section-line);border-radius:var(--theme-radius,var(--preview-radius));box-shadow:var(--theme-shadow,var(--preview-shadow)); }
.layout-card > :last-child { margin-bottom:0; }
.layout-card figcaption { display:grid;gap:.25em;font-size:.8em; }
.layout-card blockquote { margin:var(--preview-space) 0; }
.layout-items { margin:0;padding:0;list-style:none; }
.layout-number, .layout-stat, .layout-price { font-size:2.5em;font-family:var(--preview-heading);font-weight:var(--preview-heading-weight);line-height:1.1; }
.layout-stat { font-size:3.5em; }
/* Price comes straight after the product name: smaller than the name in a section, title-sized on a card. */
.layout-copy > .layout-price { display:block;font-size:1.75em;margin-bottom:var(--preview-space); }
.layout-card .layout-price { font-family:var(--preview-heading);font-size:1.15em;font-weight:var(--preview-heading-weight);margin-bottom:.5em; }
.layout-availability { font-size:.9em;opacity:.8; }
/* The business name is the logo: big enough to read as one, never the size of a menu link (Robyn, 2026-11-26). */
.layout-brand { font-family:var(--preview-heading);font-size:calc(clamp(1.35rem,2.2cqw,1.85rem)*var(--preview-scale,1));font-weight:700;line-height:1.1;text-decoration:none; }
.layout-section nav a { display:inline-block; }
/* :where keeps this at the same specificity as a variant rule, so a menu variant's own padding (loaded later) wins. */
.layout-section:where([data-layout-variant^="menu/"]) { padding-block:var(--menu-space); }
/* A full-size button would set the height of the whole header. */
.mock-site .layout-section[data-layout-variant^="menu/"] .preview-button { padding:calc(var(--menu-space)*.45) calc(var(--menu-space)*.85); }
/* Menus follow the whitespace choice at about half strength: whitespace grows fast toward roomy, and a
   header taking all of it balloons. Menu variants use --menu-space wherever a section would use --preview-space. */
.layout-section:is([data-layout-variant^="menu/"],[data-layout-variant^="section-menu/"]) { --menu-space:calc(var(--preview-space)*.45 + .6em); }
.layout-section[data-layout-variant^="menu/"] nav { display:flex;flex-wrap:wrap;gap:calc(var(--menu-space)*.8);align-items:center;font-size:.85em;text-transform:var(--theme-nav-casing,none);letter-spacing:var(--theme-nav-spacing,normal); }
.layout-menu-toggle { display:none;align-items:center;justify-content:center;background:transparent;border:1px solid var(--section-line);padding:calc(var(--menu-space,var(--preview-space))*.65) var(--menu-space,var(--preview-space));font:inherit;font-size:.85em;font-weight:700;text-transform:var(--theme-nav-casing,var(--preview-casing));letter-spacing:var(--theme-nav-spacing,normal);border-radius:var(--theme-btn-radius,var(--preview-button-radius));color:inherit;cursor:pointer;line-height:1; }
.layout-menu-toggle:hover { background:color-mix(in srgb, currentColor 8%, transparent); }
.layout-section dd { margin:1em 0; }
.mock-site .preview-button { display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:.5em;max-width:100%;padding:calc(var(--preview-space)*.65) var(--preview-space);font:inherit;font-weight:700;text-decoration:none;text-transform:var(--theme-nav-casing,var(--preview-casing));letter-spacing:var(--theme-nav-spacing,normal);border-radius:var(--theme-btn-radius,var(--preview-button-radius));background:var(--section-button-bg,var(--theme-button-glow-background,var(--theme-button-background,var(--preview-button-background))));color:var(--section-button-ink,var(--theme-button-glow-text,var(--theme-btn-primary-text,var(--preview-button-ink))));border:var(--theme-button-depth-border,var(--theme-button-glow-border,none));border-color:var(--theme-button-depth-border-color,var(--theme-line-color,var(--preview-line)));box-shadow:var(--theme-button-surface-shadow,var(--preview-shadow));text-shadow:var(--theme-button-text-shadow,none);backdrop-filter:var(--theme-button-glass-filter,none); }
.mock-site .preview-button:hover { background:var(--section-button-bg,var(--theme-button-glow-background,var(--theme-button-hover-background,var(--preview-button-hover-background)))); }
[data-affordance="icons"] .mock-site a.preview-button::after,[data-affordance="arrow"] .mock-site a.preview-button::after { content:'→'; }
[data-affordance="chevron"] .mock-site a.preview-button::after { content:'›'; }
[data-affordance="double_chevron"] .mock-site a.preview-button::after { content:'»'; }
/* Carousel controls, shared by every carousel (components/carousel.js). The section's
   carousel-controls setting picks one: tall thin carets, small carets on a see-through
   backing, plain small carets, or dots with the current one in the accent color. */
.layout-carousel-frame { position:relative; }
.layout-carousel-arrow { position:absolute;z-index:4;top:50%;transform:translateY(-50%);display:grid;place-items:center;margin:0;padding:0;border:0;background:none;color:var(--carousel-ink,var(--section-ink));filter:var(--carousel-ink-shadow,none);cursor:pointer; }
.layout-carousel-arrow[data-carousel-prev] { left:10px; }
.layout-carousel-arrow[data-carousel-next] { right:10px; }
.layout-carousel-arrow svg { display:block;width:12px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.layout-carousel-arrow path { vector-effect:non-scaling-stroke; }
.layout-carousel-arrow[data-carousel-next] svg { transform:scaleX(-1); }
.layout-carousel-arrow:disabled { opacity:.3;cursor:default; }
.layout-carousel-dots { position:absolute;z-index:4;left:0;right:0;bottom:12px;display:none;justify-content:center;gap:8px; }
.layout-carousel-dots { align-items:center; }
.layout-carousel-dots button { box-sizing:border-box;width:11px;height:11px;margin:0;padding:0;border:2px solid var(--carousel-ink,var(--section-ink));border-radius:50%;background:transparent;filter:var(--carousel-ink-shadow,none);cursor:pointer; }
.layout-carousel-dots button[aria-current="true"] { width:13px;height:13px;border-color:var(--theme-primary,var(--preview-accent));background:var(--theme-primary,var(--preview-accent)); }
.layout-carousel-status { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
[data-carousel-controls="tall"] .layout-carousel-arrow svg { width:18px;height:clamp(56px,12cqw,96px);stroke-width:1.5; }
[data-carousel-controls="backed"] .layout-carousel-arrow { width:44px;height:44px;border-radius:50%;background:color-mix(in srgb, color-mix(in srgb, var(--section-bg) 88%, var(--section-ink)) 65%, transparent);color:var(--section-ink);filter:none; }
[data-carousel-controls="backed"] .layout-carousel-arrow svg { width:10px;height:18px; }
[data-carousel-controls="dots"] .layout-carousel-arrow { display:none; }
[data-carousel-controls="dots"] .layout-carousel-dots { display:flex; }
.layout-separator { width:100%;height:var(--separator-height,48px);margin-bottom:-1px;overflow:hidden;color:var(--separator-to);line-height:0;background:var(--separator-from); }
.layout-separator svg,.layout-separator img { display:block;width:100%;height:100%;fill:currentColor;object-fit:fill; }
.layout-separator svg :is(path,rect,circle,polygon,polyline) { fill:currentColor; }
.layout-separator[data-separator="straight"] { height:0;margin-bottom:0; }
/* Over a photo that touches the join (preview.js): the curve cuts into the photo. */
.mock-site > [data-preview-component] { position:relative; }
.layout-separator:is(.layout-separator-over-next,.layout-separator-over-previous) { position:absolute;left:0;right:0;top:0;z-index:3;margin:0;pointer-events:none; }
.layout-separator.layout-separator-over-previous { transform:translateY(-100%); }
.layout-separator[data-separator="solid_thick"] { height:var(--theme-separator-thickness,12px);background:var(--separator-to); }
.layout-separator .separator-stroke { fill:none!important;stroke:var(--separator-stroke);stroke-width:2; }
.layout-separator .separator-fill,.layout-separator .separator-nodes { fill:var(--separator-to); }
/* People photos are portrait. A variant can still set its own shape (the round team-member card). */
.layout-section:where([data-layout-variant^="team/"],[data-layout-variant^="team-member/"]) .layout-image { aspect-ratio:4/5; }
/* How tall heroes stand. It follows the section width, not the window: the editor's preview frame grows to fit its content, so a screen-height unit there would keep growing. */
.layout-section[data-layout-variant^="hero/"] { --hero-height:max(600px,46cqw); }
/* Heroes with a photo edge to edge are screen tall on a real screen (Robyn, 2026-11-26: most good sites open with a huge photo).
   Capped, because Layout's preview frame grows to fit its content. */
.layout-section:is([data-layout-variant="hero/cover"],[data-layout-variant="hero/glass"],[data-layout-variant="hero/gradient"],[data-layout-variant="hero/postbox"],[data-layout-variant="hero/carousel"],[data-layout-variant="hero/story-carousel"],[data-layout-variant="hero/bleed"]) { --hero-height:max(640px,56cqw,min(92svh,1000px)); }
/* Edge to edge. A bleed image ignores the section gutter. Beside the copy (layout-bleed-side) it fills its half to the side, top and bottom; it follows Mirror because the padding and margins are logical. Above the copy (layout-bleed-top) it runs the full width from the top. layout-stack is the same image-title-text order inside the content width. */
.layout-section.layout-bleed-side { display:grid;grid-template-columns:1fr 1fr;gap:calc(var(--preview-space)*2.4);align-items:center;padding-block:0;padding-inline-end:0; }
.layout-bleed-side > :not(.layout-image) { padding-block:calc(var(--preview-space)*3); }
.layout-under-separator.layout-bleed-side > :not(.layout-image) { padding-bottom:calc(var(--preview-space)*3 + var(--separator-height,48px)); }
/* Height follows the image column's width (4:3, or --bleed-ratio), so it keeps its shape in narrow previews; longer copy can still make it taller. */
.layout-bleed-side > .layout-image { align-self:stretch;min-height:calc((var(--section-box) - var(--section-gutter) - var(--preview-space)*2.4)/2*var(--bleed-ratio,.75));aspect-ratio:auto;border-radius:0;position:relative; }
.layout-bleed-side > .layout-image img { position:absolute;inset:0; }
.layout-section.layout-bleed-top { padding-top:0; }
.layout-bleed-top > .layout-image { margin-inline:calc(var(--section-gutter)*-1);margin-bottom:calc(var(--preview-space)*2);aspect-ratio:5/2;border-radius:0; }
.layout-stack > .layout-image { aspect-ratio:2/1;margin-bottom:calc(var(--preview-space)*2); }
:is(.layout-bleed-top,.layout-stack) > :not(.layout-image) { max-width:760px; }
/* Cards whose image runs to the card's edges; the card's corners clip it. */
.layout-cards-flush .layout-card { padding:0;overflow:hidden; }
.layout-cards-flush .layout-card > .layout-image { border-radius:0; }
.layout-cards-flush .layout-card > :not(.layout-image) { padding:var(--preview-space); }
@container (max-width:600px) {
  .layout-section.layout-bleed-side { grid-template-columns:1fr;gap:0;padding-inline-end:var(--section-gutter); }
  .layout-bleed-side > :not(.layout-image) { padding-block:calc(var(--preview-space)*1.5) calc(var(--preview-space)*2); }
  .layout-bleed-side > .layout-image { order:-1;margin-inline:calc(var(--section-gutter)*-1);min-height:0;aspect-ratio:3/2; }
  .layout-bleed-top > .layout-image { aspect-ratio:2/1;margin-bottom:calc(var(--preview-space)*1.5); }
  .layout-stack > .layout-image { margin-bottom:calc(var(--preview-space)*1.5); }
  .mock-site { --layout-gutter:max(16px,var(--preview-space)); }
  .layout-section:where(:not([data-layout-variant^="menu/"])) { padding-block:calc(var(--preview-space)*2); }
  .layout-section[data-layout-variant^="menu/"] { display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center; }
  .layout-menu-toggle { display:block; }
  .layout-section[data-layout-variant^="menu/"] nav { display:none;width:100%;flex-direction:column;align-items:start; }
  .layout-section[data-layout-variant^="menu/"] nav[data-open="true"] { display:flex; }
  .layout-section .layout-stat { font-size:2.5em; }
}
@media (prefers-reduced-motion:reduce) { .mock-site * { scroll-behavior:auto!important; } }
/* services/blocks and services/blocks-muted: three services side by side, each its own color block, edge to edge. */
.layout-section:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]){padding:0;}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block{display:flex;flex-direction:column;gap:calc(var(--preview-space)*.7);min-height:max(300px,26cqw);padding:calc(var(--preview-space)*3) calc(var(--preview-space)*2.2);background:var(--section-bg);color:var(--section-ink);}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block h3{color:var(--section-ink);font-size:calc(clamp(1.4rem,2.3cqw,2.1rem)*var(--preview-scale,1));line-height:1.1;margin:0;}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block p{margin:0;max-width:34ch;}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block-detail:empty{display:none;}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block-detail{font-size:.85em;letter-spacing:.06em;text-transform:uppercase;opacity:.75;}
:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block a{margin-top:auto;color:var(--section-ink);font-weight:600;text-decoration:underline;text-underline-offset:.25em;}
@container (max-width: 600px){:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-items{grid-template-columns:1fr}:is([data-layout-variant="services/blocks"],[data-layout-variant="services/blocks-muted"]) .layout-block{min-height:0;}}
