/* Site header, mobile menu and footer for the budget pages. Copied from the home page so the budget section
   matches the rest of inwestout.com. The site's colour variables are scoped here so they do not change the
   budget pages' own palette. */
.header, .mobile-nav, .footer {
  --border:#d1daf5; --text:#0a0a0a; --text2:#1e293b; --text3:#64748b; --blue:#2563eb; --blue-dark:#1d4ed8; --blue-bg:#eff3fe; --surface:#f0f4ff;
  font-family:'Source Sans 3',system-ui,-apple-system,sans-serif; line-height:1.5; -webkit-font-smoothing:antialiased;
}
.header{background:rgba(255,255,255,0.97);border-bottom:1px solid var(--border);padding:0;position:sticky;top:0;z-index:100;backdrop-filter:blur(12px);}
.header-inner{max-width:1280px;margin:0 auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;height:60px;gap:16px;}
.header .nav{display:flex;align-items:center;gap:4px;}
.header .nav-link{font-size:13px;color:var(--text3);text-decoration:none;padding:6px 12px;border-radius:6px;transition:all 0.15s;font-weight:500;}
.header .nav-link:hover{color:var(--text);background:var(--surface);}
.header .nav-link[aria-current="page"]{color:var(--text);font-weight:700;}
.header .nav-cta{background:var(--blue)!important;color:#fff!important;font-weight:600;border-radius:6px;padding:7px 16px;font-size:13px;letter-spacing:-0.1px;}
.header .nav-cta:hover{background:var(--blue-dark)!important;color:#fff!important;}
.nav-hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px;flex-shrink:0;}
.nav-hamburger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .2s;}
.mobile-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--border);padding:8px 16px 12px;flex-direction:column;gap:2px;z-index:99;box-shadow:0 4px 12px rgba(0,0,0,0.08);}
.mobile-nav.open{display:flex;}
.mobile-nav a{font-size:14px;color:var(--text2);text-decoration:none;padding:10px 8px;border-radius:6px;font-weight:500;}
.mobile-nav a:hover{background:var(--surface);color:var(--text);}
.mobile-nav .mn-cta{background:var(--text);color:#fff!important;text-align:center;margin-top:4px;font-weight:700;}
.footer{background:#0a0a0a;margin-top:0;padding:0;}
.footer-brand{max-width:1280px;margin:0 auto;padding:48px 32px 0;}
.footer-brand-name{font-family:'Playfair Display',Georgia,serif;font-size:76px;font-weight:700;letter-spacing:-3px;color:#ffffff;line-height:1;margin-bottom:6px;}
.footer-meta{font-size:13px;color:rgba(255,255,255,0.45);padding-bottom:24px;}
.footer-inner{max-width:1280px;margin:0 auto;padding:20px 32px 32px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;font-size:12px;color:rgba(255,255,255,0.5);border-top:1px solid rgba(255,255,255,0.1);}
.footer-inner a{color:rgba(255,255,255,0.55);text-decoration:none;}
.footer-inner a:hover{color:#fff;}
.footer-inner strong{color:rgba(255,255,255,0.8);}
.footer-links{display:flex;gap:16px;flex-wrap:wrap;}
/* Budget section menu, under the site header */
.subnav{border-bottom:1px solid #151515;background:#fff;}
.subnav .wrap{display:flex;gap:20px;align-items:center;overflow-x:auto;white-space:nowrap;padding-top:9px;padding-bottom:9px;max-width:1080px;margin:0 auto;padding-left:16px;padding-right:16px;}
.subnav a{font-size:14px;color:#151515;text-decoration:underline;text-underline-offset:3px;}
.subnav a[aria-current="page"]{font-weight:700;text-decoration:none;}
.subnav .lang{margin-left:auto;flex-shrink:0;position:sticky;right:0;background:#fff;box-shadow:-10px 0 8px #fff;}
.pagefoot{padding:22px 16px 40px;font-size:13.5px;}
.pagefoot p{max-width:80ch;margin:0 0 8px;}
@media(max-width:700px){.header-inner{padding:0 16px;}.footer-brand-name{font-size:52px;}}
@media(max-width:480px){.header .nav{display:none;}.nav-hamburger{display:flex;}.header{position:relative;}.footer-inner{flex-direction:column;gap:12px;}.footer-brand-name{font-size:40px;letter-spacing:-2px;}}
.intro{padding-left:16px !important;padding-right:16px !important;}
@media (min-width:700px){.subnav .wrap{flex-wrap:wrap;overflow-x:visible;row-gap:6px}.subnav .lang{position:static;box-shadow:none}}
