/* Shared site sign-off. Navigation, appearance controls, and alignment are
   identical across routes; only the optional scanword changes brand scale. */

html[data-design-system="halde"] .bigfoot{
  width:100%;
  display:grid;
  grid-template-columns:minmax(190px,240px) minmax(0,1fr);
  gap:clamp(40px,6vw,96px);
  align-items:end;
  box-sizing:border-box;
  margin:0;
  padding:clamp(48px,6vw,84px) var(--page-gutter) clamp(36px,4.5vw,64px);
  color:var(--text-primary);
  border-top:1px solid var(--border-default);
  background:var(--brand-soft);
}

html[data-design-system="halde"] .page-resource{
  width:100%;
  display:grid;
  grid-template-columns:minmax(180px,.55fr) minmax(280px,1.45fr) auto;
  gap:clamp(24px,4vw,72px);
  align-items:center;
  box-sizing:border-box;
  padding:clamp(26px,3.2vw,44px) var(--page-gutter);
  color:var(--text-primary);
  border-top:1px solid var(--border-default);
  background:var(--bg-paper);
}

html[data-design-system="halde"] .page-resource > span{
  color:var(--brand-ink);
  font:700 9px/1 var(--font-technical);
  letter-spacing:.12em;
}

html[data-design-system="halde"] .page-resource > div{
  min-width:0;
}

html[data-design-system="halde"] .page-resource > div b{
  display:block;
  font:600 clamp(18px,1.7vw,26px)/1.05 var(--font-editorial);
}

html[data-design-system="halde"] .page-resource > div p{
  max-width:64ch;
  margin:8px 0 0;
  color:var(--text-secondary);
  font:400 13px/1.45 var(--font-editorial);
}

html[data-design-system="halde"] .page-resource > a{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:0 18px;
  color:var(--text-primary);
  border:1px solid var(--border-default);
  font:700 9px/1 var(--font-technical);
  letter-spacing:.09em;
  text-decoration:none;
}

html[data-design-system="halde"] .page-resource > a i{
  color:var(--brand-ink);
  font-style:normal;
}

html[data-design-system="halde"] .page-resource > a:is(:hover,:focus-visible){
  color:var(--text-on-accent);
  border-color:var(--accent);
  background:var(--accent);
  outline:0;
}

html[data-design-system="halde"] .page-resource > a:is(:hover,:focus-visible) i{
  color:inherit;
}

html[data-route-bundle="executive-brief"] .page-resource{
  width:min(1600px,calc(100% - clamp(20px,4.8vw,84px)));
  margin:0 auto clamp(20px,3vw,48px);
  color:#111;
  border:1px solid #cacac6;
  background:#fff;
}

