
/* Signed owner preview only. Files are never enqueued on ordinary public LIVE. */
@media(min-width:922px){
  body.spt-nav5-preview-active.page-id-6385 .spt6385-ha,
  body.spt-nav5-preview-active.page-id-6338 .sptsvc-ha {gap:clamp(5px,.6vw,10px)!important;min-width:0!important;}
  /* RC16: Keep the existing functional hamburger AND the five inline links.
     Never conceal the owner's original full-menu trigger. */
  body.spt-nav5-preview-active.page-id-6385 .spt6385-ha-menu,
  body.spt-nav5-preview-active.page-id-6338 .sptsvc-ha-menu {
    display:inline-flex!important;visibility:visible!important;
    flex:0 0 auto!important;min-width:max-content!important;
    align-items:center!important;position:relative!important;
  }
  body.spt-nav5-preview-active .spt-nav5-inline {display:flex!important;flex:0 1 auto!important;min-width:0!important;align-items:center!important;gap:clamp(3px,.4vw,8px)!important;white-space:nowrap!important;}
  body.spt-nav5-preview-active .spt-nav5-inline>a {display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;color:inherit!important;text-decoration:none!important;font:500 clamp(10px,.85vw,13px)/1.4 'Prompt',Kanit,system-ui,sans-serif!important;padding:6px clamp(2px,.35vw,7px)!important;border-radius:4px!important;}
  body.spt-nav5-preview-active .spt-nav5-inline>a[aria-current='page'] {background:rgba(60,143,192,.16)!important;}
  body.spt-nav5-preview-active .spt-nav5-inline>a:focus-visible{outline:2px solid #09a978!important;outline-offset:2px!important;}
  body.spt-nav5-preview-active.page-id-6385 header.spt-v3-header>.spt-v3-header-inner {width:calc(100% - 28px)!important;max-width:1480px!important;gap:8px!important;}
  body.spt-nav5-preview-active.page-id-6385 .spt6385-ha-language-slot,
  body.spt-nav5-preview-active.page-id-6338 .sptsvc-ha-language-slot {flex-shrink:0!important;}
}
@media(max-width:921px){body .spt-nav5-inline{display:none!important;}}

/* Admin-only diagnostic: displayed only if Nav5 cannot mount safely. */
.spt-nav5-preview-diagnostic{position:fixed;bottom:14px;left:14px;z-index:999999;max-width:min(420px,calc(100vw - 28px));padding:10px 14px;background:#fff3d1;color:#35240b;border:1px solid #a36b16;border-radius:10px;box-shadow:0 4px 18px #0002;font:500 13px/1.55 Kanit,system-ui,sans-serif}

/* RC25 — Cart/Checkout only. The five inline anchors use href/text from Primary Menu.
   Desktop only; the 399px Mobile Header and existing Services rules are unchanged. */
@media (min-width:922px){
  body.spt-nav5-preview-active.sptcc-preview-desktop #masthead .sptcc-ha {
    gap:clamp(3px,.45vw,8px)!important;min-width:0!important;
  }
  body.spt-nav5-preview-active.sptcc-preview-desktop .spt-nav5-inline {
    display:flex!important;flex:0 1 auto!important;min-width:0!important;align-items:center!important;
    gap:clamp(3px,.4vw,8px)!important;white-space:nowrap!important;
  }
  body.spt-nav5-preview-active.sptcc-preview-desktop .spt-nav5-inline>a {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    white-space:nowrap!important;color:inherit!important;text-decoration:none!important;
    font:500 clamp(13px,1vw,16px)/1.45 'Prompt',Kanit,system-ui,sans-serif!important;
    padding:6px clamp(2px,.35vw,7px)!important;border-radius:4px!important;
  }
  body.spt-nav5-preview-active.sptcc-preview-desktop .spt-nav5-inline>a[aria-current='page'] {
    background:rgba(60,143,192,.16)!important;
  }
  body.spt-nav5-preview-active.sptcc-preview-desktop .spt-nav5-inline>a:focus-visible {
    outline:2px solid #09a978!important;outline-offset:2px!important;
  }
}
