/* P01 R7.0 Subsite Shell Correction */
:root{--ws-domain-nav:32px;--vf-subsite-masthead:72px}
body.vf-surface-app .vf-global-domain-nav{position:fixed!important;inset:0 0 auto 0!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:var(--ws-domain-nav)!important;min-height:var(--ws-domain-nav)!important;background:color-mix(in srgb,var(--ws-soft) 88%,var(--ws-panel))!important;border-bottom:1px solid color-mix(in srgb,var(--ws-line) 88%,transparent)!important;box-shadow:none!important;backdrop-filter:none!important}
body.vf-surface-app .vf-global-domain-nav-inner{width:min(1320px,calc(100% - 28px))!important;height:100%!important;min-height:0!important;margin-inline:auto!important;padding:0!important;display:flex!important;align-items:center!important;gap:10px!important}
body.vf-surface-app .vf-global-domain-links{min-width:0;display:flex!important;align-items:stretch!important;gap:0!important;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--ws-line-strong) transparent}
body.vf-surface-app .vf-global-domain-links::-webkit-scrollbar{height:4px}
body.vf-surface-app .vf-global-domain-links::-webkit-scrollbar-track{background:transparent}
body.vf-surface-app .vf-global-domain-links::-webkit-scrollbar-thumb{border-radius:99px;background:var(--ws-line-strong)}
body.vf-surface-app .vf-global-domain-links>a:focus-visible{outline:2px solid var(--ws-teal)!important;outline-offset:-2px}
body.vf-surface-app .vf-global-domain-links>a{min-width:max-content!important;min-height:32px!important;padding:0 9px!important;display:inline-flex!important;align-items:center!important;border-radius:0!important;background:transparent!important;color:var(--ws-muted)!important;font-size:11.5px!important;font-weight:560!important;box-shadow:none!important}
body.vf-surface-app .vf-global-domain-links>a:hover{background:transparent!important;color:var(--ws-strong)!important}
body.vf-surface-app .vf-global-domain-links>a.active{background:transparent!important;color:var(--ws-teal)!important;font-weight:720!important}
body.vf-surface-app .vf-global-domain-links>a.active::after{left:9px!important;right:9px!important;bottom:0!important;height:2px!important}
body.vf-surface-app .vf-global-account-actions{margin-left:auto!important;min-width:max-content;align-self:stretch}
body.vf-surface-app .vf-global-account-action,body.vf-surface-app .vf-global-account-more{min-height:32px!important;height:32px!important;font-size:11px!important}
body.vf-surface-app .vf-app-topbar.vf-domain-subbar{position:sticky!important;top:var(--ws-domain-nav)!important;z-index:50!important;min-height:var(--vf-subsite-masthead)!important;height:auto!important;padding-block:10px!important;display:grid!important;grid-template-columns:minmax(190px,auto) minmax(280px,640px) minmax(max-content,1fr)!important;align-items:center!important;gap:24px!important;border-bottom:1px solid var(--ws-line)!important;background:var(--ws-panel)!important;box-shadow:none!important}
body.vf-surface-app .vf-subsite-identity{min-width:0;display:flex;align-items:center;gap:12px}
body.vf-surface-app .vf-subsite-master-brand{min-width:0;display:flex;align-items:center;gap:8px;color:var(--ws-strong);text-decoration:none}
body.vf-surface-app .vf-subsite-master-mark{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--ws-teal) 22%,var(--ws-line));border-radius:9px;background:var(--ws-panel);color:var(--ws-teal);font-size:11px;font-weight:800}
body.vf-surface-app .vf-subsite-master-mark img{width:100%;height:100%;display:block;object-fit:contain;background:#fff}
body.vf-surface-app .vf-subsite-master-copy{min-width:0;display:grid;gap:1px;line-height:1.05}
body.vf-surface-app .vf-subsite-master-copy>strong{max-width:140px;overflow:hidden;color:var(--ws-strong);font-size:14px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}
body.vf-surface-app .vf-subsite-master-copy>small{max-width:140px;overflow:hidden;color:var(--ws-muted-2);font-size:9px;font-weight:540;text-overflow:ellipsis;white-space:nowrap}
body.vf-surface-app .vf-subsite-identity-divider{width:1px;height:30px;flex:0 0 auto;background:var(--ws-line)}
body.vf-surface-app .vf-subsite-current{min-width:0;display:grid;gap:1px;color:var(--ws-strong);text-decoration:none;line-height:1.12}
body.vf-surface-app .vf-subsite-current>strong{font-size:18px;font-weight:780;letter-spacing:-.025em}
body.vf-surface-app .vf-subsite-current>small{color:var(--ws-muted-2);font-size:9.5px;font-weight:560;white-space:nowrap}
body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-global-search{width:100%!important;max-width:640px!important;justify-self:start}
body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-top-actions{justify-self:end}
.vf-functional-workspace .vf-app-sidebar{top:var(--ws-domain-nav)!important}
.vf-functional-workspace .vf-app-stage,.vf-subject-page .vf-app-stage,.surface-home .vf-app-stage{padding-top:var(--ws-domain-nav)!important}
.vf-functional-workspace .vf-workspace-toolbar{top:calc(var(--ws-domain-nav) + var(--vf-subsite-masthead))!important}
body.surface-start .vf-functional-sidebar{padding-top:18px!important}
@media(max-width:900px){
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar{grid-template-columns:auto minmax(220px,1fr) auto!important;gap:14px!important}
  body.vf-surface-app .vf-subsite-master-copy{display:none}
  body.vf-surface-app .vf-subsite-identity-divider{display:none}
}
@media(max-width:760px){
  :root{--ws-domain-nav:44px;--vf-subsite-masthead:58px}
  body.vf-surface-app .vf-global-domain-nav-inner{width:100%!important;padding:0 8px!important}
  body.vf-surface-app .vf-global-domain-links{flex:1 1 auto}
  body.vf-surface-app .vf-global-domain-links>a{min-height:44px!important;padding:0 9px!important;font-size:11.5px!important}
  body.vf-surface-app .vf-global-account-actions{flex:0 0 auto}
  .vf-functional-workspace .vf-app-topbar.vf-domain-subbar,body.vf-surface-app .vf-app-topbar.vf-domain-subbar{display:grid!important;min-height:58px!important;grid-template-columns:1fr auto!important;padding:8px 10px!important}
  body.vf-surface-app .vf-subsite-identity{min-width:0}
  body.vf-surface-app .vf-subsite-master-mark{width:32px;height:32px;border-radius:8px}
  body.vf-surface-app .vf-subsite-current>strong{font-size:16px}
  body.vf-surface-app .vf-subsite-current>small{display:none}
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-global-search{display:none!important}
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-top-actions{display:flex!important}
  .vf-functional-workspace .vf-workspace-toolbar{top:var(--ws-domain-nav)!important}
}
/* Production visual acceptance correction · V2.47.110.
 * Keep the frozen two-level subsite topology; improve legibility and proportion. */
@media(min-width:761px){
  :root{--ws-domain-nav:38px;--vf-subsite-masthead:76px}
  body.vf-surface-app .vf-global-domain-nav{height:var(--ws-domain-nav)!important;min-height:var(--ws-domain-nav)!important}
  body.vf-surface-app .vf-global-domain-nav-inner{width:min(1440px,calc(100% - 40px))!important;gap:14px!important}
  body.vf-surface-app .vf-global-domain-links>a{min-height:38px!important;padding:0 10px!important;font-size:13px!important;font-weight:600!important}
  body.vf-surface-app .vf-global-account-action,
  body.vf-surface-app .vf-global-account-more{height:38px!important;min-height:38px!important;font-size:12.5px!important}
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar{min-height:var(--vf-subsite-masthead)!important;padding-block:11px!important;grid-template-columns:minmax(220px,auto) minmax(320px,680px) minmax(max-content,1fr)!important;gap:28px!important}
  body.vf-surface-app .vf-subsite-identity{gap:14px!important}
  body.vf-surface-app .vf-subsite-master-mark{width:38px!important;height:38px!important;border-radius:10px!important}
  body.vf-surface-app .vf-subsite-master-copy>strong{font-size:15.5px!important}
  body.vf-surface-app .vf-subsite-master-copy>small{font-size:11px!important;line-height:1.2!important}
  body.vf-surface-app .vf-subsite-identity-divider{height:34px!important}
  body.vf-surface-app .vf-subsite-current>strong{font-size:20px!important;line-height:1.15!important}
  body.vf-surface-app .vf-subsite-current>small{font-size:11px!important;line-height:1.25!important}
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-global-search input{font-size:13.5px!important}
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-context-action,
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-theme-toggle{font-size:13px!important}
}
/* Production shell authority correction · V2.47.113.
 * frontend-mature.css previously reintroduced position:sticky and min-height:64px
 * on the Global Switcher after the base shell. Reassert the final geometry here:
 * fixed global strip at viewport origin, fixed strip height only, masthead directly
 * underneath, and local rails below both layers. */

body.vf-surface-app .vf-global-domain-nav .vf-global-auth-action{display:inline-flex!important}
body.vf-surface-app .vf-global-account-state{height:100%!important;align-items:center!important}

/* Nine-entry signed-in/anonymous Shell consistency, Owner Production evidence.
 * Non-Navigation pages have no local sidebar; the old workspace baseline's
 * `margin-left:var(--ws-sidebar)` must never offset their content stage.
 * Navigation alone keeps its canonical local category rail.
 */
body.vf-surface-app.surface-home .vf-app-stage,
body.vf-surface-app.vf-subject-page .vf-app-stage{
  margin-left:0!important;
}
/* Current global entry is indicated by text color + aria-current, never by
 * an old editorial underline. This applies identically to both auth states. */
body.vf-surface-app .vf-global-domain-links>a.active::after{
  content:none!important;
  display:none!important;
}
/* Match the compact switcher and masthead to the existing 1260px content
 * measure below UX-53's >=1440px wide-desktop frame; the Wide authority
 * in desktop-wide-layout.css retains responsibility at >=1440px. */
@media(min-width:761px) and (max-width:1439px){
  body.vf-surface-app .vf-global-domain-nav-inner{
    width:min(1260px,calc(100% - 44px))!important;
  }
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar{
    padding-left:max(22px,calc((100vw - 1260px)/2))!important;
    padding-right:max(22px,calc((100vw - 1260px)/2))!important;
  }
}
@media(min-width:761px) and (max-width:920px){
  body.vf-surface-app .vf-global-domain-nav-inner{
    width:calc(100% - 28px)!important;
  }
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar{
    padding-inline:14px!important;
  }
}

/* 761–900px: the later 220/320/max-content shell grid can exceed the
   viewport once a search-reset action appears. Preserve one-row controls,
   let search shrink rather than pushing the theme button outside the page. */
@media(min-width:761px) and (max-width:900px){
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar{
    grid-template-columns:minmax(150px,auto) minmax(0,1fr) max-content!important;
    gap:12px!important;
  }
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-global-search{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.vf-surface-app .vf-app-topbar.vf-domain-subbar .vf-top-actions{
    min-width:0;
    white-space:nowrap;
  }
}

/* Synthetic 9×2×4 browser evidence: the owner Home portal historically
 * used 56px side gutters while the shared masthead uses 44px, and the
 * guest Home's older high-specificity rule kept 44px at tablet size.
 * Keep the same visual content origin at each non-wide breakpoint. */
@media(min-width:761px) and (max-width:1439px){
  body.vf-surface-app.surface-home.vf-functional-workspace .vf-shell-main{
    width:min(1260px,calc(100% - 44px))!important;
    margin-inline:auto!important;
  }
}
@media(min-width:761px) and (max-width:920px){
  body.vf-surface-app.surface-home.vf-functional-workspace .vf-shell-main,
  body.vf-surface-app.surface-home.vf-public-home .vf-shell-main.vf-public-home-main{
    width:calc(100% - 28px)!important;
    margin-inline:auto!important;
  }
}
