/* Header and footer own their complete colour contract, including Original mode.
   Earlier collections mixed light backgrounds with dark-mode text and logos. */
#tutorshub-site-header {
 --ch-bg:#fff;--ch-text:#182e4a;--ch-muted:#4b6077;--ch-line:#dbe3ee;
 --ch-soft:#edf2f8;--ch-accent:#235cce;--ch-on-accent:#fff;
 color:var(--ch-text)!important;background:var(--ch-bg)!important;
 border:0!important;border-bottom:1px solid var(--ch-line)!important;
 box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.th-luxury-dark:not(.th-design-active) #tutorshub-site-header,
body:not(.th-design-active) #tutorshub-site-header:is(.th-pair-neo-grid,.th-pair-studio-blue),
body.th-design-midnight #tutorshub-site-header {
 --ch-bg:#101e2e;--ch-text:#f3f6fa;--ch-muted:#c1cddd;--ch-line:#304153;
 --ch-soft:#1c2e41;--ch-accent:#f0c96b;--ch-on-accent:#122135;
}
body.th-design-ivory #tutorshub-site-header {
 --ch-bg:#fffdf8;--ch-text:#223e35;--ch-muted:#52665c;--ch-line:#dcded0;
 --ch-soft:#eeeee3;--ch-accent:#2b6151;--ch-on-accent:#fff;
}
#tutorshub-site-header .th84-nav {background:transparent!important;color:var(--ch-text)!important;border:0!important;box-shadow:none!important}
#tutorshub-site-header .th84-links>a {
 color:var(--ch-muted)!important;background:transparent!important;text-shadow:none!important;box-shadow:none!important;border-radius:0!important;
}
#tutorshub-site-header .th84-links>a:is(:hover,:focus-visible,.is-active) {color:var(--ch-text)!important}
#tutorshub-site-header .th84-links>a:before {display:none!important}
#tutorshub-site-header .th84-links>a:after {
 content:""!important;display:block!important;position:absolute!important;
 background:var(--ch-accent)!important;border:0!important;box-shadow:none!important;
 opacity:0!important;transform:scaleX(0)!important;transition:transform .16s ease,opacity .16s ease!important;
}
#tutorshub-site-header .th84-links>a:is(:hover,:focus-visible,.is-active):after {opacity:1!important;transform:scaleX(1)!important}
#tutorshub-site-header :is(.th84-actions>a,.th-mobile-account>a) {
 color:var(--ch-text)!important;background:var(--ch-soft)!important;border:1px solid var(--ch-line)!important;box-shadow:none!important;text-shadow:none!important;
}
#tutorshub-site-header :is(.th84-actions>a,.th-mobile-account>a):last-child {
 background:var(--ch-accent)!important;color:var(--ch-on-accent)!important;border-color:var(--ch-accent)!important;box-shadow:none!important;
}
#tutorshub-site-header :is(.th-language-switch,.mobile-toggle) {color:var(--ch-text)!important;background:var(--ch-soft)!important;border:1px solid var(--ch-line)!important;box-shadow:none!important}
#tutorshub-site-header .th-lang-btn {background:transparent!important;color:var(--ch-muted)!important}
#tutorshub-site-header .th-lang-btn.is-active {background:var(--ch-accent)!important;color:var(--ch-on-accent)!important}
#tutorshub-site-header .mobile-menu {background:var(--ch-bg)!important;color:var(--ch-text)!important;border:1px solid var(--ch-line)!important}
#tutorshub-site-header .mobile-menu :is(.container,.th-mobile-language) {background:transparent!important;border-color:var(--ch-line)!important}
#tutorshub-site-header .mobile-menu>.container>a,#tutorshub-site-header .th-mobile-language>strong {color:var(--ch-text)!important;border-color:var(--ch-line)!important}
#tutorshub-site-header .mobile-menu>.container>a:is(:hover,:focus-visible) {background:var(--ch-soft)!important}
#tutorshub-site-header .th-managed-copy,#tutorshub-site-header .th-managed-copy>span {color:inherit!important;text-shadow:none!important}
#tutorshub-site-header .th84-brand img {filter:none!important}
body.th-design-midnight #tutorshub-site-header.th-default-logo .th84-brand img,
body.th-luxury-dark:not(.th-design-active) #tutorshub-site-header.th-default-logo .th84-brand img,
body:not(.th-design-active) #tutorshub-site-header.th-default-logo:is(.th-pair-neo-grid,.th-pair-studio-blue) .th84-brand img {filter:brightness(0) invert(1)!important}
/* A white custom wordmark remains readable when switching to a light collection. */
body.th-design-sapphire #tutorshub-site-header.th-custom-logo .th84-brand,
body.th-design-ivory #tutorshub-site-header.th-custom-logo .th84-brand,
body:not(.th-luxury-dark):not(.th-design-active) #tutorshub-site-header.th-custom-logo:not(.th-pair-neo-grid):not(.th-pair-studio-blue) .th84-brand {
 background:#101e2e!important;border-radius:8px!important;padding:6px 10px!important;
}

