/* Scoped presentation shared by the existing homepage name and its admin preview. */
@font-face{font-family:"Swefood Season";font-style:italic;font-weight:700;font-display:swap;src:url(../seasonal/fonts/playfair-display-latin-700-italic.woff2) format("woff2")}
@font-face{font-family:"Great Vibes";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/great-vibes/great-vibes-latin.woff2) format("woff2")}
[data-sf-name-style="modern-bold"]{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:900;letter-spacing:-.045em}
[data-sf-name-style="elegant-serif"]{font-family:Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:-.025em}
[data-sf-name-style="christmas-elegant"]{font-family:"Swefood Season",Georgia,serif;font-weight:700;font-style:italic;letter-spacing:0}
[data-sf-name-style="classic-restaurant"]{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:.045em}
[data-sf-name-style="premium-display"]{font-family:Impact,"Arial Black",system-ui,sans-serif;font-weight:900;letter-spacing:.035em;text-transform:uppercase}
[data-sf-name-style="rounded-modern"]{font-family:"Trebuchet MS",ui-rounded,system-ui,sans-serif;font-weight:700;letter-spacing:.015em}
[data-sf-name-style="minimal-clean"]{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:300;letter-spacing:.025em}
[data-sf-name-style="signature-script"]{font-family:"Great Vibes",Georgia,serif;font-weight:400;letter-spacing:0}

body.sf-page-home .sf-name-custom .sf-frontend-header__brand{flex-direction:row;align-items:center;gap:clamp(8px,1vw,14px);min-width:0;max-width:calc(100% - 380px)}
/* A chosen ink needs a predictable surface even when the seasonal hero shines through the header. */
body.sf-page-home .sf-name-custom .sf-frontend-header__brand:has([style*="--sf-name-light"]){background:var(--sf-surface)!important}
body.sf-page-home .sf-name-custom .sf-frontend-header__brand-image{min-width:0;flex:0 0 auto;max-width:24%}
body.sf-page-home .sf-name-custom .sf-frontend-header__brand-image img{width:auto;height:auto;max-width:min(18vw,96px);max-height:72px;transform:none}
/* Keep the standard-size footprint; public.js fits only the visual scale in the free space. */
body.sf-page-home .sf-name-custom .sf-frontend-header__brand-text{display:block;flex:1 1 auto;min-width:0;max-width:100%;font-size:clamp(1.16rem,1.5vw,1.56rem);--sf-name-requested:var(--sf-name-size,clamp(1.16rem,1.5vw,1.56rem));transform:scale(var(--sf-name-scale,1));transform-origin:left center;line-height:1.2;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-wrap:balance;text-overflow:clip;color:var(--sf-name-dark,var(--sf-text));opacity:1}
html.sf-theme-light body.sf-page-home .sf-name-custom .sf-frontend-header__brand-text{color:var(--sf-name-light,var(--sf-text))}
@media(max-width:900px){
 body.sf-page-home .sf-frontend-header.sf-name-custom .sf-frontend-header__inner{grid-template-rows:var(--sf-mobile-header-row) auto;padding-bottom:22px}
 body.sf-page-home .sf-name-custom .sf-frontend-header__brand{position:relative;top:auto;left:auto;right:auto;translate:none;grid-row:2;width:fit-content;max-width:100%;margin:12px auto 0}
 body.sf-page-home .sf-name-custom .sf-frontend-header__brand-text{font-size:clamp(.95rem,5vw,1.56rem);--sf-name-requested:clamp(var(--sf-name-mobile,.95rem),5vw,var(--sf-name-size,1.56rem))}
 /* The brand already occupies its own row with 22px below it; do not also reserve space for a floating logo. */
 body.sf-page-home .sf-frontend-header.sf-name-custom + .sf-home-page .sf-home-hero-v2--focused .sf-home-hero-v2__inner{padding-top:0}
}

/* Optional glass behind the name only. The padding is cancelled by equal negative margins on a content-box,
   so the name keeps exactly its previous footprint: no extra height, width or movement in the header or hero. */
