/* Shared top navigation: a floating, centred, rounded "glass" pill.
   Light glass by default; add .sn-dark (home page) for the dark glass version.
   All selectors are prefixed .sn so they cannot clash with Bootstrap or the old template. */
.sn { --sn-ink: #1b2430; --sn-muted: #4a5563; --sn-line: rgba(27, 36, 48, .14); --sn-accent: #1f6b66; --sn-on-accent: #ffffff; --sn-clay: #b24a26;
  --sn-hover: rgba(27, 36, 48, .07); --sn-panel: rgba(250, 247, 241, .97);
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000; box-sizing: border-box;
  display: flex; align-items: center; gap: 28px; max-width: calc(100vw - 24px); padding: 8px 10px 8px 22px; border-radius: 999px;
  background: rgba(255, 253, 249, .58); border: 1px solid var(--sn-line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 30px rgba(27, 36, 48, .10), inset 0 1px 0 rgba(255, 255, 255, .6);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.4; animation: snDrop .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
@keyframes snDrop { from { opacity: 0; transform: translate(-50%, -18px); } }

.sn .sn-logo { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; color: var(--sn-ink); text-decoration: none; white-space: nowrap; }
.sn .sn-logo span { color: var(--sn-clay); }
.sn .sn-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sn .sn-links li { margin: 0; padding: 0; }
.sn .sn-links a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--sn-muted); text-decoration: none; transition: color .25s, background .25s; }
.sn .sn-links a:hover { color: var(--sn-ink); background: var(--sn-hover); }
.sn .sn-links a.active { color: var(--sn-on-accent); background: var(--sn-accent); font-weight: 600; }
.sn .sn-burger { display: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: var(--sn-hover); cursor: pointer; position: relative; flex: none; }
.sn .sn-burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--sn-ink); transition: transform .3s, opacity .3s; }
.sn .sn-burger span:nth-child(1) { top: 13px; }
.sn .sn-burger span:nth-child(2) { top: 19px; }
.sn .sn-burger span:nth-child(3) { top: 25px; }
.sn.open .sn-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sn.open .sn-burger span:nth-child(2) { opacity: 0; }
.sn.open .sn-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sn .sn-burger:focus-visible, .sn .sn-links a:focus-visible, .sn .sn-logo:focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 2px; }

/* Dark glass (home page, over the dark hero) */
.sn.sn-dark { --sn-ink: #ffffff; --sn-muted: rgba(226, 236, 248, .78); --sn-line: rgba(255, 255, 255, .16); --sn-accent: #a2eeaf; --sn-on-accent: #04101f; --sn-clay: #a2eeaf;
  --sn-hover: rgba(255, 255, 255, .10); --sn-panel: rgba(6, 11, 26, .96);
  background: rgba(8, 14, 32, .45); box-shadow: none; }

/* Phones and small tablets: a full-width pill with a menu button; the links drop down below it */
@media (max-width: 960px) {
  .sn { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; gap: 16px; animation-name: snDropM; }
  @keyframes snDropM { from { opacity: 0; transform: translateY(-18px); } }
  .sn .sn-burger { display: block; }
  .sn nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; padding: 10px; border-radius: 24px;
    background: var(--sn-panel); border: 1px solid var(--sn-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
  .sn.open nav { display: block; }
  .sn .sn-links { flex-direction: column; gap: 2px; }
  .sn .sn-links a { padding: 12px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .sn { animation: none; } }
