/* ==================================================================
   Fwdia public micro-site base. Themed entirely via CSS custom
   properties injected per-site (see SiteRenderer::themeCss).
   ================================================================== */

/* Corner radius: --fw-radius (theme setting) for cards, buttons and media;
   --fw-radius-inner for pieces nested inside a card (fields, chips,
   thumbnails). Circles and pills are deliberate shapes and stay as they are. */
:root { --fw-radius-inner: calc(var(--fw-radius, 14px) * .6); }

* { box-sizing: border-box; }
/* In-page links (menus, anchors): smooth, and stop below a sticky menu */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.fw-el[id] { scroll-margin-top: 16px; }
body:has(.fw-menu-sticky) .fw-el[id] { scroll-margin-top: 72px; }
html { -webkit-text-size-adjust: 100%; }
body.fw-site {
    margin: 0; background: var(--fw-bg); color: var(--fw-text);
    font-family: var(--fw-font); font-size: 16.5px; line-height: 1.55;
    overflow-x: clip; /* full-width section bands use 100vw, which includes the scrollbar */
}
.fw-page {
    --fw-page-top: 28px;
    max-width: var(--fw-maxw); margin: 0 auto; min-height: 100vh;
    display: flex; flex-direction: column; padding: var(--fw-page-top) var(--fw-gutter, 18px) 20px;
}
.fw-content { display: flex; flex-direction: column; gap: var(--fw-gap, 18px); flex: 1; text-align: center; }
/* The site's shared header and footer: the page content (main) takes the room between them */
.fw-shared { flex: none; }
.fw-shared-header { margin-bottom: var(--fw-gap, 18px); }
/* Below a shared header the page no longer starts at the top of the screen: blocks that
   pull themselves up to the top edge (bands, sticky menus, hero cards) stay below it */
.fw-shared-header ~ .fw-content { --fw-page-top: 0px; }
.fw-shared-footer { margin-top: var(--fw-gap, 18px); }
/* Full-width bars in the header (announcement, menu bar, edge-to-edge band) touch each other */
.fw-shared-header > .fw-el:has(> :is(.fw-menu-bar, .fw-announce-bleed, .fw-section-bleed))
    + .fw-el:has(> :is(.fw-menu-bar, .fw-announce-bleed, .fw-section-bleed)) { margin-top: calc(-1 * var(--fw-gap, 18px)); }
/* No space below the header when the page starts with an edge-to-edge band or photo right
   under a full-width bar (the band hangs from the bar, as it hangs from the top of a page
   without a header), or when the page's first band says "No gap above" */
.fw-shared-header:has(> .fw-el:last-child > :is(.fw-menu-bar, .fw-announce-bleed, .fw-section-bleed)):has(~ main.fw-content > .fw-el:first-child > :is(.fw-section-bleed, .fw-mediacard-bleed, .fw-menu-bar, .fw-announce-bleed)),
.fw-shared-header:has(~ main.fw-content > .fw-el:first-child > .fw-section-join) { margin-bottom: 0; }
/* a catalogue category page that opens with its banner (CataloguePages) */
.fw-shared-header:has(~ main.fw-content > .fw-cat > .fw-cat-banner:first-child) { margin-bottom: 0; }
/* ...and none above the footer when the page ends with an edge-to-edge band and the footer starts with one */
main.fw-content:has(> .fw-el:last-child > :is(.fw-section-bleed, .fw-mediacard-bleed)) ~ .fw-shared-footer:has(> .fw-el:first-child > :is(.fw-section-bleed, .fw-announce-bleed)) { margin-top: 0; }
/* ...and none below the page when it ends with an edge-to-edge band (the footer's or the page's
   own) and there is no badge line under it: the band touches the bottom of the window */
.fw-page:not(:has(> .fw-site-footer)):has(> .fw-shared-footer > .fw-el:last-child > :is(.fw-section-bleed, .fw-mediacard-bleed, .fw-announce-bleed)),
.fw-page:not(:has(> .fw-site-footer, > .fw-shared-footer)):has(> main.fw-content > .fw-el:last-child > :is(.fw-section-bleed, .fw-mediacard-bleed)) { padding-bottom: 0; }
/* A sticky Menu block can only stick inside its parent: a header holding one sticks as a whole.
   The header itself starts at the top edge (its padding keeps the usual space), so a bar that
   pulls itself up to the top stays inside it instead of being cut off once it sticks; a layer
   behind it spans the whole window, so nothing shows through beside full-width bars. */
