/* WHB navigation. Interface extensions use the existing project palette/fonts.
   The brand asset, content, footer and all destination URLs remain owned by the site. */
:root{
 --nav-surface:var(--ui-surface);--nav-text:var(--ui-text);--nav-muted:var(--ui-muted);
 --nav-line:var(--ui-border);--nav-active:var(--ui-accent);--nav-selected:var(--ui-hover);
 --nav-radius:22px;--nav-control-radius:14px;--nav-shadow:var(--ui-shadow);
 --header-height:94px;--bottom-nav-clearance:calc(104px + env(safe-area-inset-bottom,0px));
}
.agency-header,.agency-header.is-scrolled{
 width:calc(100% - 48px);max-width:1248px;min-height:76px;height:auto;
 margin:12px auto;top:max(8px,env(safe-area-inset-top,0px));padding:12px 20px;
 border:1px solid var(--nav-line);border-radius:var(--nav-radius);background:var(--nav-surface);
 gap:20px;box-shadow:none;transition:box-shadow 220ms ease,border-color 220ms ease;
}
.agency-header.is-scrolled{box-shadow:var(--nav-shadow);border-color:var(--ui-control-border)}
.agency-header .agency-brand{gap:10px;min-width:0;flex-shrink:1}
.agency-header .agency-brand img,.agency-header.is-scrolled .agency-brand img{width:44px;height:44px;border-radius:14px;flex-shrink:0;transition:none;object-fit:contain}
.agency-header .agency-brand strong,.agency-header.is-scrolled .agency-brand strong{font-size:19px;line-height:1.5;transition:none;color:var(--nav-text)}
.agency-header .agency-brand small{font-family:var(--font-body);font-size:10.5px;line-height:1.8;color:var(--nav-muted)}
.agency-header .agency-brand>span{min-width:0}
.agency-desktop-nav{gap:2px;align-self:center}
.agency-desktop-nav a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 12px;font-size:14px;line-height:1.7;border-radius:13px;color:var(--nav-muted)}
.agency-desktop-nav .whb-nav-icon{width:18px;height:18px}
.agency-desktop-nav a[aria-current]{color:var(--nav-active);background:var(--nav-selected)}
.agency-desktop-nav a[aria-current]::after{display:block;content:'';position:absolute;left:calc(50% - 7px);right:auto;bottom:3px;width:14px;height:2px;border-radius:2px;background:currentColor}
.agency-nav-pill{border-radius:13px;background:var(--nav-selected)}
.agency-tools{gap:8px;flex-shrink:0}
.agency-header .agency-icon-button,.agency-menu .agency-icon-button{width:44px;height:44px;border-radius:var(--nav-control-radius);border-color:var(--nav-line);background:var(--nav-surface);color:var(--nav-text);transform:none;flex-shrink:0}
.agency-header .agency-theme::before{display:none}
.agency-header .agency-header-cta{min-height:44px;padding:10px 16px;gap:10px;border-radius:14px;font-size:13px;line-height:1.7;background:var(--ui-button);color:var(--ui-button-text)}
.whb-nav-icon{flex-shrink:0;vertical-align:middle;overflow:visible}
.agency-header .agency-header-cta .whb-nav-icon{width:18px;height:18px}
.agency-menu{width:min(420px,calc(100% - 24px));padding:18px;max-height:calc(100dvh - var(--menu-top,100px) - max(16px,env(safe-area-inset-bottom)));border-radius:24px;background:var(--nav-surface);box-shadow:var(--nav-shadow);overscroll-behavior:contain;scrollbar-gutter:stable}
.agency-menu-top{gap:12px;font-size:15px;line-height:1.8;color:var(--nav-text)}
.agency-menu-top>span{max-width:calc(100% - 56px)}
.agency-menu nav{gap:5px;margin:16px 0}
.agency-menu nav a{position:relative;min-height:50px;padding:10px 14px;gap:14px;border:1px solid transparent;border-radius:14px;font-size:15px;line-height:1.8;color:var(--nav-muted)}
.agency-menu nav a .whb-nav-icon{width:22px;height:22px}
.agency-menu nav a[aria-current]{background:var(--nav-selected);color:var(--nav-active);border-color:var(--nav-line)}
.agency-menu nav a[aria-current]::after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;margin-inline-start:auto;flex-shrink:0}
.agency-menu-secondary{gap:3px;padding:12px 0}
.agency-menu-secondary a{display:flex;align-items:center;gap:14px;min-height:44px;padding:10px 14px;font-size:13px;line-height:1.8;border-radius:12px}
.agency-menu-secondary .whb-nav-icon{width:20px;height:20px}
.agency-menu .agency-button{gap:12px;font-size:14px;border-radius:14px}
body[data-agency-shell] .agency-bottom-nav{
 width:min(calc(100% - 24px),480px);bottom:calc(10px + env(safe-area-inset-bottom,0px));
 padding:6px;gap:0;border-radius:24px;background:var(--nav-surface);border:1px solid var(--nav-line);box-shadow:var(--nav-shadow);
}
body[data-agency-shell] .agency-bottom-nav a{
 position:relative;min-width:0;min-height:66px;gap:4px;padding:5px 1px;flex:1 1 0;
 border-radius:18px;background:transparent;color:var(--nav-muted);line-height:1.6;
 transition:background 160ms ease,color 160ms ease;
}
body[data-agency-shell] .agency-bottom-nav a[aria-current]{background:transparent;color:var(--nav-active)}
body[data-agency-shell] .agency-bottom-nav .agency-nav-symbol{
 display:flex;align-items:center;justify-content:center;position:relative;width:44px;height:30px;border-radius:10px;
 transition:background 160ms ease;
}
body[data-agency-shell] .agency-bottom-nav a[aria-current] .agency-nav-symbol{background:var(--nav-selected)}
body[data-agency-shell] .agency-bottom-nav a[aria-current]::after{content:'';position:absolute;bottom:1px;width:12px;height:2px;border-radius:2px;background:currentColor}
body[data-agency-shell] .agency-bottom-nav .whb-nav-icon{width:22px;height:22px}
body[data-agency-shell] .agency-bottom-nav a>span:last-child{font-size:13px!important;line-height:1.7;font-weight:500;max-width:100%;text-align:center;overflow-wrap:normal}
:is(.agency-header,.agency-menu,.agency-bottom-nav) :is(a,button):focus-visible{outline:3px solid var(--nav-active);outline-offset:3px}
:is(.agency-header,.agency-menu,.agency-bottom-nav) :is(button:disabled,[aria-disabled=true]){opacity:.45;cursor:not-allowed}
:is(.agency-header,.agency-menu,.agency-bottom-nav) button:active:not(:disabled){background:var(--nav-selected)}
@media(hover:hover){
 :is(.agency-desktop-nav,.agency-menu) a:hover,.agency-header .agency-icon-button:hover{background:var(--nav-selected);color:var(--nav-active)}
 body[data-agency-shell] .agency-bottom-nav a:hover{background:var(--nav-selected)}
 .agency-header .agency-header-cta:hover{transform:translateY(-1px)}
}
@media(min-width:1000px) and (max-width:1179px){.agency-desktop-nav a{padding-inline:10px}.agency-header,.agency-header.is-scrolled{gap:14px}}
@media(max-width:999px){
 .agency-header,.agency-header.is-scrolled{width:calc(100% - 24px);gap:12px;padding:10px 12px;min-height:72px;margin:10px auto;top:max(6px,env(safe-area-inset-top,0px))}
 .agency-header .agency-brand strong,.agency-header.is-scrolled .agency-brand strong{font-size:18px}
 .agency-tools{gap:6px}
 body[data-agency-shell] .agency-footer{padding-bottom:var(--bottom-nav-clearance)}
 body[data-agency-shell]:not(:has(.agency-footer)) main{padding-bottom:var(--bottom-nav-clearance)!important}
 html{scroll-padding-bottom:var(--bottom-nav-clearance)}
}
body[data-agency-shell=compact] .agency-footer{padding-bottom:var(--bottom-nav-clearance)}
body[data-agency-shell=compact]:not(:has(.agency-footer)) main{padding-bottom:var(--bottom-nav-clearance)!important}
@media(max-width:389px){
 .agency-header .agency-brand strong,.agency-header.is-scrolled .agency-brand strong{font-size:17px}
 .agency-header .agency-brand small{font-size:10px}
 .agency-header .agency-brand{gap:8px}
 body[data-agency-shell] .agency-bottom-nav a>span:last-child{font-size:12px!important}
}
/* A focused input with an open software keyboard owns the lower viewport. */
body.navigation-keyboard-open .agency-bottom-nav{visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){
 .agency-header,.agency-header.is-scrolled,.agency-menu,.agency-bottom-nav,.agency-nav-symbol{transition:none!important}
}
