/* UncleAli v29: One layout palette, navigation, and spacing across legacy/standalone pages.
   Primary themes are White, Light Blue, Dark. Base WoWonder selectors and working widgets remain. */
:root,html[data-ua-theme="white"]{--ua29-bg:#fff;--ua29-surface:#fff;--ua29-soft:#f7f9fc;--ua29-text:#182535;--ua29-muted:#516176;--ua29-line:#e2e7ed;--ua29-link:#244e8b;--ua29-highlight:#eaf1fa;--ua29-shadow:0 6px 22px #172c420d;--ua29-focus:#d29b31;color-scheme:light}
html[data-ua-theme="blue"]{--ua29-bg:#edf5ff;--ua29-surface:#fff;--ua29-soft:#e1effe;--ua29-text:#19324e;--ua29-muted:#526c84;--ua29-line:#cddfee;--ua29-link:#17558f;--ua29-highlight:#d7eafc;--ua29-shadow:0 6px 22px #31558016;--ua29-focus:#be8c31;color-scheme:light}
html[data-ua-theme="dark"]{--ua29-bg:#0e1929;--ua29-surface:#1c2a3c;--ua29-soft:#26394f;--ua29-text:#f3f7fd;--ua29-muted:#c6d2e1;--ua29-line:#42546c;--ua29-link:#a9d2ff;--ua29-highlight:#2b4360;--ua29-shadow:0 7px 26px #0005;--ua29-focus:#ffc960;color-scheme:dark}
/* Legacy styling variables, design-system tokens and NOVA all use the same source. */
html[data-ua-theme]{--ua28-page:var(--ua29-bg);--ua28-panel:var(--ua29-surface);--ua28-text:var(--ua29-text);--ua28-sub:var(--ua29-muted);--ua28-edge:var(--ua29-line);--ua28-soft:var(--ua29-soft);--ua28-link:var(--ua29-link);--ua28-accent:var(--ua29-link);--ua28-shadow:var(--ua29-shadow);--ua27-page:var(--ua29-bg);--ua27-panel:var(--ua29-surface);--ua27-text:var(--ua29-text);--ua27-muted:var(--ua29-muted);--ua27-border:var(--ua29-line);--ua26-page:var(--ua29-bg);--ua26-card:var(--ua29-surface);--ua26-ink:var(--ua29-text);--ua26-sub:var(--ua29-muted);--ua26-border:var(--ua29-line);--paper:var(--ua29-surface);--canvas:var(--ua29-bg);--ink:var(--ua29-text);--muted:var(--ua29-muted);--stroke:var(--ua29-line);--soft:var(--ua29-soft);--ua-nova-bg:var(--ua29-bg);--ua-nova-panel:var(--ua29-surface);--ua-nova-text:var(--ua29-text);--ua-nova-muted:var(--ua29-muted);--ua-nova-border:var(--ua29-line)}
html[data-ua-theme] body{background-color:var(--ua29-bg);color:var(--ua29-text)}
html[data-ua-theme] :is(.header-container,.navbar-default,.ua-top,.ua22-header,.gc-top,.ua29-header){background:var(--ua29-surface)!important;color:var(--ua29-text)!important;border-color:var(--ua29-line);box-shadow:0 3px 14px #14294410}
html[data-ua-theme] :is(.ua-top,.ua22-header,.gc-top){display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.7rem;min-height:64px;padding:10px clamp(12px,2vw,24px)}
html[data-ua-theme] :is(.ua-brand,.ua22-brand,.gc-logo,.ua-top a,.ua22-header a,.gc-top a){color:var(--ua29-text)}
html[data-ua-theme] :is(.ua-brand,.ua22-brand,.gc-logo) img{height:auto;max-height:44px;width:auto;max-width:180px;object-fit:contain}
/* One top navigation for standalone modules; contextual links are in a clear secondary dropdown. */
.ua29-global-nav{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap}
.ua29-global-nav a{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.5rem .78rem;border-radius:12px;color:var(--ua29-text)!important;text-decoration:none;font-weight:650;font-size:.88rem}
.ua29-global-nav svg{width:19px;height:19px;flex:none}
.ua29-global-nav a[aria-current=page],.ua29-global-nav a:hover{background:var(--ua29-highlight)!important;color:var(--ua29-link)!important}
.ua29-more{position:relative;margin:0}.ua29-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:.3rem;padding:.5rem .75rem;border-radius:12px;border:1px solid var(--ua29-line);font-weight:650;list-style:revert;color:var(--ua29-text)}
.ua29-more[open]>nav{display:flex;flex-wrap:wrap;gap:.35rem;max-width:min(100%,1000px);padding:.6rem 0}.ua29-more nav a{min-height:40px;padding:.5rem .7rem;border-radius:10px;color:var(--ua29-link);text-decoration:none;background:var(--ua29-soft)}
/* Site-specific components share panel surfaces; avoid affecting photo/video surfaces. */
html[data-ua-theme] body :is(.wow_content,.publisher-box,.post-container,.wo_post_activity,.panel,.ua-panel,.ua22-card,.ua-card,.ua-live-post,.ua-nova-orbit-card,.ua-nova-gadgets,.ua-nova-reels-card,.ua-gadget-tile,.ua-compose,.gc-panel,.gc-card,.chat-container,.chat-content,.chat-tab,.wow_publihser){background-color:var(--ua29-surface)!important;color:var(--ua29-text)!important;border-color:var(--ua29-line)!important}
html[data-ua-theme] body :is(.ua-side,.ua-panel,.ua22-card,.gc-panel,.post-container,.publisher-box,.wow_content,.ua-gadget-tile,.ua-nova-orbit-card,.ua-nova-gadgets,.ua-live-post){border-radius:15px;box-shadow:var(--ua29-shadow)}
html[data-ua-theme] body :is(.content-container,.ua-shell,.ua22-main,.ua-wrap,.gc-wrap){background:var(--ua29-bg);color:var(--ua29-text)}
html[data-ua-theme] body :is(.ua-side,.ua22-card,.ua-panel,.gc-panel) :is(p,small){color:var(--ua29-muted)}
html[data-ua-theme] body :is(.ua-side,.ua22-main,.ua-wrap,.gc-wrap){border-color:var(--ua29-line)}
html[data-ua-theme] body :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:var(--ua29-surface);color:var(--ua29-text);border-color:var(--ua29-line)}
html[data-ua-theme] body :is(.navbar-default .nav>li>a,.navbar-default .nav>li>a svg,#head_menu_rght>li>a){color:var(--ua29-text)}
html[data-ua-theme] body :is(.navbar-default .nav>li>a:hover,.navbar-default .nav>li>a:focus-visible){background:var(--ua29-highlight);color:var(--ua29-link)}
html[data-ua-theme] body :is(.dropdown-menu,.user-menu-combination,.popover,.chat-body,#chat-container){background:var(--ua29-surface);color:var(--ua29-text);border-color:var(--ua29-line)}
html[data-ua-theme] body .ua-hero:not(.ua-nova-banner),html[data-ua-theme] body .ua22-hero{background:linear-gradient(120deg,var(--ua29-soft),var(--ua29-surface));color:var(--ua29-text);border:1px solid var(--ua29-line)}
/* Legacy header height measured after render. Never overlap the content or anchor focus. */
html{scroll-padding-top:calc(var(--ua29-header-height,64px) + 18px)}
body.ua29-header-fixed>.content-container,body.ua29-header-fixed .content-container{margin-top:calc(var(--ua29-header-height,64px) + 14px)!important}
body.ua29-header-static .content-container{margin-top:14px!important}
body.ua29-header-fixed .content-container.welcome-container,body.ua29-header-static .content-container.welcome-container{margin-top:0!important}
/* Compact Home features appear AFTER original publisher, not instead of it. */
.ua29-home-tools{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;max-width:100%;margin:8px 0 16px;padding:0}
.ua29-home-tools a{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--ua29-line);border-radius:999px;padding:.5rem .8rem;min-height:42px;text-decoration:none;font-weight:650;font-size:.84rem;background:var(--ua29-surface);color:var(--ua29-link)}
.ua29-home-tools a:hover{background:var(--ua29-highlight)}
.ua29-home-tools svg{width:18px;height:18px;flex:none}
/* Contextual business tools stay out of the primary social menu. */
html[data-ua-theme] body .ua28-appearance-link{border-color:var(--ua29-line);color:var(--ua29-link)}
html[data-ua-theme] body :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--ua29-focus)!important;outline-offset:2px}
@media(min-width:1000px){.ua29-global-nav{flex-wrap:nowrap}}
@media(max-width:850px){.ua29-global-nav{width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.ua29-global-nav a{white-space:nowrap;min-height:44px}.ua29-more{width:100%}}
@media(max-width:640px){.ua29-home-tools{gap:.35rem}.ua29-home-tools a{font-size:.76rem;min-height:42px;padding:.45rem .62rem}.ua29-global-nav a span{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){html[data-ua-theme] body :is(.ua-panel,.ua29-home-tools a,.ua29-global-nav a){transition:none!important;animation:none!important}}

/* Guest login:  visual reset must beat old `dark.css` and v17 styles without changing login code. */
html[data-ua-theme] body .ua-nova-welcome-wrap{align-items:start;max-width:1190px;min-width:0}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-landing{background:var(--ua29-surface)!important;color:var(--ua29-text)!important;border:1px solid var(--ua29-line)!important;min-width:0}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-landing :is(h1,.ua25-intro,.ua26-free-pledge,.ua25-services,.ua25-disclosure,.ua26-cost-note){color:var(--ua29-text)!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-landing :is(.ua25-services span,.ua26-cost-note,.ua25-disclosure){color:var(--ua29-muted)!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-photo-grid{display:grid!important;min-height:194px!important;overflow:hidden}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-photo{display:block!important;overflow:hidden;position:relative;background:var(--ua29-soft);border-radius:12px}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;position:absolute;inset:0}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-photo figcaption{position:absolute;bottom:0;left:0;right:0;color:#fff!important;text-shadow:0 1px 3px #172338;padding:.3rem .6rem;background:linear-gradient(transparent,#142333b9)}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main{min-width:0!important;background:transparent!important;color:var(--ua29-text)!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main .login,html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main .login_innre,html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main form#login{background:var(--ua29-surface)!important;color:var(--ua29-text)!important;border-color:var(--ua29-line)!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main form#login :is(h1,h2,h3,.title,label,.wow_form_fields label,p,small,span:not(.icon),.input-text){color:var(--ua29-text)!important;opacity:1!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main form#login :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--ua29-surface)!important;color:var(--ua29-text)!important;border:1px solid var(--ua29-line)!important;border-radius:10px!important;opacity:1!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main form#login input::placeholder{color:var(--ua29-muted)!important;opacity:1!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main form#login :is(a,.forgot_password){color:var(--ua29-link)!important}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main form#login :is(button[type=submit],.btn-main,.login-submit){color:white!important;background:linear-gradient(115deg,#2762c9,#138f99)!important;min-height:44px}
html[data-ua-theme] body .ua-nova-welcome-wrap #login .show-password,html[data-ua-theme] body .ua-nova-welcome-wrap #login .show-password a{background:transparent!important;color:var(--ua29-link)!important}
html[data-ua-theme="dark"] body .ua-nova-welcome-wrap .ua17-auth-main :is(.login_innre,form#login){background:var(--ua29-surface)!important;color:var(--ua29-text)!important}

/* Guest page never inherits the legacy photographic full-body background or night gradients. */
html[data-ua-theme] body:has(.welcome-container){background:var(--ua29-bg)!important}
html[data-ua-theme] body .ua-nova-welcome-wrap{margin-top:clamp(12px,3vh,38px);max-width:1160px}
html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-landing{box-shadow:var(--ua29-shadow)}
html[data-ua-theme] body :is(.wo_user_profile,.sun_pub_box,.post-wrapper,.wow_main_blogs_bg){background:var(--ua29-surface)!important;color:var(--ua29-text)!important;border-color:var(--ua29-line)!important}
html[data-ua-theme] body :is(.chat-container .chat-status,.chat-container .wo_chat_tabs,.chat-container .wo_chat_tabs li a){background:var(--ua29-surface)!important;color:var(--ua29-text)!important;border-color:var(--ua29-line)!important}
html[data-ua-theme] body .ua-quickdock{display:none!important}
html[data-ua-theme] body.ua26-nova-page .ua-shell{min-height:calc(100vh - 130px)}
@media(max-width:930px){html[data-ua-theme] body .ua-nova-welcome-wrap{grid-template-columns:minmax(0,1fr)!important}html[data-ua-theme] body .ua-nova-welcome-wrap .ua17-auth-main{order:0}html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-landing{order:1}}
@media(max-width:600px){html[data-ua-theme] body .ua-nova-welcome-wrap .ua25-photo-grid{min-height:140px!important}}