.fw-shared-header:has(.fw-menu-sticky) {
    position: sticky; top: var(--fw-owner-top, 0px); z-index: 20;
    margin-top: calc(-1 * var(--fw-page-top, 28px)); padding-top: var(--fw-page-top, 28px);
}
.fw-shared-header:has(.fw-menu-sticky)::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
    background: var(--fw-bg);
}
/* the menu inside sticks with the header, not on its own */
.fw-shared-header .fw-el-menu:has(> .fw-menu-sticky) { position: relative; top: auto; }
/* Builder, editing the header or footer itself: where the pages' own content goes */
.fw-content-shared { flex: none; }
/* "Page not found" in the site's own look */
.fw-notfound { padding: clamp(32px, 8vh, 96px) 0; display: grid; justify-items: center; gap: 12px; }
.fw-notfound-code { margin: 0; font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: color-mix(in srgb, var(--fw-accent) 70%, transparent); }
.fw-notfound p { margin: 0; max-width: 46ch; color: var(--fw-muted); }
.fw-shared-placeholder {
    flex: none; margin: var(--fw-gap, 18px) 0; padding: 28px 16px; border-radius: var(--fw-radius);
    border: 2px dashed color-mix(in srgb, var(--fw-text) 18%, transparent); color: var(--fw-muted);
    font-size: .86rem; text-align: center;
}
.fw-el { min-width: 0; }
/* a block with its own spacing (ElementRegistry::sanitizeSpace): pulled over a neighbour, it lies on top;
   on phones the space is smaller, as the blocks are */
.fw-el-shift { position: relative; z-index: 1; }
.fw-el-shift-top { margin-top: var(--fw-space-top); }
.fw-el-shift-bottom { margin-bottom: var(--fw-space-bottom); }
@media (max-width: 560px) {
    .fw-el-shift-top { margin-top: calc(var(--fw-space-top) * .6); }
    .fw-el-shift-bottom { margin-bottom: calc(var(--fw-space-bottom) * .6); }
}
.fw-el[hidden] { display: none; }
img { max-width: 100%; height: auto; }
a { color: var(--fw-accent); }

/* alignment helpers */
.fw-align-left { text-align: left; }
.fw-align-center { text-align: center; }
.fw-align-right { text-align: right; }
/* on phones (an image's "Alignment on phones") */
@media (max-width: 560px) {
    .fw-align-phone-left { text-align: left; }
    .fw-align-phone-center { text-align: center; }
    .fw-align-phone-right { text-align: right; }
}
.fw-muted { color: var(--fw-muted); }

/* headings */
.fw-heading { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
/* Theme "heading font" (falls back to the body font) for every title-like text */
.fw-heading, .fw-content h1, .fw-content h2, .fw-content h3, .fw-content h4,
.fw-form-title, .fw-upload-title, .fw-contact-name, .fw-hero-name,
.fw-mediacard-heading, .fw-spotlight-title {
    font-family: var(--fw-font-heading, var(--fw-font));
}
.fw-heading, .fw-content h1, .fw-content h2, .fw-content h3, .fw-content h4 { font-weight: var(--fw-heading-weight, 700); }
/* a heading in the text font, or the theme's accent font (script faces: their own weight, no tightening) */
.fw-heading.fw-font-body { font-family: var(--fw-font); }
.fw-heading.fw-font-accent { font-family: var(--fw-font-accent, var(--fw-font-heading)); font-weight: 400; letter-spacing: 0; }
.fw-heading-display { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; }
.fw-heading-xl { font-size: 2.3rem; }
.fw-heading-accent { color: var(--fw-accent); }
.fw-heading-lg { font-size: 1.7rem; }
.fw-heading-md { font-size: 1.25rem; }

.fw-text p { margin: 0 0 .6em; }
.fw-text p:last-child { margin-bottom: 0; }
.fw-text-sm { font-size: .88rem; }
.fw-text-lg { font-size: 1.2rem; }
/* Readable line length: the block keeps its alignment, its lines stop at about 65 characters */
.fw-text-links a { color: var(--fw-text-link); }
.fw-text-narrow { max-width: 65ch; }
.fw-text-narrow.fw-align-center { margin-inline: auto; }
.fw-text-narrow.fw-align-right { margin-left: auto; }
/* Text in a box (colour or gradient, corners, space inside, line, shadow) */
.fw-text-box { border-radius: var(--fw-radius, 10px); }
.fw-text-box-r-square { border-radius: 0; }
.fw-text-box-r-round { border-radius: calc(var(--fw-radius, 10px) * 2 + 12px); }
.fw-text-box-pad-sm { padding: 12px 16px; }
.fw-text-box-pad-md { padding: 20px 24px; }
.fw-text-box-pad-lg { padding: 32px 36px; }
@media (max-width: 560px) { .fw-text-box-pad-lg { padding: 24px 22px; } }
.fw-text-box-shadow { box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--fw-text) 30%, transparent); }
.fw-text-box > :first-child { margin-top: 0; }
.fw-text-box > :last-child { margin-bottom: 0; }
.fw-text-box-dark a { text-decoration: underline; text-underline-offset: 2px; }

