/* Moghtaderi visual standards, native Woodmart/WooCommerce presentation only.
 * Owner-approved photo-derived digital palette; not physically calibrated.
 * No product photo filters, content hiding, checkout interception or cart writers.
 */
body.mgtvs-brand{
 --mgt-top:#509CCE;--mgt-base:#4289BD;--mgt-deep:#3E70A9;--mgt-slate:#425970;
 --mgt-charcoal:#3E3A44;--mgt-pearl:#F5F3ED;--mgt-glint:#35A5D9;
 --wd-primary-color:#3E70A9;--wd-alternative-color:#425970;--wd-title-color:#3E3A44;
 --wd-text-color:#3E3A44;--wd-link-color:#3E70A9;--wd-link-color-hover:#425970;
 --mx-ink:#3E3A44;--mx-muted:#425970;--mx-paper:#FFFFFF;--mx-warm:#F5F3ED;
 --mx-line:#CBD0D7;--mx-accent:#3E70A9;--mx-focus:#3E70A9;
 --mgce-charcoal:#3E3A44;--mgce-ivory:#F5F3ED;--mgce-gold:#3E70A9;
 --mgt-gradient:linear-gradient(180deg,#509CCE 0%,#509CCE 11%,#4289BD 32%,#425970 58%,#3E3A44 86%,#3E3A44 100%);
 color:#3E3A44;background:#FFFFFF;color-scheme:light;
}
body.mgtvs-brand .mgh-home{--mgh-ink:#3E3A44;--mgh-dark:#3E3A44;--mgh-canvas:#FFFFFF;--mgh-paper:#FFFFFF;--mgh-line:#CBD0D7;--mgh-gold:#3E70A9}
@supports(background:linear-gradient(180deg in srgb,#000,#fff)){
 body.mgtvs-brand{--mgt-gradient:linear-gradient(180deg in srgb,#509CCE 0%,#509CCE 11%,#4289BD 32%,#425970 58%,#3E3A44 86%,#3E3A44 100%)}
}
body.mgtvs-brand :is(.mgh-home .mgh-button,.mgxr-button,.single_add_to_cart_button,.checkout-button,.button.alt){background:#3E70A9;color:#F5F3ED;border-color:#3E70A9}
body.mgtvs-brand :is(.mgh-home .mgh-button,.mgxr-button,.single_add_to_cart_button,.checkout-button,.button.alt):hover{background:#425970;color:#F5F3ED;border-color:#425970}
body.mgtvs-brand .mgh-home .mgh-button-quiet{background:#FFFFFF;color:#3E70A9;border:1px solid #3E70A9}
body.mgtvs-brand .mgh-home .mgh-button-quiet:hover{background:#F5F3ED;color:#425970}
body.mgtvs-brand :is(.mgh-home h1,.mgh-home h2,.mgh-home h3,.mgh-home p,.mgh-kicker,.mgh-section-head,.mgh-site-footer p){color:inherit}
body.mgtvs-brand :is(.mgh-home,.mgh-hero,.mgh-value-row,.mgh-section,.mgh-guides,.mgh-faq){background:#FFFFFF;color:#3E3A44}
body.mgtvs-brand :is(.mgh-category,.mgcx-families a){background:#F5F3ED;border-color:#CBD0D7;color:#3E3A44}
body.mgtvs-brand :is(.mgh-category,.mgcx-families a):hover{border-color:#3E70A9}
body.mgtvs-brand :is(.mgcx-family-active,.mgcx-families a[aria-current=page]){background:#3E70A9;color:#F5F3ED}
body.mgtvs-brand .mgh-home :is(.mgh-section-head a,.mgh-guide a,.mgh-text-link){color:#3E70A9;text-decoration:underline;text-underline-offset:.25em}
body.mgtvs-brand :is(.whb-general-header,.whb-main-header,.whb-header-bottom,.mgxr-header){background:#FFFFFF;color:#3E3A44}
body.mgtvs-brand :is(.whb-header-bottom,.mgxr-header){border-bottom:1px solid #CBD0D7}
body.mgtvs-brand :is(.whb-main-header,.mgxr-header-main){border-top:4px solid #3E70A9}
body.mgtvs-brand .mgh-site-footer{position:relative;isolation:isolate;overflow:hidden;background:#3E3A44;color:#F5F3ED;border-top:6px solid #3E70A9}
body.mgtvs-brand .mgh-site-footer :is(a,h2,h3,p){color:#F5F3ED}
body.mgtvs-brand .mgh-site-footer a:hover{color:#F5F3ED;text-decoration:underline;text-underline-offset:.25em}
body.mgtvs-brand .mgh-site-footer::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse 65% 60% at 14% 0%,rgb(66 137 189 / .12),rgb(66 137 189 / 0) 72%)}
body.mgtvs-brand .mgh-site-footer::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.012;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E")}
body.mgtvs-brand .mgh-site-footer>*{position:relative;z-index:1}
body.mgtvs-brand :is(.wd-header-nav,.mobile-nav,.wd-side-hidden) a{color:inherit}
body.mgtvs-brand :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:#3E3A44;background-color:#FFFFFF;border-color:#425970}
body.mgtvs-brand :is(input,textarea)::placeholder{color:#425970;opacity:1}
body.mgtvs-brand :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #F5F3ED!important;outline-offset:2px!important;box-shadow:0 0 0 5px #3E3A44!important}
body.mgtvs-layout :is(.mgh-home,.mgh-site-footer,.entry-content,.product-grid-item,.summary){min-width:0}
body.mgtvs-layout .mgh-home{max-width:1600px;margin-inline:auto}
body.mgtvs-layout .mgh-hero{padding-block:clamp(32px,5vw,76px);gap:clamp(24px,4vw,64px)}
body.mgtvs-layout .mgh-hero h1{font-size:clamp(30px,4vw,58px);font-weight:400;line-height:1.65;letter-spacing:0}
body.mgtvs-layout :is(.mgh-section,.mgh-guides,.mgh-faq){padding-block:clamp(34px,5vw,70px)}
body.mgtvs-layout :is(.mgh-section-head h2,.mgh-editorial h2){font-size:clamp(25px,3vw,40px);font-weight:400;line-height:1.7}
body.mgtvs-layout :is(.wd-nav-main>li>a,.wd-header-cart>a,.wd-header-my-account>a,.wd-header-search>a){min-height:44px}
body.mgtvs-layout :is(.wd-nav-main>li>a,.wd-header-tools a){text-underline-offset:.3em}
body.mgtvs-layout :is(.wd-nav-main,.mgh-site-footer nav){row-gap:10px}
body.mgtvs-layout :is(.product-title,.woocommerce-product-details__short-description,.entry-title,.mgh-home h1,.mgh-site-footer a){overflow-wrap:anywhere}
body.mgtvs-editorial.single-post :is(.entry-content,.article-inner .entry-content),
body.mgtvs-editorial.page:not(.home):not(.woocommerce-page) .entry-content{font-size:17px;line-height:2.1;overflow-wrap:anywhere}
body.mgtvs-editorial.single-post .entry-content :is(h2,h3,h4),
body.mgtvs-editorial.page:not(.home):not(.woocommerce-page) .entry-content :is(h2,h3,h4){line-height:1.8;margin-block:2em .65em;scroll-margin-top:110px}
body.mgtvs-editorial.single-post .entry-content :is(p,ul,ol),
body.mgtvs-editorial.page:not(.home):not(.woocommerce-page) .entry-content :is(p,ul,ol){margin-block-end:1.25em}
body.mgtvs-editorial.single-post .entry-content a,
body.mgtvs-editorial.page:not(.home):not(.woocommerce-page) .entry-content a{text-decoration:underline;text-underline-offset:.24em}
body.mgtvs-editorial .entry-content :is(table,pre){max-width:100%;overflow-x:auto}
body.mgtvs-editorial .entry-content blockquote{border-inline-start:3px solid #3E70A9;background:#F5F3ED;padding:18px 24px}
body.mgtvs-media :is(.mgh-hero-photo,.mgh-category,.product-element-top,.woocommerce-product-gallery__wrapper){min-width:0}
body.mgtvs-media .mgh-hero-photo>img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
body.mgtvs-media .mgh-category img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
body.mgtvs-media .product-grid-item .product-element-top img{max-width:100%;height:auto;object-fit:contain}
body.mgtvs-media :is(.woocommerce-product-gallery__image img,.woocommerce-product-gallery img.wp-post-image){max-width:100%;height:auto;object-fit:contain}
body.mgtvs-media .entry-content :is(img,video){max-width:100%;height:auto}
@media(max-width:767px){
 body.mgtvs-layout .mgh-hero{padding-block:28px;gap:24px}
 body.mgtvs-layout .mgh-hero h1{font-size:30px;line-height:1.75}
 body.mgtvs-layout :is(.mgh-actions,.mgh-value-row){gap:12px;flex-wrap:wrap}
 body.mgtvs-layout :is(.mgh-button,.single_add_to_cart_button,.checkout-button){min-height:46px}
 body.mgtvs-editorial.single-post .entry-content,body.mgtvs-editorial.page:not(.home):not(.woocommerce-page) .entry-content{font-size:16px;line-height:2}
}
@media(prefers-reduced-motion:reduce){body.mgtvs-layout :is(.mgh-button,.mgh-category,.product-grid-item){transition:none}}
@media(forced-colors:active){body.mgtvs-brand :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid Highlight!important;box-shadow:none!important}}

/* Native navigation keyboard enhancement; does not own cart or navigation URLs. */
body.mgtvs-nav .wd-header-nav .menu-item-has-children:focus-within:not([data-mgtvs-escape])>.wd-dropdown-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition:none}
body.mgtvs-nav .wd-header-nav .menu-item-has-children[data-mgtvs-escape]>.wd-dropdown-menu{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:none!important}
body.mgtvs-nav .mobile-nav .wd-nav-opener[role=button]:focus-visible{outline:2px solid #F5F3ED;outline-offset:-4px;box-shadow:inset 0 0 0 5px #3E3A44}
