/* AgAu.ai RC17 final responsive and layout safety layer. Loaded last. */
html,body{max-width:100%;overflow-x:hidden}
body.agau-exact-shell-page main,body.agau-exact-shell-page section,body.agau-exact-shell-page article,body.agau-exact-shell-page div{min-width:0}
body.agau-exact-shell-page img,body.agau-exact-shell-page svg,body.agau-exact-shell-page video,body.agau-exact-shell-page canvas{max-width:100%}
body.agau-exact-shell-page table{max-width:100%}
body.agau-exact-shell-page :is(.table-wrap,.fed-table-wrap,.heat-table,.holders-table-wrap,.xaut-table-wrap){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.agau-exact-shell-page :is(input,select,textarea,button){max-width:100%;font:inherit}
body.agau-exact-shell-page :is(h1,h2,h3,h4,p,li,td,th){overflow-wrap:anywhere}

/* Shared shell spacing: no artificial blank strip below the fixed header. */
body.agau-exact-shell-page:not(.agau-exact-shell-home)>main{margin-top:0!important}
body.agau-exact-shell-page:not(.agau-exact-shell-home)>.page-subnav{scrollbar-width:thin}

/* Fed Intelligence final hero geometry. */
body[data-qm-source="fed-intelligence"]{padding-top:92px!important}
body[data-qm-source="fed-intelligence"] .fed-main{padding-top:16px!important}
body[data-qm-source="fed-intelligence"] .fed-hero{margin-top:0!important}
body[data-qm-source="fed-intelligence"] .fed-hero-art{isolation:isolate}
body[data-qm-source="fed-intelligence"] .fed-next-card{z-index:3}

@media(max-width:980px){
  body.agau-exact-shell-page :is(.live-content-grid,.fed-two-col,.fed-expectations-grid,.holders-grid,.xaut-grid,.research-grid,.platform-grid){grid-template-columns:1fr!important}
  body.agau-exact-shell-page :is(.fed-impact-grid,.fed-method,.fed-prob-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:720px){
  body.agau-exact-shell-page:not(.agau-exact-shell-home){padding-top:82px!important}
  body.agau-exact-shell-page main{width:100%!important;max-width:100%!important}
  body.agau-exact-shell-page :is(.live-page-shell,.dashboard-wrap,.page-shell,.agau-standard-main,.ugr-main,.agau-heatdash,.fed-shell){width:calc(100% - 14px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  body.agau-exact-shell-page :is(.section,.dashboard-section,.fed-section,.heat-panel,.macro-preview-card,.agau-shell,.holder-card,.xaut-card){padding:20px 16px!important;border-radius:18px!important}
  body.agau-exact-shell-page :is(.qm-page-hero,.dashboard-hero,.agau-standard-hero,.live-page-hero,.fed-hero){padding:23px 18px!important;border-radius:19px!important;gap:18px!important}
  body.agau-exact-shell-page :is(h1,.fed-hero h1){font-size:clamp(36px,11.5vw,46px)!important;line-height:1.02!important;letter-spacing:-.045em!important}
  body.agau-exact-shell-page h2{font-size:clamp(25px,8vw,34px)!important;line-height:1.08!important}
  body.agau-exact-shell-page p,body.agau-exact-shell-page li{font-size:15px;line-height:1.62}
  body.agau-exact-shell-page :is(.market-grid,.live-metrics,.fed-prob-grid,.fed-impact-grid,.fed-method,.fed-change-grid,.fed-two-list){grid-template-columns:1fr!important}
  body.agau-exact-shell-page .page-subnav{width:calc(100% - 14px)!important;margin-left:auto!important;margin-right:auto!important;overflow-x:auto!important}
  body.agau-exact-shell-page .page-subnav-inner{width:max-content!important;min-width:100%!important}
  body.agau-exact-shell-page .fed-hero-art>img{height:auto!important;min-height:0!important;aspect-ratio:4/3;object-fit:cover!important}
  body.agau-exact-shell-page .fed-next-card{position:relative!important;left:auto!important;bottom:auto!important;width:calc(100% - 20px)!important;min-width:0!important;margin:-76px 10px 10px!important;padding:16px 17px!important}
  body.agau-exact-shell-page .fed-next-card strong{font-size:24px!important}
  body.agau-exact-shell-page .fed-item{grid-template-columns:1fr!important}
  body.agau-exact-shell-page .fed-item time,body.agau-exact-shell-page .fed-item>a{grid-column:auto!important}
  body.agau-exact-shell-page .fed-table{min-width:640px}
  body.agau-exact-shell-page .agau-shell-footer{width:calc(100% - 14px)!important;margin:36px auto 7px!important}
}

@media(max-width:420px){
  body.agau-exact-shell-page :is(.live-page-shell,.dashboard-wrap,.page-shell,.agau-standard-main,.ugr-main,.agau-heatdash,.fed-shell){width:calc(100% - 10px)!important}
  body.agau-exact-shell-page :is(.section,.dashboard-section,.fed-section,.heat-panel,.macro-preview-card,.agau-shell,.holder-card,.xaut-card){padding:18px 14px!important}
  body.agau-exact-shell-page :is(.qm-page-hero,.dashboard-hero,.agau-standard-hero,.live-page-hero,.fed-hero){padding:21px 16px!important}
  body.agau-exact-shell-page .fed-next-card{width:calc(100% - 14px)!important;margin:-68px 7px 7px!important}
}
