/* White header + footer on every page, matching cm-advisory.net */
:root{--chrome-bg:#fff;--chrome-line:#ded7cd;--chrome-ink:#0d3438;--chrome-muted:#53665f}

/* ---------- headers ---------- */
header.site-header,
header.inner-nav,
body > header:not([class]){
  background:#fff !important;
  color:var(--chrome-ink) !important;
  border-top:0 !important;
  border-bottom:1px solid var(--chrome-line) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
header.site-header a,
header.inner-nav a,
header.site-header nav a,
header.inner-nav nav a,
body > header:not([class]) a{color:var(--chrome-ink) !important}
header.site-header small,
header.inner-nav small,
header.site-header nav a small,
header.inner-nav nav a small{color:var(--chrome-muted) !important}
body > header:not([class]) a.back{color:var(--chrome-muted) !important}
header.site-header .language-toggle,
header.inner-nav .language-toggle{
  background:transparent !important;color:var(--chrome-ink) !important;border-color:var(--chrome-line) !important}
header.site-header .menu i{background:var(--chrome-ink) !important}

/* ---------- footers ---------- */
footer.new-footer,
footer.inner-foot,
footer.build-foot,
footer.cm-footer,
body > footer:not([class]){
  background:#fff !important;
  color:var(--chrome-ink) !important;
  border-top:1px solid var(--chrome-line) !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
footer.new-footer *,
footer.inner-foot *,
footer.build-foot *,
footer.cm-footer *,
body > footer:not([class]) *{color:var(--chrome-ink) !important}
footer.new-footer a:hover,
footer.inner-foot a:hover,
footer.build-foot a:hover,
body > footer:not([class]) a:hover{color:#987237 !important}
/* social marks keep their own fill */
footer.new-footer .linkedin-mark svg,
footer.new-footer .footer-social svg{fill:currentColor}

/* ---------- Build page: header runs edge to edge (same bleed as its footer) ---------- */
.build-story-hub > header.inner-nav{margin-left:-4.35% !important;margin-right:-4.35% !important}

/* ---------- Homepage footer: link list in two columns ---------- */
footer.new-footer > div:nth-child(2){
  display:grid !important;
  grid-template-columns:auto auto;
  grid-auto-flow:column;
  column-gap:56px;
  row-gap:12px;
  align-content:start;
  justify-content:start;
}
footer.new-footer > div:nth-child(2) > a[href="/"]{grid-column:1;grid-row:1}
footer.new-footer > div:nth-child(2) > a[href^="/team"]{grid-column:1;grid-row:2}
footer.new-footer > div:nth-child(2) > a[href^="/predict"]{grid-column:2;grid-row:1}
footer.new-footer > div:nth-child(2) > a[href^="/select"]{grid-column:2;grid-row:2}
footer.new-footer > div:nth-child(2) > a[href^="/build"]{grid-column:2;grid-row:3}
footer.new-footer > div:nth-child(2) > a[href^="/partner"]{grid-column:2;grid-row:4}
@media(min-width:900px){
  footer.new-footer{grid-template-columns:1fr auto 1fr !important;column-gap:72px !important}
  footer.new-footer > div:nth-child(2){justify-self:center !important}
  footer.new-footer > div:nth-child(3){justify-self:end !important;align-items:flex-start}
}
