/* One layout contract for all header collections; IDs isolate legacy overrides. */
#tutorshub-site-header {overflow:visible!important;transform:none!important}
#tutorshub-site-header .th84-nav {
 display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;
 width:min(1360px,calc(100% - 64px))!important;max-width:none!important;min-width:0!important;
 height:88px!important;min-height:88px!important;margin:0 auto!important;padding:0!important;
 gap:28px!important;direction:ltr!important;position:relative!important;
}
#tutorshub-site-header .th84-brand {
 display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;
 width:auto!important;min-width:0!important;max-width:200px!important;height:56px!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#tutorshub-site-header .th84-brand:before,#tutorshub-site-header .th84-brand:after {display:none!important}
#tutorshub-site-header .th84-logo-img,#tutorshub-site-header .th84-mobile-logo-img {
 display:block!important;width:clamp(130px,var(--th-hf-logo-width,170px),200px)!important;max-width:100%!important;
 height:auto!important;min-height:0!important;max-height:56px!important;object-fit:contain!important;object-position:left center!important;
 margin:0!important;padding:0!important;transform:none!important;
}
#tutorshub-site-header .th84-mobile-logo-img {display:none!important}
body.th-design-active #tutorshub-site-header .th84-brand img {filter:none!important}
body.th-design-midnight #tutorshub-site-header .th84-brand img {filter:brightness(0) invert(1)!important}
#tutorshub-site-header .th84-links {
 display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;
 width:max-content!important;min-width:0!important;max-width:none!important;gap:22px!important;margin:0!important;padding:0!important;
}
#tutorshub-site-header .th84-links>a {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
 width:auto!important;min-width:0!important;max-width:none!important;min-height:44px!important;height:auto!important;
 margin:0!important;padding:10px 0!important;white-space:nowrap!important;line-height:1.4!important;
 font-size:14px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;
 border:0!important;transform:none!important;
}
#tutorshub-site-header .th84-links>a:after {bottom:4px!important;left:0!important;right:0!important;height:2px!important}
#tutorshub-site-header .th84-actions {
 display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;
 width:max-content!important;min-width:0!important;gap:8px!important;margin:0!important;padding:0!important;
}
#tutorshub-site-header .th84-actions>a {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
 width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 18px!important;margin:0!important;
 line-height:1.4!important;white-space:nowrap!important;font-size:13px!important;font-weight:650!important;letter-spacing:0!important;
 border-radius:10px!important;transform:none!important;
}
#tutorshub-site-header .th-language-switch {
 display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
 gap:2px!important;width:auto!important;height:40px!important;min-height:40px!important;padding:3px!important;margin:0 4px 0 0!important;
 border-radius:9px!important;transform:none!important;
}
#tutorshub-site-header .th-lang-btn {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
 width:auto!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0 6px!important;margin:0!important;
 font-size:11px!important;line-height:1!important;border:0!important;border-radius:6px!important;box-shadow:none!important;
}
#tutorshub-site-header .mobile-toggle {
 display:none!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;
 width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
 margin:0!important;padding:0!important;border-radius:10px!important;transform:none!important;
}
#tutorshub-site-header .th-menu-icon {display:block!important;position:relative!important;width:20px!important;height:16px!important}
#tutorshub-site-header .th-menu-icon i {display:block!important;position:absolute!important;left:0!important;width:20px!important;height:2px!important;margin:0!important;transform:none!important;border-radius:2px!important;background:currentColor!important;opacity:1!important}
#tutorshub-site-header .th-menu-icon i:nth-child(1) {top:0!important}
#tutorshub-site-header .th-menu-icon i:nth-child(2) {top:7px!important}
#tutorshub-site-header .th-menu-icon i:nth-child(3) {top:14px!important}
#tutorshub-site-header.menu-open .th-menu-icon i:nth-child(1) {top:7px!important;transform:rotate(45deg)!important}
#tutorshub-site-header.menu-open .th-menu-icon i:nth-child(2) {opacity:0!important}
#tutorshub-site-header.menu-open .th-menu-icon i:nth-child(3) {top:7px!important;transform:rotate(-45deg)!important}
#tutorshub-site-header :is(a,button):focus-visible {outline:2px solid currentColor!important;outline-offset:4px!important}
#tutorshub-site-header .th84-topbar .th-hf-topbar-grid {width:min(1360px,calc(100% - 64px))!important;margin:auto!important;gap:16px!important;align-items:center!important}
#tutorshub-site-header .th84-topbar .th-hf-topbar-grid>div {min-width:0!important;overflow-wrap:anywhere!important}
#tutorshub-site-header .mobile-menu {
 display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;bottom:auto!important;
 width:100%!important;height:auto!important;max-height:calc(100dvh - var(--th-header-bottom,88px) - 16px)!important;
 margin:0!important;padding:0!important;overflow:auto!important;overscroll-behavior:contain!important;
 border-radius:0 0 18px 18px!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;
 box-shadow:0 18px 30px rgba(10,28,50,.12)!important;
}
#tutorshub-site-header .mobile-menu>.container {
 display:grid!important;grid-template-columns:1fr!important;width:min(640px,calc(100% - 48px))!important;max-width:none!important;
 margin:0 auto!important;padding:12px 0 max(24px,env(safe-area-inset-bottom))!important;gap:0!important;
}
#tutorshub-site-header .mobile-menu>.container>a {
 display:flex!important;align-items:center!important;width:100%!important;min-height:48px!important;
 padding:12px 4px!important;margin:0!important;line-height:1.5!important;font-size:15px!important;font-weight:600!important;
 border:0!important;border-bottom:1px solid var(--ds-line,rgba(150,165,185,.22))!important;border-radius:0!important;
 background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important;transform:none!important;
}
#tutorshub-site-header .th-mobile-language {display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important;padding:4px 0 12px!important;gap:12px!important}
#tutorshub-site-header .th-mobile-language>strong {font-size:12px!important}
#tutorshub-site-header .th-mobile-account {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:18px 0 0!important;padding:0!important}
#tutorshub-site-header .th-mobile-account>a {display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;width:auto!important;min-width:0!important;padding:10px!important;margin:0!important;border-radius:10px!important;line-height:1.4!important;overflow-wrap:anywhere!important;font-size:14px!important}
body.th-design-active #tutorshub-site-header .th-mobile-account>a:last-child {background:var(--ds-accent)!important;color:var(--ds-on-accent)!important;border-color:var(--ds-accent)!important;box-shadow:none!important}

