/* v16: one source of truth for layering, adjustable heights, and accessible controls. */
.hp7-header.asi11-header{position:relative;z-index:300!important;overflow:visible!important;isolation:auto}
.hp7-header.asi11-header .hp7-topbar{position:relative;z-index:45;overflow:visible!important}
.hp7-header.asi11-header .hp7-mainbar{position:relative;z-index:40;overflow:visible!important}
.hp7-header.asi11-header .hp7-main-inner,.hp7-header .hp7-actions,.hp7-header .hp7-search-slot{overflow:visible!important}
.hp7-header.asi11-header .hp7-mainnav{position:relative;z-index:20!important}
.hp7-header.asi11-header .asi8-search-shell{z-index:60!important}
.hp7-header.asi11-header .asi8-search-results{z-index:800!important;max-width:min(630px,calc(100vw - 24px));box-shadow:0 22px 60px #0a1b3952!important}
.hp7-header.asi11-header .asi8-dropdown{z-index:55}
.hp7-header.asi11-header .asi8-dropdown:focus-within,.hp7-header.asi11-header .asi8-dropdown:hover{z-index:120}
.hp7-header.asi11-header .asi8-dropdown-panel{z-index:800!important;box-shadow:0 22px 50px #09192d45!important}
.hp7-header.asi11-header .asi11-weather-widget{position:relative;z-index:65}
.hp7-header.asi11-header .asi11-weather-panel:not([hidden]){z-index:850!important}
.hp7-header.asi11-header .hp7-topbar-inner{overflow:visible!important}
.hp7-header.asi11-header .hp7-mega-menu:not([hidden]){z-index:850!important}
/* Compact economic strip can now be selected down to 60px; no global page overflow. */
.asi14-market{box-sizing:border-box;min-height:var(--asi15-market-height,106px)!important}
.asi14-market .asi14-card{min-height:var(--asi15-market-card-height,80px)!important}
body.asi16-compact-market .asi14-market{min-height:var(--asi15-market-height,70px)!important;padding-block:3px!important}
body.asi16-compact-market .asi9-market-track{padding-block:1px 3px!important;align-items:center!important}
body.asi16-compact-market .asi14-card{min-height:min(var(--asi15-market-card-height,70px),calc(var(--asi15-market-height,70px) - 8px))!important;height:calc(var(--asi15-market-height,70px) - 8px)!important;max-height:80px!important;gap:3px!important;padding:5px 10px!important;border-radius:12px!important}
body.asi16-compact-market .asi14-card-top{gap:5px!important;min-height:14px}
body.asi16-compact-market .asi14-card-name{font-size:10px!important}
body.asi16-compact-market .asi14-card-top .hp7-data-icon{width:22px!important;height:22px!important;flex-basis:22px!important;border-radius:7px!important}
body.asi16-compact-market .asi14-card-top .asi9-symbol{font-size:15px!important}
body.asi16-compact-market .asi14-change{font-size:9px!important;padding:3px 5px!important;max-width:75px!important}
body.asi16-compact-market .asi14-card-center{min-height:15px}
body.asi16-compact-market .asi14-card-price{font-size:13px!important}
body.asi16-compact-market .asi14-card-chart{height:18px!important;flex-basis:46px;width:46px}
body.asi16-compact-market .asi10-sparkline{width:46px!important;height:19px!important}
body.asi16-compact-market .asi14-card-bottom{display:none!important}
body.asi16-ultra-compact-market .asi14-market{height:var(--asi15-market-height,60px)!important;min-height:60px!important;padding-block:2px!important}
body.asi16-ultra-compact-market .asi14-card{height:calc(var(--asi15-market-height,60px) - 8px)!important;min-height:52px!important;padding:4px 8px!important}
/* Sparklines are drawn only from historical observations; never synthetic market prices. */
.asi14-market .asi10-sparkline polyline{stroke-linecap:round;stroke-linejoin:round;stroke-width:2.3}
body:not(.asi15-market-still) .asi14-market .asi10-sparkline polyline{filter:drop-shadow(0 2px 2px currentColor)}
/* Ticker truncates server-side; CSS protects all narrow viewport widths. */
.asi9-ticker .hp6-ticker-inner{display:flex!important;align-items:center;min-width:0;gap:8px}
.asi9-ticker .hp6-ticker-title{flex:0 0 auto!important}
.asi16-ticker-colon{display:inline-block;flex:0 0 auto;color:var(--asi9-ticker-label,#fff);font-size:23px;font-weight:900;line-height:1}
.asi9-ticker .hp6-ticker-list{min-width:0;flex:1 1 0;overflow:hidden!important}
.asi9-ticker .hp6-ticker-item{display:flex;align-items:center;gap:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;min-width:0}
.asi9-ticker .hp6-ticker-item time{flex:0 0 auto}
.asi9-ticker .hp6-ticker-controls,.asi9-ticker .hp6-ticker-all{flex:0 0 auto}
/* Avoid visible blank white rectangles on some browsers. */
.asi9-ticker .hp6-ticker-controls button{border-radius:999px!important;width:27px!important;height:27px!important;min-width:27px!important;padding:0!important;display:grid!important;place-items:center!important;background:#ffffff21!important;border:1px solid #ffffff45!important;color:#fff!important;font-size:17px!important;line-height:1!important;box-shadow:none!important}
.asi9-ticker .hp6-ticker-controls button:hover{background:#ffffff46!important}
/* The first menu item is Home: icon occupies full nav height, text remains in accessible name. */
.hp7-header .hp7-mainnav-list>ul>li.asi16-home-icon-only>a{width:65px;min-width:65px;font-size:0!important;justify-content:center!important;padding:0!important;background:#ffffff0e;border-bottom:3px solid #ff3f64}
.hp7-header .hp7-mainnav-list>ul>li.asi16-home-icon-only>a svg{width:25px!important;height:25px!important;color:#ffffff!important;filter:drop-shadow(0 0 4px #7acfff);flex:0 0 25px}
.hp7-header .hp7-mainnav-list>ul>li.asi16-home-icon-only>a:hover{background:#d11936!important}
/* Weather permission is explicitly requested on click; offline/denied remains Antakya. */
.asi16-weather-location{appearance:none;flex:0 0 auto;font-size:11px;font-weight:750;border:1px solid #ffffff65;color:#fff;background:#ffffff26;border-radius:999px;padding:7px 10px;cursor:pointer;transition:background .2s}
.asi16-weather-location:hover,.asi16-weather-location:focus-visible{background:#ffffff50;outline:2px solid #fff;outline-offset:2px}
.asi11-weather-panel .asi13-condition-sun .asi13-rain-chance{background:#fff4c7;color:#84500d!important}
.asi11-weather-panel .asi13-condition-cloud .asi13-rain-chance{background:#e5f0fa;color:#254b77!important}
.asi11-weather-panel .asi13-condition-rain .asi13-rain-chance{background:#d9efff;color:#125c9a!important}
.asi11-weather-panel .asi13-condition-snow .asi13-rain-chance{background:#edfaff;color:#1d6c95!important}
.asi11-weather-panel .asi13-condition-storm .asi13-rain-chance{background:#ede4ff;color:#6532a1!important}
@keyframes asi16-weather-bob{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.09)}}
@keyframes asi16-chance-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.22)}}
body:not(.asi15-weather-still) .asi11-weather-panel .asi11-weather-day .asi11-weather-symbol{animation:asi16-weather-bob 3.8s ease-in-out infinite}
body:not(.asi15-weather-still) .asi11-weather-panel .asi13-rain-chance{animation:asi16-chance-glow 3.1s ease-in-out infinite}
@media(max-width:1100px){.asi8-search-results{width:min(520px,90vw)}.asi9-ticker .hp6-ticker-controls button{width:25px!important;height:25px!important;min-width:25px!important}}
@media(max-width:850px){
 .hp7-header.asi11-header .asi8-search-results{position:fixed!important;top:75px!important;left:12px!important;right:12px!important;width:auto!important;max-height:70dvh!important}
 .asi9-ticker .hp6-ticker-controls{display:none!important}
 .asi9-ticker .hp6-ticker-title span{font-size:11px!important}
 .asi16-ticker-colon{font-size:16px}
 .asi11-header .asi11-weather-panel-head{flex-wrap:wrap}
 .asi16-weather-location{order:2;width:auto}
 .hp7-header .hp7-mainnav-list>ul>li.asi16-home-icon-only>a{width:48px;min-width:48px}
}
@media(prefers-reduced-motion:reduce){body:not(.asi15-weather-still) .asi11-weather-panel .asi11-weather-symbol,body:not(.asi15-weather-still) .asi11-weather-panel .asi13-rain-chance{animation:none!important}}
/* Only the active slide is displayed. Previous/next/pause controls keep functioning. */
.asi9-ticker .hp6-ticker-item{display:none!important}
.asi9-ticker .hp6-ticker-item.is-visible{display:flex!important}
/* The personal reading panel must also overlay the masthead. */
.hp7-header.asi11-header #hp-bookmarks-panel:not([hidden]){z-index:900!important}
