/* One navigation shell for every Public page. Brand scrolls with the document. */
.site-header, .page-brand { color: #0f1113; font: 14px/1.75 var(--font); --ink: #0f1113; --line: #e5e9ec; }
.page-brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; border-radius: 12px; }
.page-brand img { width: 29px; height: 42px; object-fit: contain; }
.page-brand > span { font-size: 31px; font-weight: 640; line-height: 1; letter-spacing: -.065em; padding-bottom: 5px; color: #0f1113; }
.page-brand { position: absolute; top: 23px; left: max(40px, calc((100% - 1200px) / 2)); z-index: 45; padding: 6px 10px 6px 5px !important; margin-left: -5px; }
.site-header { position: fixed; inset: 23px 0 auto; z-index: 50; pointer-events: none; }
.header-inner { width: min(1200px, calc(100% - 80px)); margin: auto; display: flex; justify-content: flex-end; align-items: center; gap: 30px; }
.header-inner > * { pointer-events: auto; }
.nav-card { margin-left: auto; display: flex; gap: 16px; align-items: center; padding: 7px; border: 1px solid #ffffffe6; border-radius: 16px; box-shadow: 0 4px 10px #0f11130a, 0 18px 40px #0f111314, inset 0 0 0 1px #0f11130a; background: #fffffff0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-pages { display: flex; align-items: center; gap: 2px; padding-left: 7px; }
.nav-pages > a, .nav-more > summary { display: flex; align-items: center; min-height: 37px; padding: 0 11px; border-radius: 7px; font-size: 11px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.nav-pages > a:hover, .nav-more > summary:hover, .nav-more[open] summary, .nav-pages > a[aria-current="page"] { background: #f3f6f8; }
.nav-pages > a[aria-current="page"] { box-shadow: inset 0 -2px #00E8F8; }
.nav-more { position: relative; }
.nav-more summary { gap: 5px; list-style: none; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .icon { width: 12px; height: 12px; }
.nav-more[open] > summary .icon { transform: rotate(180deg); }
.nav-more.has-current summary { background: #f3f6f8; box-shadow: inset 0 -2px #00E8F8; }
.nav-dropdown { position: absolute; top: calc(100% + 19px); right: 0; min-width: 180px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #0f111314; }
.nav-dropdown a { display: block; padding: 11px 14px; font-size: 12px; border-radius: 7px; }
.nav-dropdown a:hover, .nav-dropdown a[aria-current="page"] { background: #f3f6f8; }
.nav-actions { display: flex; align-items: center; gap: 5px; padding-left: 9px; border-left: 1px solid #ebedf1; }
.nav-login { display: flex; align-items: center; justify-content: center; min-height: 37px; padding: 0 15px; border-radius: 8px; font-size: 11px; font-weight: 550; }
.nav-login:hover { background: #f3f6f8; }
.nav-plans { display: flex; align-items: center; justify-content: center; gap: 19px; min-height: 37px; padding: 0 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; transition: background .2s; }
.nav-plans:hover { background: #292c30; }
.nav-plans .icon { width: 14px; height: 14px; }
.mobile-menu-toggle { display: none; margin-left: auto; }
@media (max-width:1100px) {
  .header-inner { width: calc(100% - 48px); gap: 15px; }
  .page-brand { left: 24px; }
  .nav-card { gap: 8px; }
  .nav-pages { padding-left: 2px; }
  .nav-pages > a, .nav-more > summary { padding-inline: 8px; font-size: 10px; }
  .nav-actions { padding-left: 6px; }
  .nav-login { padding-inline: 11px; }
  .nav-plans { gap: 12px; padding-inline: 12px; }
}
@media (max-width:900px) {
  .site-header { top: 17px; }
  .page-brand { left: 24px; top: 17px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 45px; padding: 0 16px; border: 1px solid #fff; border-radius: 11px; box-shadow: 0 3px 14px #0f11130d; background: #fffffff0; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); font-size: 11px; }
  .menu-lines { width: 15px; height: 10px; position: relative; }
  .menu-lines:before, .menu-lines:after { content: ""; position: absolute; left: 0; width: 15px; height: 1px; background: var(--ink); transition: transform .2s, top .2s; }
  .menu-lines:before { top: 2px; }
  .menu-lines:after { top: 8px; }
  .mobile-menu-toggle[aria-expanded="true"] .menu-lines:before { top: 5px; transform: rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] .menu-lines:after { top: 5px; transform: rotate(-45deg); }
  .nav-card { display: none; position: absolute; right: 24px; top: 59px; width: min(330px,calc(100% - 48px)); flex-direction: column; align-items: stretch; gap: 10px; padding: 13px; max-height: calc(100dvh - 105px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-color: var(--line); }
  .nav-card.open { display: flex; }
  .nav-pages { flex-direction: column; align-items: stretch; padding: 0; }
  .nav-pages > a, .nav-more > summary { font-size: 12px; min-height: 43px; padding-inline: 14px; }
  .nav-more { min-width: 0; border-radius: 9px; }
  .nav-more[open] { background: #f3f6f8; }
  .nav-more > summary { justify-content: space-between; width: 100%; }
  .nav-dropdown { position: static; min-width: 0; width: auto; box-shadow: none; border: 0; background: transparent; margin: 0; padding: 0 7px 7px; }
  .nav-dropdown a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; white-space: normal; overflow-wrap: anywhere; }
  .nav-actions { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; gap: 7px; }
  .nav-actions > a { flex: 1; min-height: 43px; }
}
@media (max-width:640px) {
  .header-inner { width: calc(100% - 40px); }
  .page-brand { left: 20px; }
  .nav-card { right: 20px; width: min(330px,calc(100% - 40px)); }
  .mobile-menu-toggle { font-size: 11px; min-height: 44px; }
}
.nav-pages > a[target="_blank"] { gap: 5px; }
.nav-external-icon { width: 12px; height: 12px; flex-shrink: 0; }
@media (max-width: 900px) { .page-brand > span { font-size: 29px; } }
@media (max-width: 640px) { .page-brand img { width: 26px; height: 38px; } .page-brand > span { font-size: 28px; } }
@media print { .site-header, .page-brand { display: none !important; } }

.site-header :focus-visible, .page-brand:focus-visible { outline: 2px solid #0f1113; outline-offset: 4px; border-radius: 4px; }

/* Picture sources do not introduce layout boxes around existing images. */
picture[data-optimized] { display: contents; }
picture[data-optimized] > source { display: none; }
