/* 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(--brand);
  background:var(--bg-page);
}

html[data-design-system="halde"] .page-resource{
  width:100%;
  display:grid;
  grid-template-columns:auto;
  justify-content:end;
  gap:8px;
  align-items:center;
  box-sizing:border-box;
  padding:20px 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(--text-secondary);
  font:400 11px/1.4 var(--font-editorial);
  text-align:center;
}

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 > 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-agentic{
  min-height:48px;
  display:grid;
  grid-template-columns:34px 1fr auto;
  gap:10px;
  align-items:center;
  margin-top:14px;
  padding:7px 9px 7px 7px;
  color:var(--text-primary);
  border:1px solid var(--border-default);
  background:var(--bg-paper);
  text-decoration:none;
}

html[data-design-system="halde"] .footer-agentic svg{
  width:34px;
  height:34px;
  overflow:visible;
  transform:rotate(-90deg);
}

html[data-design-system="halde"] .footer-agentic circle{
  fill:none;
  stroke-width:8;
}

html[data-design-system="halde"] .footer-agentic-track{stroke:var(--border-default)}

html[data-design-system="halde"] .footer-agentic-score{
  stroke:currentColor;
  stroke-dasharray:99 1;
}

html[data-design-system="halde"] .footer-agentic span{
  min-width:0;
  display:grid;
  gap:2px;
}

html[data-design-system="halde"] .footer-agentic b{font:650 15px/1 var(--font-editorial)}

html[data-design-system="halde"] .footer-agentic b small{
  color:var(--text-tertiary);
  font:500 9px/1 var(--font-technical);
}

html[data-design-system="halde"] .footer-agentic em,
html[data-design-system="halde"] .footer-agentic i{
  color:var(--text-tertiary);
  font:700 7px/1 var(--font-technical);
  font-style:normal;
  letter-spacing:.075em;
}

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

html[data-design-system="halde"] .footer-agentic:is(:hover,:focus-visible) :is(small,em,i){color:inherit}

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"] .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-agentic{
    width:min(100%,240px);
    box-sizing:border-box;
  }

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

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


/* Bar footer, mirroring the top bar */
html[data-design-system="halde"] .bigfoot{display:flex;flex-direction:column;gap:0;padding:clamp(28px,3vw,40px) 0 0;border-top:1px solid var(--border-default)}
/* The mark scales to a band, so the sign-off never reads as an empty screen. */
html[data-design-system="halde"] .bigfoot .scanword{flex:0 0 auto;box-sizing:border-box;width:min(100%,1180px);height:clamp(150px,22vw,300px);margin:0 auto;padding:0 24px clamp(20px,3vw,36px)}
html[data-design-system="halde"] .footer-bar{width:min(100%,1180px);min-height:60px;display:flex;align-items:center;gap:24px;box-sizing:border-box;margin:0 auto;padding:0 24px;border-top:1px solid var(--border-default)}
html[data-design-system="halde"] .footer-brand{display:inline-flex;width:92px;height:26px;flex:0 0 auto}
html[data-design-system="halde"] .footer-brand img{width:92px!important;height:26px!important;max-width:none;object-fit:cover;object-position:center}
html[data-design-system="halde"] .footer-brand .mast-brand-logo--dark{display:none}
html[data-design-system="halde"][data-resolved-theme="dark"] .footer-brand .mast-brand-logo--light{display:none}
html[data-design-system="halde"][data-resolved-theme="dark"] .footer-brand .mast-brand-logo--dark{display:inline}
html[data-design-system="halde"] .footer-nav{flex:1 1 auto;display:flex;justify-content:center;align-items:center;min-height:60px}
html[data-design-system="halde"] .footer-nav a{display:inline-flex;align-items:center;height:60px;padding:0 12px;color:var(--text-primary);font:400 13px/1 var(--font-editorial);letter-spacing:0;text-decoration:none;text-transform:none}
html[data-design-system="halde"] .footer-nav a:is(:hover,:focus-visible){box-shadow:inset 0 -1px 0 var(--text-primary);outline:none}
html[data-design-system="halde"] .footer-utils{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
html[data-design-system="halde"] .footer-utils .mast-social{height:30px;display:flex;flex-direction:row;align-items:center;gap:2px;padding:0 8px;border:0;border-inline:1px solid var(--border-default)}
html[data-design-system="halde"] .footer-utils .mast-social a{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-primary)}
html[data-design-system="halde"] .footer-utils .mast-social svg{width:15px;height:15px;fill:currentColor}
html[data-design-system="halde"] .footer-utils .footer-agentic{min-height:30px;height:30px;padding:0 10px;gap:8px;grid-template-columns:20px auto auto;border:1px solid var(--border-default);border-radius:6px;background:transparent}
html[data-design-system="halde"] .footer-utils .footer-agentic svg{width:20px;height:20px}
html[data-design-system="halde"] .footer-utils .footer-agentic b{font-size:12px}
html[data-design-system="halde"] .footer-utils .footer-agentic em{display:none}
html[data-design-system="halde"] .footer-meta{width:min(100%,1180px);min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;margin:0 auto;padding:0 24px;border-top:1px solid var(--border-default)}
html[data-design-system="halde"] .footer-meta .footer-legal{display:flex;align-items:center;gap:14px;margin:0;padding:0;border:0}
html[data-design-system="halde"] .footer-meta .footer-legal>span{display:none}
html[data-design-system="halde"] .footer-meta .footer-legal nav{display:flex;gap:0;border:0}
html[data-design-system="halde"] .footer-meta .footer-legal a{min-height:0;padding:0 12px 0 0;color:var(--text-tertiary);border:0;font:400 12px/1 var(--font-editorial);text-transform:none;letter-spacing:0}
html[data-design-system="halde"] .footer-meta .footer-legal a:is(:hover,:focus-visible){color:var(--text-primary)}
html[data-design-system="halde"] .footer-meta .footer-copyright{min-height:0;padding:0;border:0;color:var(--text-tertiary);font-size:10px}
@media (max-width:860px){
  html[data-design-system="halde"] .footer-bar{flex-wrap:wrap;row-gap:0;padding-block:12px}
  html[data-design-system="halde"] .footer-nav{order:3;width:100%;justify-content:flex-start;flex-wrap:wrap;min-height:0}
  html[data-design-system="halde"] .footer-nav a{height:40px;padding:0 12px 0 0}
  html[data-design-system="halde"] .footer-utils{margin-left:auto}
  html[data-design-system="halde"] .footer-meta{flex-direction:column;align-items:flex-start;gap:8px;padding-block:12px}
}

html[data-design-system="halde"] .footer-meta .footer-legal a,
html[data-design-system="halde"] .footer-meta .footer-legal a[aria-current="page"]{background:transparent!important;color:var(--text-tertiary)!important;border:0!important;text-decoration:none}
html[data-design-system="halde"] .footer-meta .footer-legal a:is(:hover,:focus-visible){background:transparent!important;color:var(--text-primary)!important;text-decoration:underline;text-underline-offset:3px;outline:none}
html[data-design-system="halde"] .footer-meta .footer-legal a[aria-current="page"]{color:var(--text-primary)!important;text-decoration:underline;text-underline-offset:3px}
