/* V7 page chrome on top of the current (2024) header and footer. Loaded only on V7 pages. */

/* ---- header: Single Brain + Work with us pair (prototype .sg-nav__pair) ---- */
.sg-v7-navpair{
  --bg:#FFFFFF;--ink:#0B0B0C;--orange:#F27038;--ease:cubic-bezier(.22,1,.36,1);
  --f:"Host Grotesk","Helvetica Neue",Arial,sans-serif;
  --m:"DM Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;
  display:inline-flex;align-items:stretch;margin-left:4px;
}
.sg-v7-navpair-li{display:flex;align-items:center;list-style:none}
.sg-v7-navpair .sg-nav__cta{margin-left:-1px}
.sg-v7-navpair .sg-nav__sb{gap:8px}
.sg-v7-navpair .sg-nav__sb img{width:16px;height:16px;border-radius:50%;flex:none;box-shadow:0 1px 2px rgba(196,91,38,.4);margin:0}
/* the theme menu styles every a/li in the header; give the pair back its own look */
.sg-v7-navpair a.sg-btn,.sg-v7-navpair a.sg-btn:hover,.sg-v7-navpair a.sg-btn:focus{text-decoration:none;line-height:1;letter-spacing:.08em;text-transform:uppercase;font-family:var(--m)}
.sg-v7-navpair a.sg-btn::after{content:none!important;display:none!important}
.sg-v7-navpair a.sg-btn--line{color:var(--ink)}
.sg-v7-navpair a.sg-btn--line:hover{color:var(--bg)}
.sg-v7-navpair a.sg-nav__cta{color:var(--bg)}

