/* MINOS Phase 30.1 — single brand/navigation shell; static pages and PHP use the same config. */
.minos-site-header{z-index:100;border-top:2px solid #1f1c1b;border-bottom:1px solid rgba(40,32,31,.12);background:rgba(248,245,241,.96);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.minos-site-header .header-inner{width:min(1160px,calc(100% - 40px));height:76px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:25px;margin:auto}
.minos-site-header .brand{flex-shrink:0;min-width:0;display:inline-flex;align-items:center;line-height:1}
.minos-site-header .brand-lockup,.minos-site-header .brand img{display:block;width:150px!important;height:auto!important;max-height:58px;object-fit:contain}
.minos-site-header .nav{display:flex;align-items:center;gap:clamp(10px,1.25vw,18px);font:400 13px/1.25 Inter,'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0;text-transform:none;color:#676360;white-space:nowrap}
.minos-site-header .nav a{position:relative;display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}
.minos-site-header .nav a:hover,.minos-site-header .nav a[aria-current="page"]{color:#50303a}
.minos-site-header .nav a[aria-current="page"]{font-weight:650}
.minos-site-header .nav a::after{content:"";position:absolute;height:2px;left:0;right:100%;bottom:4px;background:#744951;transition:right .18s ease}
.minos-site-header .nav a:hover::after,.minos-site-header .nav a[aria-current="page"]::after{right:0}
.minos-site-header .nav-search{border-left:1px solid #e1d7d2;padding-left:16px;margin-left:2px}
.minos-site-header .menu-button{display:none;border:1px solid #ded5ce;border-radius:8px;padding:0 13px;min-width:56px;min-height:44px;background:#fffdfa;color:#50303a;font:600 13px/1.4 Inter,'PingFang SC','Microsoft YaHei',sans-serif;cursor:pointer}
.minos-site-header a:focus-visible,.minos-site-header button:focus-visible{outline:2px solid #704752;outline-offset:3px}
/* Profile app originally used its own brandbar. The brand is now the same shell as the public home. */
body.minos-user-page .minos-site-header{position:sticky;top:0}
body.minos-user-page .minos-site-header .brand-lockup{width:150px!important}
body.minos-user-page .minos-site-header .nav a{font-weight:400}
body.minos-user-page .minos-site-header .nav a[aria-current="page"]{font-weight:650}
body.minos-user-page .profile-context-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #e1d8d1;color:#6b575b;font-size:12px}
body.minos-user-page .profile-context-back{display:inline-flex;align-items:center;min-height:36px;gap:8px;color:#60404a;text-decoration:none}
body.minos-user-page .profile-context-back:hover{text-decoration:underline;text-underline-offset:4px}
body.minos-user-page .profile-context-bar .status-pill{margin-left:auto;min-height:32px;padding:6px 10px;border-radius:24px;font:400 11px/1.5 'PingFang SC','Microsoft YaHei',sans-serif;white-space:nowrap}
/* Focus mode never inherits a second full navigation: local back + status only. */
body.phase30-taking-test .minos-site-header{display:none!important}
body.phase30-taking-test .profile-context-bar{flex:0 0 auto;margin:0 0 8px;padding:2px 4px 8px;min-height:42px}
body.assessment-app-mode .minos-site-header{display:none!important}
@media (max-width:1100px){
  .minos-site-header .header-inner{gap:15px}
  .minos-site-header .nav{gap:11px;font-size:12px}
  .minos-site-header .brand-lockup,.minos-site-header .brand img,body.minos-user-page .minos-site-header .brand-lockup{width:136px!important}
  .minos-site-header .nav-search{padding-left:11px}
}
@media (max-width:900px){
  .minos-site-header .header-inner{height:68px;width:calc(100% - 32px)}
  .minos-site-header .menu-button{display:inline-flex;align-items:center;justify-content:center}
  .minos-site-header .nav{display:none}
  .minos-site-header .nav.open{display:flex;position:absolute;left:0;right:0;top:100%;padding:12px 20px max(22px,env(safe-area-inset-bottom));border-bottom:1px solid #ddd3cd;background:rgba(248,245,241,.99);flex-direction:column;align-items:stretch;gap:0;max-height:calc(100dvh - 68px);overflow:auto;overscroll-behavior:contain;white-space:normal;box-shadow:0 16px 32px rgba(40,27,27,.07)}
  .minos-site-header .nav.open a{display:flex;min-height:44px;width:100%;font-size:15px;letter-spacing:0}
  .minos-site-header .nav.open a::after{display:none}
  .minos-site-header .nav-search{padding:0;margin:0;border-left:0;border-top:1px solid #e2d8d3}
}
@media (max-width:620px){
  .minos-site-header .header-inner{height:64px;width:calc(100% - 32px)}
  .minos-site-header .brand-lockup,.minos-site-header .brand img,body.minos-user-page .minos-site-header .brand-lockup{width:126px!important}
  .minos-site-header .nav.open{max-height:calc(100dvh - 64px)}
  body.minos-user-page .profile-context-bar{margin-bottom:12px}
  body.phase30-taking-test .profile-context-bar{margin:0 0 6px;min-height:38px}
  body.phase30-taking-test .profile-context-bar .status-pill{font-size:10px;padding:5px 8px}
}
@media print{.minos-site-header,.profile-context-bar{display:none!important}}
@media(prefers-reduced-motion:reduce){.minos-site-header .nav a::after{transition:none}}