/* buttons (shared by several elements) */
.fw-button {
    display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
    padding: 13px 26px; border-radius: var(--fw-btn-radius, var(--fw-radius)); border: 2px solid var(--fw-accent);
    font-size: 1rem; font-family: inherit; transition: transform .12s ease, opacity .12s ease;
}
.fw-button:hover { transform: translateY(-1px); }
/* an icon next to the label: the button becomes a row, centred (also when full width) */
.fw-button:has(.fw-button-icon) { display: inline-flex; align-items: center; justify-content: center; gap: .5em; }
.fw-button-full:has(.fw-button-icon) { display: flex; }
.fw-button-icon { flex: none; width: 1.45em; height: 1.45em; margin-block: -.15em; stroke-width: 1.9; }
.fw-button-solid { background: var(--fw-accent); color: var(--fw-accent-text); }
.fw-button-outline { background: transparent; color: var(--fw-accent); }
.fw-button-soft { background: color-mix(in srgb, var(--fw-accent) 13%, transparent); color: var(--fw-accent); border-color: transparent; }
.fw-button-full { display: block; width: 100%; text-align: center; }
.fw-button[disabled] { opacity: .55; cursor: not-allowed; }

/* images */
.fw-image { border-radius: var(--fw-radius); display: inline-block; }
.fw-image-square { border-radius: 0; }
.fw-image-rounded { border-radius: calc(var(--fw-radius) * 1.6); }
.fw-image-circle { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.fw-image-placeholder {
    padding: 40px 16px; border: 2px dashed color-mix(in srgb, var(--fw-text) 25%, transparent);
    border-radius: var(--fw-radius); color: var(--fw-muted);
}

/* dividers */
.fw-divider { --fw-divider-c: color-mix(in srgb, var(--fw-text) 18%, transparent); border: 0; border-top: 2px solid var(--fw-divider-c); margin: 6px auto; }
.fw-divider-dashed { border-top-style: dashed; }
/* wavy / zigzag (ElementSupport::linePattern): the shape as a mask over the line colour */
.fw-divider-pattern {
    border: 0; background: var(--fw-divider-c);
    -webkit-mask: var(--fw-divider-mask) 0 50% / 24px 100% repeat-x; mask: var(--fw-divider-mask) 0 50% / 24px 100% repeat-x;
}
.fw-divider-arrow { display: flex; align-items: center; border: 0; color: var(--fw-divider-c); }
.fw-divider-arrow .fw-divider-shaft { flex: 1; min-width: 0; display: block; background: currentColor; border-radius: 99px; }
.fw-divider-arrow .fw-divider-head { flex: none; display: block; margin-left: calc(var(--fw-divider-head) * -.75); }
.fw-divider-curve { align-items: flex-end; } /* the curve comes down to the arrow at the bottom */
.fw-divider-curve .fw-divider-shaft { background: none; border-radius: 0; overflow: visible; }
.fw-divider-flip { transform: scaleX(-1); }
.fw-divider-dots { color: var(--fw-muted); letter-spacing: .5em; font-weight: 700; }

/* header / nav */
.fw-site-header { margin-bottom: 18px; }
.fw-site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; }
.fw-site-nav a {
    text-decoration: none; color: var(--fw-muted); font-weight: 600; font-size: .92rem;
    padding: 6px 10px; border-radius: 999px;
}
.fw-site-nav a.active, .fw-site-nav a:hover { color: var(--fw-accent); background: color-mix(in srgb, var(--fw-accent) 10%, transparent); }