html[data-route-bundle="executive-brief"] .page-resource > span,
html[data-route-bundle="executive-brief"] .page-resource > a i{color:#ff5429}
html[data-route-bundle="executive-brief"] .page-resource > div p{color:#666}
html[data-route-bundle="executive-brief"] .page-resource > a{color:#111;border-color:#cacac6}
html[data-route-bundle="executive-brief"] .page-resource > a:is(:hover,:focus-visible){color:#fff;border-color:#ff5429;background:#ff5429}

html[data-design-system="halde"] .bigfoot .rail{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  padding:0;
}

html[data-design-system="halde"] .bigfoot .rail > .lnk,
html[data-design-system="halde"] .bigfoot .footer-copyright{
  min-height:38px;
  display:flex;
  align-items:center;
  padding:0 2px;
  color:var(--text-secondary);
  border-bottom:1px solid var(--border-default);
  opacity:1;
  text-decoration:none;
}

html[data-design-system="halde"] .bigfoot .rail > .lnk:is(:hover,:focus-visible),
html[data-design-system="halde"] .bigfoot .rail > .lnk[aria-current="page"]{
  color:var(--brand-ink);
}

html[data-design-system="halde"] .bigfoot .footer-copyright{
  color:var(--text-tertiary);
}

html[data-design-system="halde"] .footer-legal{
  display:grid;
  gap:9px;
  margin-top:22px;
}

html[data-design-system="halde"] .footer-legal > span{
  color:var(--text-tertiary);
}

html[data-design-system="halde"] .footer-legal nav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--border-default);
  border-left:1px solid var(--border-default);
}

html[data-design-system="halde"] .footer-legal a{
  min-width:0;
  min-height:38px;
  display:flex;
  align-items:center;
  padding:8px 9px;
  color:var(--text-secondary);
  border-right:1px solid var(--border-default);
  border-bottom:1px solid var(--border-default);
  font:600 8px/1.25 var(--font-technical);
  letter-spacing:.045em;
  text-decoration:none;
  text-transform:uppercase;
}

html[data-design-system="halde"] .footer-legal a:is(:hover,:focus-visible){
  color:var(--text-on-accent);
  background:var(--accent);
  outline:none;
}

html[data-design-system="halde"] .bigfoot .scanword{
  grid-column:2;
  grid-row:1;
  min-width:0;
  max-width:none;
  opacity:.14;
}

html[data-design-system="halde"] .footer-social{
  grid-column:2;
  grid-row:2;
  display:flex;
  justify-self:end;
  align-items:center;
  gap:24px;
  margin-top:28px;
}

html[data-design-system="halde"] .footer-social a{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:var(--text-tertiary);
  text-decoration:none;
}

html[data-design-system="halde"] .footer-social svg{
  width:25px;
  height:25px;
  overflow:visible;
  fill:currentColor;
}

html[data-design-system="halde"] .footer-social a:is(:hover,:focus-visible){
  color:var(--brand-ink);
  outline:1px solid currentColor;
  outline-offset:3px;
}

html[data-design-system="halde"] .theme-switch{
  width:100%;
  display:grid;
  gap:9px;
  margin-top:28px;
}

html[data-design-system="halde"] .theme-switch-options{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:hidden;
  border:1px solid var(--border-default);
  border-radius:9px;
  background:var(--bg-paper);
}

html[data-design-system="halde"] .theme-switch button{
  min-width:0;
  min-height:40px;
  padding:8px 7px;
  color:var(--text-secondary);
  border:0;
  border-radius:0;
  background:transparent;
  font:600 8px/1 var(--font-technical);
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
}

html[data-design-system="halde"] .theme-switch button + button{
  border-left:1px solid var(--border-default);
}

html[data-design-system="halde"] .theme-switch button:is(:hover,:focus-visible){
  color:var(--text-primary);
  background:var(--bg-surface-muted);
}

html[data-design-system="halde"] .theme-switch button[aria-pressed="true"]{
  color:var(--text-on-accent);
  background:var(--accent);
}

@media (max-width:760px){
  html[data-design-system="halde"] .page-resource{
    grid-template-columns:1fr;
    gap:14px;
    padding-block:28px;
  }

  html[data-design-system="halde"] .page-resource > a{
    width:100%;
    justify-content:space-between;
    margin-top:6px;
  }

  html[data-design-system="halde"] .bigfoot{
    grid-template-columns:1fr;
    gap:38px;
    padding-block:42px 36px;
  }

  html[data-design-system="halde"] .bigfoot .rail{
    max-width:320px;
  }

  html[data-design-system="halde"] .bigfoot .scanword{
    grid-column:1;
    grid-row:auto;
    width:100%;
    min-width:0;
  }

  html[data-design-system="halde"] .footer-social{
    grid-column:1;
    grid-row:auto;
    margin-top:-12px;
  }
}

/* On phones, navigation moves into the hamburger menu where every destination
   has a full touch target. The footer keeps only identity and appearance. */
@media (max-width:620px){
  html[data-design-system="halde"] .bigfoot{
    padding-block:30px 32px;
  }

  html[data-design-system="halde"] .bigfoot .rail > .lnk,
  html[data-design-system="halde"] .footer-legal{
    display:none;
  }

  html[data-design-system="halde"] .bigfoot .footer-copyright{
    min-height:44px;
    padding-inline:0;
  }

  html[data-design-system="halde"] .theme-switch{
    margin-top:22px;
  }

  html[data-design-system="halde"] .footer-social{
    gap:18px;
    margin-top:-14px;
  }

  html[data-design-system="halde"] .footer-social a{
    width:44px;
    height:44px;
  }
}
