/* Shared header components. Zero-specificity page scopes preserve existing variants. */
:where(html[data-site-page="buyers-vs-sellers-market"], html[data-site-page="home"], html[data-site-page="housing-affordability"], html[data-site-page="minimum-wage"], html[data-site-page="mortgage-rates-over-time"], html[data-site-page="prices"], html[data-site-page="rent-vs-buy"], html[data-site-page="rmd-calculator"], html[data-site-page="social-security"]) .page-tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 18px; }
:where(html[data-site-page="sp-500-growth"], html[data-site-page="stack-up"]) .page-tools { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:0 0 18px; }
:where(html[data-site-page="home"]) .page-logo { height: 122px; width: auto; display: block; }
:where(html[data-site-page="sp-500-growth"]) .page-logo { height:81px; width:auto; display:block; }
:where(html[data-site-page="buyers-vs-sellers-market"], html[data-site-page="housing-affordability"], html[data-site-page="minimum-wage"], html[data-site-page="mortgage-rates-over-time"], html[data-site-page="prices"], html[data-site-page="rent-vs-buy"], html[data-site-page="rmd-calculator"], html[data-site-page="social-security"], html[data-site-page="stack-up"]) .page-logo { height: 81px; width: auto; display: block; }
@media (max-width: 560px) {
:where(html[data-site-page="home"]) .page-logo { height: 99px; }
}
:where(html[data-site-page="buyers-vs-sellers-market"], html[data-site-page="housing-affordability"], html[data-site-page="minimum-wage"], html[data-site-page="mortgage-rates-over-time"], html[data-site-page="prices"], html[data-site-page="rent-vs-buy"], html[data-site-page="rmd-calculator"], html[data-site-page="social-security"]) .page-logo-link { display: block; border-radius: 8px; }
:where(html[data-site-page="sp-500-growth"], html[data-site-page="stack-up"]) .page-logo-link { display:block; border-radius:8px; }
:where(html[data-site-page="minimum-wage"], html[data-site-page="prices"], html[data-site-page="rmd-calculator"], html[data-site-page="social-security"]) .page-logo-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(html[data-site-page="housing-affordability"], html[data-site-page="mortgage-rates-over-time"], html[data-site-page="rent-vs-buy"]) .page-logo-link:focus-visible { outline: 2px solid var(--c30); outline-offset: 3px; }
:where(html[data-site-page="buyers-vs-sellers-market"]) .page-logo-link:focus-visible { outline: 2px solid var(--buyer); outline-offset: 3px; }
:where(html[data-site-page="sp-500-growth"]) .page-logo-link:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
:where(html[data-site-page="stack-up"]) .page-logo-link:focus-visible { outline:2px solid var(--accent, #2563eb); outline-offset:3px; }
@media (max-width: 560px) {
:where(html[data-site-page="buyers-vs-sellers-market"], html[data-site-page="housing-affordability"], html[data-site-page="minimum-wage"], html[data-site-page="mortgage-rates-over-time"], html[data-site-page="prices"], html[data-site-page="rent-vs-buy"], html[data-site-page="rmd-calculator"], html[data-site-page="social-security"]) .page-logo { height: 66px; }
}
@media (max-width:560px) {
:where(html[data-site-page="sp-500-growth"], html[data-site-page="stack-up"]) .page-logo { height:66px; }
}
/* Shared header navigation: Home directly above Settings. */
.page-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 0 auto; }
body .page-actions > .home-btn, body .page-actions > .settings-btn {
  box-sizing: border-box; appearance: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; min-height: 36px; margin: 0;
  border: 1px solid var(--site-line, #dde2dc); border-radius: 999px;
  padding: 7px 13px; background: var(--site-surface, #fff);
  color: var(--site-muted, #48554d); box-shadow: var(--site-shadow);
  font: 600 15px/1.3 "IBM Plex Sans", system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.page-actions > .home-btn svg, .page-actions > .settings-btn svg { width: 15px; height: 15px; flex: none; }
body .page-actions > .home-btn:hover, body .page-actions > .settings-btn:hover { color: var(--site-primary); border-color: var(--site-primary); }
body .page-actions > .home-btn:focus-visible, body .page-actions > .settings-btn:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 3px; }
.info-page-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.info-page-tools .info-page__logo-link { margin-bottom: 0; }