/* verified mark: a small pill in the footer (next to "made with fwdia"), the
   same quiet style as the branding pill; the badge itself is always Fwdia blue.
   A tap opens a short note above it. */
.fw-verified { position: relative; font-size: .8rem; line-height: 1.3; }
.fw-verified summary {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 9px; border-radius: 999px; cursor: pointer;
    list-style: none; color: var(--fw-muted); -webkit-tap-highlight-color: transparent;
    border: 1px solid color-mix(in srgb, var(--fw-text) 14%, transparent); background: color-mix(in srgb, var(--fw-text) 3%, transparent);
}
.fw-verified summary::-webkit-details-marker { display: none; }
.fw-verified summary:hover, .fw-verified[open] summary { border-color: #1d8cf8; color: var(--fw-text); }
.fw-verified summary:focus-visible { outline: 2px solid #1d8cf8; outline-offset: 2px; }
.fw-verified-badge { flex: none; display: block; }
.fw-verified-note {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30;
    width: max-content; max-width: min(260px, 80vw); margin: 0; padding: 8px 12px; border-radius: 10px;
    font-size: .78rem; text-align: center; color: var(--fw-text); background: var(--fw-surface);
    border: 1px solid color-mix(in srgb, var(--fw-text) 12%, transparent); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35);
}
.fw-site-footer .fw-verified + .fw-branding { margin-left: -4px; }

/* footer branding: a pill between two hairlines */
.fw-site-footer {
    margin-top: var(--fw-footer-gap, 34px); display: flex; align-items: center; gap: 12px;
    padding: 0 9px; text-align: center;
}
.fw-site-footer::before, .fw-site-footer::after {
    content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--fw-text) 12%, transparent);
}
.fw-branding {
    display: inline-block; text-decoration: none; color: var(--fw-muted); font-size: .8rem;
    padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--fw-text) 14%, transparent);
    background: color-mix(in srgb, var(--fw-text) 3%, transparent);
}
.fw-branding b { color: var(--fw-text); }
.fw-branding-arrow { color: var(--fw-accent); }
.fw-branding:hover { border-color: var(--fw-accent); }

/* Movement > Attention: a short nudge every few seconds on the block's button (or picture),
   marked .fw-motion-target by site.js; never for "reduce motion", not in the builder canvas */
@media (prefers-reduced-motion: no-preference) {
    .fw-attn .fw-motion-target { animation: 4.5s ease-in-out 1.2s infinite both; transform-origin: 50% 60%; }
    .fw-attn-wiggle .fw-motion-target { animation-name: fw-attn-wiggle; }
    .fw-attn-bounce .fw-motion-target { animation-name: fw-attn-bounce; }
    .fw-attn-pulse .fw-motion-target { animation-name: fw-attn-pulse; }
    .fw-attn .fw-motion-target:is(:hover, :focus-visible) { animation-play-state: paused; }
}
@keyframes fw-attn-wiggle {
    0%, 14%, 100% { transform: none; }
    2% { transform: rotate(-7deg); } 4.5% { transform: rotate(6deg); } 7% { transform: rotate(-4deg); }
    9.5% { transform: rotate(3deg); } 12% { transform: rotate(-1deg); }
}
@keyframes fw-attn-bounce {
    0%, 16%, 100% { transform: none; }
    4% { transform: translateY(-9px); } 8% { transform: none; } 11% { transform: translateY(-4px); }
}
@keyframes fw-attn-pulse {
    0%, 16%, 100% { transform: none; }
    5% { transform: scale(1.08); } 10% { transform: scale(.98); } 13% { transform: scale(1.02); }
}

/* builder-preview niceties */
/* Short status note at the bottom of the screen ("Link copied", and in
   template previews "Links open on your real page"). */
