/* Main-site header only. Registry and footer retain their existing rules. */
.thp-frontend [data-adaptive-header]{background:var(--ds-header);color:var(--ds-on-header)}
.thp-frontend [data-adaptive-header] .frontend-mainbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;max-width:1840px;padding:10px 20px;box-sizing:border-box;position:static}
.thp-frontend [data-adaptive-header] .brand-lockup{width:clamp(104px,14vw,200px);flex:0 0 clamp(104px,14vw,200px);max-width:none;min-width:0;overflow-wrap:anywhere}
.thp-frontend [data-adaptive-header] .logo-image{display:block;width:100%;height:76px;max-height:none;object-fit:contain}
.thp-frontend [data-adaptive-header] .header-control-stack{flex:0 0 auto;max-width:100%;margin:0;display:flex;flex-direction:column;align-items:flex-end}
.thp-frontend [data-adaptive-header] .header-language-strip{height:auto;min-height:44px}
.thp-frontend [data-adaptive-header] .frontend-actions{display:flex!important;flex-wrap:wrap!important;gap:4px;width:auto;max-width:100%;justify-content:flex-end}
.thp-frontend [data-adaptive-header] :is(.header-icon,.header-avatar){min-width:44px;min-height:44px;width:44px;height:44px;color:var(--ds-on-header)}


