[hidden]{display:none!important}

/* approved palette-treated logos are wide (about 6.4:1): fit them like the approved demo entry does so the mobile header keeps the menu button on screen */
header img[data-ew-path="/globals/brand/logo_asset_id"]{max-width:230px!important;max-height:45px!important;width:auto!important;height:auto!important}
footer img[data-ew-path="/globals/brand/logo_asset_id"]{max-width:min(100%,320px)!important;max-height:60px!important;width:auto!important;height:auto!important}
@media(max-width:600px){header img[data-ew-path="/globals/brand/logo_asset_id"]{max-width:180px!important;max-height:38px!important}}

/* demo-reconcile-0929 narrow-viewport overflow guards (no change at >= 390 px; no overflow clipping on html/body):
   header logo capped to the room left beside the menu/cart buttons; long headline words wrap; the four-item proof grid stacks at <= 340 px; carousel dots wrap. */
@media(max-width:600px){header img[data-ew-path="/globals/brand/logo_asset_id"]{max-width:min(180px,calc(100vw - 150px))!important;object-fit:contain}.ew-h1,.ew-h2,.ew-lead{overflow-wrap:break-word}}
@media(max-width:340px){.ew-proof{grid-template-columns:minmax(0,1fr)}.ew-proof-item,.ew-proof-item:nth-child(odd){padding-left:0;padding-right:0}.ew-proof-item:nth-child(2){border-top:1px solid var(--rule)}.ew-cardots{flex-wrap:wrap;max-width:100%}.ew-header-in{gap:8px}}

/* Logo sizing = the approved demo entries' own rules (owner decision 2026-09-30: the approved demos have the correct logo sizes).
   Header: max 230x45 (180x38 up to 600 px); footer: max min(100%,320px) x 60; aspect ratio, asset bytes and object-fit:contain untouched. */
html body img[data-brand-logo]{width:auto!important;height:auto!important;max-width:100%;object-fit:contain;max-height:60px}
html body header img[data-brand-logo="header"]{max-width:230px!important;max-height:45px!important;width:auto!important;height:auto!important}
html body footer img[data-brand-logo="footer"]{max-width:min(100%,320px)!important;max-height:60px!important}
@media(max-width:600px){html body header img[data-brand-logo="header"]{max-width:180px!important;max-height:38px!important}}

/* 2026-10-29 successor: skip link, visible only while it has keyboard focus (localized in the layout); target is <main id="ew-main"> */
.ew-skip{position:fixed;left:16px;top:-96px;z-index:1000;padding:12px 18px;border-radius:8px;background:#fff;color:#111;font-size:15px;font-weight:600;line-height:1.2;text-decoration:none;box-shadow:0 2px 12px rgba(0,0,0,.25)}
.ew-skip:focus,.ew-skip:focus-visible{top:16px;outline:2px solid #111;outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.ew-skip{transition:top .18s ease}}
#ew-main:focus{outline:none}

/* 1.0.6 (S12.02): mobile header row. The brand link may shrink (the 1.0.5 inline flex:none plus a 100vw-112px cap left the cart and burger without room: scrollWidth 419 at 390 px with a long business name); cart and burger keep their full 46px. Nothing is clipped horizontally. */
.ew-header-in>.ew-cartbtn,.ew-header-in>.ew-burger{flex:none;}
@media(max-width:1000px){.ew-header-in>a:first-child{min-width:0;}.ew-header-in>a:first-child .ew-brand-name{max-width:100%;}.ew-header-in>a:first-child img[data-brand-logo]{min-width:0;}}
@media(max-width:600px){.ew-header-in>a:first-child .ew-brand-name{font-size:17px;}}
