/* NSP unified site header, 2026-11-08. All content pages share one navigation and cart. */
body.rebrand-approved .topbar.nsp-unified-header {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;
  min-height:84px;padding:12px 0;gap:8px 12px;
  width:min(1100px,calc(100% - 48px));margin-inline:auto;
  background:#f5f3ed;backdrop-filter:none;
}
body.rebrand-approved .topbar.nsp-unified-header .brand {
  flex:0 0 auto;width:auto;max-width:255px;min-width:0;order:1;
  font-size:25.5px;line-height:1.04;letter-spacing:-.025em;
  font-weight:800;text-transform:uppercase;white-space:normal;
}
body.rebrand-approved .topbar.nsp-unified-header .brand-mark {flex:0 0 30px}
body.rebrand-approved .topbar.nsp-unified-header .brand span:not(.brand-mark) {
  display:inline!important;max-width:225px;overflow-wrap:normal
}
body.rebrand-approved .topbar.nsp-unified-header nav {
  display:flex;flex:1 1 auto;min-width:0;flex-wrap:nowrap;
  justify-content:center;align-items:center;gap:clamp(6px,.7vw,12px);
  padding:0;margin:0;order:2
}
body.rebrand-approved .topbar.nsp-unified-header nav a {
  display:inline-block;flex:0 0 auto;font-size:15.4px;
  font-weight:650;line-height:1.25;white-space:nowrap
}
body.rebrand-approved .topbar.nsp-unified-header nav a.is-current {
  color:#87693a;text-decoration:underline;text-underline-offset:6px
}
body.rebrand-approved .topbar.nsp-unified-header .cart-toggle {
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 auto;min-height:38px;padding:9px 12px;margin:0;order:3;
  white-space:nowrap;font-size:13px
}
@media(min-width:1361px) {
  body.rebrand-approved .topbar.nsp-unified-header .nav-toggle {display:none!important}
}
@media(max-width:1360px) {
  body.rebrand-approved .topbar.nsp-unified-header {
    flex-wrap:wrap;gap:8px;padding:12px 0;min-height:72px;
    width:min(1100px,calc(100% - 36px))
  }
  body.rebrand-approved .topbar.nsp-unified-header .brand {font-size:15px;max-width:160px}
  body.rebrand-approved .topbar.nsp-unified-header .nav-toggle {
    display:inline-flex!important;order:3;flex:0 0 44px;width:44px;height:44px;margin:0
  }
  body.rebrand-approved .topbar.nsp-unified-header .cart-toggle {
    margin-left:auto;order:2;min-height:44px
  }
  body.rebrand-approved .topbar.nsp-unified-header nav {display:none!important;order:4;flex:0 0 100%;padding:8px 0 0}
  body.rebrand-approved .topbar.nsp-unified-header nav.is-open {
    display:flex!important;flex-direction:column;align-items:stretch;gap:0
  }
  body.rebrand-approved .topbar.nsp-unified-header nav a,
  body.home-v3 .topbar.nsp-unified-header nav a {
    display:flex;min-height:44px;align-items:center;font-size:15px;padding:10px 0;
    border-bottom:1px solid var(--line)
  }
}
@media(max-width:390px) {
  body.rebrand-approved .topbar.nsp-unified-header .brand {max-width:130px;font-size:13px}
  body.rebrand-approved .topbar.nsp-unified-header .cart-toggle {padding:7px;font-size:12px}
}

/* Shared content grid: align site sections to the 1100px site header.
   Full-bleed section backgrounds stay full viewport; only content inset changes.
   Long-form article copy remains deliberately narrower for readability. */
@media (min-width: 1200px) {
  body.rebrand-approved .section:not(.article-page) {
    padding-left: max(24px, calc((100% - 1100px) / 2));
    padding-right: max(24px, calc((100% - 1100px) / 2));
  }
  body.rebrand-approved.home-v3 .home-opening {
    padding-left: max(24px, calc((100% - 1100px) / 2));
    padding-right: max(24px, calc((100% - 1100px) / 2));
  }
  body.rebrand-approved.home-v3 #situations {
    padding-left: max(24px, calc((100% - 1100px) / 2));
    padding-right: max(24px, calc((100% - 1100px) / 2));
  }
  body.rebrand-approved main.dpage,
  body.rebrand-approved main.calculator-page {
    width: min(1100px, calc(100% - 48px));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}