.thp-frontend [data-adaptive-header] :is(a,button,summary):focus-visible{outline:2px solid currentColor;outline-offset:2px}
.thp-frontend [data-adaptive-header] :is(.header-icon,.header-avatar):is(:hover,:focus-visible){background:var(--ds-header);color:var(--ds-on-header);border-color:currentColor}
.thp-frontend [data-adaptive-header] .frontend-nav{display:block!important;flex:1 1 420px;min-width:0;width:auto;position:static;max-height:none;overflow:visible;padding:0;background:transparent;font-size:16px;white-space:normal}
.thp-frontend [data-adaptive-header] .frontend-nav>.navigation-list{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start;align-items:center;margin:0;padding:0}
.thp-frontend [data-adaptive-header] .navigation-item{display:flex;align-items:center;justify-content:flex-start;min-width:0;gap:0}
.thp-frontend [data-adaptive-header] .navigation-item>a,.thp-frontend [data-adaptive-header] .navigation-item>span{display:flex;align-items:center;flex:0 1 auto;min-height:44px;box-sizing:border-box;padding:8px 7px;color:var(--ds-on-header);font-size:inherit;line-height:1.4;border-bottom:3px solid transparent;white-space:nowrap;overflow-wrap:anywhere}
.thp-frontend [data-adaptive-header] .navigation-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px!important;min-width:28px!important;min-height:44px;padding:0!important;border:0;background:transparent;color:var(--ds-on-header)!important;margin:0}
.thp-frontend [data-adaptive-header] .navigation-toggle svg{display:none}
.thp-frontend [data-adaptive-header] .navigation-toggle{font-size:0}
.thp-frontend [data-adaptive-header] .navigation-toggle.more-trigger{width:auto!important;min-width:78px!important;flex:0 0 auto;gap:10px;font-size:15px;font-weight:600;padding-inline:8px!important}
.thp-frontend [data-adaptive-header] .menu-more.is-active-branch>.navigation-item>button{border-bottom:3px solid currentColor!important}
.thp-frontend [data-adaptive-header] .navigation-toggle::after{content:'';width:7px;height:7px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform 150ms ease}
.thp-frontend [data-adaptive-header] [data-navigation-open]>.navigation-item>.navigation-toggle::after{transform:rotate(225deg)}
.thp-frontend [data-adaptive-header] .navigation-item>a:is(:hover,:focus-visible),.thp-frontend [data-adaptive-header] [data-navigation-open]>.navigation-item{background:var(--ds-header);color:var(--ds-on-header);text-decoration:underline;text-underline-offset:5px}
.thp-frontend [data-adaptive-header] :is(.is-current,.is-active-branch)>.navigation-item>a,.thp-frontend [data-adaptive-header] a[aria-current=page]{border-bottom-color:currentColor}
.thp-frontend [data-adaptive-header].fit-ready .frontend-mainbar{flex-wrap:wrap}
.thp-frontend [data-adaptive-header].fit-ready .frontend-nav{flex:1 1 0;display:block!important}
.thp-frontend [data-adaptive-header].fit-ready .frontend-nav>.navigation-list{flex-wrap:wrap}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav{position:static!important;width:auto;padding:0;overflow:visible;max-height:none}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav>.navigation-list>.menu-node{width:auto;flex:0 0 auto;min-width:0;max-width:100%}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav>.navigation-list>.menu-node>.navigation-item{width:auto}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav>.navigation-list>.menu-node>.navigation-item>a{white-space:normal;min-width:0}
/* Resizing is safe even before ResizeObserver runs. Intrinsic measurement is synchronous. */
.thp-frontend [data-adaptive-header].fit-measuring .frontend-mainbar,.thp-frontend [data-adaptive-header].fit-measuring .frontend-nav>.navigation-list{flex-wrap:nowrap!important}
.thp-frontend [data-adaptive-header].fit-measuring .frontend-nav>.navigation-list>.menu-node{max-width:none!important}
.thp-frontend [data-adaptive-header].fit-measuring .frontend-nav>.navigation-list>.menu-node>.navigation-item>a{white-space:nowrap!important}
.thp-frontend [data-adaptive-header].fit-dense .frontend-nav{font-size:15px}
.thp-frontend [data-adaptive-header].fit-dense .frontend-nav>.navigation-list{gap:0}
.thp-frontend [data-adaptive-header].fit-dense .navigation-item>a{padding-inline:4px}
.thp-frontend [data-adaptive-header] .menu-more[hidden]{display:none!important}
.thp-frontend [data-adaptive-header]:not(.fit-ready) .menu-node{min-width:0;max-width:100%}
.thp-frontend [data-adaptive-header]:not(.fit-ready) .navigation-item>a{white-space:normal}
.thp-frontend [data-adaptive-header]:not(.fit-mobile) [data-navigation-open]>.navigation-item{position:relative}
.thp-frontend [data-adaptive-header]:not(.fit-mobile) [data-navigation-open]>.navigation-item::after{content:'';position:absolute;inset:100% 0 auto;height:var(--adaptive-hover-bridge,40px)}
.thp-frontend [data-adaptive-header] .submenu{background:var(--ds-submenu);color:var(--ds-on-submenu);border:1px solid var(--ds-line);border-radius:var(--ds-radius-card);box-shadow:var(--ds-shadow);padding:12px;max-width:min(360px,calc(100vw - 32px));min-width:min(240px,calc(100vw - 32px));box-sizing:border-box;z-index:10}
.thp-frontend [data-adaptive-header] .submenu .navigation-item>a,.thp-frontend [data-adaptive-header] .submenu .navigation-item>span,.thp-frontend [data-adaptive-header] .submenu .navigation-toggle{color:var(--ds-on-submenu);white-space:normal}
.thp-frontend [data-adaptive-header] .submenu .navigation-toggle{color:var(--ds-on-submenu)!important}
.thp-frontend [data-adaptive-header] .submenu .navigation-item>a{flex:1;min-width:0}
.thp-frontend [data-adaptive-header] .submenu :is(a,button):is(:hover,:focus-visible){background:var(--ds-submenu-hover);color:var(--ds-on-submenu-hover)}
.thp-frontend [data-adaptive-header] .submenu [hidden]{display:none!important}
.thp-frontend [data-adaptive-header]:not(.fit-mobile) .menu-more>.submenu{max-height:calc(100dvh - var(--adaptive-header-bottom,100px) - 16px);overflow:auto}
.thp-frontend [data-adaptive-header].fit-ready .submenu{display:none!important}
.thp-frontend [data-adaptive-header].fit-ready [data-navigation-open]>.submenu{display:block!important}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .submenu:not(.mega-panel){position:absolute!important;top:calc(100% + var(--adaptive-hover-bridge,0px));width:max-content;left:0;right:auto;margin:0}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .menu-more .submenu .submenu:not(.mega-panel){position:static!important;width:auto;margin-left:8px}
.thp-frontend [data-adaptive-header] .mega-node{position:static}
.thp-frontend [data-adaptive-header] .mega-panel{position:fixed!important;inset:auto!important;top:var(--adaptive-header-bottom,100px)!important;left:var(--adaptive-menu-center,50%)!important;transform:translateX(-50%);width:min(1180px,var(--adaptive-menu-width,calc(100vw - 32px)));min-width:0;max-width:var(--adaptive-menu-width,calc(100vw - 32px));padding:clamp(16px,2vw,28px);max-height:calc(100dvh - var(--adaptive-header-bottom,100px) - 16px);overflow:auto}
.thp-frontend [data-adaptive-header] .mega-columns{display:grid;grid-template-columns:repeat(var(--mega-columns,3),minmax(0,1fr));gap:24px;list-style:none;margin:0;padding:0}
.thp-frontend [data-adaptive-header] .mega-column{display:flex;flex-direction:column;gap:12px;min-width:0;border:0;padding:0}
.thp-frontend [data-adaptive-header] .mega-column ul{display:flex!important;flex-direction:column;gap:4px;list-style:none;margin:0;padding:0;flex:1}
.thp-frontend [data-adaptive-header] .mega-column-head{display:flex;gap:0;align-items:center}
.thp-frontend [data-adaptive-header] .mega-column-head>button{display:none}
.thp-frontend [data-adaptive-header] .mega-column-heading{font-size:13px!important;font-weight:800!important;letter-spacing:.055em;text-transform:uppercase;position:relative;padding-bottom:14px!important}
.thp-frontend [data-adaptive-header] .mega-column-heading::after{content:'';position:absolute;width:28px;height:2px;background:currentColor;bottom:4px;left:10px}
.thp-frontend [data-adaptive-header] .mega-panel :is(a,span.mega-column-heading){display:block;padding:10px;border-radius:var(--ds-radius);min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4;color:var(--ds-on-submenu);font-size:16px;font-weight:400}
.thp-frontend [data-adaptive-header] .mega-panel a{min-height:44px;box-sizing:border-box;text-decoration:none}
.thp-frontend [data-adaptive-header] .mega-panel a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:4px;background:var(--ds-submenu-hover);color:var(--ds-on-submenu-hover)}
.thp-frontend [data-adaptive-header] .mega-panel .navigation-description{display:block;-webkit-line-clamp:unset;-webkit-box-orient:initial;font-size:14px;font-weight:400;line-height:1.5;margin-top:4px;color:inherit;opacity:1;white-space:normal;overflow:visible;text-overflow:clip}
.thp-frontend [data-adaptive-header] .mega-panel .mega-view-all{margin-top:auto;border-top:1px solid var(--ds-line);padding-top:8px}
.thp-frontend [data-adaptive-header] .mega-panel a[aria-current=page]{text-decoration:underline;font-weight:700}
.thp-frontend [data-adaptive-header] .mega-panel .mega-standalone{display:flex;align-items:flex-start}
.thp-frontend [data-adaptive-header].fit-mobile .frontend-nav{display:none!important;position:absolute;inset:100% 0 auto;width:100%;box-sizing:border-box;padding:16px;background:var(--ds-header);max-height:calc(100dvh - var(--site-header-height,120px) - var(--staff-bar-height,0px));overflow:auto}
.thp-frontend.menu-is-open [data-adaptive-header].fit-mobile .frontend-nav{display:block!important}
.thp-frontend.menu-is-open:has([data-adaptive-header].fit-mobile){overflow:hidden}
.thp-frontend [data-adaptive-header].fit-mobile .frontend-nav>.navigation-list{display:block;white-space:normal}
.thp-frontend [data-adaptive-header].fit-mobile .navigation-item>a{white-space:normal;flex:1;padding:10px}
.thp-frontend [data-adaptive-header].fit-mobile .navigation-toggle{flex-basis:44px;width:44px!important;min-width:44px!important}
.thp-frontend [data-adaptive-header].fit-mobile .submenu{position:static!important;transform:none;inset:auto!important;width:auto;min-width:0;max-width:100%;max-height:none;box-shadow:none;margin:0 0 8px 8px}
.thp-frontend [data-adaptive-header].fit-mobile .mega-columns{display:block}
.thp-frontend [data-adaptive-header].fit-mobile .mega-column{padding-block:4px}
.thp-frontend [data-adaptive-header].fit-mobile .mega-column-head>button{display:block;min-width:44px;min-height:44px;background:transparent;color:inherit;border:1px solid currentColor}
.thp-frontend [data-adaptive-header] [data-mega-column-toggle]>span{font-size:0}
.thp-frontend [data-adaptive-header] [data-mega-column-toggle]::after{content:'';display:inline-block;width:7px;height:7px;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg)}
.thp-frontend [data-adaptive-header] [data-mega-column-toggle][aria-expanded=true]::after{transform:rotate(225deg)}
.thp-frontend [data-adaptive-header].fit-mobile .mega-column ul[hidden]{display:none!important}
.thp-frontend [data-adaptive-header].fit-stacked .frontend-mainbar{flex-wrap:wrap;padding-inline:8px;gap:8px}
.thp-frontend [data-adaptive-header].fit-stacked .header-control-stack{flex-basis:100%;width:100%}

