/* Part 1: shared compact chrome. Appearance tokens remain authoritative. */
.thp-frontend{--site-header-height:72px;--chrome-offset:calc(var(--site-header-height) + var(--staff-bar-height,0px));scroll-padding-top:calc(var(--chrome-offset) + 12px)}
html{scroll-padding-top:calc(var(--site-header-height,72px) + var(--staff-bar-height,0px) + 12px)}
.thp-frontend :is([id],.thp-skip-link){scroll-margin-top:calc(var(--chrome-offset) + 12px)}
.thp-site [data-header-sticky="0"]{position:relative;top:auto}
.thp-site:has([data-header-sticky="0"]){--chrome-offset:var(--staff-bar-height,0px)}
.thp-site [data-compact-chrome="1"] .frontend-mainbar{height:72px;min-height:72px;padding:8px 20px;gap:12px;flex-wrap:nowrap!important;transition:height 150ms ease,min-height 150ms ease}
.thp-site [data-compact-chrome="1"].header-is-scrolled .frontend-mainbar{height:60px;min-height:60px}
.thp-site [data-compact-chrome="1"] .brand-lockup{flex:0 0 132px;width:132px;max-width:132px;grid-row:auto}
.thp-site [data-compact-chrome="1"] .brand-lockup .logo-image{width:132px;height:44px;max-height:44px;transition:height 150ms ease}
.thp-site [data-compact-chrome="1"].header-is-scrolled .brand-lockup .logo-image{height:36px}
.thp-site [data-compact-chrome="1"] .header-control-stack{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px;flex:0 0 auto}
.thp-site [data-compact-chrome="1"] .header-language-strip{min-height:36px;display:flex;align-items:center}
.thp-site [data-compact-chrome="1"] .frontend-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px}
.thp-site [data-compact-chrome="1"] .frontend-nav{font-size:15px;font-weight:500;flex:1 1 0}
.thp-site [data-compact-chrome="1"] .frontend-nav>.navigation-list{flex-wrap:nowrap!important;justify-content:center;gap:2px}
.thp-site [data-compact-chrome="1"].fit-wrap .frontend-nav>.navigation-list{flex-wrap:wrap!important}
.thp-site [data-compact-chrome="1"].fit-wrap .frontend-mainbar{height:auto;min-height:72px}
.thp-site [data-compact-chrome="1"] .frontend-nav>.navigation-list>.menu-node>.navigation-item>a{white-space:nowrap;padding-inline:6px;font-size:15px;font-weight:500}

