/* T08 scoped integration: only the Services panel; existing header/controller retained. */
@layer kuciNavigationTheme {
  html body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] {
    --sm-text:#292924;--sm-link:#4d4d47;--sm-muted:#66665f;--sm-rule:#dedbd5;--sm-accent:#a21a70;
  }
  html:not([data-kuci-nav-mode="light"]) body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] {
    --sm-text:#f5f5f2;--sm-link:#d1d1cd;--sm-muted:#adada7;--sm-rule:#ffffff24;--sm-accent:#e986c5;
  }
  html body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sm-description,
  html body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot p {color:var(--sm-muted)!important}
  html body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot a {color:var(--sm-accent)!important}
  html:not([data-kuci-nav-mode="light"]) body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-top .sm-description,
  html:not([data-kuci-nav-mode="light"]) body header.kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot p {color:var(--sm-muted)!important}
}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined],
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] :is(p,a,summary,span) {
  font-family:"KUCI Unified Sans",Arial,Helvetica,sans-serif!important;font-style:normal!important;text-transform:none!important;letter-spacing:0!important;
}
/* Three retained groups share the available width after the page cleanup. */
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-wrap {width:min(1120px,calc(100% - 80px));padding:28px 0 24px}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-top {align-items:center;padding-bottom:24px;gap:32px}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sm-title {font-size:24px!important;line-height:1.3!important;font-weight:500!important;letter-spacing:-.025em!important;margin:0!important}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sm-description {font-size:14px!important;line-height:1.6!important;font-weight:400!important;margin:8px 0 0!important}
html body .kc6-header[data-pm-layout="wide"] #kc6-navigation #ks-services-menu[data-sn-refined] .sn-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;padding-top:24px}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] summary {font-size:15px!important;line-height:1.5!important;font-weight:600!important;padding-bottom:12px}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] a {font-size:14px!important;line-height:1.5!important;font-weight:400!important;min-height:40px;padding:9px 0!important;overflow-wrap:break-word}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] :is(.sn-top,.sn-foot) a {font-weight:500!important}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-top>a {flex-shrink:0}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] a>span {display:inline-block;margin-left:8px;font-size:16px!important;font-weight:400!important}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;margin-top:24px;padding-top:20px;align-items:start}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sm-next:first-child {grid-column:1 / span 2}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sm-next:last-child {grid-column:3;padding-left:0;border-left:0}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot a {min-height:32px;padding:3px 0 7px!important;width:fit-content!important}
html body .kc6-header #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot p {font-size:13px!important;line-height:1.6!important;font-weight:400!important;margin:0!important}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sn-wrap {width:100%;padding:16px 0 20px}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sn-top {display:block;padding-bottom:16px}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sm-title {font-size:20px!important;padding:0}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sm-description {font-size:13px!important;max-width:36ch}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sn-top>a {width:fit-content!important;margin-top:8px}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sn-grid {display:block;padding-top:0}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] summary {min-height:52px;padding:15px 30px 15px 0}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] a {min-height:44px;padding:11px 0!important}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sn-foot {display:grid;grid-template-columns:1fr;gap:18px;margin-top:20px;padding-top:0}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sm-next {grid-column:1 / -1}
html body .kc6-header[data-pm-layout="compact"] #kc6-navigation #ks-services-menu[data-sn-refined] .sm-next:last-child {padding:18px 0 0;border-left:0;border-top:1px solid var(--sm-rule)}
