/* Kompas site menu: one dark green floating bar on every page, in the colours of the compass
   (deep green, mint, silver, the needle's soft blue). Tools and About open a light overview panel;
   on phones everything sits behind one Menu button. Uses the page tokens with fallbacks. */
/* Email lines show only once the team's address is filled in (see the top of site-nav.js). */
html:not([data-email]) .js-email-only, html[data-email] .no-email-only { display: none !important; }
.email-line a { font-weight: 600; overflow-wrap: anywhere; }
.sn {
  position: sticky; top: 0; z-index: 55;
  padding: 12px 16px 0;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sn.sn-away { transform: translateY(calc(-100% - 8px)); }
.sn-bar, .sn-panel { pointer-events: auto; }
.sn-bar {
  width: min(1080px, 100%); margin: 0 auto; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px;
  background: #22302c; color: #fff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 32px -12px rgba(12, 22, 19, 0.5);
}
[dir="rtl"] .sn-bar { padding: 8px 18px 8px 8px; }
.sn-bar :focus-visible { outline-color: #8fd3c1; }
.sn-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: "EB Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.sn-logo svg { width: 28px; height: 28px; }
.sn-links { display: none; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sn-top {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: inherit;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.sn-top .sn-chev { width: 16px; height: 16px; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.sn-top[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }
.sn-top[aria-expanded="true"] .sn-chev { transform: rotate(180deg); }
.sn-top { position: relative; }
.sn-top.sn-here::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #8fd3c1; }
@media (hover: hover) and (pointer: fine) { .sn-top:hover { background: rgba(255, 255, 255, 0.08); } .sn-top[aria-expanded="true"]:hover { background: rgba(255, 255, 255, 0.14); } }
.sn-right { display: flex; align-items: center; gap: 6px; }
.sn-lang {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: inherit;
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  transition: background-color 160ms ease;
}
.sn-lang svg { width: 18px; height: 18px; color: #8fd3c1; }
.sn-lang[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); }
@media (hover: hover) and (pointer: fine) { .sn-lang:hover { background: rgba(255, 255, 255, 0.16); } }
.sn-cta {
  display: none; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: #8fd3c1; color: #13201c;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sn-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sn-cta:hover { background: #a8e2d3; } }
.sn-burger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: #8fd3c1; color: #13201c;
  font: inherit; font-weight: 600; cursor: pointer;
}
.sn-burger svg { width: 18px; height: 18px; }
.sn-burger .sn-x { display: none; }
.sn-burger[aria-expanded="true"] .sn-x { display: block; }
.sn-burger[aria-expanded="true"] .sn-lines { display: none; }
@media (min-width: 480px) { .sn-cta { display: inline-flex; } }
@media (min-width: 900px) {
  .sn-links, .sn-lang { display: flex; }
  .sn-burger { display: none; }
}

/* Panels: open under the bar, fade and drop in. Light, with the compass icons: mint on deep green. */
.sn-panel {
  width: min(1080px, calc(100% - 32px)); margin: 8px auto 0;
  background: var(--paper, #fff); color: var(--ink, #13201c);
  border-radius: 24px; padding: 14px;
  box-shadow: 0 24px 48px -20px rgba(19, 32, 28, 0.32), 0 1px 0 rgba(19, 32, 28, 0.06);
  position: absolute; left: 16px; right: 16px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.985); transform-origin: 50% 0;
  transition: opacity 150ms ease, transform 150ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s 150ms;
}
.sn-panel :focus-visible { outline-color: #22302c; }
.sn-panel.sn-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s;
}
.sn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.95fr); gap: 4px 6px; align-items: stretch; }
.sn-items { grid-column: 1 / 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.sn-item {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 14px; border-radius: 16px;
  color: inherit; text-decoration: none; transition: background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .sn-item:hover { background: var(--card, #f3f6f4); } .sn-item:hover .sn-ic { background: #2f403b; } }
.sn-item[aria-current="page"] { background: var(--card, #f3f6f4); }
.sn-ic { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #22302c; color: #8fd3c1; transition: background-color 160ms ease; }
.sn-ic svg { width: 20px; height: 20px; }
.sn-item b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.sn-item small { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--muted, #56635e); }
.sn-tag { display: inline-block; margin-inline-start: 8px; padding: 0 8px; border-radius: 999px; background: #d6f0e8; color: var(--ink, #13201c); font-size: 0.75rem; font-weight: 600; vertical-align: 2px; }
.sn-here-tag { display: inline-block; margin-inline-start: 8px; font-size: 0.75rem; font-weight: 600; color: #2b6b5c; vertical-align: 1px; }
.sn-feature {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px;
  background: #22302c; color: #fff; text-decoration: none;
}
.sn-feature img { display: block; width: 100%; height: 132px; object-fit: cover; }
.sn-feature span { display: block; padding: 14px 16px 16px; }
.sn-feature b { display: block; font-family: "EB Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.sn-feature small { display: block; margin-top: 6px; font-size: 0.875rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.sn-feature em { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 0.9375rem; color: #8fd3c1; }
.sn-feature em svg { width: 16px; height: 16px; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .sn-feature:hover em svg { transform: translateX(3px); } }
.sn-panel-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; padding: 12px 14px 4px; border-top: 1px solid var(--surface, #d7e0db); font-size: 0.9375rem; color: var(--muted, #56635e); }
.sn-panel-foot a { color: #22302c; font-weight: 600; }

/* Language panel: a small one, right-aligned under the language button */
.sn-panel.sn-langs { width: 300px; left: auto; right: max(16px, calc((100% - 1080px) / 2)); padding: 10px; }
.sn-langs p { padding: 8px 10px 6px; font-size: 0.9375rem; color: var(--muted, #56635e); }
.sn-lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sn-lang-list li { font-size: 0.9375rem; border-radius: 10px; }
.sn-lang-pick { display: block; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: start; cursor: pointer; transition: background-color 160ms ease; }
.sn-lang-pick[aria-pressed="true"] { background: #d6f0e8; }
@media (hover: hover) and (pointer: fine) { .sn-lang-pick[aria-pressed="false"]:hover { background: var(--card, #f3f6f4); } }
.sn-lang-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px 10px; color: var(--muted, #56635e); }
.sn-lang-soon .sn-tag { margin: 0; }
.sn-lang-mobile { margin: 4px 6px 8px; }

/* Phone menu: everything in one panel */
.sn-mobile { max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; }
.sn-mobile .sn-h { margin: 12px 12px 2px; font-size: 0.875rem; font-weight: 700; color: var(--muted, #56635e); }
.sn-inline { width: 16px; height: 16px; vertical-align: -3px; color: #22302c; }
.sn-mobile .sn-items { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .sn-mobile .sn-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sn-mobile .sn-item { padding: 8px 12px; align-items: center; }
.sn-mobile .sn-item small { display: none; }
.sn-mobile .sn-ic { flex-basis: 36px; height: 36px; }
.sn-mobile .sn-ic svg { width: 18px; height: 18px; }
.sn-mobile-cta { display: flex; justify-content: center; align-items: center; min-height: 48px; margin: 12px 4px 4px; border-radius: 999px; background: #22302c; color: #fff; font-weight: 600; text-decoration: none; }
.sn-mobile .sn-note { margin: 10px 12px 4px; font-size: 0.875rem; color: var(--muted, #56635e); }

@media (max-width: 899px) { .sn-desktop-only { display: none !important; } }
@media (min-width: 900px) { .sn-mobile { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .sn, .sn-panel, .sn-panel.sn-open { transition: opacity 150ms ease, visibility 0s; transform: none !important; }
  .sn.sn-away { opacity: 0; pointer-events: none; }
}
