/* Shared navigation for Finance Tools and every Budget view. */
.header {
  height: auto;
  min-height: 84px;
  padding: 14px max(3%, calc((100% - 1440px) / 2));
  gap: 20px;
  background: #eaf1ee;
  border-bottom-color: #bdcfc7;
  box-shadow: 0 2px 8px #102b3808;
}
.header .site-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-size: 14px;
}
.header .site-navigation a {
  color: #173c36;
  font-weight: 650;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
}
.header .site-navigation a:hover {
  color: #073f33;
  background: #dae8e1;
}
.header .site-navigation a[aria-current] {
  color: #074c3e;
  background: #d5e5dc;
  border-bottom-color: #16745b;
}
.header a:focus-visible, .header button:focus-visible, .header select:focus-visible {
  outline: 3px solid #146750;
  outline-offset: 3px;
}
.header .switches { flex-shrink: 0; align-items: center; }
.header .brand small { color: #405b53; }
html { scroll-padding-top: 112px; }
@media (max-width: 1150px) {
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }
  .header .site-navigation { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .header .switches { grid-column: 2; grid-row: 1; }
  html { scroll-padding-top: 175px; }
}
@media (max-width: 620px) {
  .header { padding: 12px 10px 8px; gap: 10px 8px; }
  .header .brand { gap: 8px; font-size: 14px; }
  .header .brand small { font-size: 8px; letter-spacing: .4px; }
  .header .mark { width: 36px; height: 36px; border-radius: 10px; font-size: 24px; flex-shrink: 0; }
  .header .switches { gap: 5px; }
  .header .switches select, .header .smallbtn { padding: 8px; font-size: 12px; }
  .header .site-navigation { gap: 2px 6px; }
  .header .site-navigation a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 390px) {
  .header .brand small { display: none; }
  .header #account-link { font-size: 12px; }
}
@media print {
  .header { display: none !important; }
}

/* Account and one Plus subscription are shared by all pages. */
.header {display:grid;grid-template-columns:auto 1fr auto auto;}
.header .account-actions {display:flex;align-items:center;gap:8px;white-space:nowrap;}
.upgrade-link {display:inline-block;background:#126b54;color:white;border:1px solid #126b54;border-radius:9px;padding:9px 12px;font-weight:700;font-size:14px;}
.upgrade-link:hover {background:#0c5744;}
@media(max-width:1150px){
 .header{grid-template-columns:minmax(0,1fr) auto auto;gap:10px 14px;}
 .header .site-navigation{grid-row:2;grid-column:1/-1;}
 .header .switches{grid-row:1;grid-column:2;}
 .header .account-actions{grid-row:1;grid-column:3;}
}
@media(max-width:620px){
 .header{grid-template-columns:minmax(0,1fr) auto;}
 .header .site-navigation{grid-row:2;}
 .header .account-actions{grid-row:3;grid-column:1/-1;justify-content:center;}
 .header .account-actions a{padding:7px 12px;font-size:12px;}
 html{scroll-padding-top:215px;}
}
@media print{.header{display:none!important}}
