body.member-home{--navy:#183e49;--ink:#223b43;--bg:#f5f7f7;background:#f5f7f7!important}.member-home .app-topbar{display:none!important}.member-home .app-stage{padding-top:78px!important}.member-header{position:fixed;inset:0 0 auto;height:72px;background:#fff;border-bottom:1px solid #dfe7e5;display:flex;align-items:center;justify-content:space-between;padding:0 30px;z-index:70;gap:16px}.member-header>a{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:#173e49;text-decoration:none}.member-header img{width:34px;height:34px}.member-header nav{display:flex;gap:12px;align-items:center}.member-header nav a{padding:10px 15px;border-radius:6px;font-size:13px;text-decoration:none;color:#23434b}.member-header nav a.primary{background:#176b60;color:white}.member-menu{display:none;border:1px solid #d9e2df;background:white;border-radius:6px;min-height:44px;padding:8px 12px}.member-home .app-sidebar{top:72px!important;height:calc(100dvh - 72px)!important;padding-top:22px!important;background:#fff!important;border-right:1px solid #dfe7e5;z-index:65!important}.member-home .sidebar-brand{display:none!important}.member-home .sidebar-nav kbd{display:none}.member-home .app-main{padding-top:28px!important}.member-intro{margin:0 0 24px}.member-intro small{color:#337668;text-transform:uppercase;letter-spacing:1.5px;font-weight:650;font-size:11px}.member-intro h1{font-size:30px;margin:7px 0 10px;letter-spacing:-.7px;color:#173e49}.member-intro p{font-size:14px;color:#64777d;margin:0}.member-home .home-search-panel{padding:24px!important;min-height:0!important;box-shadow:none!important;border-color:#dfe7e5!important;border-radius:10px!important}.member-home .home-search-panel h1,.member-home .home-search-panel h2{font-size:20px!important;margin-bottom:20px!important}.member-home .home-search-panel textarea{min-height:95px!important;border-color:#ccd9d6!important;border-radius:7px!important}.member-home .home-search-options{margin-top:18px}.member-home .home-search-options button[type=submit]{background:#176b60!important}.member-home .home-reset{background:transparent!important;border-color:transparent!important;color:#61757b!important}.member-voice{margin:12px 0!important;border:0!important;font-size:13px}.member-voice summary{color:#54746d;cursor:pointer;min-height:32px;display:list-item!important}.member-voice[open]{padding:12px;border:1px solid #dfe7e5!important;border-radius:7px}.member-search-tabs{display:none}.member-home .home-headlines{box-shadow:none!important}.member-home .sidebar-foot{position:static!important}.member-home .app-backdrop{inset:72px 0 0!important;z-index:64!important}.member-drawer-close{display:none}.member-home .sidebar-nav a,.member-home .sidebar-nav button{font-size:13px!important}.member-home .sidebar-tools a{font-size:12px!important}.member-home .sidebar-nav [data-member-active]{background:#edf4f0;border-left:3px solid #176b60}
@media(min-width:981px){.member-home .app-stage{margin-left:240px!important}.member-home .app-sidebar{width:240px!important}.member-home .app-main{padding:30px 36px!important;max-width:1400px;margin:auto}.member-header>a{min-width:210px}}
@media(max-width:980px){.member-home .app-stage{margin-left:0!important}.member-menu{display:block}.member-header{height:64px;padding:0 16px}.member-header>a{font-size:15px;gap:5px}.member-header img{width:27px;height:27px}.member-header nav{gap:3px}.member-header nav a{font-size:12px;padding:8px}.member-header nav a.secondary-link{display:none}.member-home .app-sidebar{position:fixed!important;top:0!important;bottom:0!important;left:0!important;width:290px!important;height:100dvh!important;transform:translateX(-105%)!important;padding-top:70px!important;z-index:90!important;overflow-y:auto!important}.member-home .app-sidebar.open{transform:translateX(0)!important}.member-home .app-backdrop{inset:0!important;z-index:85!important}.member-drawer-close{display:block;position:absolute;top:16px;right:16px;min-height:40px;border:1px solid #d8e3df;background:white;border-radius:6px}.member-home:has(.app-sidebar.open) #tradeBotLauncher,.member-home:has(.app-sidebar.open) .trade-bot-launcher{display:none!important}.member-home .app-stage{padding-top:68px!important}.member-home .app-main{padding:24px 16px!important}.member-intro h1{font-size:25px}.member-intro{margin-bottom:18px}.member-search-tabs{display:flex;gap:5px;background:#e7eeeb;border-radius:8px;padding:4px;margin-bottom:16px}.member-search-tabs button{flex:1;min-height:44px;border:0;background:transparent;border-radius:5px;color:#36534a;font-weight:600}.member-search-tabs button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #0001;color:#155a4e}.member-home .home-search-grid{display:block!important}.member-home .home-search-panel{padding:19px!important;margin:0 0 20px!important}.member-home[data-search-mode=policy] .home-search-panel:has(#homeGoodsForm){display:none!important}.member-home[data-search-mode=goods] .home-search-panel:has(#homePolicyForm){display:none!important}.member-home .home-search-options{display:flex!important;flex-wrap:wrap}.member-home .home-search-options>label{flex:1 1 120px}.member-home .home-search-options button[type=submit]{flex:1 1 70%;min-height:44px}.member-home .home-search-options button[type=reset]{flex:0 0 60px}.member-home .home-search-panel textarea{min-height:85px!important}.member-home .home-search-panel .home-field-label{margin-bottom:7px}.member-home .portal-footer{margin-top:20px}}

/* Override legacy desktop offsets and header skin. */
.member-home .app-main{margin-left:0!important;width:auto!important}.member-home .member-header{background:#fff!important;border-top:0!important;box-shadow:none!important;padding-top:0!important;padding-bottom:0!important}.member-home .member-header::before,.member-home .member-header::after{display:none!important}
body.is-home.member-home .app-main{margin-left:0!important;margin-right:0!important;max-width:none!important;padding:30px 36px!important}body.is-home.member-home .home-search-grid{padding:0!important;margin-top:0!important}body.is-home.member-home .home-search-options{display:flex!important;flex-wrap:wrap;gap:10px}body.is-home.member-home .home-search-options>label{flex:1 1 140px}@media(max-width:980px){body.is-home.member-home .app-main{padding:24px 16px!important}}

/* Account controls remain in the active header; moving nodes preserves their handlers. */
.member-home .member-header nav[aria-label="Account access"]{display:flex;flex-wrap:wrap;gap:8px}
.member-home .member-header nav[aria-label="Account access"] button{position:static!important;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px!important;margin:0!important;border-radius:10px!important;font-size:13px!important;white-space:nowrap;color:var(--site-text,#183e49)!important;background:var(--site-surface,#fff)!important;border:1px solid var(--site-line,#ccd9d6)!important}
.member-home .member-header nav[aria-label="Account access"] button[hidden]{display:none!important}
.member-home .member-header nav[aria-label="Account access"] #portalSignupButton{background:var(--site-accent-bg,#e8f3ef)!important}
@media(max-width:600px){.member-home .member-header{height:116px!important;flex-wrap:wrap;align-content:center;gap:5px 10px;padding:6px 12px!important}.member-header>a{flex:1}.member-home .member-header nav[aria-label="Account access"]{width:100%;justify-content:flex-end}.member-home .member-header nav[aria-label="Account access"] button{flex:1;font-size:12px!important;padding:7px!important}.member-home .app-stage{padding-top:120px!important}}
@media(prefers-reduced-motion:reduce){.member-home *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

@media(max-width:900px){.member-home .member-header nav[aria-label="Account access"] .secondary-link{display:none}}

/* Keep filters and actions aligned across the two desktop search panels. */
@media(min-width:981px){
 body.is-home.member-home .home-search-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 body.is-home.member-home #homePolicyForm .home-search-options>label{grid-column:1/-1}
 body.is-home.member-home .home-search-options>:is(label,button){min-width:0;width:100%;margin:0}
}


/* Full-width desktop answer dashboard; account access is styled below. */
.member-account-dock[hidden],.member-results-dashboard[hidden],.member-output-panel[hidden]{display:none!important}
@media(min-width:981px){
 body.is-home.member-home .app-main{width:100%!important;max-width:none!important;min-width:0;padding:24px clamp(18px,2.5vw,44px) 120px!important}
 body.is-home.member-home #home .home-search-grid{
  width:100%!important;max-width:none!important;min-height:0!important;
  padding:12px 0 0!important;margin:0!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;align-items:start!important
 }
 body.is-home.member-home #home .home-search-grid>.home-search-panel{width:100%;min-width:0;margin:0!important}
 body.is-home.member-home #home #blog-headlines{width:100%;max-width:none;margin:22px 0 0!important}
 .member-home #home .member-results-dashboard{width:100%;min-width:0;max-width:none;margin:20px 0 0;scroll-margin-top:90px}
 .member-home #home .member-output-panel{
  display:block;min-width:0;width:100%;padding:clamp(18px,2vw,32px);
  border-radius:14px;border:1px solid #d6e2df;background:#fff;
  box-shadow:0 8px 28px rgba(20,53,78,.06);overflow-wrap:anywhere
 }
 .member-home #home .member-output-panel>h2{
  margin:0 0 14px;font-size:clamp(19px,1.6vw,25px);line-height:1.35;
  font-weight:750;color:#173e49
 }
 .member-home #home .member-output-panel .home-search-status{margin:6px 0 12px;min-height:0}
 .member-home #home .member-output-panel .home-results{width:100%;max-width:none;min-width:0}
 .member-home #home .member-output-panel :is(table,.ofi-answer-grid,.decision-matrix){max-width:100%}
 .member-home #home .member-output-panel table{display:block;width:100%;overflow-x:auto}
 .member-home #home .member-output-panel th,.member-home #home .member-output-panel td{
  font-size:14px;line-height:1.55;vertical-align:top
 }
}


/* Account access belongs to the navigation sidebar on every screen. */
body.member-home #appSidebar{display:flex!important;flex-direction:column!important;overflow-y:auto!important}
body.member-home #appSidebar .member-account-dock{
 display:block!important;position:static!important;inset:auto!important;z-index:auto;
 flex:0 0 auto;margin:auto 12px 16px;padding-top:14px;border-top:1px solid var(--site-line,#dfe7e5);
 max-width:none;order:100
}
body.member-home #appSidebar .member-account-dock>summary{
 display:flex;align-items:center;justify-content:flex-start;min-height:44px;width:100%;
 box-sizing:border-box;padding:10px 12px;cursor:pointer;list-style:none;
 color:var(--site-text,#23434b);background:var(--site-surface,#fff);
 border:1px solid var(--site-line,#cadbd6);border-radius:9px;box-shadow:none;font-weight:650
}
body.member-home #appSidebar .member-account-dock>summary::-webkit-details-marker{display:none}
body.member-home #appSidebar .member-account-dock>summary::after{content:'+';margin-left:auto}
body.member-home #appSidebar .member-account-dock[open]>summary::after{content:'−'}
body.member-home #appSidebar .member-account-menu{
 position:static;display:grid;gap:8px;min-width:0;width:auto;max-width:none;
 padding:10px 0 0;background:transparent;border:0;border-radius:0;box-shadow:none
}
body.member-home #appSidebar .member-account-menu>strong{font-size:12px;color:var(--site-muted,#45635f)}
body.member-home #appSidebar .member-account-menu button{
 display:flex!important;align-items:center;justify-content:center;position:static!important;
 box-sizing:border-box;width:100%!important;min-height:44px;margin:0!important;padding:9px 12px!important;
 border:1px solid var(--site-line,#cadbd6)!important;border-radius:9px!important;
 color:var(--site-text,#23434b)!important;background:var(--site-surface,#fff)!important;font-size:13px!important
}
body.member-home #appSidebar .member-account-menu button[hidden]{display:none!important}
body.member-home #appSidebar .member-account-menu #portalSignupButton{background:#176b60!important;color:#fff!important}
@media(max-width:600px){
 body.member-home .member-header{height:64px!important;flex-wrap:nowrap;gap:8px;padding:0 12px!important}
 body.member-home .member-header nav[aria-label="Account access"]{width:auto}
 body.member-home .app-stage{padding-top:68px!important}
}

/* One desktop/tablet boundary, with no inherited translated or inert sidebar. */
@media(min-width:981px){body.member-home #appSidebar{transform:none!important;max-height:calc(100dvh - 72px)!important}}
@media(max-width:980px){body.member-home #appSidebar{max-height:100dvh!important}}
.member-search-tabs button:focus-visible{outline:3px solid var(--site-text,#176b60);outline-offset:2px}