/* One coherent footer surface keeps the supplied white/gold logo legible. */
#tutorshub-site-footer {
 --ft-bg:#101e2e;--ft-text:#f3f6fa;--ft-muted:#becbdc;--ft-line:#304153;--ft-accent:#f0c96b;--ft-on-accent:#122135;
 position:relative!important;display:block!important;width:100%!important;max-width:none!important;
 padding:0!important;margin:0!important;border:0!important;border-top:1px solid var(--ft-line)!important;border-radius:0!important;
 background:var(--ft-bg)!important;color:var(--ft-text)!important;box-shadow:none!important;overflow:hidden!important;
}
body.th-design-ivory #tutorshub-site-footer {--ft-bg:#18392e;--ft-text:#fffdf8;--ft-muted:#c1d3c8;--ft-line:#3b5a4d;--ft-accent:#e7cf99;--ft-on-accent:#18392e}
#tutorshub-site-footer:before,#tutorshub-site-footer:after {display:none!important;content:none!important}
#tutorshub-site-footer .th-next-footer-stage {
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:28px 48px!important;
 width:min(1360px,calc(100% - 64px))!important;max-width:none!important;margin:0 auto!important;padding:64px 0 36px!important;
 background:transparent!important;color:var(--ft-text)!important;border:0!important;border-bottom:1px solid var(--ft-line)!important;border-radius:0!important;box-shadow:none!important;
}
#tutorshub-site-footer .th-next-footer-stage:before,#tutorshub-site-footer .th-next-footer-stage:after {display:none!important}
#tutorshub-site-footer .th-next-footer-copy {display:grid!important;gap:16px!important;max-width:760px!important;min-width:0!important}
#tutorshub-site-footer .th-next-footer-copy small {color:var(--ft-accent)!important;font-size:11px!important;font-weight:650!important;letter-spacing:.14em!important;line-height:1.6!important;text-transform:uppercase!important}
#tutorshub-site-footer .th-next-footer-copy strong {display:block!important;color:var(--ft-text)!important;font-size:clamp(30px,3.2vw,48px)!important;font-weight:650!important;line-height:1.12!important;letter-spacing:-.035em!important;max-width:760px!important;overflow-wrap:anywhere!important}
#tutorshub-site-footer .th-next-footer-stage>a {
 display:inline-flex!important;align-items:center!important;justify-content:space-between!important;justify-self:end!important;gap:28px!important;
 width:auto!important;min-width:0!important;max-width:100%!important;min-height:54px!important;height:auto!important;padding:14px 20px!important;
 color:var(--ft-on-accent)!important;background:var(--ft-accent)!important;border:1px solid var(--ft-accent)!important;border-radius:10px!important;
 font-size:14px!important;font-weight:650!important;line-height:1.5!important;white-space:normal!important;box-shadow:none!important;transform:none!important;
}
#tutorshub-site-footer .th-next-footer-stage>a>.th-managed-copy {display:inline!important;width:auto!important;min-width:0!important;height:auto!important;padding:0!important;border:0!important}
#tutorshub-site-footer .th-next-footer-stage>a>span[aria-hidden] {display:inline!important;width:auto!important;height:auto!important;flex:0 0 auto!important;border:0!important;border-radius:0!important;font-size:22px!important}
#tutorshub-site-footer .th-next-footer-proof {grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;gap:12px 24px!important;margin:4px 0 0!important;padding:0!important;border:0!important}
#tutorshub-site-footer .th-next-footer-proof span {color:var(--ft-muted)!important;background:transparent!important;font-size:12px!important;font-weight:500!important;padding:0!important;border:0!important;line-height:1.6!important}
#tutorshub-site-footer>.container {width:min(1360px,calc(100% - 64px))!important;max-width:none!important;padding:44px 0 24px!important;margin:0 auto!important;background:transparent!important}
#tutorshub-site-footer .footergrid {display:grid!important;grid-template-columns:minmax(0,1.7fr) repeat(3,minmax(0,1fr))!important;gap:48px!important;margin:0!important;padding:0!important;text-align:left!important}
#tutorshub-site-footer .footergrid>div {grid-column:auto!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#tutorshub-site-footer .footer-logo-link {display:inline-flex!important;align-items:center!important;width:auto!important;height:56px!important;max-width:100%!important;margin:0 0 18px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#tutorshub-site-footer .footer-logo {display:block!important;width:clamp(160px,var(--th-hf-footer-logo-width,200px),220px)!important;max-width:100%!important;height:auto!important;max-height:56px!important;margin:0!important;object-fit:contain!important;object-position:left center!important;filter:none!important}
#tutorshub-site-footer.th-default-footer-logo .footer-logo {filter:brightness(0) invert(1)!important}
#tutorshub-site-footer h4 {color:var(--ft-text)!important;font-size:14px!important;font-weight:650!important;letter-spacing:0!important;line-height:1.5!important;margin:16px 0 20px!important;text-transform:none!important}
#tutorshub-site-footer p,#tutorshub-site-footer .footergrid a {color:var(--ft-muted)!important;font-size:14px!important;line-height:1.8!important;text-shadow:none!important}
#tutorshub-site-footer p {margin:0 0 10px!important;overflow-wrap:anywhere!important}
#tutorshub-site-footer .footer-brand>p {max-width:380px!important;margin-bottom:20px!important}
#tutorshub-site-footer .footergrid a:is(:hover,:focus-visible) {color:var(--ft-text)!important;text-decoration:underline!important;text-underline-offset:5px!important}
#tutorshub-site-footer .footer-pill {display:inline-flex!important;max-width:100%!important;background:transparent!important;color:var(--ft-accent)!important;border:1px solid var(--ft-line)!important;border-radius:6px!important;padding:8px 12px!important;margin:0!important;font-size:12px!important;line-height:1.5!important}
#tutorshub-site-footer .footer-socials {display:flex!important;gap:8px!important;margin:18px 0 0!important}
#tutorshub-site-footer .footer-socials:empty {display:none!important}
#tutorshub-site-footer .footer-socials>a {display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;border:1px solid var(--ft-line)!important;border-radius:8px!important;background:transparent!important;color:var(--ft-text)!important;box-shadow:none!important}
#tutorshub-site-footer .footer-bottom {display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;gap:14px 32px!important;margin:36px 0 0!important;padding:24px 0 0!important;border-top:1px solid var(--ft-line)!important;background:transparent!important}
#tutorshub-site-footer :is(.copy,.footer-note) {color:var(--ft-muted)!important;font-size:12px!important;line-height:1.6!important;max-width:100%!important;overflow-wrap:anywhere!important}
#tutorshub-site-footer .th-footer-no-divider {border:0!important}
#tutorshub-site-footer .th-footer-brand-only {grid-template-columns:1fr!important}
#tutorshub-site-footer .th-managed-copy,#tutorshub-site-footer .th-managed-copy>span {color:inherit!important;text-shadow:none!important}
#tutorshub-site-footer a:focus-visible {outline:2px solid var(--ft-accent)!important;outline-offset:5px!important}
@media(max-width:1000px) {
 #tutorshub-site-footer .footergrid {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:32px!important}
 #tutorshub-site-footer .footergrid>.footer-brand {grid-column:1/-1!important}
 #tutorshub-site-footer .th-next-footer-stage {grid-template-columns:1fr!important;gap:24px!important}
 #tutorshub-site-footer .th-next-footer-stage>a {justify-self:start!important}
}
@media(max-width:700px) {
 #tutorshub-site-footer .th-next-footer-stage,#tutorshub-site-footer>.container {width:calc(100% - 40px)!important}
 #tutorshub-site-footer .th-next-footer-stage {padding:40px 0 28px!important}
 #tutorshub-site-footer>.container {padding:28px 0 24px!important}
 #tutorshub-site-footer .footergrid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
 #tutorshub-site-footer .th-next-footer-proof {gap:8px 16px!important}
 #tutorshub-site-footer .footer-bottom {display:grid!important;gap:12px!important;margin-top:28px!important;padding-top:20px!important}
 #tutorshub-site-footer h4 {margin:0 0 14px!important}
}
@media(prefers-reduced-motion:reduce) {#tutorshub-site-header .th84-links>a:after {transition:none!important}}

/* Keep custom artwork unchanged, including gold details on the dark design. */
body #tutorshub-site-header.th-custom-logo .th84-brand img {filter:none!important}
#tutorshub-site-footer .th-next-footer-proof>span {display:inline-flex!important;flex:0 1 auto!important;width:auto!important;gap:5px!important;min-height:0!important;margin:0!important}
#tutorshub-site-footer .th-footer-utility:empty {display:none!important}
#tutorshub-site-footer .th-currency-picker {position:static!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px 16px!important;max-width:100%!important;padding:20px 0 0!important;margin:24px 0 0!important;background:transparent!important;color:var(--ft-muted)!important;border:0!important;border-top:1px solid var(--ft-line)!important;border-radius:0!important;box-shadow:none!important}
#tutorshub-site-footer .th-currency-picker label {font-size:12px!important;font-weight:600!important;color:var(--ft-text)!important;margin:0!important}
#tutorshub-site-footer .th-currency-picker select {width:220px!important;max-width:100%!important;min-width:0!important;min-height:42px!important;padding:8px 12px!important;background:var(--ft-bg)!important;color:var(--ft-text)!important;border:1px solid var(--ft-line)!important;border-radius:8px!important;font-size:12px!important}
#tutorshub-site-footer .th-currency-picker small {color:var(--ft-muted)!important;font-size:11px!important;line-height:1.6!important;margin:0!important}
