/* Compact floating navigation, with the same fixed light surface on every band. */
.home-clerk .site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin: 14px auto 0;
  border: 0;
  background: transparent;
}
.home-clerk .header-inner {
  width: min(1180px, calc(100% - 48px));
  height: 62px;
  padding: 0 12px 0 22px;
  gap: 20px;
  border: 1px solid #dce1e8;
  border-radius: 12px;
  background: #f8f9fbeb;
  box-shadow: 0 1px 0 #fff inset, 0 2px 3px #16223904, 0 6px 14px -8px #16223926;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.home-clerk .site-header .brand { font-size: 16px; letter-spacing: -.05em; color: #181b22; }
.header-divider { width: 1px; height: 22px; flex: 0 0 1px; background: #dce1e8; }
.home-clerk .desktop-nav { display: flex; gap: 3px; }
.home-clerk .desktop-nav a {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 6px;
  color: #5b6270;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s, background-color .18s;
}
.home-clerk .desktop-nav a:hover { color: #181b22; background: #e9edf3; }
.home-clerk .header-actions { gap: 15px; margin-left: auto; }
.header-github { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding-inline: 4px; color: #5b6270; font-size: 11px; font-weight: 500; white-space: nowrap; }
.header-github .icon { width: 13px; height: 13px; flex-basis: 13px; }
.header-github:hover { color: #006bac; }
.home-clerk .header-contact {
  display: inline-flex;
  min-height: 36px;
  padding: 0 13px;
  gap: 15px;
  border: 1px solid #076a9e;
  border-radius: 7px;
  background: #0879b8;
  box-shadow: 0 1px 0 #ffffff30 inset, 0 1px 2px #075b8c24;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .18s, box-shadow .18s;
}
.home-clerk .header-contact:hover { background: #076ba4; box-shadow: 0 1px 0 #ffffff30 inset, 0 2px 4px #075b8c30; }
.home-clerk .mobile-menu { display: none; }
.home-clerk .skip-link { z-index: 110; }
.home-clerk main, .home-clerk .home-section { scroll-margin-top: 104px; }
@media (max-width: 1050px) {
  .home-clerk .header-inner { gap: 15px; padding-left: 18px; }
  .home-clerk .desktop-nav a { padding-inline: 9px; }
}
@media (max-width: 760px) {
  .header-github { display: none; }
  .home-clerk .site-header { top: 10px; margin-top: 10px; }
  .home-clerk .header-inner { width: calc(100% - 24px); height: 58px; padding: 0 10px 0 17px; gap: 12px; border-radius: 11px; }
  .home-clerk .site-header .brand { font-size: 15px; }
  .header-divider, .home-clerk .desktop-nav { display: none; }
  .home-clerk .header-actions { gap: 8px; }
  .home-clerk .header-contact { min-height: 34px; padding-inline: 12px; font-size: 10px; gap: 10px; }
  .home-clerk .mobile-menu { display: block; }
  .home-clerk .mobile-menu summary {
    display: flex;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    list-style: none;
    cursor: pointer;
    border-radius: 6px;
  }
  .home-clerk .mobile-menu summary:hover { background: #e9edf3; }
  .home-clerk .mobile-menu summary::-webkit-details-marker { display: none; }
  .home-clerk .mobile-menu summary span { width: 17px; height: 1px; background: #181b22; transition: transform .2s; }
  .home-clerk .mobile-menu[open] summary span:first-child { transform: translateY(3px) rotate(45deg); }
  .home-clerk .mobile-menu[open] summary span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .home-clerk .mobile-menu nav {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    padding: 12px;
    border: 1px solid #dce1e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 24px -12px #18253530;
  }
  .home-clerk .mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding-inline: 12px; border-radius: 6px; color: #303744; font-size: 13px; }
  .home-clerk .mobile-menu nav a:hover { background: #f2f5f9; color: #006bac; }
  .home-clerk .mobile-menu nav .icon { width: 14px; height: 14px; flex-basis: 14px; color: #6b7280; }
  .home-clerk .mobile-menu nav .mobile-github { margin-top: 7px; padding-top: 7px; border-top: 1px solid #e3e6eb; border-radius: 0; font-size: 12px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .home-clerk .mobile-menu[open] nav { animation: mobile-navigation-enter .24s cubic-bezier(.22, 1, .36, 1) both; }
  .home-clerk .mobile-menu[open] nav a { animation: mobile-navigation-link-enter .2s cubic-bezier(.22, 1, .36, 1) .02s both; }
  .home-clerk .mobile-menu[open] nav a:nth-child(2) { animation-delay: .045s; }
  .home-clerk .mobile-menu[open] nav a:nth-child(3) { animation-delay: .07s; }
  .home-clerk .mobile-menu[open] nav a:nth-child(4) { animation-delay: .095s; }
  .home-clerk .mobile-menu[open] nav a:nth-child(5) { animation-delay: .12s; }
}
@keyframes mobile-navigation-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mobile-navigation-link-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 420px) {
  .home-clerk .site-header .brand { font-size: 14px; }
  .home-clerk .header-inner { padding-left: 13px; gap: 8px; }
  .home-clerk .header-actions { gap: 6px; }
  .home-clerk .header-contact > .icon { display: none; }
}
