/* A8: coherent navy navigation, scoped CG/Meridia palettes and visual admin controls. */

/* Header mark stays entirely inside the navigation frame. */
.enterprise-header .cg-logo.vA3-logo.vA5-official-logo{
  width:70px!important;height:62px!important;min-width:70px!important;
  margin:0!important;padding:4px 6px!important;align-self:center!important;
  box-sizing:border-box!important;overflow:hidden!important;border-radius:9px!important;
  background:#fff!important;box-shadow:0 7px 20px rgba(2,20,52,.16)!important;
}
.enterprise-header .cg-logo.vA3-logo.vA5-official-logo img{
  width:58px!important;height:54px!important;max-width:100%!important;max-height:100%!important;
  display:block!important;object-fit:contain!important;
}
.enterprise-nav{align-items:center!important}

/* Standard CG navigation. */
body:not(.is-meridia-theme) .cg-topbar{background:var(--theme-cg-topbar-bg)!important}
body:not(.is-meridia-theme) .enterprise-header,
body:not(.is-meridia-theme) .enterprise-header.scrolled{
  background:linear-gradient(118deg,var(--theme-cg-header-bg),var(--theme-cg-header-alt))!important;
  border-bottom:1px solid color-mix(in srgb,var(--theme-cg-header-text) 20%,transparent)!important;
  box-shadow:0 12px 32px rgba(1,26,64,.22)!important;
}
body:not(.is-meridia-theme) .enterprise-menu>a,
body:not(.is-meridia-theme) .mega-item>button{color:var(--theme-cg-header-text)!important}
body:not(.is-meridia-theme) .enterprise-menu>a:hover,
body:not(.is-meridia-theme) .mega-item>button:hover{color:color-mix(in srgb,var(--theme-cg-header-text) 72%,var(--theme-cg-accent))!important}
body:not(.is-meridia-theme) .header-actions{border-left-color:color-mix(in srgb,var(--theme-cg-header-text) 27%,transparent)!important}
body:not(.is-meridia-theme) .header-login,
body:not(.is-meridia-theme) .enterprise-search{
  color:var(--theme-cg-header-text)!important;background:color-mix(in srgb,var(--theme-cg-header-text) 9%,transparent)!important;
  border-color:color-mix(in srgb,var(--theme-cg-header-text) 30%,transparent)!important;
}
body:not(.is-meridia-theme) .enterprise-search svg{stroke:var(--theme-cg-header-text)!important}

