/* Shared containment and motion; colors and type remain owned by each brand theme. */
:root{--z-base:1;--z-sticky:20;--z-nav:40;--z-overlay:50;--z-modal:60;--z-toast:70;--ease-out:cubic-bezier(.22,1,.36,1);--ease-in-out:cubic-bezier(.65,0,.35,1);--dur-fast:150ms;--dur-base:240ms;--dur-slow:380ms;--stagger:45ms}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(88px + env(safe-area-inset-top));max-width:100%}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:320px;overflow-x:clip}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
:where(main,section,article,form,.container,.shell,.wrap,.pmGrid,.cp-form-grid,.cp-two-col,.plan-grid,.design-grid)>*{min-width:0}
:where(p,dd,td,li,pre,.tsContentBody,.cp-guest-main,.tsMenuText){overflow-wrap:anywhere}
:where(h1,h2,h3){text-wrap:balance}
pre{white-space:pre-wrap;max-width:100%;overflow:auto}
:where(input,select,textarea){max-width:100%;min-width:0;font:inherit}
:where(button,.btn,.cp-btn,.pmBtn,.opButton,.vnBtn,summary){min-height:44px}
:where(button,input,select,textarea,a,summary):focus-visible{outline:2px solid var(--cc-accent,var(--cp-blue,currentColor));outline-offset:3px}
:where(.pmGrid.two,.ts-motion-grid,.plan-grid,.tsBlogGrid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:clamp(16px,2vw,24px)}
:where(.pmCardHead,.cp-card-head,.ts-motion-actions){flex-wrap:wrap;gap:clamp(8px,1.5vw,16px)}
:where(.tsBlogCard img,.venue-gallery img){object-fit:cover;aspect-ratio:16/10}
.pn-scroll-table{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}
html[data-motion] body #adminSide.side{z-index:var(--z-nav)!important}
html[data-motion] body :is(.topbar,.cp-top,.tsUnifiedHead){z-index:var(--z-sticky)!important}
html[data-motion] body :is(.cp-side,.pn-bottom,.cp-mobile-tabs){z-index:var(--z-nav)!important}
html[data-motion] body :is(.cp-toast,.toast,.pn-toast){z-index:var(--z-toast)!important}
html[data-motion] body :is(.opModal,.pn-command,dialog){z-index:var(--z-modal)!important;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto}
html[data-motion] body :is(.tsNotifyMenu,.cp-pop){z-index:var(--z-overlay)!important;max-width:calc(100vw - 24px)}
html[data-motion] body .pn-actions[open]::before{z-index:var(--z-overlay)!important}
html[data-motion] body .pn-actions[open]>.pn-action-items{z-index:var(--z-modal)!important}
html[data-motion] body .cp-form-actions{z-index:var(--z-sticky)!important}
html[data-motion] body :is(.cp-side,#adminSide){padding-top:max(14px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
html[data-motion-speed=fast],.ts-motion-preview[data-motion-speed=fast]{--dur-fast:110ms;--dur-base:170ms;--dur-slow:260ms}
html[data-motion-speed=relaxed],.ts-motion-preview[data-motion-speed=relaxed]{--dur-fast:180ms;--dur-base:250ms;--dur-slow:420ms}
/* Legacy styles cannot override the central motion policy. */
html[data-motion] *,html[data-motion] *::before,html[data-motion] *::after{transition-property:transform,opacity!important;transition-duration:var(--dur-fast)!important;transition-timing-function:var(--ease-out)!important}
html[data-motion=off] *,html[data-motion=off] *::before,html[data-motion=off] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-motion-page="0"] :is(.cp-content,.app>.main,.tsPanelStandalone>main){animation:none!important}
html[data-motion-page="1"]:not([data-motion=off]) .ts-motion-page{animation:ts-page-in min(var(--dur-base),250ms) var(--ease-out)}
@keyframes ts-page-in{from{opacity:.7;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ts-reveal{from{opacity:.6}to{opacity:1}}
@keyframes ts-skeleton{from{opacity:.45}to{opacity:.85}}
html[data-motion]:not([data-motion=off]) .ts-motion-enter{animation:ts-reveal var(--dur-base) var(--ease-out) both;animation-delay:var(--motion-delay,0ms)}
html[data-motion-menu="1"]:not([data-motion=off]) :is(.cp-side,#adminSide){transition:transform var(--dur-base) var(--ease-out)!important}
html[data-motion-tabs="1"]:not([data-motion=off]) :is(details[open]>:not(summary),.pn-section:not([hidden])){animation:ts-reveal var(--dur-fast) var(--ease-out)}
html[data-motion-menu="1"]:not([data-motion=off]) :is(dialog[open],.cp-pop,.tsNotifyMenu,.pn-action-items){animation:ts-reveal var(--dur-fast) var(--ease-out)}
html[data-motion-skeleton="1"]:not([data-motion=off]) [aria-busy=true] .ts-skeleton{animation:ts-skeleton 1s var(--ease-in-out) infinite alternate}
html[data-motion]:not([data-motion=off]) :is(button,.btn,.cp-btn,.pmBtn):active{transform:scale(.98)}
html[data-motion]::view-transition-old(root),html[data-motion]::view-transition-new(root){animation-duration:min(var(--dur-base),250ms)}
.ts-motion-settings label{display:grid;gap:8px;margin-block:12px;font-size:16px}
.ts-motion-settings select{width:100%;min-height:48px;font-size:16px;border-radius:12px;padding:10px;background:var(--cc-surface);color:var(--cc-ink);border:1px solid var(--cc-border)}
.ts-motion-settings .ts-motion-check{display:flex;align-items:center;min-height:44px;gap:12px}.ts-motion-check input{width:20px;height:20px}
.ts-motion-settings fieldset{min-width:0;border:1px solid var(--cc-border);border-radius:12px;padding:12px}
.ts-motion-preview{border:1px solid var(--cc-border);border-radius:16px;padding:16px;margin-top:16px;background:var(--cc-surface-2)}
.ts-motion-preview button{min-height:48px;padding:10px 16px;font:inherit;color:inherit;background:var(--cc-surface);border:1px solid var(--cc-border);border-radius:12px}
.ts-motion-preview[data-motion=off] *{animation:none!important;transition:none!important;transform:none!important}
.ts-motion-preview[data-motion]:not([data-motion=off]) .ts-preview-play{animation:ts-page-in var(--dur-base) var(--ease-out)}
.ts-motion-actions{display:flex;position:sticky;bottom:calc(80px + env(safe-area-inset-bottom));z-index:var(--z-sticky);padding:16px;background:var(--cc-surface);border:1px solid var(--cc-border);border-radius:16px;margin-top:20px}
html body.pn-static-menu .pn-group:not([open])>.pn-group-links{display:none!important}
html body.pn-static-menu .pn-group>summary.pn-group-title{display:flex;align-items:center;justify-content:space-between;min-height:48px;cursor:pointer;list-style:none;letter-spacing:.03em;margin:0!important;padding:12px!important}
html body.pn-static-menu .pn-group>summary.pn-group-title::after{content:'⌄'!important;display:block;transform:rotate(-90deg);font-size:16px}
html body.pn-static-menu .pn-group[open]>summary.pn-group-title::after{transform:none}
@media(hover:hover) and (min-width:1025px){html[data-motion-hover="1"]:not([data-motion=off]) :is(.cp-card,.pmCard,.plan,.tsBlogCard):hover{transform:translateY(-2px)}html[data-motion=full][data-motion-hero="1"] :is(.cp-hero,.hero){animation:ts-reveal var(--dur-slow) var(--ease-out)}}
@media(max-width:1024px){body{padding-bottom:env(safe-area-inset-bottom)}html[data-motion] body :is(#adminSide.side,.cp-side){z-index:var(--z-overlay)!important}html[data-motion] body .tsNotifyMenu{max-height:calc(100dvh - 100px - env(safe-area-inset-top));overflow:auto}}
@media(max-width:600px){input,select,textarea{font-size:16px!important}.ts-motion-grid{grid-template-columns:minmax(0,1fr)}.ts-motion-actions>button{flex:1 1 140px}.tsSiteNav{flex-wrap:wrap}.ts-motion-settings .pmCard{padding:20px}.topbar{padding-top:env(safe-area-inset-top)}}
@media(prefers-reduced-motion:reduce){html *,html *::before,html *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html::view-transition-old(root),html::view-transition-new(root){animation:none!important}}

html[data-motion-menu="0"] :is(.pn-group-links,.cp-side,#adminSide,.tsNotifyMenu,.cp-pop,.pn-action-items){animation:none!important;transition:none!important}
html[data-motion-tabs="0"] :is(details[open]>:not(summary),.pn-section){animation:none!important}
html[data-motion=off]::view-transition-old(root),html[data-motion=off]::view-transition-new(root){animation:none!important}
@media(prefers-reduced-motion:reduce){html[data-motion][data-motion-speed][data-motion-area] body *,html[data-motion][data-motion-speed][data-motion-area] body *::before,html[data-motion][data-motion-speed][data-motion-area] body *::after{animation:none!important;transition:none!important}}

/* Override legacy important transitions in all shells with the same policy. */
html[data-motion][data-motion-speed][data-motion-area] :is(#adminSide,body) *{transition-property:transform,opacity!important}
html[data-motion=off][data-motion-speed][data-motion-area] :is(#adminSide,body) *,html[data-motion=off][data-motion-speed][data-motion-area] :is(#adminSide,body) *::before,html[data-motion=off][data-motion-speed][data-motion-area] :is(#adminSide,body) *::after{animation:none!important;transition:none!important}
.ts-motion-preview[data-motion-page="0"] .ts-preview-play{animation:none!important}
.ts-motion-preview[data-motion-tabs="0"] details>*{animation:none!important}
@media(hover:hover){.ts-motion-preview[data-motion-hover="1"]:not([data-motion=off]) article:hover{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){html[data-motion][data-motion-speed][data-motion-area] :is(#adminSide,body) *,html[data-motion][data-motion-speed][data-motion-area] :is(#adminSide,body) *::before,html[data-motion][data-motion-speed][data-motion-area] :is(#adminSide,body) *::after{animation:none!important;transition:none!important}}

html[data-motion] body :is(.cp-icon-btn,.tsHeadIcon,.cp-menu,.menu-toggle){min-width:44px!important;min-height:44px!important}
html[data-motion] :is(.tsNavBackdrop,.cp-nav-backdrop){z-index:var(--z-nav)!important}
@media(max-width:768px){.tsContactGrid,.tsReviews{grid-template-columns:minmax(0,1fr)}.ca-shell{grid-template-columns:minmax(0,1fr)}.ca-photo{min-height:280px}.tsSiteNav{max-width:100%;overflow-wrap:anywhere}}

.ts-motion-tabs{display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:calc(76px + env(safe-area-inset-top));z-index:var(--z-sticky);padding:12px;background:var(--cc-surface);border:1px solid var(--cc-border);border-radius:16px;margin-bottom:20px}
.ts-motion-tabs button{min-height:48px;flex:1 1 140px;background:var(--cc-surface-2);color:var(--cc-ink);border:1px solid var(--cc-border);border-radius:12px;padding:12px;font:inherit}
.ts-motion-tabs button[aria-selected=true]{border-color:var(--cc-accent)}
.ts-motion-settings [data-motion-editor][hidden]{display:none!important}

/* Native hidden must win over legacy !important layout rules. */
html[data-motion] body [hidden]:not([hidden="until-found"]){display:none!important}

/* Scrollbars consume width inside 320px previews; do not force 320px content. */
html[data-motion] body{min-width:min(320px,100%)}

/* Public content navigation wraps rather than requiring sideways swipes. */
.publicSite .topinner>*{min-width:0;max-width:100%}
.publicSite :is(.tsReviewTop,.tsPublicBrand)>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.publicSite .topinner .tsSiteNav{flex-wrap:wrap;overflow:visible}.publicSite .topinner .tsSiteNav a{white-space:normal;overflow-wrap:anywhere;min-height:44px;display:inline-flex;align-items:center}}

/* Drawer backdrops stay below the drawer; bottom tabs stay below both. */
/* Match the native checked-state selector: its three IDs otherwise win. */
html[data-motion] body #adminNavState:checked + #adminSide.side + #navShade,
html[data-motion] body .cp-overlay{z-index:calc(var(--z-nav) - 1)!important}
html[data-motion] body :is(.pn-bottom,.cp-mobile-tabs){z-index:var(--z-sticky)!important}
html[data-motion] body #adminSide .navClose,html[data-motion] body .cp-close{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important}

/* Closed customer drawer is hidden even without JavaScript. */
@media(max-width:900px){.cp-body .cp-side{visibility:hidden;pointer-events:none}.cp-body .cp-nav-state:checked~.cp-app .cp-side{visibility:visible;pointer-events:auto}.cp-body:has(.cp-nav-state:checked){overflow:hidden}}

/* User artwork: preserve colour/alpha and give navy lettering a readable surface. */
.tsPublicBrand:has(.tsBrandWordmark) .tsPublicWord{display:none!important}
.tsPublicBrand img.tsBrandWordmark{width:210px!important;height:72px!important;max-width:48vw;object-fit:contain;display:block;padding:0;background:transparent!important;border-radius:0;filter:none!important}
@media(max-width:600px){.tsPublicBrand img.tsBrandWordmark{width:176px!important;height:60px!important}}
:is(.tsBrand,.cp-logo,.ca-brand,.ca-mini-brand) img{object-fit:contain!important;background:#fffaf0;border-radius:10px;filter:none!important;padding:3px}

/* Full sidebar wordmark; compact TS mark in narrow panel mastheads. */
html body :is(.tsBrand,.cp-logo):has(.tsPanelWordmark){display:flex!important;align-items:center;justify-content:flex-start;min-width:0}
html body :is(.tsBrand,.cp-logo) img.tsPanelWordmark{width:190px!important;height:66px!important;max-width:100%;object-fit:contain!important;padding:0!important;background:transparent!important;border-radius:0!important;margin:0!important;flex:none!important}
html body .tsBrand:has(.tsPanelWordmark)>div,html body .cp-logo:has(.tsPanelWordmark)>b,html body .cp-logo:has(.tsPanelWordmark)>small{display:none!important}
html body :is(.cp-mobile-logo,.tsUnifiedBrand) img{object-fit:contain!important;flex-shrink:0;filter:none!important;background:transparent!important}

/* Mobile drawer must sit above the fixed brand masthead, with dialogs above it. */
@media(max-width:1024px){html[data-motion]{--z-nav:220;--z-overlay:220;--z-modal:260;--z-toast:280}}

/* Full original wordmark in mobile panel mastheads; favicon stays separate. */
@media(max-width:1024px){
 html body:has(#adminSide) .tsUnifiedBrand:has(>img.tsMobileWordmark){width:100%!important;max-width:170px!important;min-width:0!important;overflow:visible!important}
 html body:has(#adminSide) .tsUnifiedBrand>img.tsMobileWordmark{display:block!important;width:100%!important;max-width:170px!important;height:44px!important;flex:0 1 auto!important;object-fit:contain!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;filter:none!important}
 html body:has(#adminSide) .tsUnifiedBrand:has(>img.tsMobileWordmark)>span{display:none!important}
}
@media(max-width:900px){
 html body .cp-top .cp-mobile-logo:has(>img.tsMobileWordmark){flex:1 1 130px!important;min-width:0!important;max-width:170px!important;gap:0!important}
 html body .cp-top .cp-mobile-logo>img.tsMobileWordmark{display:block!important;width:100%!important;max-width:170px!important;height:44px!important;flex:0 1 auto!important;object-fit:contain!important;padding:0!important;background:transparent!important;filter:none!important;border-radius:0!important}
 html body .cp-top .cp-mobile-logo:has(>img.tsMobileWordmark)>b{display:none!important}
}

/* Stable digit widths while summary values animate. */
.ts-counting{font-variant-numeric:tabular-nums}
