/* Site menu on the generators list. Scoped so it does not restyle the tools. */
.site-header {
  --bar-ink: #171123;
  --bar-ink-2: #372248;
  --bar-muted: #414770;
  --bar-header: rgba(255, 255, 255, .92);
  --bar-surface: rgba(255, 255, 255, .9);
  --bar-border: rgba(255, 255, 255, .82);
  --bar-accent: #F46036;
  --bar-btn: #F46036;
  --bar-btn-fg: #fff;
  --bar-shadow: 0 18px 50px rgba(23, 17, 35, .12);
  --bar-pad: clamp(18px, 4.6vw, 88px);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--bar-header);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  font-family: "Plus Jakarta Sans", "IBM Plex Sans", system-ui, sans-serif;
  color: var(--bar-ink);
}
html[data-theme="dark"] .site-header,
html.is-dark .site-header {
  --bar-ink: #f4f4f5;
  --bar-ink-2: #e4e4e7;
  --bar-muted: #b0b0b8;
  --bar-header: rgba(8, 8, 10, .92);
  --bar-surface: rgba(36, 36, 44, .9);
  --bar-border: rgba(245, 197, 24, .18);
  --bar-accent: #f5c518;
  --bar-btn: #f5c518;
  --bar-btn-fg: #111;
  --bar-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  border-bottom-color: rgba(245, 197, 24, .14);
}
.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.8vw, 1.8rem);
  min-height: clamp(68px, 7.2vw, 86px);
  width: 100%;
  padding-inline: var(--bar-pad);
  box-sizing: border-box;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.site-header .brand-logo {
  display: block;
  height: clamp(30px, 3.1vw, 44px);
  width: auto;
}
.site-header .brand-tag {
  display: flex;
  align-items: center;
  height: clamp(30px, 3.1vw, 44px);
  padding-left: .8rem;
  border-left: 1.5px solid #1E3A6B;
  font-size: clamp(.78rem, .92vw, .92rem);
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1;
  color: #1E3A6B;
  white-space: nowrap;
}
html[data-theme="dark"] .site-header .brand-tag,
html.is-dark .site-header .brand-tag {
  color: #8FA4C7;
  border-left-color: rgba(143, 164, 199, .45);
}
.site-header .logo-on-dark { display: none; }
html[data-theme="dark"] .site-header .logo-on-light,
html.is-dark .site-header .logo-on-light { display: none; }
html[data-theme="dark"] .site-header .logo-on-dark,
html.is-dark .site-header .logo-on-dark { display: block; }
.site-header .nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(.5rem, 1.4vw, 1.45rem);
  font-size: clamp(.8rem, .88vw, .94rem);
  font-weight: 600;
  color: var(--bar-ink-2);
  min-width: 0;
}
.site-header .nav-links > a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--bar-ink-2);
}
.site-header .nav-links > a.is-active { color: var(--bar-accent); }
.site-header .nav-cta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}
.site-header a.btn.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid transparent;
  padding: .7rem 1.2rem;
  font-size: clamp(.86rem, .92vw, .98rem);
  white-space: nowrap;
  text-decoration: none;
  background: var(--bar-btn);
  color: var(--bar-btn-fg);
  line-height: 1.2;
}
.site-header a.btn.btn-solid:hover { filter: brightness(.95); }
.site-header .theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--bar-border);
  background: var(--bar-surface);
  color: var(--bar-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.site-header .theme-toggle svg { width: 18px; height: 18px; }
.site-header .icon-sun { display: none; }
html[data-theme="dark"] .site-header .icon-sun,
html.is-dark .site-header .icon-sun { display: block; }
html[data-theme="dark"] .site-header .icon-moon,
html.is-dark .site-header .icon-moon { display: none; }
.site-header .nav-toggle { display: none; }

.app-tabbar { display: none; }

@media (max-width: 1240px) {
  .site-header .brand-tag { display: none; }
}
@media (max-width: 1100px) {
  .site-header .nav-links { gap: .55rem; font-size: .78rem; }
}
@media (max-width: 820px) {
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .site-header .site-nav { min-height: 52px; gap: .45rem; --bar-pad: 16px; }
  .site-header .brand-logo { height: 26px; }
  .site-header .nav-links { display: none !important; }
  .site-header .nav-cta { margin-left: auto; }
  .site-header .nav-cta a.btn.btn-solid { display: none; }
  .site-header .theme-toggle { width: 38px; height: 38px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 80;
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border-top: 1px solid rgba(23, 17, 35, .08);
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", system-ui, sans-serif;
  }
  html[data-theme="dark"] .app-tabbar,
  html.is-dark .app-tabbar {
    background: rgba(14, 14, 18, .94);
    border-top-color: rgba(245, 197, 24, .16);
  }
  .app-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    padding: 2px 0;
    font-size: .56rem;
    font-weight: 650;
    letter-spacing: 0;
    color: #8e8e93;
    text-decoration: none;
  }
  .app-tabbar a span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-tabbar svg { width: 20px; height: 20px; }
  .app-tabbar a.is-on { color: #F46036; }
  html[data-theme="dark"] .app-tabbar a.is-on,
  html.is-dark .app-tabbar a.is-on { color: #f5c518; }
}
