/*
 * ALMS Tactical Compatibility Layer 1.1.1
 * CSS-only: it does not replace templates, shortcodes, or stored page content.
 */
:root{
  --alms-tactical-navy:#06162f;
  --alms-tactical-blue:#174ea6;
  --alms-tactical-gold:#f7b81c;
  --alms-tactical-soft:#eef3f8;
  --alms-tactical-line:#dbe4ef;
  --alms-tactical-ink:#0e1d33;
}

/* Native theme chrome follows the tactical ALMS identity. */
body:not(.alms-header-override-active) .alms-announcement-bar{background:#020b18;color:#d7e6f4;border-bottom:1px solid rgba(255,255,255,.08)}
body:not(.alms-header-override-active) .site-header{background:var(--alms-tactical-navy);border-bottom:1px solid rgba(255,255,255,.1);color:#fff}
body:not(.alms-header-override-active) .site-header.is-scrolled{box-shadow:0 12px 34px rgba(0,0,0,.24)}
body:not(.alms-header-override-active) .alms-header-main{min-height:72px;grid-template-columns:minmax(190px,280px) minmax(320px,1fr) auto;gap:24px}
body:not(.alms-header-override-active) .site-header .alms-wordmark,
body:not(.alms-header-override-active) .site-header .alms-header-action,
body:not(.alms-header-override-active) .site-header .alms-mobile-toggle{color:#fff}
body:not(.alms-header-override-active) .site-header .alms-wordmark small,
body:not(.alms-header-override-active) .site-header .alms-header-action small{color:#9fb6cc}
body:not(.alms-header-override-active) .site-header .alms-header-action{min-height:46px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.035)}
body:not(.alms-header-override-active) .site-header .alms-header-action:hover{color:#fff;background:rgba(255,255,255,.1)}
body:not(.alms-header-override-active) .alms-header-search input[type=search]{min-height:44px;border-color:rgba(255,255,255,.25);border-radius:10px;background:#fff;color:#10233d}
body:not(.alms-header-override-active) .alms-header-search button{min-height:36px;background:var(--alms-tactical-gold);color:#07162c}
body:not(.alms-header-override-active) .alms-nav-row{border-top:1px solid rgba(255,255,255,.08);background:#081b36}
body:not(.alms-header-override-active) .alms-nav-row>.alms-shell{min-height:48px}
body:not(.alms-header-override-active) .alms-primary-menu>li>a{min-height:47px;color:#dce8f4}
body:not(.alms-header-override-active) .alms-primary-menu>li>a:hover,
body:not(.alms-header-override-active) .alms-primary-menu>li.current-menu-item>a{color:#fff;background:rgba(255,255,255,.08)}
body:not(.alms-header-override-active) .alms-departments-link,
body:not(.alms-header-override-active) .alms-rfq-link{background:var(--alms-tactical-gold);color:#07162c}
body:not(.alms-header-override-active) .alms-cart-count{background:var(--alms-tactical-gold);color:#07162c}

/* Remove only this theme's generic page frame. Page Manager owns the app UI. */
body.alms-theme-tactical-surface{background:var(--alms-tactical-soft)}
body.alms-theme-tactical-surface #primary,
body.alms-theme-tactical-surface main.site-main,
body.alms-theme-tactical-surface .alms-content-main,
body.alms-theme-tactical-surface .alms-account-main,
body.alms-theme-tactical-surface .alms-full-width-main{width:100%!important;max-width:none!important;min-height:650px;margin:0!important;padding:0!important;background:var(--alms-tactical-soft)!important}
body.alms-theme-tactical-surface #primary>.alms-shell,
body.alms-theme-tactical-surface .alms-account-shell,
body.alms-theme-tactical-surface .alms-content-shell{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.alms-theme-tactical-surface article.alms-entry,
body.alms-theme-tactical-surface article.alms-account-entry,
body.alms-theme-tactical-surface article.alms-full-width-entry,
body.alms-theme-tactical-surface article.alms-tactical-entry{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.alms-theme-tactical-surface .alms-entry-header,
body.alms-theme-tactical-surface .alms-page-intro{display:none!important}
body.alms-theme-tactical-surface .alms-entry-content,
body.alms-theme-tactical-surface .alms-workspace-embed{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.alms-theme-tactical-surface .alms-entry-content>p:empty{display:none}


/* Page Manager 5.8.6 owns the signed-in account shell. */
body.alms-theme-managed-account .woocommerce-MyAccount-navigation{display:none!important}
body.alms-theme-managed-account .alms-account-portal{width:100%!important;max-width:none!important;margin:0!important}
body.alms-theme-managed-account .alms-tactical-entry>.alms-entry-content>.woocommerce,
body.alms-theme-managed-account .alms-tactical-entry>.alms-entry-content>.woocommerce-account{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}

/* Native WooCommerce fallback only when the ALMS account portal is not stored. */
body.alms-theme-native-account .woocommerce{display:grid;grid-template-columns:290px minmax(0,1fr);gap:24px;width:min(1480px,calc(100% - 32px));margin:32px auto 72px;padding:24px;border:1px solid var(--alms-tactical-line);border-radius:22px;background:#fff;box-shadow:0 18px 48px rgba(6,22,47,.09)}
body.alms-theme-native-account .woocommerce-MyAccount-navigation{float:none;width:auto;margin:0;padding:10px;border-radius:17px;background:linear-gradient(160deg,#06162f,#0d3157)}
body.alms-theme-native-account .woocommerce-MyAccount-navigation ul{display:grid;gap:3px;margin:0;padding:0;list-style:none}
body.alms-theme-native-account .woocommerce-MyAccount-navigation li{margin:0}
body.alms-theme-native-account .woocommerce-MyAccount-navigation a{display:block;padding:11px 13px;border-radius:9px;color:#c8d9ea;font-size:13px;font-weight:750}
body.alms-theme-native-account .woocommerce-MyAccount-navigation li.is-active a,
body.alms-theme-native-account .woocommerce-MyAccount-navigation a:hover{background:#fff;color:#124f9f}
body.alms-theme-native-account .woocommerce-MyAccount-content{float:none;width:auto;min-width:0;padding:18px 12px}

body .woocommerce button.button.alt,
body .woocommerce a.button.alt,
body .woocommerce input.button.alt{background:var(--alms-tactical-blue)}
body .woocommerce button.button.alt:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce input.button.alt:hover{background:#0d397e}
body .woocommerce-message,
body .woocommerce-info{border-top-color:var(--alms-tactical-blue)}
body .woocommerce-message:before,
body .woocommerce-info:before{color:var(--alms-tactical-blue)}
.site-footer{background:var(--alms-tactical-navy)}
.alms-footer-bottom{background:#020b18}
.alms-footer-cta{background:linear-gradient(105deg,#0b3f82,#0d5275)}

@media(max-width:960px){
  body:not(.alms-header-override-active) .alms-header-main{grid-template-columns:1fr auto;min-height:68px}
  body:not(.alms-header-override-active) .alms-primary-nav{background:#081b36;border-top-color:rgba(255,255,255,.08)}
  body:not(.alms-header-override-active) .alms-primary-menu .sub-menu{background:rgba(255,255,255,.04)}
  body:not(.alms-header-override-active) .alms-primary-menu .sub-menu a{color:#dce8f4}
  body.alms-theme-native-account .woocommerce{grid-template-columns:230px minmax(0,1fr)}
}
@media(max-width:767px){
  body.alms-theme-native-account .woocommerce{display:block;width:calc(100% - 16px);margin:10px auto 42px;padding:12px}
  body.alms-theme-native-account .woocommerce-MyAccount-navigation{margin-bottom:16px;overflow-x:auto}
  body.alms-theme-native-account .woocommerce-MyAccount-navigation ul{display:flex;white-space:nowrap;overflow-x:auto}
  body.alms-theme-native-account .woocommerce-MyAccount-navigation li{flex:0 0 auto}
}


/* Account workspaces are self-contained applications; omit storefront chrome. */
body.alms-account-headerless .alms-announcement-bar,
body.alms-account-headerless #alms-marketplace-header,
body.alms-account-headerless #masthead,
body.alms-account-headerless .alms-plugin-site-header{display:none!important}
body.alms-account-headerless .alms-site-frame{min-height:100vh;background:var(--alms-tactical-soft)}
body.alms-account-headerless #primary{padding-top:0!important}
body.alms-account-headerless .alms-account-portal{margin-top:0!important}
