/* © 2026 SnakeIndex — SNAKE-ARCH-001
   Shared Snake family header, drawer, scale background and footer.
   Inline-able. No external dependencies. Theme via data-theme / data-theme-pref
   and localStorage key snakeindex-theme (system follows prefers-color-scheme). */

:root {
  --sf-scale: rgba(31, 163, 79, .11);
  --sf-sweep: rgba(255, 255, 255, .42);
  --sf-header-logo: 36px;
  --sf-header-title: 20px;
  --sf-header-gap: 10px;
  --sf-ink: #1b5e20;
  --sf-fg: #202124;
  --sf-muted: #70757a;
  --sf-panel: #ffffff;
  --sf-panel2: #f8f9fa;
  --sf-line: #e5e7eb;
  --sf-overlay: rgba(15, 20, 18, .45);
  --sf-glow: 31, 163, 79;
}
html.light, html[data-theme="light"] {
  --sf-scale: rgba(31, 163, 79, .11);
  --sf-sweep: rgba(255, 255, 255, .5);
  --sf-ink: #1b5e20;
  --sf-fg: #202124;
  --sf-muted: #70757a;
  --sf-panel: #ffffff;
  --sf-panel2: #f8f9fa;
  --sf-line: #d5e3da;
  --sf-overlay: rgba(15, 20, 18, .4);
  --sf-glow: 31, 163, 79;
}
html.dark, html[data-theme="dark"] {
  --sf-scale: rgba(95, 224, 138, .10);
  --sf-sweep: rgba(95, 224, 138, .16);
  --sf-ink: #5fe08a;
  --sf-fg: #e8eaed;
  --sf-muted: #9aa69f;
  --sf-panel: #1c231f;
  --sf-panel2: #1a201c;
  --sf-line: #2d3a32;
  --sf-overlay: rgba(6, 12, 8, .55);
  --sf-glow: 95, 224, 138;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]):not(.light):not(.dark) {
    --sf-scale: rgba(95, 224, 138, .10);
    --sf-sweep: rgba(95, 224, 138, .16);
    --sf-ink: #5fe08a;
    --sf-fg: #e8eaed;
    --sf-muted: #9aa69f;
    --sf-panel: #1c231f;
    --sf-panel2: #1a201c;
    --sf-line: #2d3a32;
    --sf-overlay: rgba(6, 12, 8, .55);
    --sf-glow: 95, 224, 138;
  }
}

