/* FRBM UI v1.4.1 — scoped to the public interactive homepage.
   The hero link is server-rendered and works without JavaScript.
   Header actions use the existing DOM integration, including administrator previews. */
body.frbm-public-dashboard .frbm-demo-header-actions{display:none}
body.frbm-public-dashboard .guest-hero-actions>[data-frbm-demo-link]{gap:7px}
body.frbm-public-dashboard .site-header .frbm-demo-header-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;min-width:0;
}
body.frbm-public-dashboard .frbm-demo-header-actions a{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:10px 13px;border:1px solid #176b4d;border-radius:11px;
  font-family:inherit;font-size:.81rem;font-weight:800;line-height:1.25;
  text-decoration:none;text-align:center;white-space:nowrap;
}
body.frbm-public-dashboard .frbm-demo-header-primary{background:#176b4d;color:#fff}
body.frbm-public-dashboard .frbm-demo-header-support{background:#fff;color:#0d4f39;border-color:#cfdfd6!important}
body.frbm-public-dashboard .frbm-demo-header-primary:hover{background:#0d4f39}
body.frbm-public-dashboard .frbm-demo-header-support:hover{background:#eaf6f0}
body.frbm-public-dashboard .frbm-demo-header-actions a:focus-visible{outline:3px solid #83bba4;outline-offset:3px}
/* Keep the question/needs intake, comparison and actions in one wide-screen row. */
@media(min-width:1101px){
 body.frbm-public-dashboard .site-header .header-inner{gap:10px!important}
 body.frbm-public-dashboard .site-header .frbm-advisor-starter{min-width:140px;flex:1 1 360px}
 body.frbm-public-dashboard .site-header .frbm-search-header{flex:0 0 auto;min-width:0;gap:10px}
 body.frbm-public-dashboard .site-header .frbm-search-comparison{font-size:.73rem}
}
/* Narrow screens keep logo + Demo/Support + Account on the first header row.
   The retained business-needs question continues on its responsive row. */
@media(max-width:1100px){
 body.frbm-public-dashboard .site-header .header-inner{flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important}
 body.frbm-public-dashboard .site-header .brand-logo-link{order:0;margin-right:auto;flex:0 1 auto}
 body.frbm-public-dashboard .site-header .frbm-demo-header-actions{order:1;flex:0 0 auto}
 body.frbm-public-dashboard .site-header .frbm-account-menu{order:2}
 body.frbm-public-dashboard .site-header .frbm-advisor-starter{order:3;flex-basis:100%}
 body.frbm-public-dashboard .site-header .frbm-search-header{order:4;flex-basis:100%}
}
@media(max-width:600px){
 body.frbm-public-dashboard .site-header .header-inner{column-gap:6px!important}
 body.frbm-public-dashboard .site-header .brand-logo-link{max-width:100px}
 body.frbm-public-dashboard .site-header .header-brand-logo{width:100px!important;max-width:100%!important;height:auto!important}
 body.frbm-public-dashboard .site-header .frbm-demo-header-actions{gap:6px}
 body.frbm-public-dashboard .frbm-demo-header-actions a{min-height:40px;padding:8px;font-size:.7rem}
 body.frbm-public-dashboard .frbm-demo-header-support{white-space:normal!important;max-width:90px}
}
@media(max-width:360px){
 body.frbm-public-dashboard .site-header .brand-logo-link{max-width:72px}
 body.frbm-public-dashboard .frbm-demo-header-actions a{font-size:.65rem;padding:7px 6px}
 body.frbm-public-dashboard .frbm-demo-header-support{max-width:78px}
 body.frbm-public-dashboard .site-header .frbm-account-menu>summary{gap:0;padding:4px}
 body.frbm-public-dashboard .site-header .frbm-account-chevron{display:none}
}

/* Do not reserve an empty row when comparison is disabled. */
body.frbm-public-dashboard .site-header .frbm-search-header:not(:has(.frbm-search-comparison)){display:none!important}