body.sf-page-home .sf-frontend-header .sf-frontend-header__brand-text[data-sf-name-glass]{flex-grow:0;box-sizing:content-box;padding:.12em .42em;margin:-.12em -.42em;border-radius:.55em;background:var(--sf-name-glass);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 6px 18px rgba(0,0,0,.14);color:var(--sf-name-glass-dark,inherit)}
html.sf-theme-light body.sf-page-home .sf-frontend-header .sf-frontend-header__brand-text[data-sf-name-glass],
body.sf-theme-light.sf-page-home .sf-frontend-header .sf-frontend-header__brand-text[data-sf-name-glass]{color:var(--sf-name-glass-light,inherit)}
/* The logo always stays in front, so the glass can never sit behind it. */
body.sf-page-home .sf-frontend-header__brand:has([data-sf-name-glass]) .sf-frontend-header__brand-image{position:relative;z-index:1}
/* Side-by-side logo and name: a fixed 10px gap, and the glass starts only after it. The logo keeps its own
   size but its box may no longer be narrower than the image, so the image can never reach over the name. Horizontal only. */
body.sf-page-home .sf-frontend-header__brand:has([data-sf-name-glass]){column-gap:10px}
body.sf-page-home .sf-name-custom .sf-frontend-header__brand:has([data-sf-name-glass]) .sf-frontend-header__brand-image{max-width:none}
body.sf-page-home .sf-name-custom .sf-frontend-header__brand-text[data-sf-name-glass]{margin-left:0}
@media(min-width:901px){body.sf-page-home .sf-frontend-header .sf-frontend-header__brand-text[data-sf-name-glass]{margin-left:0}body.sf-page-home .sf-frontend-header__brand:has([data-sf-name-glass]) .sf-frontend-header__brand-image{min-width:0}}

.sf-name-editor{grid-column:1/-1;min-width:0;border:1px solid #dce2e9;border-radius:16px;background:#fff;padding:20px;color:#202b3c}
.sf-name-editor h4{margin:0 0 6px;font-size:17px}.sf-name-editor p{margin:6px 0 16px}
.sf-name-editor fieldset{min-width:0;margin:20px 0}.sf-name-editor legend{font-weight:700;margin-bottom:10px}
.sf-name-editor__styles{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px}
.sf-name-editor__style{position:relative;display:block;padding:12px;border:1px solid #dce2e9;border-radius:12px;cursor:pointer;min-width:0;background:#fafbfc}
.sf-name-editor__style:has(input:checked){border-color:#315a9a;box-shadow:0 0 0 1px #315a9a;background:#f2f6fc}
.sf-name-editor__style:focus-within{outline:2px solid #315a9a;outline-offset:2px}
.sf-name-editor__style small{display:block;font:12px/1.4 system-ui,sans-serif;margin-bottom:8px}
.sf-name-editor__sample{display:block;font-size:23px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sf-name-editor__sizes,.sf-name-editor__colors{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sf-name-editor input[type=range]{width:min(100%,350px);accent-color:#315a9a}
.sf-name-editor__sizes button[aria-pressed=true]{background:#e8effa;border-color:#315a9a}
.sf-name-editor__colors input[type=color]{width:48px;height:38px;padding:3px;border:1px solid #c2cbd6;border-radius:8px}
.sf-name-editor__colors input[type=text]{width:112px}
.sf-name-editor__swatch{width:32px;height:32px;border:1px solid #8894a4;border-radius:50%;background:var(--sf-name-swatch);cursor:pointer}
.sf-name-editor__swatch:focus-visible{outline:2px solid #315a9a;outline-offset:3px}
.sf-name-editor__previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.sf-name-editor__preview{min-width:0;padding:18px;border-radius:12px;border:1px solid #a1a9b555;background:var(--sf-preview-bg);color:var(--sf-preview-ink)}
.sf-name-editor__preview>small{display:block;font:12px/1.5 system-ui;margin-bottom:18px;opacity:.8}
.sf-name-editor__brand{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:100px}
.sf-name-editor__brand img{display:block;flex:0 0 auto;width:auto;height:auto;max-height:64px;max-width:22%;object-fit:contain}
.sf-name-editor__brand img[hidden]{display:none}
.sf-name-editor__brand [data-sf-name-style]{min-width:0;overflow-wrap:anywhere;text-wrap:balance;text-align:center;font-size:var(--sf-name-size,24px);line-height:1.25;color:var(--sf-name-ink,inherit)}
.sf-name-editor__brand [data-sf-name-style][data-name-glass]{box-sizing:content-box;padding:.12em .42em;margin:-.12em -.42em;border-radius:.55em;background:var(--sf-name-glass);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 6px 18px rgba(0,0,0,.14)}
.sf-name-editor__notice{padding:10px 12px;background:#fff6df;border-left:3px solid #bd8200;border-radius:4px;font-size:13px}
.sf-name-editor [hidden]{display:none!important}
@media(max-width:600px){.sf-name-editor__previews{grid-template-columns:1fr}.sf-name-editor{padding:14px}}