.sf-scale { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sf-scale canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sf-scale-fx { z-index: 2; }
/* No automatic movement anywhere: the texture only reacts to the pointer. */
@media (prefers-reduced-motion: reduce) {
  .sf-scale-fx { visibility: hidden; }
}

.sf-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 22px;
  box-sizing: border-box;
  min-height: 64px;
  background: transparent;
}
.sf-burger {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--sf-line, var(--line2, #dfe1e5));
  background: var(--sf-panel, var(--bg, #fff));
  color: var(--sf-fg, var(--fg, #202124));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sf-burger:hover { border-color: var(--sf-ink, var(--g, #1b7a34)); color: var(--sf-ink, var(--g, #1b7a34)); }
.sf-burger:focus-visible { outline: 2px solid var(--sf-ink, var(--g, #1b7a34)); outline-offset: 2px; }
.sf-burger svg { width: 22px; height: 22px; display: block; }
.sf-brand {
  display: flex;
  align-items: center;
  gap: var(--sf-header-gap);
  text-decoration: none;
  min-width: 0;
  color: inherit;
}
.sf-brand:hover { text-decoration: none; }
.sf-brand img {
  width: var(--sf-header-logo);
  height: var(--sf-header-logo);
  display: block;
  flex: 0 0 var(--sf-header-logo);
  object-fit: contain;
}
.sf-title {
  font-size: var(--sf-header-title);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sf-ink, var(--g-deep, #1b5e20));
  white-space: nowrap;
}
.sf-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.sf-backdrop {
  position: fixed; inset: 0;
  background: var(--sf-overlay);
  z-index: 80;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .32s ease;
}
.sf-backdrop[hidden] { display: none; }
.sf-backdrop.is-open { opacity: 1; }
.sf-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--sf-panel, var(--panel, #fff));
  color: var(--sf-fg, var(--fg, #202124));
  z-index: 90;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transform: translate3d(-105%, 0, 0);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  padding: 8px 0 28px;
  overflow: auto;
  will-change: transform;
}
.sf-drawer.is-open { transform: translate3d(0, 0, 0); }
.sf-drawer[hidden] { display: none; }
.sf-drawer-head { display: flex; align-items: center; justify-content: flex-end; padding: 8px 12px 6px; }
.sf-drawer-close {
  width: 40px; height: 40px; border-radius: 10px; border: 0;
  background: transparent; color: var(--sf-fg, var(--fg));
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.sf-drawer-close:hover { color: var(--sf-ink, var(--g)); background: var(--sf-panel2, var(--panel2)); }
.sf-drawer-close:focus-visible { outline: 2px solid var(--sf-ink, var(--g)); outline-offset: 2px; }
.sf-drawer-close svg { width: 22px; height: 22px; display: block; }
.sf-section { margin: 8px 0 4px; padding: 0; list-style: none; }
.sf-section + .sf-section { border-top: 1px solid var(--sf-line, var(--line)); margin-top: 10px; padding-top: 10px; }
.sf-section-label {
  display: block; padding: 6px 22px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sf-muted, var(--muted));
}
.sf-drawer a.sf-link {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 22px; color: var(--sf-fg, var(--fg));
  text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 0;
}
.sf-drawer a.sf-link svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--sf-ink, var(--g)); }
.sf-drawer a.sf-link:hover { background: var(--sf-panel2, var(--panel2)); color: var(--sf-ink, var(--g)); text-decoration: none; }
.sf-drawer a.sf-link:active { background: color-mix(in srgb, var(--sf-ink, #1b7a34) 12%, transparent); }
.sf-drawer a.sf-link:focus-visible { outline: 2px solid var(--sf-ink, var(--g)); outline-offset: -2px; }
.sf-drawer a.sf-link[aria-current="page"] { color: var(--sf-ink, var(--g)); }
@media (prefers-reduced-motion: reduce) {
  .sf-drawer, .sf-backdrop { transition: none; }
}

.sf-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 16px 28px 18px;
  border-top: 1px solid var(--sf-line, var(--line, #e5e7eb));
  background: var(--footer, var(--sf-panel2, #f2f2f2));
  color: var(--sf-muted, var(--muted, #70757a));
  font-size: 12px;
  line-height: 1.5;
}
.sf-footer-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.sf-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.sf-footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sf-footer-legal a:hover { color: var(--sf-ink, var(--g)); }
.sf-footer .patrol-snake {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 14px; margin: 0;
  pointer-events: none; z-index: 1;
  offset-rotate: auto; offset-anchor: center;
  animation: none;
  opacity: 0; will-change: offset-distance;
}
.sf-footer .patrol-snake.is-set { opacity: 1; }
.sf-footer .patrol-snake svg { display: block; width: 36px; height: 14px; overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .sf-footer .patrol-snake { animation: none !important; will-change: auto; }
  .sf-footer .patrol-snake.is-set { opacity: 1; }
}

@media (max-width: 768px) {
  .sf-burger, .sf-drawer-close { width: 44px; height: 44px; }
  .sf-header { padding: 6px 12px 20px; }
  .sf-footer { padding: 14px 16px 16px; }
}

/* Optional SnakeIndex wordmark (opt-in per site; default off, snakeindex.com only). */
:root { --sf-wordmark-h: 44px; --sf-footer-wordmark-h: 30px; }
.sf-brand-wordmark img.sf-wordmark { height: var(--sf-wordmark-h); width: auto; max-width: none; flex: 0 0 auto; object-fit: contain; display: block; }
.sf-brand-wordmark .sf-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.sf-footer-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.sf-footer-brand img.sf-footer-wordmark { height: var(--sf-footer-wordmark-h); width: auto; display: block; }
@media (max-width: 768px) { :root { --sf-wordmark-h: 34px; --sf-footer-wordmark-h: 26px; } }

/* page content sits above the fixed scale layer */
body > main, body > .main, #sf-root { position: relative; z-index: 1; }

/* ===== Snake family menu: premium glass look (5 Dec 2026). Visual only: items, order, links and behaviour are unchanged. =====
   Burger morphs to an X, drawer is a floating frosted-glass panel over a blurred backdrop, items reveal in sequence,
   hover/focus glow, active page highlight. Honours prefers-reduced-motion. */
:root {
  --sf-ease: cubic-bezier(.22, 1, .36, 1);
  --sf-glass: color-mix(in srgb, var(--sf-panel, #1c231f) 58%, transparent);
  --sf-edge: color-mix(in srgb, rgb(var(--sf-glow, 95, 224, 138)) 26%, var(--sf-line, #2d3a32));
  --sf-drawer-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 46px rgba(var(--sf-glow, 95, 224, 138), .10);
}
html.light, html[data-theme="light"] { --sf-drawer-shadow: 0 22px 56px rgba(20, 60, 35, .22), 0 0 40px rgba(var(--sf-glow, 31, 163, 79), .10); }
@media (prefers-color-scheme: light) {
  html:not([data-theme]):not(.dark) { --sf-drawer-shadow: 0 22px 56px rgba(20, 60, 35, .22), 0 0 40px rgba(var(--sf-glow, 31, 163, 79), .10); }
}

/* --- hamburger button --- */
#nav-toggle, #menuBtn {
  transition: border-color .25s ease, color .25s ease, box-shadow .3s ease, transform .3s var(--sf-ease), background-color .25s ease;
}
#nav-toggle.sf-burger {
  background: color-mix(in srgb, var(--sf-panel, #1c231f) 68%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  border-radius: 12px;
}
#nav-toggle:hover, #menuBtn:hover {
  border-color: var(--sf-ink, #5fe08a); color: var(--sf-ink, #5fe08a);
  box-shadow: 0 0 0 3px rgba(var(--sf-glow, 95, 224, 138), .13), 0 0 20px rgba(var(--sf-glow, 95, 224, 138), .30);
  transform: translateY(-1px);
}
#nav-toggle:active, #menuBtn:active { transform: scale(.93); }
#nav-toggle:focus-visible, #menuBtn:focus-visible {
  outline: 2px solid var(--sf-ink, #5fe08a); outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(var(--sf-glow, 95, 224, 138), .18);
}
#nav-toggle[aria-expanded="true"], html:has(#drawer.on) #menuBtn {
  border-color: var(--sf-ink, #5fe08a); color: var(--sf-ink, #5fe08a);
  box-shadow: 0 0 0 3px rgba(var(--sf-glow, 95, 224, 138), .16), 0 0 22px rgba(var(--sf-glow, 95, 224, 138), .34);
}
/* three bars morph into an X (same path commands, so the browser can interpolate) */
#nav-toggle svg path, #menuBtn svg path {
  d: path("M4 7l16 0M4 12l16 0M4 17l16 0");
  transition: d .5s var(--sf-ease);
}
#nav-toggle[aria-expanded="true"] svg path, html:has(#drawer.on) #menuBtn svg path {
  d: path("M6 6l12 12M12 12l0 0M6 18l12 -12");
}

/* --- blurred backdrop --- */
#drawer-backdrop, #veil.on {
  -webkit-backdrop-filter: blur(7px) saturate(1.15); backdrop-filter: blur(7px) saturate(1.15);
}
#drawer-backdrop {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--sf-glow, 95, 224, 138), .12), transparent 60%),
    var(--sf-overlay, rgba(6, 12, 8, .55));
  transition: opacity .38s ease;
}
#drawer-backdrop:not(.sf-backdrop):not([hidden]) { animation: sf-fade-in .38s ease both; }
@keyframes sf-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- the drawer: floating frosted glass --- */
#site-drawer, #drawer.drawer {
  top: max(10px, env(safe-area-inset-top)); bottom: max(10px, env(safe-area-inset-bottom)); left: 10px;
  height: auto;
  width: min(340px, calc(100vw - 20px));
  border-radius: 22px;
  border: 1px solid var(--sf-edge);
  background:
    linear-gradient(158deg, rgba(var(--sf-glow, 95, 224, 138), .14) 0%, rgba(var(--sf-glow, 95, 224, 138), 0) 42%),
    var(--sf-glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--sf-drawer-shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translate3d(calc(-100% - 28px), 0, 0) scale(.97);
  transition: transform .45s var(--sf-ease), opacity .3s ease;
  scrollbar-width: thin; scrollbar-color: rgba(var(--sf-glow, 95, 224, 138), .35) transparent;
}
#site-drawer.is-open, #drawer.drawer.on {
  transform: translate3d(0, 0, 0) scale(1);
  animation: sf-drawer-in .55s var(--sf-ease) both;
}
@keyframes sf-drawer-in {
  from { transform: translate3d(calc(-100% - 28px), 0, 0) scale(.97); opacity: .4; }
  to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}
#site-drawer::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--sf-glow, 95, 224, 138), .8), transparent); opacity: .7;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #site-drawer, #drawer.drawer { background: linear-gradient(158deg, rgba(var(--sf-glow, 95, 224, 138), .12), transparent 42%), color-mix(in srgb, var(--sf-panel, #1c231f) 96%, transparent); }
}

/* page CSS often styles bare <nav> (centering); keep the drawer layout identical on every host */
#site-drawer.sf-drawer, #site-drawer.drawer { align-items: stretch; justify-content: flex-start; text-align: left; }
#site-drawer.sf-drawer .sf-drawer-head, #site-drawer.drawer .drawer-head { width: 100%; justify-content: flex-end; box-sizing: border-box; }
#site-drawer .sf-section, #site-drawer .drawer-links { width: 100%; box-sizing: border-box; }
#site-drawer a.sf-link, #site-drawer .drawer-links a { justify-content: flex-start; text-align: left; }

/* close button */
#drawer-close, #drawerClose {
  transition: transform .4s var(--sf-ease), background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
#drawer-close.sf-drawer-close { border-radius: 12px; }
#drawer-close:hover, #drawerClose:hover {
  background: rgba(var(--sf-glow, 95, 224, 138), .14); color: var(--sf-ink, #5fe08a);
  box-shadow: 0 0 18px rgba(var(--sf-glow, 95, 224, 138), .28);
}
#drawer-close:hover svg { transform: rotate(90deg); }
#drawer-close svg { transition: transform .45s var(--sf-ease); }
#site-drawer.is-open #drawer-close svg { animation: sf-x-in .6s .12s var(--sf-ease) both; }
@keyframes sf-x-in { from { transform: rotate(-90deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* section labels and links */
#site-drawer .sf-section-label {
  display: flex; align-items: center; gap: 10px; padding: 8px 24px 8px; letter-spacing: .12em;
}
#site-drawer .sf-section-label::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sf-ink, #5fe08a), transparent);
  box-shadow: 0 0 8px rgba(var(--sf-glow, 95, 224, 138), .6);
}
#site-drawer .sf-section + .sf-section { border-top-color: color-mix(in srgb, var(--sf-line, #2d3a32) 55%, transparent); }
#site-drawer a.sf-link, #site-drawer.drawer .drawer-links a, #drawer.drawer > a {
  position: relative; margin: 2px 10px; border-radius: 14px;
  transition: background-color .25s ease, color .25s ease, transform .35s var(--sf-ease), box-shadow .25s ease;
}
#site-drawer a.sf-link { padding: 11px 14px; }
#site-drawer.drawer .drawer-links a { padding: 12px 14px; }
#site-drawer a.sf-link svg, #site-drawer .drawer-links a svg { transition: transform .35s var(--sf-ease), filter .25s ease; }
#site-drawer a.sf-link:hover, #site-drawer.drawer .drawer-links a:hover, #drawer.drawer > a:hover {
  background: linear-gradient(90deg, rgba(var(--sf-glow, 95, 224, 138), .17), rgba(var(--sf-glow, 95, 224, 138), .04));
  box-shadow: inset 0 0 0 1px rgba(var(--sf-glow, 95, 224, 138), .22), 0 0 24px rgba(var(--sf-glow, 95, 224, 138), .12);
  color: var(--sf-ink, #5fe08a); transform: translateX(4px);
}
#site-drawer a.sf-link:hover svg { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(var(--sf-glow, 95, 224, 138), .75)); }
#site-drawer a.sf-link:active, #site-drawer.drawer .drawer-links a:active { transform: translateX(4px) scale(.98); }
#site-drawer a.sf-link:focus-visible, #site-drawer.drawer .drawer-links a:focus-visible, #drawer.drawer > a:focus-visible {
  outline: 2px solid var(--sf-ink, #5fe08a); outline-offset: -2px;
  box-shadow: 0 0 0 4px rgba(var(--sf-glow, 95, 224, 138), .16);
}
/* current page */
#site-drawer a[aria-current="page"], #drawer.drawer > a[aria-current="page"], #drawer.drawer > a.on {
  color: var(--sf-ink, #5fe08a); font-weight: 700;
  background: linear-gradient(90deg, rgba(var(--sf-glow, 95, 224, 138), .20), rgba(var(--sf-glow, 95, 224, 138), .05));
  box-shadow: inset 0 0 0 1px rgba(var(--sf-glow, 95, 224, 138), .30), 0 0 22px rgba(var(--sf-glow, 95, 224, 138), .14);
}
#site-drawer a[aria-current="page"]::before, #drawer.drawer > a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
  background: var(--sf-ink, #5fe08a); box-shadow: 0 0 10px rgba(var(--sf-glow, 95, 224, 138), .9);
}

/* staggered reveal when the drawer opens */
@keyframes sf-item-in { from { opacity: 0; transform: translate3d(-16px, 0, 0); } to { opacity: 1; transform: none; } }
#site-drawer.is-open .sf-section-label, #site-drawer.is-open li, #drawer.drawer.on > a, #drawer.drawer.on > .sep {
  animation: sf-item-in .5s var(--sf-ease) both;
  animation-delay: calc(150ms + var(--sf-s, 0) * 110ms + var(--sf-i, 0) * var(--sf-step, 38ms));
}
#site-drawer .sf-section-label { --sf-i: 0; }
#site-drawer > div:nth-of-type(3) { --sf-s: 1; }
#site-drawer > div:nth-of-type(4) { --sf-s: 2; }
#site-drawer > div:nth-of-type(5) { --sf-s: 3; }
#site-drawer li:nth-child(1) { --sf-i: 1; } #site-drawer li:nth-child(2) { --sf-i: 2; } #site-drawer li:nth-child(3) { --sf-i: 3; }
#site-drawer li:nth-child(4) { --sf-i: 4; } #site-drawer li:nth-child(5) { --sf-i: 5; } #site-drawer li:nth-child(6) { --sf-i: 6; }
#site-drawer li:nth-child(7) { --sf-i: 7; } #site-drawer li:nth-child(8) { --sf-i: 8; }
#site-drawer .drawer-links li { --sf-step: 24ms; }
#site-drawer .drawer-links li:nth-child(9) { --sf-i: 9; } #site-drawer .drawer-links li:nth-child(10) { --sf-i: 10; }
#site-drawer .drawer-links li:nth-child(11) { --sf-i: 11; } #site-drawer .drawer-links li:nth-child(12) { --sf-i: 12; }
#site-drawer .drawer-links li:nth-child(13) { --sf-i: 13; } #site-drawer .drawer-links li:nth-child(14) { --sf-i: 14; }
#site-drawer .drawer-links li:nth-child(15) { --sf-i: 15; } #site-drawer .drawer-links li:nth-child(16) { --sf-i: 16; }
#site-drawer .drawer-links li:nth-child(17) { --sf-i: 17; } #site-drawer .drawer-links li:nth-child(18) { --sf-i: 18; }
#drawer.drawer > a:nth-child(2) { --sf-i: 1; } #drawer.drawer > a:nth-child(3) { --sf-i: 2; } #drawer.drawer > a:nth-child(4) { --sf-i: 3; }
#drawer.drawer > .sep { --sf-i: 4; } #drawer.drawer > a:nth-child(6) { --sf-i: 5; }

/* the handle dock and swipe arrows stay out of the open menu */
html:has(#site-drawer.is-open) .hx-dock, html:has(#site-drawer.is-open) .hx-panel, html:has(#drawer.on) .hx-dock {
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
html:has(#site-drawer.is-open) .si-swipe-arrow, html:has(#site-drawer.is-open) .si-swipe-dots { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  #site-drawer a.sf-link { padding: 12px 14px; }
  #nav-toggle.sf-burger { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #nav-toggle, #menuBtn, #nav-toggle svg path, #menuBtn svg path, #site-drawer, #drawer.drawer, #drawer-backdrop,
  #drawer-close, #drawerClose, #drawer-close svg, #site-drawer a.sf-link, #site-drawer .drawer-links a, #drawer.drawer > a { transition: none !important; }
  #site-drawer.is-open, #drawer.drawer.on, #drawer-backdrop, #site-drawer.is-open .sf-section-label, #site-drawer.is-open li,
  #drawer.drawer.on > a, #drawer.drawer.on > .sep, #site-drawer.is-open #drawer-close svg { animation: none !important; }
  #site-drawer a.sf-link:hover, #site-drawer.drawer .drawer-links a:hover, #drawer.drawer > a:hover, #nav-toggle:hover, #menuBtn:hover { transform: none; }
}

/* ===== Snake family top bar: slim global site switcher (5 Dec 2026). Plain first-party links, sits above the page header in normal flow. ===== */
:root { --sf-topbar-h: 34px; }
.sf-topbar {
  position: relative; z-index: 60; box-sizing: border-box; width: 100%; height: var(--sf-topbar-h); flex: 0 0 auto;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, rgba(var(--sf-glow, 95, 224, 138), .07), rgba(var(--sf-glow, 95, 224, 138), 0)), color-mix(in srgb, var(--sf-panel2, #1a201c) 88%, #000);
  border-bottom: 1px solid color-mix(in srgb, rgb(var(--sf-glow, 95, 224, 138)) 20%, var(--sf-line, #2d3a32));
  font: 600 12.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
html.light .sf-topbar, html[data-theme="light"] .sf-topbar { background: linear-gradient(180deg, rgba(var(--sf-glow, 31, 163, 79), .08), rgba(var(--sf-glow, 31, 163, 79), 0)), color-mix(in srgb, var(--sf-panel, #fff) 92%, transparent); }
.sf-topbar-list {
  display: flex; align-items: center; gap: 2px; margin: 0; padding: 0 10px; list-style: none; width: 100%;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
}
.sf-topbar-list::-webkit-scrollbar { display: none; }
.sf-topbar-list li { flex: 0 0 auto; margin: 0; padding: 0; scroll-snap-align: center; }
.sf-topbar a.sf-top-link {
  position: relative; display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px;
  color: var(--sf-muted, #9aa69f); text-decoration: none; letter-spacing: .01em; border: 0; margin: 0; font: inherit; box-sizing: border-box;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.sf-topbar a.sf-top-link:hover {
  color: var(--sf-ink, #5fe08a); background: rgba(var(--sf-glow, 95, 224, 138), .12);
  box-shadow: 0 0 14px rgba(var(--sf-glow, 95, 224, 138), .18);
}
.sf-topbar a.sf-top-link:focus-visible { outline: 2px solid var(--sf-ink, #5fe08a); outline-offset: -2px; }
.sf-topbar a.sf-top-link[aria-current="page"] {
  color: var(--sf-ink, #5fe08a); background: rgba(var(--sf-glow, 95, 224, 138), .16);
  box-shadow: inset 0 0 0 1px rgba(var(--sf-glow, 95, 224, 138), .32), 0 0 14px rgba(var(--sf-glow, 95, 224, 138), .16);
}
@media (max-width: 768px) {
  .sf-topbar a.sf-top-link { height: 26px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .sf-topbar a.sf-top-link { transition: none; } .sf-topbar-list { scroll-behavior: auto; } }
/* pages laid out to exactly one screen keep fitting once the bar is added */
html.sf-topbar-fit body { height: calc(100vh - var(--sf-topbar-h)); min-height: 0; }
@supports (height: 1dvh) { html.sf-topbar-fit body { height: calc(100dvh - var(--sf-topbar-h)); } }
html.sf-topbar-fit2 body { min-height: calc(100vh - var(--sf-topbar-h)); }
@supports (height: 1dvh) { html.sf-topbar-fit2 body { min-height: calc(100dvh - var(--sf-topbar-h)); } }
