/* Shared Brclio site navigation. Extracted from the downloader homepage.
 * Header-only tokens keep page themes from changing its established appearance. */
.app-header {
  --site-header-blue: #2b7fd8;
  --site-header-blue-deep: #1e5ba8;
  --site-header-yellow: #f4d758;
  --site-header-red: #e84a5f;
  --site-header-cream: #fefcf6;
  --site-header-ink: #1a1a2e;
  --site-header-ink-light: #4a4a5a;
  --site-header-ink-faint: #6f6f7c;
  --site-header-line: rgba(26, 26, 46, 0.12);
  --site-header-font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --site-header-font-serif: "Noto Serif SC", "Songti SC", serif;
  --site-header-font-display: "Fraunces", "Noto Serif SC", serif;
  color: var(--site-header-ink);
  font-family: var(--site-header-font-sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  white-space: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.app-header,
.app-header *,
.app-header *::before,
.app-header *::after { box-sizing: border-box; }

.app-header a { -webkit-tap-highlight-color: transparent; }
.app-header a:focus-visible { outline: 3px solid var(--site-header-blue-deep); outline-offset: 3px; }
.app-header .brand { font: inherit; letter-spacing: normal; white-space: normal; }
.app-header .brand-logo { max-width: none; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid var(--site-header-line);
  background: var(--site-header-cream);
}

.app-header .app-header-inner {
  width: min(1200px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-header .brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--site-header-ink);
  text-decoration: none;
}

.app-header .brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1.5px solid var(--site-header-ink);
  border-radius: 50%;
  object-fit: cover;
  background: #fff800;
  box-shadow: 3px 3px 0 var(--site-header-blue);
  transform: rotate(-2deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-header .brand-copy {
  display: grid;
  gap: 0;
}

.app-header .brand-copy strong {
  font-family: var(--site-header-font-serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.app-header .brand-copy small {
  color: var(--site-header-ink-faint);
  font-family: var(--site-header-font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.app-header .brand:hover .brand-copy strong {
  background: linear-gradient(transparent 60%, var(--site-header-yellow) 60%);
}

.app-header .brand:hover .brand-logo {
  box-shadow: 4px 4px 0 var(--site-header-yellow);
  transform: translateY(-1px) rotate(0deg);
}

.app-header .app-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}

.app-header .app-navigation {
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-header .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  color: var(--site-header-ink-light);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.app-header .nav-link::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 7px;
  left: 11px;
  height: 3px;
  border-radius: 999px;
  background: var(--site-header-yellow);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-header .nav-link:hover,
.app-header .nav-link.is-current {
  color: var(--site-header-ink);
}

.app-header .nav-link:hover::after,
.app-header .nav-link.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.app-header .header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--site-header-ink-light);
  font-size: 12px;
  font-weight: 600;
}

.app-header .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--site-header-red);
  box-shadow: 0 0 0 4px rgba(232, 74, 95, 0.11);
}

@media (max-width: 900px) {
body:not(.is-desktop) .app-header .header-status {
    display: none;
  }
}

@media (max-width: 760px) {
body:not(.is-desktop) .app-header { height: auto; }

body:not(.is-desktop) .app-header .app-header-inner { flex-wrap: wrap; justify-content: center; gap: 2px 12px; padding-top: 8px; }

body:not(.is-desktop) .app-header .app-header-actions { width: 100%; justify-content: center; }

body:not(.is-desktop) .app-header .app-navigation { flex-wrap: wrap; justify-content: center; }

body:not(.is-desktop) .app-header .nav-link { white-space: nowrap; }
}

@media (max-width: 620px) {
.app-header {
    height: 58px;
  }

.app-header .app-header-inner {
    width: min(100% - 24px, 1200px);
  }

.app-header .brand-logo {
    width: 34px;
    height: 34px;
  }

.app-header .brand-copy small {
    display: none;
  }

.app-header .app-header-inner {
    gap: 12px;
  }

.app-header .app-header-actions {
    gap: 0;
  }

.app-header .header-status {
    display: none;
  }

body:not(.is-desktop) .app-header {
    height: auto;
  }

body:not(.is-desktop) .app-header .app-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 12px;
    padding-top: 8px;
  }

body:not(.is-desktop) .app-header .app-header-actions,
body:not(.is-desktop) .app-header .app-navigation {
    width: 100%;
    justify-content: space-between;
  }

body:not(.is-desktop) .app-header .app-navigation {
    flex-wrap: wrap;
    justify-content: center;
  }

body:not(.is-desktop) .app-header .nav-link {
    padding-inline: 8px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
.app-header .app-header-inner,
.app-header .brand {
    gap: 8px;
  }

.app-header .brand-copy strong span {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
.app-header .nav-link {
    min-height: 44px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.69rem;
  }

.app-header .nav-link::after {
    right: 7px;
    left: 7px;
  }
}
