/* Shared narrow-screen corrections; desktop layout retains its existing styles. */
#dc-root,#dc-root>.sc-host{height:auto!important;min-height:100vh}
.home-mobile-menu{display:none}
.home-mobile-menu summary{list-style:none;box-sizing:border-box;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #e8e8e5;border-radius:999px;cursor:pointer;color:#0b0b0c;background:#f7f7f5}
.home-mobile-menu summary::-webkit-details-marker{display:none}
.home-mobile-menu summary:focus-visible{outline:3px solid #2f45ff;outline-offset:3px}
.home-mobile-links{position:absolute;top:100%;left:0;right:0;box-sizing:border-box;max-height:calc(100dvh - 65px);overflow-y:auto;padding:16px 24px 24px;background:#f7f7f5;border-bottom:1px solid #e8e8e5;box-shadow:0 20px 40px -30px #0b0b0c;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
.home-mobile-links a{min-height:44px;display:flex;align-items:center;text-decoration:none;font-size:15px;font-weight:500}
@media(max-width:1100px){
  .home-desktop-nav{display:none!important}
  .home-mobile-menu{display:block}
  .home-header-row{gap:24px!important}
}
@media(max-width:800px){
  .mobile-nav{max-height:calc(100dvh - 65px);overflow-y:auto;overscroll-behavior:contain}
  .mobile-nav a{min-height:44px;display:flex;align-items:center}
  .mobile-toggle{min-width:44px;min-height:44px;flex:none}
}
@media(max-width:700px){
  #top{padding-top:56px!important}
  #how,#simulate,#vaults,#risks{padding-top:88px!important}
  #app{margin-top:88px!important}
  #app>div{padding-top:80px!important;padding-bottom:80px!important}
  #access{padding-top:96px!important;padding-bottom:88px!important}
  .home-hero-art{height:clamp(280px,70vw,380px)!important;margin-top:40px!important}
  .home-hero-zone{padding:18px 10px!important;min-width:0}
  .home-hero-zone>div:nth-child(2){font-size:16px!important}
  .home-hero-zone>div:nth-child(3){font-size:12px!important;line-height:1.4}
  .home-flow-diagram{padding:28px 24px!important}
  .home-flow-grid{grid-template-columns:minmax(0,1fr)!important;gap:24px}
  .home-flow-track{left:50%!important;right:auto!important;top:0!important;bottom:0;width:1px;height:auto!important}
  .home-flow-progress{display:none}
  .home-flow-node{padding:0!important}
  .home-flow-node>div{max-width:none!important;overflow-wrap:normal!important}
  .home-flow-caption{padding:24px!important}
  .home-access-form{box-sizing:border-box;max-width:100%!important}
}
@media(max-width:520px){
  .home-header-row{padding-inline:16px!important;gap:12px!important}
  .home-brand{gap:8px!important}
  .home-brand span{font-size:17px!important}
  .home-brand svg{width:30px}
  .home-header-actions{gap:8px!important}
  .home-access-cta{padding-inline:12px!important;font-size:13px!important;height:44px!important}
  #top,#how,#simulate,#vaults,#risks,#access{padding-inline:20px!important}
  #app>div{padding-inline:20px!important}
  .home-simulator-inputs{padding:24px!important}
  .home-slider-label{flex-wrap:wrap;gap:4px 12px!important}
  .home-slider-track{height:44px!important}
  .home-slider-track>div{margin-top:10px}
  .home-ledger-row{grid-template-columns:28px minmax(0,1fr) auto!important}
  .home-ledger-row>div{min-width:0}
  .home-ledger-row>div:nth-child(2),.home-ledger-row>div:nth-child(3){padding:14px 10px!important}
  .home-ledger-row>div:nth-child(3){font-size:16px!important}
  .home-ledger-total>div:nth-child(3){font-size:24px!important}
  .home-year-chart{padding:24px 20px!important}
  .home-year-chart>div{column-gap:3px!important}
  .palette-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .swatch{min-width:0}
  .copy-color{flex-wrap:wrap;row-gap:4px}
  .palette-secondary h3,.palette-neutrals h3{overflow-wrap:anywhere}
  .doc-body,.form-panel,.hero,.report-aside{overflow-wrap:anywhere}
  .acv-cookie-notice{max-height:calc(100dvh - 32px);overflow-y:auto;bottom:max(16px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){
  .home-header-row{padding-inline:12px!important;gap:8px!important}
  .home-brand{gap:6px!important}
  .home-brand svg{width:28px}
  .home-brand span{font-size:16px!important}
  .home-header-actions{gap:6px!important}
  .home-access-cta{font-size:12px!important;padding-inline:10px!important}
  .home-mobile-menu summary{width:40px;height:44px}
  .home-ledger-row{grid-template-columns:24px minmax(0,1fr)!important}
  .home-ledger-row>div:nth-child(3){grid-column:2;justify-content:flex-start!important;text-align:left!important;padding-top:0!important}
  .home-ledger-row:first-child{grid-template-columns:24px minmax(0,1fr) auto!important}
  .home-ledger-row:first-child>div:nth-child(3){grid-column:3;padding-top:14px!important;text-align:right!important}
}