.thp-frontend [data-adaptive-header] .header-search-panel,.thp-frontend [data-adaptive-header] .header-overlay{max-width:calc(100vw - 24px);box-sizing:border-box}
html.thp-high-contrast [data-adaptive-header] :is(.submenu,.header-icon,.header-avatar){box-shadow:none;border:2px solid currentColor}
/* Override legacy viewport-based mobile panels only when measurement selected desktop. */
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav .submenu{padding:12px;border:1px solid var(--ds-line);box-shadow:var(--ds-shadow);margin:0;max-width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - var(--adaptive-header-bottom,100px) - 16px);overflow:auto}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav .mega-panel{position:fixed!important;width:min(1180px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px);padding:clamp(16px,2vw,28px);margin:0!important}
html.thp-high-contrast .thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .frontend-nav .submenu{border:2px solid currentColor;box-shadow:none}
html.thp-high-contrast .thp-frontend [data-adaptive-header] .navigation-toggle{background:var(--ds-header)!important;color:var(--ds-on-header)!important;border:1px solid currentColor!important}
html.thp-high-contrast .thp-frontend [data-adaptive-header] .navigation-toggle>span{color:inherit!important}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .menu-more:has(.mega-node[data-navigation-open])>.submenu{background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .menu-more:has(.mega-node[data-navigation-open])>.submenu>ul>.menu-node:not([data-navigation-open])>.navigation-item{visibility:hidden}
/* Without scripting, focus/hover reveals a simple vertical tree, not a cramped mega grid. */
.thp-frontend [data-adaptive-header]:not(.fit-ready){position:static!important}
.thp-frontend [data-adaptive-header]:not(.fit-ready) .frontend-nav .submenu{display:none!important;visibility:hidden;opacity:0;position:static!important;inset:auto!important;transform:none;width:auto;min-width:0;max-width:100%;max-height:none;overflow:visible;margin:4px 0;padding:12px}
.thp-frontend [data-adaptive-header]:not(.fit-ready) .menu-node:is(:hover,:focus-within)>.submenu{display:block!important;visibility:visible;opacity:1}
.thp-frontend [data-adaptive-header]:not(.fit-ready) .mega-columns{display:block}
.thp-frontend [data-adaptive-header]:not(.fit-ready) .mega-column-head>button{display:none}
.thp-frontend [data-adaptive-header]:is(.fit-mobile,:not(.fit-ready)) .frontend-nav>.navigation-list>.menu-node>.navigation-item>a{white-space:normal;min-width:0;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){[data-adaptive-header] *{transition:none!important}}
@media(max-width:600px){.thp-frontend [data-adaptive-header] .mega-columns{grid-template-columns:repeat(min(var(--mega-columns,3),2),minmax(0,1fr))}.thp-frontend [data-adaptive-header] .frontend-mainbar{padding-inline:8px}}

/* With More disabled, the complete desktop menu wraps inside its own header row. */
.thp-frontend [data-adaptive-header].fit-wrap .frontend-nav{order:3;flex:0 0 100%;width:100%;max-width:100%;box-sizing:border-box}
.thp-frontend [data-adaptive-header].fit-wrap .header-control-stack{margin-left:auto}
.thp-frontend [data-adaptive-header].fit-wrap .frontend-nav>.navigation-list{flex-wrap:wrap;max-width:100%}
.thp-frontend [data-adaptive-header].fit-wrap .navigation-item{max-width:100%}
.thp-frontend [data-adaptive-header].fit-wrap .navigation-item>a{white-space:normal;overflow-wrap:anywhere}

.thp-frontend [data-adaptive-header].fit-ready:not(.fit-mobile) .submenu:not(.mega-panel){box-sizing:border-box;max-width:var(--adaptive-menu-width,calc(100vw - 32px))}
