/* Shared top bar: same links on every public page */
.topnav { position: sticky; top: 14px; z-index: 50; display: flex; align-items: center; gap: 2px; width: fit-content; max-width: calc(100% - 32px); margin: 14px auto -64px; padding: 5px 5px 5px 14px; border-radius: 12px; background: rgba(251,250,247,.88); border: 1px solid #d8d3c8; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 6px 24px rgba(20,20,20,.06); white-space: nowrap; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.topnav .brand { display: flex; align-items: center; gap: 9px; margin-right: 14px; color: #141414; font-size: 15px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; }
.topnav .brand svg { width: 22px; height: 22px; flex: 0 0 22px; }
.topnav a.l { padding: 7px 10px; border-radius: 8px; font-size: 13px; color: #3d3b37; text-decoration: none; }
.topnav a.l:hover { background: #e9e5dc; color: #141414; }
.topnav a.l[aria-current="page"] { color: #141414; background: #e9e5dc; }
.topnav a.cta { margin-left: 6px; padding: 8px 14px; border-radius: 8px; background: #141414; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; }
.topnav a.cta:hover { background: #000; }
.topnav .mbtn { display: none; align-items: center; gap: 7px; margin-left: 4px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #141414; font: 500 13px inherit; font-family: inherit; cursor: pointer; }
.topnav .mbtn i { display: block; width: 14px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.topnav .mbtn i::after { content: ""; position: absolute; left: 0; right: 0; top: 2.5px; border-top: 1.5px solid currentColor; }
.topnav .mbtn[aria-expanded="true"] { background: #e9e5dc; }
.topnav .mnav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: flex; flex-direction: column; padding: 6px; background: #fbfaf7; border: 1px solid #d8d3c8; border-radius: 12px; box-shadow: 0 16px 40px rgba(20,20,20,.12); }
.topnav .mnav[hidden] { display: none; }
.topnav .mnav a { padding: 13px 12px; color: #141414; font-size: 15px; text-decoration: none; }
.topnav .mnav a + a { border-top: 1px solid #d8d3c8; }
.topnav .mnav a[aria-current="page"] { font-weight: 500; }
.topnav .mnav a[aria-current="page"]::after { content: "  \2022"; color: #0a7a52; }
@media (max-width: 860px) {
  .topnav { width: auto; margin-left: 16px; margin-right: 16px; max-width: none; }
  .topnav a.l { display: none; }
  .topnav .mbtn { display: inline-flex; }
  .topnav .brand { margin-right: auto; }
}
@media (min-width: 861px) { .topnav .mnav { display: none !important; } }

/* Optional short label for the button on phones */
.topnav .cta .cta-s { display: none; }
@media (max-width: 520px) {
  .topnav .cta .cta-l { display: none; }
  .topnav .cta .cta-s { display: inline; }
}

/* Language switch: short codes in the bar, full names in the phone menu */
.topnav .lgs { display: flex; margin-left: 4px; padding-left: 6px; border-left: 1px solid #d8d3c8; }
.topnav .lgs a { padding: 7px 7px; border-radius: 8px; font: 500 11px/1 "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: .06em; color: #77736b; text-decoration: none; }
.topnav .lgs a:hover { background: #e9e5dc; color: #141414; }
.topnav .mnav .mlgs { display: flex; gap: 18px; padding: 13px 12px 9px; border-top: 1px solid #d8d3c8; }
.topnav .mnav .mlgs a { padding: 0; border: 0; color: #77736b; font-size: 14px; }
@media (max-width: 860px) { .topnav .lgs { display: none; } }
