/* Shared site header — mirrors the Home page header (index.html). */
.sh {
  --sh-lime: #cdfa4c;
  --sh-lime-hover: #dcff73;
  --sh-cta-ink: #0b2118;
  --sh-on-dark: #fffdf9;
  --sh-muted: rgba(255, 253, 249, 0.78);
  --sh-glass: rgba(255, 255, 255, 0.09);
  --sh-line: rgba(255, 255, 255, 0.18);
  --sh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: sticky; top: 0; z-index: 50; box-sizing: border-box; width: 100%;
  display: flex; align-items: center; gap: 1.25rem;
  padding: clamp(0.75rem, 2vh, 1.25rem) clamp(1rem, 4vw, 3.5rem);
  font-family: "Plus Jakarta Sans", "Noto Sans", system-ui, sans-serif;
  color: var(--sh-on-dark);
  background: linear-gradient(160deg, #0a4a3f 0%, #06322b 55%, #04241f 100%);
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a { color: inherit; text-decoration: none; }
.sh :focus-visible { outline: 3px solid var(--sh-lime); outline-offset: 3px; border-radius: 6px; }
.sh .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-brand { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.sh-brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.sh-brand-word { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.1em; }
.sh-who, .sh-who-drop, .nm-panel .sh-who-name { flex-direction: column; min-width: 0; line-height: 1.2; text-decoration: none; }
.sh-who:not([hidden]) { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; }
.sh-who-text { display: flex; flex-direction: column; min-width: 0; }
.sh-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.sh-who[hidden], .sh-who-drop[hidden], #sh-who-menu[hidden] { display: none; }
.sh-who { max-width: min(16rem, 28vw); }
.sh-who-name { font-weight: 800; font-size: 0.92rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-who-title { font-size: 0.72rem; font-weight: 600; color: var(--sh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-who-drop { display: none; }
.nm-panel #sh-who-menu a { display: flex; flex-direction: row; align-items: center; gap: 0.55rem; }
.nm-panel #sh-who-menu .sh-who-name { font-size: 0.95rem; }
.nm-panel #sh-who-menu .sh-who-title { font-size: 0.78rem; }
.sh-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.8vw, 1.5rem); margin-left: auto; }
.sh-links { display: flex; gap: clamp(0.9rem, 1.9vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.sh-links a {
  position: relative; display: inline-block; font-size: 0.86rem; font-weight: 500;
  color: var(--sh-muted); padding: 0.4rem 0; transition: color 0.2s;
}
.sh-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 2px;
  background: var(--sh-lime); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--sh-ease);
}
.sh-links a:hover, .sh-links a:focus-visible, .sh-links a[aria-current="page"] { color: #fff; }
.sh-links a:hover::after, .sh-links a:focus-visible::after, .sh-links a[aria-current="page"]::after { transform: scaleX(1); }
.sh-lang {
  display: inline-flex; gap: 0.15rem; padding: 0.18rem;
  border: 1px solid var(--sh-line); border-radius: 999px; background: var(--sh-glass);
}
.sh-lang button {
  border: 0; background: none; color: var(--sh-muted); cursor: pointer; margin: 0;
  font-weight: 700; font-size: 0.68rem; line-height: 1; font-family: inherit; letter-spacing: 0.04em;
  padding: 0.38rem 0.5rem; border-radius: 999px;
}
.sh-lang button[aria-pressed="true"] { background: var(--sh-lime); color: var(--sh-cta-ink); }
.sh a.sh-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sh-lime); color: var(--sh-cta-ink);
  font-weight: 800; font-size: 0.86rem; letter-spacing: 0.01em;
  padding: 0.72rem 1.25rem; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--sh-ease), background 0.2s;
  white-space: nowrap;
}
.sh a.sh-btn:hover { background: var(--sh-lime-hover); transform: translateY(-1px); }
.sh-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--sh-line); background: var(--sh-glass); color: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.sh a.sh-cta-mobile { display: none; }

@media (max-width: 1100px) {
  .sh-links { gap: 0.9rem; }
  .sh-links a { font-size: 0.8rem; }
}
@media (max-width: 1180px) {
  .sh { gap: 0.6rem; }
  .sh-toggle { display: inline-flex; margin-left: 0; }
  .sh-nav {
    position: absolute; top: calc(100% + 4px); left: clamp(1rem, 4vw, 3.5rem); right: clamp(1rem, 4vw, 3.5rem);
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem 1.25rem; margin: 0;
    border-radius: 20px; background: rgba(4, 36, 31, 0.96); border: 1px solid var(--sh-line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.3s var(--sh-ease), visibility 0.2s;
  }
  .sh-nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .sh-who-drop:not([hidden]) { display: flex; flex-direction: row; align-items: center; gap: 0.55rem; padding: 0.15rem 0.2rem 0.7rem; border-bottom: 1px solid var(--sh-line); }
  .sh-links { flex-direction: column; gap: 0.2rem; }
  .sh-links a { display: block; padding: 0.7rem 0.2rem; font-size: 1rem; }
  .sh-lang { align-self: flex-start; }
  .sh .sh-nav a.sh-btn { justify-content: center; }
  .sh .sh-nav a.sh-btn { display: none; }
  .sh a.sh-cta-mobile { display: inline-flex; margin-left: auto; padding: 0.6rem 1rem; }
}

html { scroll-padding-top: 5rem; }
