/* Shared public site shell: navigation, brand and footer. */
  nav { position: sticky; top: 0; z-index: 50; height: 64px;
    background: var(--bg);
    border-bottom: 1px solid transparent; display: flex; align-items: center;
    transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .2s; }
  nav.stuck { border-bottom-color: var(--line); }
  nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30px;
    background: linear-gradient(var(--bg) 0%, var(--bg) 30%, transparent 100%);
    opacity: 0; transition: opacity .2s; pointer-events: none; }
  nav.stuck::after { opacity: 1; }
  nav.away { transform: translateY(-100%); }
  @media (prefers-reduced-motion: reduce) { nav { transition: none; } }
  nav .wrap { display: flex; align-items: center; gap: 14px; width: 100%; }
  .brand { display: flex; align-items: center; gap: 9px; font-weight: 680; font-size: 17px; letter-spacing: -.02em; }
  .brand .mk { width: 32px; height: 32px; object-fit: contain; display: block; }
  .navlinks { margin-left: 26px; display: flex; gap: 26px; }
  .navlinks a { font-size: 14px; font-weight: 550; color: var(--muted); white-space: nowrap; }
  .navlinks a:hover { color: var(--ink); }
  .navright { margin-left: auto; display: flex; align-items: center; gap: 13px; }
  .site-user { display: inline-flex; align-items: center; gap: 8px; height: 32px;
    padding: 0 4px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }
  .site-user:hover { color: var(--green-hover); }
  .site-user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-user-avatar { display: none; place-items: center; width: 24px; height: 24px; border-radius: 7px;
    color: #fff; background: var(--green-action); font-size: 12px; font-weight: 700; }
  .site-user.is-authenticated { color: var(--ink); }
  .site-user.is-authenticated .site-user-avatar { display: grid; }
/* Shared public navigation. Keep the mark, text and controls on one scale. */
nav { height: 80px; line-height: 1.6; }
nav .wrap { max-width: 1360px; gap: 24px; min-width: 0; }
nav .brand { flex: 0 0 auto; gap: 10px; font-size: 22px; white-space: nowrap; }
nav .brand .mk { flex: 0 0 auto; width: 36px; height: 36px; object-fit: contain; }
nav .navlinks { margin-left: 8px; gap: 18px; }
nav .navlinks a { font-size: 15px; }
nav .navright { gap: 20px; flex-shrink: 0; }
nav .bridge-link { font-size: 16px; font-weight: 650; white-space: nowrap; }
nav .btn.sm { height: 42px; padding: 0 18px; font-size: 16px; border-radius: 10px; }
nav .site-user { display: inline-flex; height: 42px; font-size: 15px; min-width: 0; flex-shrink: 0; }
nav .site-user-name { max-width: 100px; }
nav .site-user-avatar { flex: 0 0 auto; width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
nav .site-user:hover { color: var(--green-ink); }

@media (max-width: 1180px) {
  nav .wrap { gap: 16px; }
  nav .brand { font-size: 20px; gap: 8px; }
  nav .navlinks { display: flex; margin-left: auto; gap: 0; }
  nav .navlinks a { display: none; }
  nav .navlinks .nav-developers { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
  nav .navlinks .nav-invite { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; margin-left: 18px; }
  nav .navright { gap: 14px; }
  nav .bridge-link { font-size: 14px; }
  nav .btn.sm { padding-inline: 14px; font-size: 14px; }
  nav .site-user { font-size: 14px; }
  nav .site-user-name { max-width: 80px; }
}
@media (max-width: 720px) {
  nav { height: auto; min-height: 76px; }
  nav .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 14px; }
  nav .brand { font-size: 20px; }
  nav .brand .mk { width: 32px; height: 32px; }
  nav .navlinks .nav-developers { font-size: 14px; }
  nav .navlinks:has(.nav-invite) { order: 3; width: 100%; margin-left: 0; }
  nav .navright { width: 100%; margin-left: 0; gap: 12px; }
  nav .navright .site-user { display: inline-flex; margin-left: auto; }
  nav .bridge-link { font-size: 14px; }
  nav .btn.sm { height: 44px; padding-inline: 14px; font-size: 14px; }
  nav .site-user { height: 44px; }
  nav .site-user-name { max-width: 90px; }
}
@media (max-width: 540px) {
  nav .wrap { gap: 8px; }
  nav .site-user-name { max-width: 110px; }
}
@media (max-width: 420px) {
  nav .site-user.is-authenticated .site-user-name { display: none; }
}
  .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr; gap: 32px; padding-top: 36px; padding-bottom: 32px; }
  footer { border-top: 1px solid #d8e1d4; margin-top: 48px; font-size: 14px; line-height: 1.6; }
  footer .brand { margin-bottom: 14px; }
  footer p { max-width: 380px; color: #496258; font-size: 14px; }
  footer h2 { font-size: 13px; line-height: 1.3; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px; }
  footer .footer-links a { display: block; font-size: 14px; color: #496258; padding: 5px 0; }
  .copyright { border-top: 1px solid #d8e1d4; padding: 20px 0; font-size: 12px; color: #647568; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  footer .brand { font-size: 15px; }
}
