/* The one site nav (2026-10-23). Markup from _tools/site_nav.py. Self-contained tokens so it looks the same on
   the home page, the lead pages, the static pages and the guides (which also have a light mode). */
.sn {
  --sn-bg: #08080a; --sn-panel: #121218; --sn-line: rgba(255,255,255,0.10); --sn-line-2: rgba(255,255,255,0.18);
  --sn-ink: #f4f2ec; --sn-soft: #c9c6bd; --sn-mute: #949189; --sn-accent: #e9b949; --sn-accent-ink: #1a1405;
  --sn-hover: rgba(233,185,73,0.08);
  position: relative; z-index: 60; background: var(--sn-bg); border-bottom: 1px solid var(--sn-line);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.4; color: var(--sn-ink);
}
:root[data-theme="light"] .sn {
  --sn-bg: #f4f2ec; --sn-panel: #ffffff; --sn-line: rgba(8,8,10,0.10); --sn-line-2: rgba(8,8,10,0.18);
  --sn-ink: #15151b; --sn-soft: #4a4842; --sn-mute: #6f6c64; --sn-hover: rgba(233,185,73,0.14);
}
:root[data-theme="light"] .sn .sn-logo svg path[fill="#f4f2ec"] { fill: #08080a; }
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
.sn a { color: inherit; text-decoration: none; }
.sn ul { list-style: none; margin: 0; padding: 0; }
.sn-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.sn-logo { display: inline-flex; align-items: center; flex: none; }
.sn-logo svg { height: 20px; width: auto; display: block; }
.sn-nav { flex: 1; display: flex; align-items: center; }
.sn-menu { display: flex; align-items: center; gap: 4px; }
.sn-item { position: relative; }
.sn-top { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-weight: 500; color: var(--sn-soft); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.sn-top:hover, .sn-top:focus-visible, .sn-top[aria-expanded="true"] { color: var(--sn-ink); background: var(--sn-hover); }
.sn-top:focus-visible, .sn-link:focus-visible, .sn-cta:focus-visible, .sn-burger:focus-visible, .sn a:focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 2px; }
.sn-top[aria-current="page"] { color: var(--sn-ink); }
.sn-caret { width: 14px; height: 14px; transition: transform .2s; }
.sn-top[aria-expanded="true"] .sn-caret { transform: rotate(180deg); }
.sn-ic { width: 26px; height: 26px; flex: none; color: var(--sn-accent); }
.sn-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sn-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--sn-accent); color: var(--sn-accent-ink) !important;
  font-weight: 600; white-space: nowrap; transition: filter .15s; }
.sn-cta:hover { filter: brightness(1.08); }
.sn-cta-menu { display: none; }
.sn-theme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--sn-soft); cursor: pointer; }
.sn-theme:hover { color: var(--sn-accent); }
.sn-theme .moon { display: none; } :root[data-theme="light"] .sn-theme .moon { display: inline; } :root[data-theme="light"] .sn-theme .sun { display: none; }
.sn-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--sn-line-2); border-radius: 10px; background: none; color: var(--sn-ink); cursor: pointer; align-items: center; justify-content: center; }
.sn-burger svg { width: 22px; height: 22px; }
.sn-i-close { display: none; }

/* dropdown panels (desktop) */
.sn-panel { position: absolute; top: calc(100% + 10px); left: -12px; background: var(--sn-panel); border: 1px solid var(--sn-line-2); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45); padding: 16px; display: none; max-width: calc(100vw - 32px); }
.sn-item.sn-open .sn-panel { display: block; animation: sn-in .16s ease-out; }
@keyframes sn-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sn-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.sn-panel-services { width: 680px; }
.sn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sn-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; transition: background .15s; }
.sn-link:hover { background: var(--sn-hover); }
.sn-link b { display: block; font-weight: 600; color: var(--sn-ink); font-size: 15px; }
.sn-link small { display: block; margin-top: 2px; color: var(--sn-mute); font-size: 14px; line-height: 1.4; }
.sn-all { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; border-top: 1px solid var(--sn-line); color: var(--sn-ink) !important; font-weight: 600; border-radius: 0 0 10px 10px; }
.sn-all:hover { background: var(--sn-hover); }
.sn-all .sn-ic { width: 22px; height: 22px; }
.sn-arrow { width: 16px; height: 16px; margin-left: auto; color: var(--sn-accent); }
/* the tools panel hangs from the nav's left edge, so it never runs off the right side */
.sn-item-tools { position: static; }
.sn-panel-tools { left: 24px; top: calc(100% - 2px); width: min(900px, calc(100% - 48px)); }
.sn-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 18px; }
.sn-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sn-mute); }
.sn-h .sn-ic { width: 22px; height: 22px; }
.sn-col li a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--sn-soft); font-size: 14.5px; transition: background .15s, color .15s; }
.sn-col li a:hover { background: var(--sn-hover); color: var(--sn-ink); }

/* phones and small tablets: one menu button, the dropdowns become accordions */
@media (max-width: 1020px) {
  .sn-wrap { height: 60px; padding: 0 16px; gap: 12px; }
  .sn-logo svg { height: 17px; }
  .sn-burger { display: inline-flex; }
  .sn-right .sn-cta { display: none; }
  .sn-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 60px); overflow-y: auto;
    background: var(--sn-bg); border-bottom: 1px solid var(--sn-line); padding: 8px 16px 24px; flex-direction: column; align-items: stretch; }
  .sn.sn-menu-open .sn-nav { display: flex; }
  .sn.sn-menu-open .sn-i-open { display: none; } .sn.sn-menu-open .sn-i-close { display: block; }
  .sn-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .sn-item { border-bottom: 1px solid var(--sn-line); }
  .sn-top { width: 100%; height: 52px; justify-content: space-between; padding: 0 4px; font-size: 17px; color: var(--sn-ink); border-radius: 0; background: none !important; }
  .sn-panel, .sn-panel-services, .sn-panel-tools { position: static; width: auto; max-width: none; display: none; animation: none;
    box-shadow: none; border: 0; border-radius: 0; background: none; padding: 0 0 12px; }
  .sn-panel::before { display: none; }
  .sn-item.sn-open .sn-panel { display: block; }
  .sn-grid { grid-template-columns: 1fr; }
  .sn-link { padding: 10px 4px; }
  .sn-cols { grid-template-columns: 1fr; gap: 4px; }
  .sn-col li a { padding: 10px 8px; font-size: 16px; }
  .sn-cta-menu { display: flex; justify-content: center; height: 50px; margin-top: 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sn-item.sn-open .sn-panel { animation: none; } .sn-caret { transition: none; } }
