/* RC11-C — CLS, mobile performance, responsive rhythm, service-map data visualization. */

/* Stable service shell prevents tab-switch layout jumps. */
.nhs .nhs-service-panels{min-height:var(--nhs-service-stable-height,430px);contain:layout paint}
.nhs .nhs-service-panel{min-height:inherit}
.nhs .nhs-service-measure-clone{transition:none!important;animation:none!important}

/* One visual stage only; the image source changes without moving the section. */
.nhs .nhs-service-stage-shell{display:grid;gap:12px}
.nhs .nhs-service-stage{isolation:isolate;contain:layout paint;transform:translateZ(0)}
.nhs .nhs-service-stage .nhs-service-visual{position:absolute;inset:0;opacity:1;transform:none;transition:opacity .18s ease}
.nhs .nhs-service-stage-shell.is-swapping .nhs-service-visual{opacity:.35}
.nhs .nhs-service-visual-image{content-visibility:auto}

/* Compact service map: factual visualization of the 9 existing service modules. */
.nhs .nhs-service-map{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;align-items:center;padding:9px 10px;border:1px solid var(--nhs-line);border-radius:20px;background:rgba(6,16,27,.52);box-shadow:0 14px 34px rgba(0,0,0,.10)}
.nhs .nhs-service-map button{position:relative;min-width:0;height:34px;border:0;border-radius:12px;background:rgba(255,255,255,.025);color:var(--nhs-t3);font:800 9px/1 Inter,Arial,sans-serif;letter-spacing:.08em;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.nhs .nhs-service-map button::before{content:"";position:absolute;right:7px;left:7px;bottom:5px;height:2px;border-radius:999px;background:rgba(124,207,255,.15)}
.nhs .nhs-service-map button:hover,.nhs .nhs-service-map button:focus-visible{color:var(--nhs-t1);background:rgba(255,255,255,.045)}
.nhs .nhs-service-map button.is-active{color:#eaf7ff;background:linear-gradient(135deg,rgba(12,94,163,.62),rgba(7,39,67,.62));transform:translateY(-1px)}
.nhs .nhs-service-map button.is-active::before{background:linear-gradient(90deg,#7ed9ff,var(--nh-accent));box-shadow:0 0 12px rgba(54,177,255,.28)}

/* Cleaner spacing and calmer visual hierarchy across the page. */
.nhs.nhs-preset-seo .nhs-scene{padding-top:clamp(64px,7vw,96px);padding-bottom:clamp(68px,7.5vw,104px)}
.nhs.nhs-preset-seo .nhs-section-head{max-width:900px;margin-bottom:clamp(28px,4vw,46px)}
.nhs.nhs-preset-seo .nhs-section-head>p{max-width:820px}
.nhs.nhs-preset-seo .nhs-copy p,.nhs.nhs-preset-seo .nhs-section-head p{line-height:1.82}
.nhs.nhs-preset-seo .nhs-case,.nhs.nhs-preset-seo .nhs-fit-card,.nhs.nhs-preset-seo .nhs-model,.nhs.nhs-preset-seo .nhs-price-card,.nhs.nhs-preset-seo .nhs-service-card-front{border-radius:24px}

/* Reduce expensive effects on devices where blur causes visible lag. */
.nhs.nhs-runtime-lite .nhs-service-stage,
.nhs.nhs-runtime-lite .nhs-service-visual-eyebrow,
.nhs.nhs-runtime-lite .nhs-service-visual-tags span,
.nhs.nhs-runtime-lite .nhs-service-tabs-shell,
.nhs.nhs-runtime-lite .nhs-service-arrow,
.nhs.nhs-runtime-lite .nhs-service-map{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.nhs.nhs-runtime-lite .nhs-service-stage-shell.is-swapping .nhs-service-visual{opacity:1}
.nhs.nhs-runtime-lite .nhs-service-index button,
.nhs.nhs-runtime-lite .nhs-service-map button,
.nhs.nhs-runtime-lite .nhs-service-visual{transition:none!important}

html[data-theme="light"] .nhs .nhs-service-map,
body.light-mode .nhs .nhs-service-map{background:rgba(255,255,255,.62);box-shadow:0 12px 30px rgba(29,72,108,.08)}
html[data-theme="light"] .nhs .nhs-service-map button,
body.light-mode .nhs .nhs-service-map button{background:rgba(235,247,255,.66);color:#577389}
html[data-theme="light"] .nhs .nhs-service-map button.is-active,
body.light-mode .nhs .nhs-service-map button.is-active{background:linear-gradient(135deg,rgba(210,239,255,.98),rgba(236,248,255,.92));color:#0b4269}

@media(max-width:1100px){
  .nhs .nhs-service-panels{min-height:var(--nhs-service-stable-height,400px)}
  .nhs .nhs-service-map{grid-template-columns:repeat(9,44px);overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;justify-content:start;padding:8px;overscroll-behavior-inline:contain}
  .nhs .nhs-service-map::-webkit-scrollbar{display:none}
  .nhs .nhs-service-map button{scroll-snap-align:center;width:44px;height:36px}
}

@media(max-width:782px){
  .nhs.nhs-preset-seo{--nhs-mobile-inline:18px}
  .nhs.nhs-preset-seo .nhs-shell{width:calc(100% - (var(--nhs-mobile-inline) * 2))}
  .nhs.nhs-preset-seo .nhs-scene{padding-top:44px;padding-bottom:calc(54px + max(96px,var(--nhs-bottom)) + env(safe-area-inset-bottom))}
  .nhs.nhs-preset-seo .nhs-hero{padding-top:30px;padding-bottom:42px}
  .nhs.nhs-preset-seo .nhs-section-head{margin-bottom:26px}
  .nhs.nhs-preset-seo .nhs-copy h1{font-size:clamp(2.05rem,9vw,2.42rem);line-height:1.12}
  .nhs.nhs-preset-seo .nhs-copy h2,.nhs.nhs-preset-seo .nhs-section-head h2{font-size:clamp(1.68rem,7vw,1.95rem);line-height:1.2}
  .nhs.nhs-preset-seo .nhs-copy p,.nhs.nhs-preset-seo .nhs-section-head p{font-size:.97rem;line-height:1.8;margin-top:14px}
  .nhs.nhs-preset-seo .nhs-btn{min-height:50px}

  .nhs .nhs-service-stage-shell{gap:9px;margin-bottom:15px}
  .nhs .nhs-service-stage{border-radius:22px;aspect-ratio:4/3}
  .nhs .nhs-service-map{border-radius:16px;padding:7px;gap:6px}
  .nhs .nhs-service-map button{width:42px;height:34px;border-radius:10px;font-size:8px}

  .nhs .nhs-service-tabs-shell{padding:8px;border-radius:20px;box-shadow:0 14px 34px rgba(0,0,0,.10)}
  .nhs .nhs-service-tab-tools{min-height:42px;margin:0 0 7px;padding:0 2px}
  .nhs .nhs-service-arrow{width:40px;height:40px;border-radius:12px;box-shadow:none}
  .nhs .nhs-service-index{padding:0;gap:7px;border-radius:16px}
  .nhs .nhs-service-index button{flex-basis:min(79vw,290px)!important;max-width:min(79vw,290px)!important;min-height:66px;padding:9px 11px;border-radius:15px;gap:10px}
  .nhs .nhs-service-index button::after{right:10px;left:10px}
  .nhs .nhs-service-index button>svg{width:38px;height:38px;padding:8px;border-radius:12px}
  .nhs .nhs-service-index span{grid-template-columns:27px minmax(0,1fr);gap:7px}
  .nhs .nhs-service-index b{width:27px;height:27px;border-radius:8px;font-size:8px}
  .nhs .nhs-service-index em{font-size:.9rem;line-height:1.45}

  .nhs .nhs-service-panels{min-height:var(--nhs-service-stable-height,390px);border-radius:20px;contain:layout}
  .nhs .nhs-service-panel{padding:19px 16px 18px}
  .nhs .nhs-service-panel-head{gap:9px;margin-bottom:8px}
  .nhs .nhs-service-panel-icon{width:38px;height:38px;border-radius:12px}
  .nhs .nhs-service-panel-icon svg{width:19px;height:19px}
  .nhs .nhs-service-panel h3{font-size:1.38rem;line-height:1.32}
  .nhs .nhs-service-panel>p{font-size:.94rem;line-height:1.78}
  .nhs .nhs-service-summary-pills{margin-top:13px;gap:7px}
  .nhs .nhs-service-summary-pills span{padding:8px 10px;border-radius:13px;font-size:.86rem;line-height:1.5}
  .nhs .nhs-service-expand{margin-top:12px;border-radius:16px}
  .nhs .nhs-service-expand summary{padding:13px 12px}
  .nhs .nhs-service-expand summary span{font-size:.92rem}
  .nhs .nhs-service-expand summary b{font-size:.72rem}
  .nhs .nhs-service-expand-body{padding:0 12px 12px}
  .nhs .nhs-service-expand li{font-size:.9rem;line-height:1.7;padding:10px 10px 10px 14px}
  .nhs .nhs-service-cta-card{margin-top:10px;padding:12px;border-radius:15px;gap:9px}
  .nhs .nhs-service-cta-card strong{font-size:.9rem;line-height:1.65}

  /* Mobile glass remains visually present without expensive blur. */
  .nhs .nhs-service-stage,
  .nhs .nhs-service-visual-eyebrow,
  .nhs .nhs-service-visual-tags span,
  .nhs .nhs-service-tabs-shell,
  .nhs .nhs-service-map,
  .nhs .nhs-service-arrow{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

  /* Reduce paint cost of decorative galaxy while preserving the design. */
  .nhs .nhs-seo-galaxy{filter:none}
  .nhs .nhs-galaxy-node{box-shadow:inset 0 1px rgba(255,255,255,.05)}
  .nhs .nhs-data-core{box-shadow:0 0 0 7px rgba(80,180,255,.04),0 16px 36px rgba(5,13,22,.16)}
}

@media(max-width:390px){
  .nhs.nhs-preset-seo{--nhs-mobile-inline:15px}
  .nhs .nhs-service-index button{flex-basis:82vw!important;max-width:82vw!important}
  .nhs .nhs-service-panel{padding:17px 14px 16px}
  .nhs .nhs-service-panel h3{font-size:1.3rem}
}

@media(prefers-reduced-motion:reduce){
  .nhs .nhs-service-stage-shell.is-swapping .nhs-service-visual{opacity:1!important}
  .nhs .nhs-service-stage .nhs-service-visual,.nhs .nhs-service-map button{transition:none!important}
}
