/* Task-first hierarchy. Keep equations, plots and article manuscripts intact. */
.ahs-nav-toggle{display:none}
.ahs-location166{margin:0;padding:12px 5vw;background:#edf2f4;color:#173647;font:600 14px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
.hero-paths{display:flex;flex-wrap:wrap;gap:12px!important;margin-top:24px}
.hero-paths a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px!important;border:1px solid #aabac3!important;border-radius:4px;font:600 16px/1.4 Arial,sans-serif!important;text-decoration:none!important}
.hero-paths a:first-child{background:#d5b778!important;color:#102d3e!important;border-color:#d5b778!important}
.hero-paths a:hover{text-decoration:underline!important;text-underline-offset:4px}
.ahs-reading-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:24px!important}
.ahs-reading-tools label,.ahs-reading-status{grid-column:1/-1;margin:0;font:600 14px/1.5 Arial;color:#173647}
.ahs-reading-tools input{width:100%!important;max-width:none;box-sizing:border-box;margin:0;min-height:44px}
.ahs-reading-tools button{min-height:44px;padding:10px 14px;background:#fff;color:#173647;border:1px solid #8295a0;border-radius:4px;cursor:pointer}
.research-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:20px 24px!important;height:auto!important;overflow:visible!important}
.research-toolbar button{min-height:44px;white-space:normal;border-radius:4px}
.research-toolbar button[aria-pressed=true]{background:#173647!important;color:#fff!important;text-decoration:underline;text-underline-offset:5px}
.research-card>h3{line-height:1.35!important}.research-card>p{max-width:70ch}
.research-card details>summary{font-weight:600;min-height:44px;display:list-item;padding-block:10px;text-decoration:underline;text-underline-offset:4px}
.ahs-directory>summary{font-family:Arial,sans-serif;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.ahs-directory-results a{text-decoration:underline!important;text-underline-offset:3px}
.ahs-controlbar :is(a,button),.chart-toolbar button,.ew-exports button{min-height:44px}
body[data-cabinet-page] :is(.ahs-breadcrumb,.ahs-location166) a{ text-decoration:underline;text-underline-offset:3px }
html{scroll-padding-top:calc(var(--ahs-header-height,80px) + var(--ahs-local-height,0px) + 20px)!important}
body :is([id],.model-panel,.risk-card,.ew-panel){scroll-margin-top:0!important}
@media(max-width:650px){
 .ahs-header.ahs-compact-navigation{gap:8px!important;padding:8px 12px!important;min-height:60px;flex-wrap:wrap}
 .ahs-header.ahs-compact-navigation .ahs-brand img{width:120px!important;height:32px!important}
 .ahs-header.ahs-compact-navigation .ahs-nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 6px;order:3;background:#fff;color:#173647;border:1px solid #b8c4ca;border-radius:4px;font:600 13px Arial;cursor:pointer}
 .ahs-header.ahs-compact-navigation .labs-menu{order:1}.ahs-header.ahs-compact-navigation .language-select,.ahs-header.ahs-compact-navigation>.lang{order:2;width:78px!important;min-width:0!important;min-height:44px;padding:8px 4px!important;font-size:13px!important}
 .ahs-header.ahs-compact-navigation .labs-menu>summary{padding:8px 4px!important;min-height:44px;box-sizing:border-box}
 .ahs-header.ahs-compact-navigation .ahs-main-nav{display:none!important;order:4;width:100%;padding:8px 0 0;gap:4px;overflow:visible;flex-wrap:wrap;justify-content:flex-start}
 .ahs-header.ahs-compact-navigation.ahs-navigation-open .ahs-main-nav{display:flex!important}
 .ahs-header.ahs-compact-navigation .ahs-main-nav a{padding:8px 10px;min-height:44px;box-sizing:border-box;border-radius:4px}
 .hero-paths{display:grid!important;grid-template-columns:1fr;width:100%}.hero-paths a{box-sizing:border-box;width:100%}
 .ahs-local-select>span{font-size:12px;line-height:1.4;margin-bottom:4px}.ahs-local-select select{margin:0;min-height:44px;font-size:16px}
 body[data-cabinet-page] :is(.lab-local-nav,.trading-local-nav,.risk-local-nav).has-mobile-select{flex-wrap:wrap}
 /* Cross-Lab destinations are links, not local select options: keep them reachable. */
 body[data-cabinet-page] :is(.lab-local-nav,.trading-local-nav,.risk-local-nav).has-mobile-select>a:not([href^="#"]){display:inline-flex;order:2;font-size:13px;text-decoration:underline;min-height:44px}
 .ahs-location166{font-size:13px;padding:10px 12px}.research-toolbar{padding:16px 12px!important}.ahs-reading-tools{padding:16px 12px!important}
}
@media(max-width:360px){.ahs-header.ahs-compact-navigation .ahs-brand img{width:104px!important}.ahs-header.ahs-compact-navigation{gap:6px!important}}
@media print{.ahs-nav-toggle,.ahs-location166{display:none!important}}