/* The compact state is also used for unusually long saved navigation labels. */
#tutorshub-site-header.th-header-compact .th84-links,#tutorshub-site-header.th-header-compact .th84-actions {display:none!important}
#tutorshub-site-header.th-header-compact .mobile-toggle {display:flex!important}
#tutorshub-site-header.th-header-compact .mobile-menu.is-open {display:block!important}
@media(max-width:1240px) {
 #tutorshub-site-header .th84-nav {height:76px!important;min-height:76px!important;gap:16px!important}
 #tutorshub-site-header .th84-links,#tutorshub-site-header .th84-actions {display:none!important}
 #tutorshub-site-header .mobile-toggle {display:flex!important}
 #tutorshub-site-header .th84-logo-img {display:none!important}
 #tutorshub-site-header .th84-mobile-logo-img {display:block!important;width:clamp(120px,var(--th-hf-mobile-logo-width,150px),180px)!important;max-height:48px!important}
 #tutorshub-site-header .mobile-menu.is-open {display:block!important}
}
@media(max-width:700px) {
 #tutorshub-site-header .th84-nav {width:calc(100% - 40px)!important;height:72px!important;min-height:72px!important}
 #tutorshub-site-header .th84-topbar .th-hf-topbar-grid {width:calc(100% - 40px)!important}
}
/* Measure intrinsic desktop controls without putting them in the visible row. */
@media(min-width:1241px) {
 #tutorshub-site-header.th-header-measuring .th84-links,#tutorshub-site-header.th-header-measuring .th84-actions {
  display:flex!important;position:fixed!important;left:-20000px!important;top:0!important;visibility:hidden!important;
 }
}
