/* Final header geometry. Colours follow Appearance and the high-contrast overrides. */
.thp-frontend .compact-header{background:var(--header-bg);border-bottom:1px solid var(--border);box-shadow:0 3px 16px color-mix(in srgb,var(--text) 5%,transparent);position:sticky;top:var(--staff-bar-height,0px);z-index:140}
.thp-frontend .compact-header .frontend-mainbar{display:flex;flex-wrap:nowrap;align-items:center;gap:20px;max-width:1840px;padding:10px 24px;margin:auto}
.thp-frontend .compact-header .brand-lockup{flex:0 0 auto;min-width:0;max-width:210px}
.thp-frontend .compact-header .logo-image{width:200px;max-width:100%;height:auto;max-height:86px;object-fit:contain}
.thp-frontend .compact-header .brand-lockup.has-brand-image>span:not(.header-registry-badge){display:none}
.thp-frontend .compact-header .frontend-nav{flex:1;min-width:0;font-size:1.0625rem;font-weight:600;justify-content:center;white-space:nowrap}
.thp-frontend .compact-header .frontend-nav>.navigation-list{display:flex;flex-wrap:nowrap;gap:10px;align-items:center}
.thp-frontend .compact-header .frontend-nav .navigation-item{display:flex;align-items:center;gap:0}
.thp-frontend .compact-header .frontend-nav .navigation-item>a{padding:12px 4px;line-height:1.4;color:var(--focus)}
.thp-frontend .compact-header .navigation-toggle{padding:0;width:28px;min-width:28px;height:44px;background:transparent;color:inherit;border:0}
.thp-frontend .compact-header .navigation-item>a[aria-current=page],.thp-frontend .compact-header .is-current>.navigation-item>a{text-decoration:none}
.thp-frontend .compact-header .header-control-stack{flex:0 0 auto;width:auto;gap:0;align-items:flex-end}
.thp-frontend .compact-header .header-language-strip{min-height:30px;padding:0;justify-content:flex-end}
.thp-frontend .compact-header .frontend-actions{display:flex!important;flex-wrap:nowrap;width:auto;gap:6px;align-items:center}
.thp-frontend .compact-header :is(.header-icon,.header-avatar){width:40px;height:40px;min-width:40px;min-height:40px;padding:8px;box-sizing:border-box;border-radius:50%;background:transparent;color:var(--text);border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center}
.thp-frontend .compact-header .header-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.thp-frontend .compact-header :is(.header-icon,.header-avatar):is(:hover,:focus-visible){background:var(--site-bg);border-color:var(--border)}

.thp-frontend .compact-header .mobile-registry-cta{display:none!important}
.thp-frontend .compact-header .utility-navigation:empty{display:none}
.thp-frontend .compact-header .utility-navigation .navigation-list{flex-wrap:nowrap}
.thp-frontend .header-account-menu>summary{list-style:none;cursor:pointer}.thp-frontend .header-account-menu>summary::-webkit-details-marker{display:none}
.staff-admin-bar{position:fixed;inset:0 0 auto;z-index:180;min-height:38px;display:flex;align-items:center;gap:16px;padding:0 18px;box-sizing:border-box;background:var(--heading);color:var(--content-bg);font-size:12px;border-bottom:1px solid var(--border)}
.staff-admin-bar :is(a,button,summary){color:inherit;background:transparent;border:0;text-decoration:none;padding:10px 6px;min-height:38px;box-sizing:border-box;line-height:18px;cursor:pointer;font:inherit}
.staff-admin-bar :is(a,button,summary):is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
.staff-admin-bar :focus-visible,.staff-bar-restore :focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.staff-admin-bar details>summary{list-style:none}.staff-admin-bar summary::-webkit-details-marker{display:none}
.staff-bar-brand{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700!important}
.staff-bar-menu{flex:1}.staff-bar-menu>summary{display:none}.staff-bar-links{display:flex;align-items:center;gap:8px}
.staff-bar-account{margin-left:auto}.staff-bar-account>summary{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-bar-new,.staff-bar-account{position:relative}.staff-bar-new>div,.staff-bar-account>div{position:absolute;top:100%;right:0;min-width:200px;background:var(--heading);color:var(--content-bg);box-shadow:0 8px 20px color-mix(in srgb,var(--text) 20%,transparent);border:1px solid var(--border);padding:8px}
.staff-bar-new>div a,.staff-bar-account>div a{display:block}.staff-bar-account form{margin:0}
.staff-bar-restore{position:fixed;bottom:16px;right:16px;z-index:180;font-size:12px}.staff-bar-restore button{padding:8px 12px}
.thp-frontend.has-staff-bar{--staff-bar-height:38px;padding-top:var(--staff-bar-height)}
@media(min-width:1401px){.thp-frontend .compact-header .frontend-nav{display:flex!important}.thp-frontend .compact-header .frontend-nav>.navigation-list{gap:clamp(6px,1vw,18px)}}
@media(max-width:1400px){
 .thp-frontend .compact-header .frontend-mainbar{gap:16px}
 .thp-frontend.has-menu-js .compact-header .frontend-nav{display:none;position:absolute;inset:100% 0 auto;width:100%;box-sizing:border-box;max-height:calc(100dvh - var(--staff-bar-height,0px) - var(--site-header-height,100px));overflow:auto;background:var(--header-bg);padding:18px 24px;border-bottom:1px solid var(--border)}
 .thp-frontend.has-menu-js.menu-is-open .compact-header .frontend-nav{display:block;overflow:auto}
 .thp-frontend .compact-header .frontend-nav>.navigation-list{display:block;white-space:normal}
 .thp-frontend .compact-header .frontend-nav .navigation-item{justify-content:space-between}.thp-frontend .compact-header .frontend-nav .navigation-item>a{flex:1;padding:12px}
 .thp-frontend .compact-header .navigation-toggle{width:44px;min-width:44px}
 .thp-frontend .compact-header .frontend-nav .submenu{position:static;width:auto;max-width:none;max-height:none;box-shadow:none;margin:0 0 8px 16px}
 .thp-frontend.has-menu-js.menu-is-open{overflow:hidden}
}
@media(max-width:1000px){.staff-bar-menu>summary{display:block}.staff-bar-links{position:absolute;inset:100% 0 auto;display:flex;flex-wrap:wrap;padding:12px;background:var(--heading);border-bottom:1px solid var(--border)}.staff-bar-brand{max-width:150px}.staff-admin-bar{gap:6px;padding-inline:8px}}
@media(max-width:600px){
 .thp-frontend .compact-header .frontend-mainbar{padding:8px 12px;gap:8px}.thp-frontend .compact-header .brand-lockup{max-width:110px}.thp-frontend .compact-header .logo-image{width:110px;max-height:64px}
 .thp-frontend .compact-header .frontend-actions{gap:0}.thp-frontend .compact-header :is(.header-icon,.header-avatar){width:34px;height:44px;min-width:34px;min-height:44px;padding:7px}
.thp-frontend .compact-header .header-language-strip{height:28px;min-height:28px}.thp-frontend .header-registry-badge{display:none}
 .thp-frontend .compact-header .utility-navigation{display:none}.staff-bar-brand{max-width:115px}.staff-bar-account>summary{max-width:115px}
}
html.thp-high-contrast .staff-admin-bar{background:var(--text);color:var(--content-bg);border:2px solid var(--accent)}

/* Keep the controls inside the narrowest supported header. */
@media(max-width:360px){.thp-frontend .compact-header .frontend-mainbar{padding-inline:8px;gap:4px}.thp-frontend .compact-header .brand-lockup{max-width:74px}.thp-frontend .compact-header .logo-image{width:74px}}