.thp-site [data-compact-chrome="1"] :is(.header-icon,.header-avatar){height:40px;min-height:40px;width:40px;min-width:40px;padding:8px;border:0;box-shadow:none}
.thp-site [data-compact-chrome="1"] .header-avatar:is(:focus-visible,[aria-expanded="true"]),.thp-site [data-compact-chrome="1"] details[open]>.header-avatar{outline:2px solid var(--ds-link);outline-offset:2px}
.thp-site [data-compact-chrome="1"] .cart-button strong{font-size:10px;line-height:16px;min-width:16px;height:16px;padding:0 4px;border-radius:20px}
.thp-frontend .language-segments{display:inline-flex;align-items:center;gap:0;padding:2px;border:1px solid currentColor;border-radius:8px;background:transparent;color:var(--ds-on-header);min-height:36px;box-sizing:border-box;flex:none}
.thp-frontend .language-segments .language-slider-label{display:inline-flex;align-items:center;justify-content:center;position:relative;gap:4px;min-width:40px;min-height:30px;padding:3px 6px;border-radius:5px;font-size:12px;line-height:20px;font-weight:600;color:inherit;opacity:1;text-decoration:none;box-sizing:border-box}
.thp-frontend .language-segments .language-slider-label[aria-current="true"]{background:var(--ds-brand);color:var(--ds-on-brand);font-weight:800}
.thp-frontend .language-segments .language-slider-label:hover{text-decoration:underline}
.thp-frontend .language-segments .language-slider-label:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.thp-frontend .language-segments .language-slider-flag{display:block;position:static;width:18px;height:12px;opacity:1;transform:none;border-radius:1px;flex:none}
.thp-frontend .language-segments .language-slider-label:not([aria-current="true"]){border:1px solid transparent}
.thp-frontend .site-footer .language-segments{color:var(--footer-ink)}
.thp-frontend .site-footer .language-segments .language-slider-label[aria-current="true"]{background:var(--ds-brand);color:var(--ds-on-brand);border:1px solid var(--footer-ink)}
.thp-frontend .site-footer.polish-footer{background:var(--footer-surface);color:var(--footer-ink);margin-top:24px}
.thp-frontend .site-footer.polish-footer>.container{padding-block:0}
.thp-frontend .site-footer.polish-footer .footer-invitation{padding:12px 0;gap:16px;align-items:center;min-height:0}
.thp-frontend .site-footer.polish-footer .footer-invitation h2{font-size:1.05rem;margin:0 0 4px}
.thp-frontend .site-footer.polish-footer .footer-invitation p{font-size:.85rem}
.thp-frontend .site-footer.polish-footer .footer-invitation .button{padding:6px 12px;min-height:36px;font-size:.85rem}
.thp-frontend .site-footer.polish-footer .footer-main{padding:12px 0;gap:24px;grid-template-columns:minmax(160px,.8fr) minmax(0,3.2fr)}
.thp-frontend .site-footer.polish-footer .footer-brand-name{font-size:1rem}
.thp-frontend .site-footer.polish-footer .footer-brand p{font-size:.85rem;line-height:1.45;max-width:30ch;margin:6px 0}
.thp-frontend .site-footer.polish-footer .footer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.thp-frontend .site-footer.polish-footer .footer-link-group{border:0;min-width:0}
.thp-frontend .site-footer.polish-footer .footer-link-group h3{font-size:.85rem;margin:0 0 4px;line-height:1.4}
.thp-frontend .site-footer.polish-footer .navigation-item a{font-size:.82rem;min-height:24px;line-height:1.45;padding:2px 0}
.thp-frontend .site-footer.polish-footer .navigation-list{gap:0}
.thp-frontend .site-footer.polish-footer :is(a,button)::after{content:none}
.thp-frontend .site-footer.polish-footer .navigation-item>button{display:none}
.thp-frontend .site-footer.polish-footer .footer-social{gap:8px;margin-top:8px}
.thp-frontend .site-footer.polish-footer .footer-social a{display:inline-flex;align-items:center;min-height:30px;font-size:.82rem;text-decoration:underline}
.thp-frontend .site-footer.polish-footer .footer-social-round a{border:1px solid currentColor;border-radius:24px;padding:5px 10px}
.thp-frontend .site-footer.polish-footer .footer-bottom{padding:6px 0;gap:8px 16px}
.thp-frontend .site-footer.polish-footer .footer-bottom :is(small,a,button){font-size:.78rem}
.thp-frontend .site-footer.polish-footer .footer-legal{gap:8px 14px}
.thp-frontend .site-footer.polish-footer .footer-legal :is(a,button){min-height:30px;padding:3px 0}
.thp-frontend.has-staff-bar{--staff-bar-height:32px}
.staff-admin-bar{height:32px;min-height:32px;font-size:13px}
.staff-admin-bar :is(a,button,summary){min-height:32px;padding:6px;line-height:19px}
.thp-site :is(.shop-buy-panel,.account-section-nav,.academy-sticky-nav,.academy-category-nav,.shop-filter-bar,.academy-enrol-card){top:calc(var(--chrome-offset) + 12px)!important}
.thp-frontend .display-back-top{width:40px;height:40px;min-width:40px;min-height:40px;padding:8px}
@media(max-width:1100px){.thp-frontend .site-footer.polish-footer .footer-main{grid-template-columns:1fr;gap:14px}.thp-frontend .site-footer.polish-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:899px){
 .thp-site [data-compact-chrome="1"] .frontend-mainbar,.thp-site [data-compact-chrome="1"].header-is-scrolled .frontend-mainbar{height:56px;min-height:56px;padding:4px 10px;gap:6px}
 .thp-site [data-compact-chrome="1"] .brand-lockup{flex-basis:96px;width:96px;max-width:96px}.thp-site [data-compact-chrome="1"] .brand-lockup .logo-image{width:96px;height:36px}
 .thp-site [data-compact-chrome="1"] .header-control-stack{gap:4px}.thp-site [data-compact-chrome="1"] .utility-navigation{display:none}
 .thp-site [data-compact-chrome="1"] .header-control-stack{margin-left:auto}

 .thp-site [data-compact-chrome="1"] :is(.header-icon,.header-avatar){min-width:44px;width:44px;height:44px;min-height:44px;padding:7px}
 .thp-site [data-compact-chrome="1"] .language-segments{min-height:44px;padding:0}.thp-site [data-compact-chrome="1"] .language-slider-label{min-height:42px;min-width:36px;padding:3px}
 .thp-site [data-compact-chrome="1"] .language-slider-flag{display:none}
 .thp-site [data-compact-chrome="1"] .frontend-nav{inset:100% 0 auto}.thp-site [data-compact-chrome="1"] .frontend-nav>.navigation-list{display:block!important}
 .thp-frontend .site-footer.polish-footer .footer-invitation{align-items:flex-start;flex-direction:column}
}
@media(max-width:370px){.thp-site [data-compact-chrome="1"] .brand-lockup{flex-basis:36px;width:36px;max-width:36px}.thp-site [data-compact-chrome="1"] .brand-lockup .logo-image{width:36px}.thp-site [data-compact-chrome="1"] .frontend-actions{gap:0}.thp-site [data-compact-chrome="1"] .frontend-mainbar{gap:4px;padding-inline:6px}}
@media(max-width:600px){.thp-frontend .site-footer.polish-footer .footer-grid{grid-template-columns:1fr;gap:16px}.thp-frontend .site-footer.polish-footer .navigation-item a,.thp-frontend .site-footer.polish-footer .footer-social a,.thp-frontend .site-footer.polish-footer .footer-legal :is(a,button){min-height:44px;padding-block:10px}}
@media(prefers-reduced-motion:reduce){.thp-site [data-compact-chrome="1"] :is(.frontend-mainbar,.logo-image){transition:none}}
html.thp-high-contrast .language-segments,html.thp-high-contrast .language-segments .language-slider-label{box-shadow:none;border:2px solid currentColor}
html.thp-high-contrast .site-footer.polish-footer{--footer-surface:Canvas!important;--footer-ink:CanvasText!important}

