/* Site header, footer and back-to-top (v2). Colours and type match dock.css and home-v2.css. */
.tth,.ttf,.ttm,.tt-top{
  --night:#07192b; --lagoon:#1a8fe3; --lagoon-deep:#0f6fb8; --shallow:#e8f4fd; --mist:#f4f8fc;
  --ink:#1d3246; --ink-soft:#4a5e71; --line:#dde8f2;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
.tth *,.ttf *,.ttm *{box-sizing:border-box}
.tth a,.ttf a,.ttm a{text-decoration:none}

/* ---------- header ---------- */
.tth{
  position:sticky;top:0;z-index:9980;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter:saturate(170%) blur(14px);backdrop-filter:saturate(170%) blur(14px);
  border-bottom:1px solid transparent;transition:border-color .2s ease,box-shadow .2s ease;
}
.tth.is-scrolled{border-bottom-color:var(--line);box-shadow:0 6px 24px rgba(7,25,43,.06)}
.tth-inner{max-width:1240px;margin:0 auto;height:68px;padding:0 20px;display:flex;align-items:center;gap:24px}
.tth-logo{display:flex;align-items:center;flex:none}
.tth-logo img{display:block;height:40px;width:auto}
.tth-nav{flex:1;display:flex;justify-content:center}
.tth-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2px}
.tth-nav a{
  display:flex;align-items:center;height:40px;padding:0 13px;border-radius:12px;
  font-size:15px;font-weight:650;color:var(--ink);letter-spacing:-.005em;white-space:nowrap;
}
.tth-nav a:hover{background:var(--mist);color:var(--night)}
.tth-nav a[aria-current="page"]{background:var(--shallow);color:var(--lagoon-deep)}
.tth-actions{display:flex;align-items:center;gap:8px;flex:none}
.tth-search{
  all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:8px;
  height:42px;padding:0 10px 0 14px;border-radius:14px;border:1px solid var(--line);background:#fff;
  font-size:14px;font-weight:600;color:var(--ink-soft);
}
.tth-search:hover{border-color:var(--lagoon);color:var(--night)}
.tth-search svg,.tth-menu svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.tth-search svg{stroke:var(--lagoon-deep)}
.tth-search kbd{font:inherit;font-size:12px;font-weight:700;border:1px solid var(--line);border-radius:7px;padding:2px 7px;background:var(--mist);color:var(--ink-soft)}
.tth-menu{
  all:unset;box-sizing:border-box;cursor:pointer;display:none;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:14px;background:var(--night);color:#fff;
}
.tth a:focus-visible,.tth button:focus-visible,.ttm a:focus-visible,.ttm button:focus-visible,.ttf a:focus-visible,.tt-top:focus-visible{
  outline:2px solid var(--lagoon);outline-offset:2px
}
@media (max-width:1100px){
  .tth-nav{display:none}
  .tth-actions{margin-left:auto}
  .tth-menu{display:flex}
}
@media (max-width:640px){
  .tth-inner{height:60px;padding:0 14px;gap:10px}
  .tth-logo img{height:36px}
  .tth-search{width:44px;height:44px;padding:0;justify-content:center;border-radius:14px}
  .tth-search span,.tth-search kbd{display:none}
}
@media (hover:none){.tth-search kbd{display:none}}

/* ---------- menu sheet (tablet + phone) ---------- */
.ttm{position:fixed;inset:0;z-index:9996;display:none}
.ttm.is-open{display:block}
.ttm-backdrop{position:absolute;inset:0;background:rgba(7,25,43,.45);opacity:0;transition:opacity .22s ease}
.ttm.is-visible .ttm-backdrop{opacity:1}
.ttm-panel{
  position:absolute;top:0;left:0;right:0;max-height:100vh;overflow-y:auto;
  background:#fff;border-radius:0 0 26px 26px;padding:12px 16px 26px;
  transform:translateY(-14px);opacity:0;transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .2s ease;
  box-shadow:0 24px 60px rgba(7,25,43,.22);
}
.ttm.is-visible .ttm-panel{transform:none;opacity:1}
@media (prefers-reduced-motion:reduce){.ttm-panel,.ttm-backdrop{transition:none}}
.ttm-top{display:flex;align-items:center;justify-content:space-between;height:48px;margin-bottom:8px}
.ttm-top img{height:36px;width:auto;display:block}
.ttm-close{all:unset;cursor:pointer;width:44px;height:44px;border-radius:14px;background:var(--mist);display:flex;align-items:center;justify-content:center;color:var(--night)}
.ttm-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ttm-list{list-style:none;margin:0;padding:0}
.ttm-list a{
  display:flex;align-items:center;justify-content:space-between;padding:15px 6px;border-bottom:1px solid #eef3f8;
  font-size:21px;font-weight:750;letter-spacing:-.02em;color:var(--night);
}
.ttm-list a[aria-current="page"]{color:var(--lagoon-deep)}
.ttm-list a small{font-size:13px;font-weight:500;color:var(--ink-soft);letter-spacing:0}
.ttm-sub{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.ttm-sub a{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);font-size:14px;font-weight:650;color:var(--night)}
.ttm-social{display:flex;gap:10px;margin-top:18px}
.ttm-social a,.ttf-social a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px}
.ttm-social a{background:var(--mist);color:var(--night)}
.ttm-social svg,.ttf-social svg{width:19px;height:19px;fill:currentColor}
body.ttm-lock{overflow:hidden}