.fw-icon-note {
    position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%);
    max-width: calc(100% - 32px); width: max-content; text-align: center;
    padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
    background: var(--fw-text); color: var(--fw-bg); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}

body.fw-site-preview .fw-el { position: relative; cursor: pointer; }
/* ...but a sticky menu must stay sticky, or the preview cannot show it
   (sticky is also a positioned box, so the editor toolbar still anchors). */
body.fw-site-preview .fw-el-menu:has(> .fw-menu-sticky) { position: sticky; }
/* A Pro block on a site without Pro: kept in place in the builder, hidden for
   visitors (it is not rendered on the live page at all). */
body.fw-site-preview .fw-el-locked { outline: 2px dashed #f5a524; outline-offset: 3px; border-radius: 4px; }
body.fw-site-preview .fw-el-locked > :not(.fw-locked-badge) { opacity: .4; filter: grayscale(.7); }
.fw-locked-badge {
    position: absolute; top: 8px; left: 8px; z-index: 6; pointer-events: none;
    padding: 4px 10px; border-radius: 999px; background: #f5a524; color: #1d1405;
    font: 700 11px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
/* Block outlines in the text colour of the band they sit on (a band sets the text colour that
   reads on its background): dark lines over light backgrounds, light lines over dark ones */
body.fw-site-preview .fw-el:hover { outline: 2px dashed color-mix(in srgb, var(--fw-text) 60%, transparent); outline-offset: 3px; }
body.fw-site-preview .fw-el.fw-selected { outline: 2px solid var(--fw-text); outline-offset: 3px; }
body.fw-site-preview .fw-el.fw-drag-over-before { box-shadow: 0 -3px 0 0 var(--fw-accent); }
body.fw-site-preview .fw-el.fw-drag-over-after { box-shadow: 0 3px 0 0 var(--fw-accent); }
/* the shared header/footer on a page: not edited here (a tap says where), so no block outlines */
body.fw-site-preview [data-fw-shared] .fw-el:hover { outline: 0; }
body.fw-site-preview [data-fw-shared] { cursor: pointer; }
body.fw-site-preview [data-fw-shared]:hover { outline: 2px dashed color-mix(in srgb, var(--fw-text) 45%, transparent); outline-offset: 2px; }
body.fw-site-preview .fw-row-col:empty {
    min-height: 54px; border: 2px dashed color-mix(in srgb, var(--fw-text) 35%, transparent);
    border-radius: var(--fw-radius-inner);
}
body.fw-site-preview .fw-row-col.fw-drag-over-col { border-color: var(--fw-accent); background: color-mix(in srgb, var(--fw-accent) 6%, transparent); }

/* round outlined icon button (hero card, media cards) */
.fw-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    color: var(--fw-text); background: color-mix(in srgb, var(--fw-text) 3%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--fw-text) 22%, transparent);
    transition: border-color .12s ease, color .12s ease, transform .12s ease;
}
.fw-iconbtn:hover, .fw-iconbtn:focus-visible {
    color: var(--fw-accent); border-color: var(--fw-accent); transform: translateY(-1px);
}

