/* Outside rails never occupy or cover the reading columns. Placement is measured. */
.hp-wing[hidden],.hp-wing-bottom[hidden]{display:none!important}
.hp-wing{box-sizing:border-box;z-index:20;overscroll-behavior:contain;scrollbar-width:thin}
.hp-wing .ag-ad-slot{margin:0;gap:14px}
.hp-wing .ag-ad-card{border-radius:var(--hp-wing-radius,10px);box-shadow:0 5px 24px #172b2010}
.hp-wing .ag-ad-card img{height:auto;max-width:100%;object-fit:contain}
.hp-wing-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
.hp-wing-bottom .hp-wing{position:static!important;width:100%!important;max-height:none!important;overflow:visible!important}
.hp-wing-placeholder{border:1px dashed #91a89a;background:#f2f7f3;color:#365341;border-radius:10px;padding:24px 12px;text-align:center;font:14px/1.7 sans-serif;min-height:200px;box-sizing:border-box}
.hp-wing-placeholder strong{display:block;font-size:16px;margin-bottom:10px}
.hp-wing-placeholder small{display:block;font-size:12px;margin-top:8px}
/* Local menu variables leave the existing UI typography controls in charge. */
#hp-sidebar:where([data-menu-style]:not([data-menu-style=legacy])){--hm-accent:#39765a;--hm-surface:#fff;--hm-header:#eef5ef;--hm-hover:#eaf3ed;--hm-border:#dfe8e1;--hm-ink:#263d30;--hm-muted:#68796d;--hm-radius:14px;--hm-item-radius:8px;--hm-item-padding:10px;--hm-group-gap:14px}
#hp-sidebar[data-menu-style=brand]{--hm-accent:#ba562e;--hm-header:#fff2e7;--hm-hover:#fff0e2;--hm-border:#ecdcd0}
#hp-sidebar[data-menu-style=minimal]{--hm-accent:#354c42;--hm-header:#fff;--hm-hover:#f2f5f3;--hm-border:#dce4df}
#hp-sidebar[data-menu-style=soft]{--hm-accent:#9b7340;--hm-surface:#fffdf7;--hm-header:#f6eedf;--hm-hover:#f8edd8;--hm-border:#eae1d0;--hm-ink:#514431;--hm-muted:#857861}
#hp-sidebar[data-menu-style=ink]{--hm-accent:#e2c6a0;--hm-surface:#24382e;--hm-header:#304a3b;--hm-hover:#385642;--hm-border:#46604f;--hm-ink:#f2f6ef;--hm-muted:#bccbbb}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy])>.hp-panel{background:transparent;border:0;border-radius:0;overflow:visible}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup{display:block;padding:10px;background:var(--hm-surface);border:1px solid var(--hm-border);border-radius:var(--hm-radius);overflow:hidden;margin:0 0 var(--hm-group-gap);box-shadow:0 3px 14px #233e2d05}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup:last-child{margin-bottom:0}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup h3{display:flex;align-items:center;gap:8px;padding:12px 10px;margin:-10px -10px 8px;background:var(--hm-header);color:var(--hm-accent);line-height:1.5}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup>a{display:flex;align-items:center;gap:8px;padding:var(--hm-item-padding) 10px;border-radius:var(--hm-item-radius);color:var(--hm-ink);text-decoration:none;min-height:40px;box-sizing:border-box;transition:background .15s,color .15s}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup>a:hover,#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup>a:focus-visible{background:var(--hm-hover);color:var(--hm-accent)}
#hp-sidebar[data-menu-style=brand] .hp-sidegroup{border-top:4px solid var(--hm-accent)}
#hp-sidebar[data-menu-style=brand] .hp-sidegroup h3{background:var(--hm-header)}
#hp-sidebar[data-menu-style=minimal] .hp-sidegroup{box-shadow:none;border-width:0 0 1px;border-radius:var(--hm-radius);padding:8px 0}
#hp-sidebar[data-menu-style=minimal] .hp-sidegroup h3{margin:0;padding:8px 10px;border-left:3px solid var(--hm-accent)}
#hp-sidebar[data-menu-style=soft] .hp-sidegroup{box-shadow:0 5px 15px #75674c08}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy])>.apartgo-left-profile{background:var(--hm-surface);border:1px solid var(--hm-border);border-radius:var(--hm-radius);overflow:hidden;color:var(--hm-ink);padding:16px;margin-bottom:var(--hm-group-gap)}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .apartgo-left-profile-head strong{color:var(--hm-ink)}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .apartgo-left-profile-head span,#hp-sidebar[data-menu-style]:not([data-menu-style=legacy])>.apartgo-left-profile>p{color:var(--hm-muted)}
#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .apartgo-left-social{border-color:var(--hm-border);color:var(--hm-ink);background:var(--hm-header);border-radius:var(--hm-item-radius)}
.hp-menu-cover{display:block;width:calc(100% + 32px);max-width:none;height:105px;object-fit:cover;margin:-16px -16px 16px}
.hp-menu-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border:1px solid currentColor;border-radius:7px;opacity:.9}
.hp-menu-icon svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hp-menu-arrow{margin-left:auto;flex:0 0 14px;font-size:18px;opacity:.45}
@media(max-width:700px){.hp-wing-bottom{grid-template-columns:1fr;margin:20px 16px;gap:16px}.hp-wing-bottom .hp-wing-placeholder{min-height:100px}#hp-sidebar[data-menu-style]:not([data-menu-style=legacy]) .hp-sidegroup{margin-bottom:var(--hm-group-gap)}}
@media(prefers-reduced-motion:reduce){#hp-sidebar .hp-sidegroup>a{transition:none!important}}
