/* Header and footer shared by every page. Loaded before nova.css; every selector is prefixed (.sh header, .sf footer)
   so nothing here restyles a bare element of the page body. */
:root{--sh-ink:#161816;--sh-white:#fff;--sh-accent:#0a84e0;--sh-body:#6b6c6c;--sh-line:#e8e8e8;--sh-shadow:0 1px 2px rgba(22,24,22,.04),0 12px 40px rgba(22,24,22,.07);--sh-head:"Mona Sans",Inter,system-ui,sans-serif;--sh-text:Inter,system-ui,sans-serif;--sh-frame:linear-gradient(180deg,#0384df,#5ebbfd);--sh-ease:cubic-bezier(.22,1,.36,1)}
.sh,.sf{font:400 16px/1.6 var(--sh-text);-webkit-font-smoothing:antialiased}
.sh{color:var(--sh-ink)}
.sf{color:var(--sh-body)}
.sh *,.sf *{box-sizing:border-box}
.sh a,.sf a{color:inherit;text-decoration:none}
.sh a:focus-visible,.sf a:focus-visible{outline:2px solid var(--sh-accent);outline-offset:3px;border-radius:999px}
.sh svg{display:block}
.sh-wrap{width:min(1240px,100% - 40px);margin:0 auto}

/* header: logo left, nav pill centred, language switch and the black button right */
.sh-bar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:16px;padding-top:24px}
.sh-logo{display:flex;align-items:center;gap:8px;font:500 28px/1 var(--sh-head);letter-spacing:-.04em}
.sh-logo i{width:22px;height:24px;border-radius:7px;background:var(--sh-frame)}
.sh-logo b{font-weight:500;color:var(--sh-accent)}
.sh-bar .sh-logo{grid-column:1;justify-self:start;white-space:nowrap}
/* the slot keeps the pill's width in the grid row (nova.js writes the measured width into --pill-w; 563px is the SL width without script) so logo and right group never run under the fixed pill */
.sh-bar .sh-slot{grid-column:2;justify-self:center;width:var(--pill-w,563px);height:47px}
.sh-right{grid-column:3;justify-self:end;display:flex;align-items:center;gap:14px;white-space:nowrap}
.sh a.sh-login{font:500 15px/1 var(--sh-text);color:var(--sh-ink);white-space:nowrap}
.sh a.sh-login:hover{color:var(--sh-accent)}
.sh-lang{display:inline-flex;background:var(--sh-white);border-radius:999px;padding:3px;font:500 13px/1 var(--sh-text)}
.sh-lang a{display:inline-flex;align-items:center;justify-content:center;height:30px;min-width:36px;padding:0 10px;border-radius:999px;color:var(--sh-body)}
.sh-lang a:hover{color:var(--sh-ink)}
.sh-lang a[aria-current]{background:var(--sh-ink);color:#fff}
.sh a.sh-btn{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 24px;border-radius:999px;background:var(--sh-ink);color:#fff;font:500 16px/1 var(--sh-text);white-space:nowrap}
.sh-btn svg{width:16px;height:16px}

/* the pill is position:fixed at the top of the viewport; with no left/right set it keeps the horizontal position of its slot, which is centred between logo and right group (columns auto 1fr auto), so it stays put while scrolling and never meets the groups.
   Fill and shadow sit on pseudo layers so only opacity changes once the page is scrolled. */
.sh-pill{position:fixed;top:24px;z-index:30;isolation:isolate;width:max-content;display:flex;gap:2px;align-items:center;height:47px;padding:0 12px;border-radius:999px;font-size:15px}
.sh-pill::before,.sh-pill::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.sh-pill::before{z-index:-1;background:var(--sh-white);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sh-pill::after{z-index:-2;box-shadow:var(--sh-shadow);opacity:0}
.sh-pill.stuck::before{opacity:.78}
.sh-pill.stuck::after{opacity:1}
.sh-pill a{padding:0 12px;line-height:47px;white-space:nowrap}
.sh-pill a:hover,.sh-pill a.on{color:var(--sh-accent)}

/* Features dropdown: the button looks like a pill link; the panel is a white rounded card under it (padding-top bridges the gap so hover is not lost) */
.sh-dd{position:relative}
.sh-dd-btn{display:inline-flex;align-items:center;gap:6px;height:47px;padding:0 12px;border:0;background:none;white-space:nowrap;color:inherit;font:inherit;cursor:pointer}
.sh-dd-btn svg{width:12px;height:12px;transition:transform .2s}
.sh-dd-btn:hover,.sh-dd-btn.on,.sh-dd-btn[aria-expanded=true]{color:var(--sh-accent)}
.sh-dd-btn[aria-expanded=true] svg{transform:rotate(180deg)}
.sh-dd-btn:focus-visible{outline:2px solid var(--sh-accent);outline-offset:-2px;border-radius:999px}
.sh-sub{position:absolute;top:100%;left:50%;transform:translateX(-50%);min-width:220px;padding:6px;margin-top:8px;border-radius:20px;background:var(--sh-white);box-shadow:var(--sh-shadow);display:none}
.sh-sub::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.sh-dd-btn[aria-expanded=true]+.sh-sub{display:block}
.sh-pill .sh-sub a{display:block;padding:0 16px;line-height:44px;border-radius:14px;white-space:nowrap}
.sh-pill .sh-sub a:hover,.sh-pill .sh-sub a.on{background:#f4f6f8}

/* phone menu: hamburger in the bar, full-width panel below it */
.sh-burger{display:none;grid-column:2;justify-self:end;position:fixed;top:24px;right:max(20px,calc((100% - 1240px) / 2));z-index:30;width:44px;height:44px;border:0;border-radius:999px;background:var(--sh-white);cursor:pointer}
.sh-burger span,.sh-burger::before,.sh-burger::after{content:"";position:absolute;left:13px;right:13px;height:2px;border-radius:2px;background:var(--sh-ink);transition:transform .2s,opacity .2s}
.sh-burger.stuck{box-shadow:var(--sh-shadow)}
.sh-burger::before{top:15px}
.sh-burger span{top:21px}
.sh-burger::after{top:27px}
.sh-burger[aria-expanded=true]::before{transform:translateY(6px) rotate(45deg)}
.sh-burger[aria-expanded=true] span{opacity:0}
.sh-burger[aria-expanded=true]::after{transform:translateY(-6px) rotate(-45deg)}
.sh-burger:focus-visible{outline:2px solid var(--sh-accent);outline-offset:3px}
.sh-mob{position:fixed;top:80px;left:max(20px,calc((100% - 1240px) / 2));right:max(20px,calc((100% - 1240px) / 2));z-index:30;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;padding:8px;border-radius:24px;background:var(--sh-white);box-shadow:var(--sh-shadow)}
.sh-mob[hidden]{display:none}
.sh-mob nav a,.sh-mob-h{display:flex;align-items:center;min-height:48px;padding:0 16px;border-radius:14px;font:500 16px/1.3 var(--sh-text)}
.sh-mob nav a:hover,.sh-mob nav a.on{color:var(--sh-accent)}
.sh-mob-h{color:var(--sh-body)}
.sh-mob-h.on{color:var(--sh-accent)}
.sh-mob-sub{padding-left:16px}
.sh-mob-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding:12px 8px 8px;border-top:1px solid var(--sh-line)}
.sh-mob-end .sh-lang{background:#f4f6f8}
.sh a.sh-mob-end .sh-login,.sh-mob-end a.sh-login{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
.sh-mob-end a.sh-btn{flex:1 0 100%;justify-content:center;height:48px}

/* footer: brand + line left, four labelled link columns right, copyright and language switch below */
.sf{padding:var(--space-section) 0 40px;font-size:14px}   /* spacing tokens: nova.css :root, loaded on every page */
.sf-wrap{width:min(1240px,100% - 40px);margin:0 auto}
.sf-top{display:grid;grid-template-columns:minmax(220px,1fr) 2fr;gap:48px}
.sf-brand p{margin:16px 0 0;max-width:28ch;line-height:1.6}
.sf-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.sf-col h3{margin:0 0 12px;font:500 14px/1.4 var(--sh-text);color:var(--sh-ink)}
.sf-col ul{list-style:none;margin:0;padding:0}
.sf-col a{display:inline-flex;align-items:center;min-height:36px}
.sf-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:var(--space-content);padding-top:var(--space-card);border-top:1px solid var(--sh-line)}
.sf-lang{display:inline-flex;background:var(--sh-white);border-radius:999px;padding:3px;font:500 13px/1 var(--sh-text)}
.sf-lang a{display:inline-flex;align-items:center;justify-content:center;height:30px;min-width:36px;padding:0 10px;border-radius:999px}
.sf-lang a[aria-current]{background:var(--sh-ink);color:#fff}
.sf a:hover{color:var(--sh-ink)}
.sf-lang a[aria-current]:hover{color:#fff}

/* measured widths (SL, the longer one): logo 167 + pill 563 + right group 333 + gaps 32 = 1095 px at the compact sizes, needing a 1135 px viewport; the wrap is 100% - 40, so 1200 px leaves 65 px spare and the hamburger takes over at 1199 px. Previously the pill (fixed, 50% of the viewport) and the right group (language, log in, button) share the bar: below 1440 px both get tighter, below 1200 px there is no room and the hamburger panel takes over */
@media (max-width:1439px){
  .sh-pill a,.sh-dd-btn{padding:0 10px}
  .sh-right{gap:10px}
  .sh a.sh-btn{padding:0 20px}
}
@media (max-width:1199px){
  .sh-bar{grid-template-columns:1fr auto;min-height:44px}
  .sh-slot,.sh-bar>.sh-right{display:none}
  .sh-burger{display:block}
}
@media (max-width:767px){
  .sh-logo{font-size:24px}
  .sf-top{grid-template-columns:1fr;gap:32px}
  .sf-cols{grid-template-columns:repeat(2,1fr);gap:24px}
  .sf-col a{min-height:44px}
}
@media (max-width:420px){
  .sh-logo{font-size:21px}
  .sh-logo i{width:18px;height:20px}
  .sh-lang a{min-width:30px;padding:0 7px}
}

@media (prefers-reduced-motion:no-preference){
  .sh a.sh-btn{transition:transform .25s var(--sh-ease)}
  .sh a.sh-btn:hover{transform:translateY(-2px)}
  .sh-btn svg{transition:transform .25s var(--sh-ease)}
  .sh a.sh-btn:hover svg{transform:translate(2px,-2px)}
  .sh-pill::before,.sh-pill::after{transition:opacity .3s}
}