/* ---------------------------------------------------------------- cookie choice (owner's own analytics only) */
.fw-consent {
    position: fixed; z-index: 1000; left: 50%; bottom: 16px; transform: translateX(-50%);
    width: min(560px, calc(100% - 24px)); padding: 16px 18px; border-radius: 14px;
    background: var(--fw-surface, #fff); color: var(--fw-text, #20241f);
    border: 1px solid color-mix(in srgb, var(--fw-text, #20241f) 14%, transparent);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); font-family: var(--fw-font, inherit); font-size: .9rem; line-height: 1.5;
}
.fw-consent[hidden] { display: none; }
.fw-consent p { margin: 0 0 12px; }
.fw-consent a { color: inherit; text-decoration: underline; }
.fw-consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* both choices look the same: no nudging */
.fw-consent-btn {
    min-height: 40px; min-width: 110px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
    background: var(--fw-accent, #0e5a43); color: var(--fw-accent-text, #fff); border: 0;
}
.fw-consent-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--fw-accent, #0e5a43) 45%, transparent); outline-offset: 2px; }
/* cookie choice button: over the left end of the footer line, centred on it; out of
   the flex flow, so the 'made with fwdia' badge stays centred on the page */
.fw-site-footer:has(.fw-consent-btn-icon) { position: relative; }
.fw-consent-btn-icon {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
    color: var(--fw-muted, #6c7268); background: var(--fw-bg, #fff);
    border: 1px solid color-mix(in srgb, var(--fw-text, #20241f) 14%, transparent);
    transition: color .15s, background-color .15s;
}
.fw-consent-btn-icon:hover { color: var(--fw-text, #20241f); background: color-mix(in srgb, var(--fw-text, #20241f) 6%, var(--fw-bg, #fff)); }
.fw-consent-btn-icon:focus-visible { outline: 3px solid color-mix(in srgb, var(--fw-accent, #0e5a43) 45%, transparent); outline-offset: 2px; }
.fw-consent-btn-icon[hidden] { display: none; }
@media print { .fw-consent-btn-icon, .fw-consent { display: none; } }
@media (max-width: 480px) {
    .fw-consent { bottom: 10px; }
    .fw-consent-btn { flex: 1; }
}
.fw-site-footer:not(:has(.fw-branding, .fw-verified))::after { display: none; } /* only the cookie button: one continuous line */
.fw-site-footer:not(:has(.fw-branding, .fw-verified)) { min-height: 36px; }

/* Lightbox: photos of a gallery (or a product) large, one by one (site.js openLightbox) */
.fw-cat-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: rgba(10, 10, 10, .94); color: #fff; }
.fw-cat-lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.fw-cat-lightbox button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.fw-cat-lightbox-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fw-cat-lightbox-stage::-webkit-scrollbar { display: none; }
.fw-cat-lightbox-stage figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 0 8px; box-sizing: border-box; }
.fw-cat-lightbox-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.fw-cat-lightbox-nav { display: flex; justify-content: center; gap: 16px; padding: 12px; }
.fw-cat-lightbox-stage figcaption { margin-top: 10px; font-size: .9rem; text-align: center; color: rgba(255, 255, 255, .85); }
.fw-cat-lightbox-stage figure { flex-direction: column; }

/* The owner bar (Services\OwnerBar, site.js initOwnerBar): only the site's owner sees it.
   Fwdia's own look, whatever the site's theme; sticky menus stick just below it. */
body.fw-has-owner-bar { --fw-owner-top: 44px; padding-top: 44px; }
body.fw-has-owner-bar .fw-page { min-height: calc(100vh - 44px); }
.fw-owner-bar {
    position: fixed; z-index: 900; top: 0; left: 0; right: 0; height: 44px; box-sizing: border-box;
    display: flex; align-items: center; gap: 6px; padding: 0 10px;
    background: #14161c; color: #e9ebf0; text-align: left;
    font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px -6px rgba(0, 0, 0, .4);
}
.fw-owner-bar a {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 7px;
    color: inherit; text-decoration: none; white-space: nowrap;
}
.fw-owner-bar a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.fw-owner-bar a:focus-visible { outline: 2px solid #8fb4ff; outline-offset: 1px; }
.fw-owner-bar svg { flex: none; }
.fw-owner-logo { font-weight: 800; font-size: 14px; color: #fff !important; padding: 0 8px !important; }
.fw-owner-logo span { display: inline-flex; color: #6f9bff; margin-left: -3px; }
.fw-owner-site { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9aa1b1; padding-right: 6px; max-width: 220px; }
.fw-owner-bar .fw-owner-edit { background: #2f6bff; color: #fff; font-weight: 600; }
.fw-owner-bar .fw-owner-edit:hover { background: #4a7fff; }
.fw-owner-changes { color: #ffd479 !important; }
.fw-owner-changes i { width: 7px; height: 7px; border-radius: 50%; background: #ffb020; }
.fw-owner-gap { flex: 1; }
.fw-owner-link { color: #c3c8d4 !important; }
.fw-owner-off { color: #9aa1b1 !important; padding: 0 8px !important; }
@media (max-width: 760px) {
    .fw-owner-site, .fw-owner-link span, .fw-owner-changes span { display: none; }
    .fw-owner-bar { gap: 2px; padding: 0 6px; }
    .fw-owner-bar a { padding: 0 8px; }
}
@media print { .fw-owner-bar { display: none; } body.fw-has-owner-bar { padding-top: 0; } }