/* ---- footer: same 2024 footer, on white with air above it (Max 11-24). Colours flipped only to stay readable. ---- */
body.sg-v7 footer.footer.footer-dark{background:#fff;color:#0B0B0C;padding-top:clamp(56px,6vw,96px)}
body.sg-v7 footer.footer-dark .container,
body.sg-v7 footer.footer-dark .top,
body.sg-v7 footer.footer-dark .columns,
body.sg-v7 footer.footer-dark .bottom,
body.sg-v7 footer.footer-dark .menu,
body.sg-v7 footer.footer-dark .menu-items,
body.sg-v7 footer.footer-dark .footer-section,
body.sg-v7 footer.footer-dark nav{color:#0B0B0C;border-color:#E6E6E8}
body.sg-v7 footer.footer-dark .footer-section-title{color:#0B0B0C}
body.sg-v7 footer.footer-dark p.white,
body.sg-v7 footer.footer-dark p.grey,
body.sg-v7 footer.footer-dark a{color:#66666D}
body.sg-v7 footer.footer-dark a:hover{color:#0B0B0C}
body.sg-v7 footer.footer-dark .logo img{filter:invert(1)}
body.sg-v7 footer.footer-dark .iconmenu a.os{background:#0B0B0C}
body.sg-v7 footer.footer-dark .iconmenu a.os svg,body.sg-v7 footer.footer-dark .iconmenu a.os use{fill:#fff;color:#fff}

/* ---- sticky fix: the theme sets overflow-x:hidden on html+body, which makes <body> a scroll container
   and kills every position:sticky inside V7 (case stack, Single Brain window). clip stops sideways
   scroll without creating a scroll container. ---- */
html:has(body.sg-v7),body.sg-v7{overflow:visible;overflow-x:clip}
/* the theme's own footer rules are more specific; these two must win */
html body.sg-v7 footer.footer.footer-dark .copy p{color:#66666D!important}
html body.sg-v7 footer.footer.footer-dark .iconmenu a.os{background:#0B0B0C!important}
html body.sg-v7 footer.footer.footer-dark .iconmenu a.os svg{fill:#fff!important;color:#fff!important}
html body.sg-v7 footer.footer.footer-dark .bottom a,html body.sg-v7 footer.footer.footer-dark .bottom p,html body.sg-v7 footer.footer.footer-dark .menu a,html body.sg-v7 footer.footer.footer-dark .footer-section nav a{color:#66666D!important}
html body.sg-v7 footer.footer.footer-dark .bottom a:hover,html body.sg-v7 footer.footer.footer-dark .menu a:hover,html body.sg-v7 footer.footer.footer-dark .footer-section nav a:hover{color:#0B0B0C!important}

/* ---- cookie notice: the site's existing bar (partials/footer/consent.php: same text, link, button, cookie and script)
   in the V7 card design. Source: the latest prototype (r51, #sg-ck-host .sg-ck). The prototype card lives in a sticky host
   inside .site; here the bar is fixed, so the container queries become viewport media queries. The fade-in is a CSS
   animation (the old script shows the bar at once), and the step-up above the Ask bar uses `translate` so it doesn't fight
   the animation's transform. ---- */
body.sg-v7 .cookie-bar{
  --ink:#0B0B0C;--ink-2:#3A3A3E;--line:#E6E6E8;--orange:#F27038;--heat:#C45B26;--ease:cubic-bezier(.22,1,.36,1);
  --f:"Host Grotesk","Host Grotesk Fallback","Helvetica Neue",Arial,sans-serif;
  --m:"DM Mono","DM Mono Fallback",ui-monospace,"SFMono-Regular",Menlo,monospace;
  position:fixed;left:24px;right:auto;bottom:24px;z-index:79;width:min(420px,calc(100% - 48px));box-sizing:border-box;overflow:visible;
  padding:16px 16px 16px 18px;background:#fff;color:var(--ink-2);text-align:left;
  border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 22px -12px rgba(11,11,12,.18),0 1px 4px rgba(11,11,12,.04);
  font-family:var(--f)!important;
  translate:0 0;transition:translate .4s var(--ease);
  animation:sg-ck-in .4s var(--ease) .9s both;
}
@keyframes sg-ck-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
body.sg-v7 .cookie-bar .inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 18px;margin:0;padding:0;max-width:none;width:auto}
body.sg-v7 .cookie-bar .cookie-bar__t{margin:0;font:400 14px/1.45 var(--f);color:var(--ink-2);text-wrap:pretty}
body.sg-v7 .cookie-bar .cookie-bar__t a{font:inherit;color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--orange);white-space:nowrap}
body.sg-v7 .cookie-bar .cookie-bar__t a:hover{color:var(--heat)}
/* .sg-btn .sg-btn--line .sg-btn--sm (base.css), minus the label layers */
body.sg-v7 .cookie-bar #cookie-bar-accept{
  position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;margin:0;padding:0 14px;border-radius:2px;border:1px solid var(--ink);background:transparent;color:var(--ink);box-shadow:none;
  font:500 11.5px/1 var(--m);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;cursor:pointer;
  transition:color 0s linear .18s;
}
body.sg-v7 .cookie-bar #cookie-bar-accept::before{content:"";position:absolute;inset:-1px;z-index:-1;background:var(--ink);transform:scaleX(0);transform-origin:left;transition:transform .28s var(--ease)}
body.sg-v7 .cookie-bar #cookie-bar-accept:hover,body.sg-v7 .cookie-bar #cookie-bar-accept:focus-visible{color:#fff}
body.sg-v7 .cookie-bar #cookie-bar-accept:hover::before,body.sg-v7 .cookie-bar #cookie-bar-accept:focus-visible::before{transform:scaleX(1)}
body.sg-v7 .cookie-bar #cookie-bar-accept:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
body.sg-v7 .cookie-bar #cookie-bar-accept:active{transform:translateY(1px)}
/* the Ask bar sits bottom-centre once you scroll; on narrower desktops the card steps up so the two never overlap */
@media (min-width:601px) and (max-width:1360px){
  body.sg-v7:has(#p-dock[data-s="shown"]) .cookie-bar{translate:0 -84px}
}
@media (max-width:600px){
  body.sg-v7 .cookie-bar{left:12px;right:12px;width:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:12px 12px 12px 14px;box-shadow:none;border-color:#D9D9DE}
  body.sg-v7 .cookie-bar .inner{gap:12px}
  body.sg-v7 .cookie-bar .cookie-bar__t{font-size:13px;line-height:1.4}
  body.sg-v7 .cookie-bar #cookie-bar-accept{min-height:44px;padding:0 12px}
}
@media (prefers-reduced-motion:reduce){body.sg-v7 .cookie-bar{animation:none;transition:none}}
/* dock.js lifts the Ask bar by the height of a full-width cookie bar; the V7 card steps up itself instead */
body.sg-v7 #p-dock{bottom:0!important}