/* ---------- footer ---------- */
.ttf{background:var(--night);color:#c6d3df;margin-top:0}
.ttf-inner{max-width:1240px;margin:0 auto;padding:64px 20px 40px;display:grid;grid-template-columns:1.25fr 2fr;gap:56px}
.ttf-logo{font-size:26px;font-weight:850;letter-spacing:-.03em;color:#fff;line-height:1}
.ttf-logo span{color:#5bb4f5}
.ttf-brand p{font-size:15px;line-height:1.65;color:#a9bbcc;max-width:36ch;margin:18px 0 22px}
.ttf-social{display:flex;gap:10px}
.ttf-social a{background:rgba(255,255,255,.07);color:#fff}
.ttf-social a:hover{background:var(--lagoon)}
.ttf-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.ttf-cols h2{font-size:15px;font-weight:750;color:#fff;margin:0 0 14px;letter-spacing:-.005em}
.ttf-cols ul{list-style:none;margin:0;padding:0}
.ttf-cols li{margin:0 0 10px}
.ttf-cols a{font-size:15px;color:#a9bbcc;line-height:1.4}
.ttf-cols a:hover{color:#fff}
.ttf-bottom{border-top:1px solid rgba(255,255,255,.08)}
.ttf-bottom-inner{max-width:1240px;margin:0 auto;padding:22px 20px 26px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;font-size:13px;color:#8ea2b5}
.ttf-bottom-inner p{margin:0;line-height:1.6;max-width:70ch}
.ttf-legal{display:flex;flex-wrap:wrap;gap:6px 18px}
.ttf-legal a{color:#a9bbcc}
.ttf-legal a:hover{color:#fff}
body.tt-has-dock .ttf-bottom-inner{padding-bottom:calc(var(--tt-dock-h,64px) + 48px + env(safe-area-inset-bottom))}
@media (max-width:900px){
  .ttf-inner{grid-template-columns:1fr;gap:36px;padding:48px 20px 30px}
}
@media (max-width:640px){
  .ttf-inner{padding:42px 16px 26px}
  .ttf-cols{grid-template-columns:1fr 1fr;gap:26px 16px}
  .ttf-cols .ttf-col-about{grid-column:span 2}
  .ttf-cols .ttf-col-about ul{display:flex;flex-wrap:wrap;gap:6px 18px}
  .ttf-cols .ttf-col-about li{margin:0}
  .ttf-bottom-inner{padding:20px 16px 24px;flex-direction:column;align-items:flex-start}
}

/* ---------- back to top ---------- */
.tt-top{
  all:unset;box-sizing:border-box;cursor:pointer;position:fixed;right:16px;z-index:9985;
  bottom:calc(var(--tt-dock-h,64px) + 26px + env(safe-area-inset-bottom));
  width:48px;height:48px;border-radius:50%;background:#fff;color:var(--lagoon-deep);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px rgba(7,25,43,.16),0 0 0 1px var(--line);
  opacity:0;transform:translateY(10px) scale(.9);pointer-events:none;transition:opacity .2s ease,transform .2s ease;
}
.tt-top.is-on{opacity:1;transform:none;pointer-events:auto}
.tt-top:hover{color:var(--night)}
.tt-top svg.tt-top-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.tt-top-ring circle{fill:none;stroke-width:2.5}
.tt-top-ring .tt-track{stroke:#eaf1f7}
.tt-top-ring .tt-prog{stroke:var(--lagoon);stroke-linecap:round;transition:stroke-dashoffset .1s linear}
.tt-top svg.tt-top-arrow{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;position:relative}
@media (min-width:768px){.tt-top{right:24px;bottom:28px}}
@media (prefers-reduced-motion:reduce){.tt-top{transition:none}}

/* the old theme paints focused/hovered buttons pink; keep ours on-palette */
.tth .tth-search:hover,.tth .tth-search:focus{background:#fff}
.tth .tth-menu:hover,.tth .tth-menu:focus{background:var(--night);color:#fff}
.ttm .ttm-close:hover,.ttm .ttm-close:focus{background:var(--mist);color:var(--night)}
button.tt-top:hover,button.tt-top:focus{background:#fff}
.tt-dock button:hover,.tt-dock button:focus,.tt-search .tt-search-close:hover,.tt-search .tt-search-close:focus{background:transparent}