.thp-frontend .site-footer.polish-footer .navigation-icon{display:none}

.thp-frontend .site-footer.polish-footer :is(h2,h3,p,a,small,strong,.link-button){color:var(--footer-ink)}
.thp-frontend .site-footer.polish-footer .footer-invitation .button{background:var(--footer-ink);color:var(--footer-surface)}
.thp-frontend .site-footer.polish-footer .language-segments .language-slider-label[aria-current="true"]{color:var(--ds-on-brand)}
.thp-frontend .site-footer.polish-footer .partners-grid article :is(strong,a){color:var(--ds-ink)}

html.thp-high-contrast .language-segments .language-slider-label[aria-current="true"]{background:CanvasText!important;color:Canvas!important}
html.thp-high-contrast .language-segments .language-slider-label[aria-current="true"]>span{color:Canvas!important}
html.thp-high-contrast .staff-admin-bar{background:Canvas!important;color:CanvasText!important}

/* The footer reuses the Appearance logo and the existing brand/home link. */
.thp-frontend .site-footer.polish-footer .footer-brand-name{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.6rem;max-width:100%}
.thp-frontend .site-footer.polish-footer .footer-site-logo-wrap{display:block;max-width:100%;box-sizing:border-box;padding:.375rem .5rem;border-radius:.4rem;background:var(--species-status-ex-ink)}
.thp-frontend .site-footer.polish-footer .footer-site-logo{display:block;width:auto;height:auto;max-width:min(180px,100%);max-height:72px;object-fit:contain;object-position:left center}