/* Meridia uses a distinct premium navy system; no black/graphite surfaces. */
body.is-meridia-theme{background:var(--theme-meridia-page-bg)!important;color:var(--theme-meridia-body)!important}
body.is-meridia-theme .cg-topbar{background:var(--theme-meridia-topbar-bg)!important}
body.is-meridia-theme .enterprise-header,
body.is-meridia-theme .enterprise-header.scrolled{
  background:linear-gradient(118deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important;
  border-bottom:1px solid color-mix(in srgb,var(--theme-meridia-header-text) 19%,transparent)!important;
  box-shadow:0 12px 32px rgba(2,24,54,.24)!important;
}
body.is-meridia-theme .enterprise-menu>a,
body.is-meridia-theme .mega-item>button{color:var(--theme-meridia-header-text)!important}
body.is-meridia-theme .enterprise-menu>a:hover,
body.is-meridia-theme .mega-item>button:hover{color:color-mix(in srgb,var(--theme-meridia-header-text) 70%,var(--theme-meridia-accent))!important}
body.is-meridia-theme .header-actions{border-left-color:color-mix(in srgb,var(--theme-meridia-header-text) 27%,transparent)!important}
body.is-meridia-theme .header-login,
body.is-meridia-theme .enterprise-search{
  color:var(--theme-meridia-header-text)!important;background:color-mix(in srgb,var(--theme-meridia-header-text) 9%,transparent)!important;
  border-color:color-mix(in srgb,var(--theme-meridia-header-text) 30%,transparent)!important;
}
body.is-meridia-theme .enterprise-search svg{stroke:var(--theme-meridia-header-text)!important}

/* Opened menus: light, legible cards within the brand system. */
.mega-menu{border-top-width:3px!important;box-shadow:0 28px 60px rgba(4,33,72,.18)!important}
body:not(.is-meridia-theme) .mega-menu{
  color:var(--theme-cg-menu-text)!important;background:var(--theme-cg-menu-bg)!important;
  border-top-color:var(--theme-cg-accent)!important;
}
body.is-meridia-theme .mega-menu{
  color:var(--theme-meridia-menu-text)!important;background:var(--theme-meridia-menu-bg)!important;
  border-top-color:var(--theme-meridia-accent)!important;
}
.mega-menu .shell{align-items:stretch!important}
.mega-intro,.support-menu-lead,
.vA3-company-mega .shell>div:first-child{
  border-radius:22px!important;box-shadow:0 16px 34px rgba(5,34,74,.16)!important;
}
body:not(.is-meridia-theme) .mega-intro,
body:not(.is-meridia-theme) .support-menu-lead,
body:not(.is-meridia-theme) .vA3-company-mega .shell>div:first-child{
  background:linear-gradient(145deg,var(--theme-cg-header-bg),var(--theme-cg-header-alt))!important;
  color:var(--theme-cg-header-text)!important;
}
body.is-meridia-theme .mega-intro,
body.is-meridia-theme .support-menu-lead,
body.is-meridia-theme .vA3-company-mega .shell>div:first-child{
  background:linear-gradient(145deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important;
  color:var(--theme-meridia-header-text)!important;
}
.mega-intro h2,.support-menu-lead h2,.vA3-company-mega .shell>div:first-child h2,
.mega-intro a{color:inherit!important}
body:not(.is-meridia-theme) .mega-intro p,
body:not(.is-meridia-theme) .support-menu-lead p,
body:not(.is-meridia-theme) .vA3-company-mega .shell>div:first-child p{color:color-mix(in srgb,var(--theme-cg-header-text) 78%,transparent)!important}
body.is-meridia-theme .mega-intro p,
body.is-meridia-theme .support-menu-lead p,
body.is-meridia-theme .vA3-company-mega .shell>div:first-child p{color:color-mix(in srgb,var(--theme-meridia-header-text) 78%,transparent)!important}

.vA3-company-mega nav a,.support-menu-grid a,.mega-category{
  border:1px solid transparent!important;border-radius:13px!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
body:not(.is-meridia-theme) .vA3-company-mega nav a,
body:not(.is-meridia-theme) .support-menu-grid a,
body:not(.is-meridia-theme) .mega-category{
  background:var(--theme-cg-menu-card)!important;border-color:color-mix(in srgb,var(--theme-cg-menu-text) 11%,transparent)!important;
  color:var(--theme-cg-menu-text)!important;
}
body.is-meridia-theme .vA3-company-mega nav a,
body.is-meridia-theme .support-menu-grid a,
body.is-meridia-theme .mega-category{
  background:var(--theme-meridia-menu-card)!important;border-color:color-mix(in srgb,var(--theme-meridia-menu-text) 11%,transparent)!important;
  color:var(--theme-meridia-menu-text)!important;
}
.vA3-company-mega nav a:hover,.support-menu-grid a:hover,.mega-category:hover{
  transform:translateY(-2px)!important;box-shadow:0 10px 24px rgba(6,43,89,.09)!important;
}
body:not(.is-meridia-theme) .mega-menu b,
body:not(.is-meridia-theme) .mega-menu a,
body:not(.is-meridia-theme) .mega-root{color:var(--theme-cg-menu-text)!important}
body:not(.is-meridia-theme) .mega-menu p,
body:not(.is-meridia-theme) .mega-menu small,
body:not(.is-meridia-theme) .mega-category>div a{color:var(--theme-cg-menu-muted)!important}
body.is-meridia-theme .mega-menu b,
body.is-meridia-theme .mega-menu a,
body.is-meridia-theme .mega-root{color:var(--theme-meridia-menu-text)!important}
body.is-meridia-theme .mega-menu p,
body.is-meridia-theme .mega-menu small,
body.is-meridia-theme .mega-category>div a{color:var(--theme-meridia-menu-muted)!important}
.mega-root{padding:11px 12px!important;border-bottom-width:1px!important}
.mega-category>div{padding:0 12px 12px!important}
.mega-category.is-meridia{background:linear-gradient(145deg,#eaf0f7,#f9fbfd)!important}
.mega-category.is-meridia .mega-root{color:#12375f!important}
.vA3-company-mega nav{gap:10px!important}
.vA3-company-mega nav a{padding:15px 17px!important}

/* Footer returns to dark blue on every page. */
.enterprise-footer{background:var(--theme-cg-footer-bg)!important;color:var(--theme-cg-footer-text)!important}
.enterprise-footer p,.enterprise-footer a,.enterprise-footer-bottom{color:color-mix(in srgb,var(--theme-cg-footer-text) 82%,transparent)!important}
.enterprise-footer h3,.enterprise-footer strong{color:var(--theme-cg-footer-text)!important}
.footer-cta-band{background:linear-gradient(110deg,var(--theme-cg-header-bg),var(--theme-cg-header-alt))!important}
.is-meridia-theme .enterprise-footer{background:var(--theme-meridia-footer-bg)!important;color:var(--theme-meridia-footer-text)!important}
.is-meridia-theme .enterprise-footer p,.is-meridia-theme .enterprise-footer a,.is-meridia-theme .enterprise-footer-bottom{color:color-mix(in srgb,var(--theme-meridia-footer-text) 82%,transparent)!important}
.is-meridia-theme .enterprise-footer h3,.is-meridia-theme .enterprise-footer strong{color:var(--theme-meridia-footer-text)!important}
.is-meridia-theme .footer-cta-band{background:linear-gradient(110deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important}

/* Meridia catalogue, detail and campaign sections. */
.is-meridia-theme .v6-catalog-hero{background:linear-gradient(140deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important}
.is-meridia-theme .v6-catalog-section,
.is-meridia-theme .v6-product-detail{background:var(--theme-meridia-section-bg)!important;color:var(--theme-meridia-body)!important}
.is-meridia-theme .v6-catalog-toolbar strong,
.is-meridia-theme .v6-detail-copy h1,
.is-meridia-theme .v6-product-copy h3{color:var(--theme-meridia-heading)!important}
.is-meridia-theme .v6-product-card,
.is-meridia-theme .v24-product-card,
.is-meridia-theme .v6-gallery-main,
.is-meridia-theme .v6-gallery-thumbs button{background:var(--theme-meridia-card-bg)!important;border-color:color-mix(in srgb,var(--theme-meridia-heading) 15%,transparent)!important}
.is-meridia-theme .v6-filter-panel,
.is-meridia-theme .v8-filter-panel{
  color:var(--theme-meridia-body)!important;background:var(--theme-meridia-card-bg)!important;
  border-color:color-mix(in srgb,var(--theme-meridia-heading) 15%,transparent)!important;
}
.is-meridia-theme .v6-filter-panel h2,.is-meridia-theme .v6-filter-panel h3,
.is-meridia-theme .v6-filter-panel a,.is-meridia-theme .v6-filter-panel summary,
.is-meridia-theme .v6-filter-panel legend{color:var(--theme-meridia-heading)!important}
.is-meridia-theme .v6-filter-panel small,.is-meridia-theme .v6-filter-panel label{color:var(--theme-meridia-body)!important}
.is-meridia-theme .v6-apply-filters,.is-meridia-theme .v6-pagination a.is-current{
  background:var(--theme-meridia-header-bg)!important;color:var(--theme-meridia-header-text)!important;
}
.is-meridia-theme .v6-spec-section{background:linear-gradient(135deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important}
.is-meridia-theme .vA4-meridia-stories,
.is-meridia-theme .vA4-meridia-categories,
.is-meridia-theme .vA4-meridia-care{background:linear-gradient(135deg,var(--theme-meridia-header-bg),var(--theme-meridia-header-alt))!important}
.is-meridia-theme .vA4-meridia-manifesto,
.is-meridia-theme .vA4-meridia-editorial,
.is-meridia-theme .vA4-meridia-signatures{background:var(--theme-meridia-section-bg)!important;color:var(--theme-meridia-body)!important}
.is-meridia-theme .vA4-meridia-manifesto h2,
.is-meridia-theme .vA4-meridia-editorial h2,
.is-meridia-theme .vA4-meridia-signatures h2{color:var(--theme-meridia-heading)!important}
.is-meridia-theme .vA6-meridia-corner-logo{background:rgba(255,255,255,.96)!important;box-shadow:0 10px 34px rgba(2,25,56,.18)!important}

/* Admin visual colour groups: picker first, code shown only as reference. */
.vA8-theme-group{margin-top:28px;padding:24px;border:1px solid var(--theme-border);border-radius:20px;background:#f9fbfe}
.vA8-theme-group-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:18px}
.vA8-theme-group-head h2{margin:3px 0 0;color:var(--theme-navy)}
.vA8-theme-group-head>p{max-width:620px;margin:0;color:var(--theme-muted);line-height:1.6}
.vA8-theme-group .v37-color-grid{margin:0}
.vA8-theme-group .v37-color-card{grid-template-columns:64px minmax(0,1fr) auto!important;background:#fff!important}
.vA8-theme-group .v37-color-swatch{width:52px!important;height:52px!important}
.vA8-theme-group .v37-color-swatch input{width:52px!important;height:52px!important;cursor:pointer}
.vA8-color-value{font:700 11px/1 Manrope,sans-serif;color:var(--theme-muted);text-transform:uppercase;letter-spacing:.06em}

/* Enquiry results always expose the full submission payload. */
.vA8-filter-result{margin:-4px 0 22px;padding:12px 15px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-soft-bg);color:var(--theme-muted)}
.vA8-filter-result strong{color:var(--theme-navy)}
.vA8-submission-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 0}
.vA8-submission-details>div{min-width:0;padding:10px;border:1px solid var(--theme-border);border-radius:10px;background:#f8fbfe}
.vA8-submission-details dt{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--theme-muted)}
.vA8-submission-details dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere;color:var(--theme-text)}

@media(max-width:1100px){
  .enterprise-header .cg-logo.vA3-logo.vA5-official-logo{width:64px!important;height:58px!important;min-width:64px!important}
  .enterprise-header .cg-logo.vA3-logo.vA5-official-logo img{width:52px!important;height:50px!important}
  .vA8-submission-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  body:not(.is-meridia-theme) .enterprise-menu{background:var(--theme-cg-header-bg)!important}
  body.is-meridia-theme .enterprise-menu{background:var(--theme-meridia-header-bg)!important}
  body:not(.is-meridia-theme) .mega-menu{background:color-mix(in srgb,var(--theme-cg-header-bg) 93%,white)!important}
  body.is-meridia-theme .mega-menu{background:color-mix(in srgb,var(--theme-meridia-header-bg) 93%,white)!important}
  body:not(.is-meridia-theme) .mega-menu b,body:not(.is-meridia-theme) .mega-menu a,
  body:not(.is-meridia-theme) .mega-menu small,body:not(.is-meridia-theme) .mega-category>div a{color:var(--theme-cg-header-text)!important}
  body.is-meridia-theme .mega-menu b,body.is-meridia-theme .mega-menu a,
  body.is-meridia-theme .mega-menu small,body.is-meridia-theme .mega-category>div a{color:var(--theme-meridia-header-text)!important}
  .vA8-theme-group-head{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:600px){
  .enterprise-header .cg-logo.vA3-logo.vA5-official-logo{width:54px!important;height:50px!important;min-width:54px!important;padding:3px 4px!important}
  .enterprise-header .cg-logo.vA3-logo.vA5-official-logo img{width:46px!important;height:44px!important}
  .vA8-theme-group{padding:16px}
  .vA8-theme-group .v37-color-card{grid-template-columns:54px minmax(0,1fr)!important}
  .vA8-color-value{grid-column:2}
  .vA8-submission-details{grid-template-columns:1fr}
}
