@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* The Kollection — shared navigation, theme and component overrides */

html {
  color-scheme: dark;
}

body {
  transition: background-color .22s ease, color .22s ease;
}

/* Keep the navigation dock dark in both modes so the existing white logo remains readable. */
#site-nav {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  box-sizing: border-box;
}

.nav {
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 5px 10px 5px 15px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(31,31,33,.74), rgba(15,15,17,.64)) !important;
  color: #f4f4f6 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 10px 34px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(28px) saturate(1.34) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.34) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}

.nav .brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin-right: auto !important;
  overflow: hidden !important;
  gap: 0 !important;
}

.nav .brand img {
  display: block !important;
  width: auto !important;
  height: 24px !important;
  max-height: 24px !important;
  max-width: min(72vw, 560px) !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
  filter: none !important;
}

.nav .brand-play,
.nav .brand-text,
.nav .brand-mark {
  display: none !important;
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.desktop-nav .wide-link {
  min-height: 42px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: #b9b9c0 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
  transition: color .18s ease, background .18s ease, transform .18s ease !important;
}

.desktop-nav .wide-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.07) !important;
}

.desktop-nav .wide-link.active {
  color: #151518 !important;
  background: #f4f4f6 !important;
  box-shadow: 0 8px 26px rgba(255,255,255,.035) !important;
}

.desktop-nav .wide-link.github,
.desktop-nav .wide-link.coffee {
  color: #818cf8 !important;
}

.desktop-nav .wide-link.github:hover,
.desktop-nav .wide-link.coffee:hover {
  color: #a5b4fc !important;
  background: rgba(99,102,241,.10) !important;
}

.desktop-nav .wide-link svg {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.desktop-nav .wide-link.github svg {
  fill: currentColor !important;
  stroke: none !important;
}

.desktop-nav-divider {
  display: none !important;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  position: static !important;
  inset: auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

.nav-actions > * {
  flex-shrink: 0 !important;
}

/* Theme control */
.theme-toggle {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  align-self: center !important;
  margin: 0 !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #f5f5f6 !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  flex: 0 0 42px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s ease, transform .18s ease !important;
}

.theme-toggle:hover {
  background: rgba(255,255,255,.075) !important;
  transform: translateY(-1px) !important;
}

.theme-toggle:focus-visible,
.menu:focus-visible,
.menu-dropdown a:focus-visible {
  outline: 2px solid #a5b4fc !important;
  outline-offset: 2px !important;
}

.theme-icon {
  width: 22px !important;
  height: 22px !important;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.theme-toggle .icon-moon { display: none !important; }
body.light .theme-toggle .icon-sun { display: none !important; }
body.light .theme-toggle .icon-moon { display: block !important; }

.desktop-theme-toggle { display: none !important; }
.mobile-theme-toggle { display: inline-grid !important; }

/* Mobile menu: fixed square geometry keeps the open-state circle centered on the X. */
.menu-wrap {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  align-self: center !important;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.menu {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  align-self: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #f5f5f6 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s ease, transform .18s ease !important;
}

.menu:hover {
  background: rgba(255,255,255,.055) !important;
  transform: none !important;
}

.menu-wrap.open .menu {
  /* Match the closed button geometry so the X/circle cannot jump or overflow. */
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  background: rgba(255,255,255,.115) !important;
}

.menu .menu-glyph {
  /* Reset the older inline .menu span rules completely.
     Those rules set top/left:50%, which pushed the hamburger down/right. */
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 18px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.menu .menu-glyph::before,
.menu .menu-glyph::after {
  content: none !important;
  display: none !important;
}

.menu .menu-line {
  position: absolute !important;
  left: 0 !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #f4f4f6 !important;
  transform-origin: center !important;
  transition: top .18s ease, transform .18s ease, opacity .14s ease !important;
}

.menu .menu-line:nth-child(1) { top: 0 !important; }
.menu .menu-line:nth-child(2) { top: 6px !important; }
.menu .menu-line:nth-child(3) { top: 12px !important; }

.menu-wrap.open .menu-line:nth-child(1) {
  top: 6px !important;
  transform: rotate(45deg) !important;
}
.menu-wrap.open .menu-line:nth-child(2) {
  opacity: 0 !important;
}
.menu-wrap.open .menu-line:nth-child(3) {
  top: 6px !important;
  transform: rotate(-45deg) !important;
}

.menu-dropdown {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 12px) !important;
  width: min(270px, calc(100vw - 28px)) !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 22px !important;
  background: rgba(18,18,20,.98) !important;
  color: #f5f5f6 !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.52) !important;
  backdrop-filter: blur(22px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-7px) scale(.985) !important;
  transform-origin: top right !important;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease !important;
  z-index: 80 !important;
  overflow: hidden !important;
}

.menu-wrap.open .menu-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.menu-dropdown .menu-link,
.menu-dropdown > a {
  min-height: 48px !important;
  padding: 0 13px !important;
  border-radius: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  color: #c9c9ce !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  text-decoration: none !important;
}

.menu-dropdown .menu-link:hover,
.menu-dropdown .menu-link.active,
.menu-dropdown > a:hover,
.menu-dropdown > a.active {
  color: #fff !important;
  background: rgba(255,255,255,.075) !important;
}

.nav-item-icon,
.menu-community svg {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.menu-community {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  display: grid !important;
  gap: 2px !important;
}

.menu-community a {
  min-height: 46px !important;
  padding: 0 13px !important;
  border-radius: 15px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #8f98ff !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.menu-community a:hover {
  color: #b4b8ff !important;
  background: rgba(99,102,241,.10) !important;
}

.menu-community .github-icon {
  fill: currentColor !important;
  stroke: none !important;
}

/* -------------------- LIGHT MODE --------------------
   Dark is always the default. Light is applied only after the visitor taps the toggle.
*/
body.light {
  --bg: #f4f5f7 !important;
  --text: #17181c !important;
  --muted: #686b73 !important;
  --line: rgba(0,0,0,.12) !important;
  --line-soft: rgba(0,0,0,.075) !important;
  --button: #17181c !important;
  --button-text: #fff !important;
  background:
    radial-gradient(circle at 50% 22%, rgba(107,114,128,.10), transparent 34rem),
    radial-gradient(circle at 76% 74%, rgba(99,102,241,.08), transparent 32rem),
    #f4f5f7 !important;
  color: #17181c !important;
}

body.light::before {
  opacity: .11 !important;
  background-image:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px) !important;
}

body.light .hero,
body.light .caption,
body.light .news-shell,
body.light .release {
  color: #17181c !important;
}

body.light h1,
body.light h2,
body.light .caption h2,
body.light .news-heading h1,
body.light .release h2 {
  color: #17181c !important;
}

body.light .hero p,
body.light .caption p,
body.light .news-heading p,
body.light .release-summary,
body.light .release-details {
  color: #686b73 !important;
}

body.light .eyebrow {
  color: #484b52 !important;
  border-color: rgba(0,0,0,.10) !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 6px 24px rgba(17,24,39,.04) !important;
}

body.light .btn-primary,
body.light .btn.primary {
  color: #fff !important;
  background: #17181c !important;
  border-color: #17181c !important;
  box-shadow: 0 14px 36px rgba(17,24,39,.14) !important;
}

body.light .btn-secondary,
body.light .release-actions .btn:not(.primary) {
  color: #202126 !important;
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(0,0,0,.11) !important;
  box-shadow: 0 10px 30px rgba(17,24,39,.045) !important;
}

body.light .microcopy,
body.light .release-meta,
body.light .loading,
body.light .latest-update-label {
  color: #767982 !important;
}

body.light .latest-update {
  border-color: rgba(0,0,0,.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.66)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 46px rgba(17,24,39,.08) !important;
}

body.light .latest-update-title {
  color: #202126 !important;
}

body.light .latest-update-icon {
  color: #625df6 !important;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.10)) !important;
  border-color: rgba(99,102,241,.20) !important;
}

body.light .version-badge {
  color: #5148cf !important;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.10)) !important;
  border-color: rgba(99,102,241,.24) !important;
}

body.light .release,
body.light .news-heading {
  border-color: rgba(0,0,0,.08) !important;
}

body.light .release-tag {
  color: #62656d !important;
  border-color: rgba(0,0,0,.11) !important;
  background: rgba(255,255,255,.62) !important;
}

body.light .showcase-card img {
  filter: drop-shadow(0 26px 70px rgba(17,24,39,.18)) !important;
}

/* The footer stays dark in light mode so the existing white banner logo remains legible. */
.site-footer {
  position: relative !important;
  isolation: isolate !important;
}

body.light .site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #111216;
}

body.light .site-footer {
  border-top-color: rgba(255,255,255,.045) !important;
}

/* ==================== NAV RESPONSIVENESS — SINGLE SOURCE OF TRUTH ====================
   The dock geometry never changes between desktop and compact modes.
   Only which controls are visible changes. components.js mirrors this exact
   media query only to expose .force-compact-nav for the Nuvio account menu.
*/
.page {
  padding-top: 14px !important;
}

/* Compact: phones, tablets up to 1100px, plus portrait tablet/desktop-site view. */
@media (max-width: 1100px), (orientation: portrait) and (max-width: 1400px) {
  #site-nav .desktop-nav { display: none !important; }

  #site-nav .nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-left: auto !important;
  }

  #site-nav .desktop-theme-toggle { display: none !important; }
  #site-nav .mobile-theme-toggle { display: inline-grid !important; }
  #site-nav .menu-wrap { display: grid !important; }
}

/* JS mirrors the same layout query for nav-account.css only. */
html.force-compact-nav body #site-nav .desktop-nav { display: none !important; }

html.force-compact-nav body #site-nav .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  margin-left: auto !important;
}

html.force-compact-nav body #site-nav .desktop-theme-toggle { display: none !important; }
html.force-compact-nav body #site-nav .mobile-theme-toggle { display: inline-grid !important; }
html.force-compact-nav body #site-nav .menu-wrap { display: grid !important; }

/* Desktop landscape. Geometry stays exactly 68px / 30px. */
@media (min-width: 1101px) and (orientation: landscape) {
  html:not(.force-compact-nav) body #site-nav .desktop-nav { display: flex !important; }

  html:not(.force-compact-nav) body #site-nav .nav-actions,
  html:not(.force-compact-nav) body #site-nav .menu-wrap { display: none !important; }

  html:not(.force-compact-nav) body #site-nav .desktop-theme-toggle { display: inline-grid !important; }
  html:not(.force-compact-nav) body #site-nav .mobile-theme-toggle { display: none !important; }
}

body.light #site-nav .nav {
  border-color: rgba(255,255,255,.16) !important;
  background: linear-gradient(180deg, rgba(27,27,29,.76), rgba(14,14,16,.66)) !important;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .theme-toggle,
  .menu,
  .menu-line,
  .menu-dropdown {
    transition: none !important;
  }
}

/* ==================== SITE-WIDE TYPOGRAPHY + PAGE INTRO ALIGNMENT ====================
   Use the same clean Inter typography across every Kollection page. Page titles and
   their introductory copy are left aligned and share one consistent size scale.
*/
html,
body,
button,
input,
select,
textarea,
summary {
  font-family: "Inter", "Google Sans", "Product Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Home stays centered. Only the typography scale changes here. */
.hero {
  text-align: center !important;
}
.hero h1,
.hero > h1 {
  margin: 0 auto !important;
  max-width: 1040px !important;
  font-size: clamp(48px, 4.65vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}
.hero > p {
  width: min(980px, 92%) !important;
  margin: 24px auto 0 !important;
  max-width: 980px !important;
  color: var(--muted) !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.55 !important;
  letter-spacing: -.015em !important;
  font-weight: 400 !important;
}
.hero .eyebrow {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* News */
.news-heading {
  text-align: left !important;
}
.news-heading h1 {
  margin: 12px 0 0 !important;
  max-width: 1040px !important;
  font-size: clamp(48px, 4.65vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}
.news-heading p {
  max-width: 980px !important;
  margin: 24px 0 0 !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.55 !important;
  letter-spacing: -.015em !important;
  font-weight: 400 !important;
}

/* FAQ */
.faq-hero {
  text-align: left !important;
  max-width: 1180px !important;
}
.faq-hero h1 {
  margin: 0 !important;
  max-width: 1040px !important;
  font-size: clamp(48px, 4.65vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}
.faq-hero p {
  max-width: 980px !important;
  margin: 24px 0 0 !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.55 !important;
  letter-spacing: -.015em !important;
  font-weight: 400 !important;
}

/* Set Up Collection */
.setup-hero {
  text-align: left !important;
}
.setup-hero h1 {
  margin: 0 !important;
  max-width: 1040px !important;
  font-size: clamp(48px, 4.65vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}
.setup-hero > p {
  width: min(980px, 100%) !important;
  max-width: 980px !important;
  margin: 24px 0 0 !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.55 !important;
  letter-spacing: -.015em !important;
  font-weight: 400 !important;
}
.setup-hero .eyebrow,
.setup-hero .setup-meta {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

@media (max-width: 700px) {
  .hero h1,
  .hero > h1,
  .news-heading h1,
  .faq-hero h1,
  .setup-hero h1 {
    font-size: clamp(40px, 11vw, 56px) !important;
    line-height: 1.04 !important;
  }

  .hero > p {
    width: 96% !important;
    max-width: 980px !important;
    margin: 20px auto 0 !important;
    font-size: 17px !important;
    line-height: 1.52 !important;
  }

  .news-heading p,
  .faq-hero p,
  .setup-hero > p {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    font-size: 17px !important;
    line-height: 1.52 !important;
  }
}

/* ==================== SET UP COLLECTION DESKTOP HERO GAP ====================
   Keep the desktop gap below the navigation closer to the compact mobile spacing.
   Mobile/tablet rules below 901px remain unchanged.
*/
@media (min-width: 901px) {
  .setup-hero {
    padding-top: 58px !important;
  }
}

/* ==================== NAV COMMUNITY LINKS — APPROVED INLINE FORMAT ====================
   Keep GitHub and Buy me a coffee side-by-side in the expanded mobile menu.
*/
.menu-community {
  margin-top: 8px !important;
  padding: 13px 6px 5px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
}

.menu-community a {
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #818cf8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
  opacity: .94 !important;
  flex: 0 0 auto !important;
}

.menu-community a:hover {
  opacity: 1 !important;
  transform: translateY(-1px) !important;
  color: #a5b4fc !important;
  background: transparent !important;
}

.menu-community svg {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
}

body.light .menu-community {
  border-top-color: rgba(0,0,0,.08) !important;
}

body.light .menu-community a {
  color: #4f46e5 !important;
}

@media (max-width: 700px) {
  .menu-community {
    gap: 15px !important;
  }
}

/* ==================== NAV LINK UNDERLINE FIX ====================
   FAQ has page-level anchor styling; keep every navigation link clean.
*/
#site-nav .nav a,
#site-nav .desktop-nav a,
#site-nav .menu-dropdown a,
#site-nav .menu-community a {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* ==================== FIXED PAGE CONTENT TYPOGRAPHY ====================
   Desktop uses the same content font sizes as mobile instead of scaling up.
   Navigation sizing is intentionally not changed here.
*/

/* Main page titles */
body .hero h1,
body .hero > h1,
body .setup-hero h1,
body .setup-hero.page-intro h1,
body .news-heading h1,
body .faq-hero h1 {
  font-size: 56px !important;
  line-height: 1.04 !important;
}

/* Main page descriptions */
body .hero > p,
body .setup-hero > p,
body .setup-hero.page-intro > p,
body .news-heading > p,
body .faq-hero > p {
  font-size: 17px !important;
  line-height: 1.52 !important;
}

/* Home page content */
body .latest-update-title {
  font-size: 13px !important;
}

body .latest-update-label {
  font-size: 10px !important;
}

body .version-badge {
  font-size: 12px !important;
}

body .caption h2 {
  font-size: 38px !important;
  line-height: 1.04 !important;
}

body .caption p {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* News content */
body .release h2 {
  font-size: 31px !important;
  line-height: 1.03 !important;
}

body .release-summary {
  font-size: 17px !important;
  line-height: 1.58 !important;
}

body .release-details {
  font-size: 16px !important;
  line-height: 1.58 !important;
}

body .release-meta {
  font-size: 14px !important;
}

body .release-tag {
  font-size: 13px !important;
}

/* FAQ content */
body .faq-search {
  font-size: 18px !important;
}

body .faq-question {
  font-size: 19px !important;
}

body .faq-answer {
  font-size: 16px !important;
  line-height: 1.65 !important;
}

/* Keep the smallest-phone title responsive so it does not overflow,
   but never let desktop grow larger than the mobile/tablet size. */
@media (max-width: 520px) {
  body .hero h1,
  body .hero > h1,
  body .setup-hero h1,
  body .setup-hero.page-intro h1,
  body .news-heading h1,
  body .faq-hero h1 {
    font-size: clamp(40px, 11vw, 56px) !important;
  }
}

/* ==================== HOME HERO AURORA ====================
   Blue / indigo / purple gradient behind the home title.
*/
.hero {
  position: relative !important;
  isolation: isolate !important;
}

.hero::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  left: 50% !important;
  top: -120px !important;
  width: min(1160px, 116vw) !important;
  height: 430px !important;
  transform: translateX(-50%) !important;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(66,72,84,.09), transparent 60%),
    radial-gradient(ellipse at 24% 36%, rgba(38,48,60,.045), transparent 58%),
    radial-gradient(ellipse at 76% 34%, rgba(54,46,62,.04), transparent 60%) !important;
  filter: blur(34px) !important;
  opacity: .42 !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 4%, #000 48%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, #000 4%, #000 48%, transparent 100%) !important;
}

.hero > * {
  position: relative !important;
  z-index: 1 !important;
}

body.light .hero::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  pointer-events: none !important;
  left: 50% !important;
  top: -120px !important;
  width: min(1160px, 116vw) !important;
  height: 420px !important;
  transform: translateX(-50%) !important;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(62,65,73,.075), transparent 62%),
    radial-gradient(ellipse at 25% 34%, rgba(40,45,53,.035), transparent 58%),
    radial-gradient(ellipse at 75% 34%, rgba(48,44,52,.03), transparent 58%) !important;
  filter: blur(36px) !important;
  opacity: .34 !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 4%, #000 46%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, #000 4%, #000 46%, transparent 100%) !important;
}

/* ==================== STABLE GLASS NAV COMPOSITOR FIX ====================
   Avoid combining a transformed sticky wrapper with backdrop-filter.
   Mobile Chromium and Firefox can intermittently composite that combination
   into a narrowed/offset layer after zooming, resizing or tab restoration.
*/
html,
body {
  max-width: 100% !important;
  overflow-x: clip !important;
}

body .page {
  margin-left: auto !important;
  margin-right: auto !important;
}

html body #site-nav,
html.force-compact-nav body #site-nav,
html.force-large-compact-nav body #site-nav {
  position: sticky !important;
  top: 14px !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  rotate: none !important;
  will-change: auto !important;
  isolation: isolate !important;
}

/* Keep the requested glass look, but don't promote the sticky wrapper itself
   through transforms. The blur remains on the inner nav surface only. */
html body #site-nav .nav {
  transform: none !important;
  will-change: auto !important;
  background:
    linear-gradient(180deg, rgba(28,28,31,.78), rgba(13,13,16,.70)) !important;
  backdrop-filter: blur(24px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.24) !important;
}

/* ==========================================================================
   NUVIO SCALE + MENU ALIGNMENT + SITE-WIDE BACKGROUND — FINAL AUTHORITY
   ========================================================================== */

/* Match the smaller Nuvio dock proportions in every compact/desktop view. */
html body #site-nav .nav,
html.force-compact-nav body #site-nav .nav,
html.force-large-compact-nav body #site-nav .nav {
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 5px 10px 5px 15px !important;
  gap: 8px !important;
}

html body #site-nav .nav .brand img,
html.force-compact-nav body #site-nav .nav .brand img,
html.force-large-compact-nav body #site-nav .nav .brand img {
  height: 24px !important;
  max-height: 24px !important;
  width: auto !important;
}

html body #site-nav .theme-toggle {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  flex-basis: 38px !important;
}

html body #site-nav .theme-icon {
  width: 20px !important;
  height: 20px !important;
}

html body #site-nav .menu-wrap {
  /* Static makes the nav itself the dropdown containing block. */
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
}

html body #site-nav .menu,
html body #site-nav .menu-wrap.open .menu {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
}

/* Align the expanded menu to the exact left/right edges of the nav pill. */
html body #site-nav .nav .menu-dropdown,
html.force-compact-nav body #site-nav .nav .menu-dropdown,
html.force-large-compact-nav body #site-nav .nav .menu-dropdown {
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform-origin: top center !important;
}

/* These selectors intentionally outrank dynamically loaded nav-account.css. */
html.force-compact-nav body #site-nav .nav .menu-dropdown,
html.force-large-compact-nav body #site-nav .nav .menu-dropdown {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-width: none !important;
}

@media (max-width: 899px) {
  html body #site-nav .nav .menu-dropdown {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Nuvio-sized social links at the bottom of the compact menu. */
html body #site-nav .nuvio-mobile-socials .nuvio-social-link,
html.force-compact-nav body #site-nav .nuvio-mobile-socials .nuvio-social-link {
  font-size: 14px !important;
  font-weight: 650 !important;
  gap: 8px !important;
  min-height: 34px !important;
}

html body #site-nav .nuvio-mobile-socials .nuvio-social-svg,
html.force-compact-nav body #site-nav .nuvio-mobile-socials .nuvio-social-svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

/* Smooth Nuvio-inspired background across every dark-mode page.
   No grid/squares: just a soft charcoal/cool-gray falloff. */
body:not(.light) {
  background-color: #090a0d !important;
  background-image:
    radial-gradient(ellipse 88% 42% at 50% -6%,
      rgba(47,50,58,.24) 0%,
      rgba(26,28,33,.14) 38%,
      rgba(13,14,17,.04) 66%,
      transparent 78%),
    linear-gradient(180deg,
      #0d0e12 0%,
      #0b0c10 26%,
      #090a0d 62%,
      #08090b 100%) !important;
  background-size: auto !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body:not(.light)::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* ==========================================================================
   DESKTOP NAV POLISH — FINAL AUTHORITY
   ========================================================================== */
@media (min-width: 1101px) and (orientation: landscape) {
  html:not(.force-compact-nav) body #site-nav .desktop-nav {
    gap: 0 !important;
  }

  html:not(.force-compact-nav) body #site-nav .desktop-nav .wide-link {
    margin: 0 3px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Theme button sits directly beside login/profile with no divider. */
  html:not(.force-compact-nav) body #site-nav .desktop-nav-divider {
    display: none !important;
  }

  html:not(.force-compact-nav) body #site-nav .desktop-theme-toggle {
    margin-left: 7px !important;
    margin-right: 3px !important;
  }

  html:not(.force-compact-nav) body #site-nav .nuvio-desktop-account-slot {
    margin-left: 0 !important;
  }

  /* Desktop guest social icons are neutral monochrome, not indigo. */
  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-guest-actions .nuvio-social-link.compact {
    color: #c6c7cd !important;
  }

  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-guest-actions .nuvio-social-link.compact:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,.055) !important;
  }

  /* Logged-in account popover: GitHub + Buy me a coffee side-by-side. */
  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-account-popover > .nuvio-social-link {
    float: left !important;
    width: 50% !important;
    min-height: 42px !important;
    padding: 0 9px !important;
    border-radius: 11px !important;
    color: #c6c7cd !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 620 !important;
  }

  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-account-popover > .nuvio-social-link:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,.055) !important;
  }

  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-account-popover .nuvio-desktop-menu-divider.bottom {
    clear: both !important;
  }
}

/* All nav social icons use the same neutral foreground. */
html body #site-nav .nuvio-social-link {
  color: #c6c7cd !important;
}

html body #site-nav .nuvio-social-link:hover {
  color: #ffffff !important;
}

/* Match the visual size of the outlined coffee cup to the solid GitHub mark. */
html body #site-nav .nuvio-social-svg.github {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  color: currentColor !important;
}

html body #site-nav .nuvio-social-svg.coffee {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  color: currentColor !important;
  stroke-width: 1.9 !important;
}

/* Keep the larger compact-menu labels from the previous approved change. */
html body #site-nav .nuvio-mobile-socials .nuvio-social-link,
html.force-compact-nav body #site-nav .nuvio-mobile-socials .nuvio-social-link {
  font-size: 14px !important;
  color: #c6c7cd !important;
}

/* ==========================================================================
   NAV LABEL POLISH
   ========================================================================== */

/* Visually rename signed-in "Sign out" controls to "Log Out".
   Keep click behavior untouched. */
html body #site-nav .nuvio-account-signout-button,
html body #site-nav .nuvio-mobile-signout-button {
  font-size: 0 !important;
}

html body #site-nav .nuvio-account-signout-button::after {
  content: "Log Out";
  font-size: 13px !important;
  font-weight: 620 !important;
  line-height: 1 !important;
}

html body #site-nav .nuvio-mobile-signout-button::after {
  content: "Log Out";
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

/* ==========================================================================
   DESKTOP GUEST NAV ORDER + HOME ACTION TYPE — FINAL AUTHORITY
   ========================================================================== */

/* Flatten only the empty account slot wrapper so its actual controls can
   participate in the same desktop flex row as the theme button. */
@media (min-width: 1101px) and (orientation: landscape) {
  html:not(.force-compact-nav) body #site-nav .nuvio-desktop-account-slot {
    display: contents !important;
  }

  html:not(.force-compact-nav) body #site-nav .nuvio-desktop-guest-actions {
    display: contents !important;
  }

  /* GitHub + Buy me a coffee appear as text links before the theme control. */
  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-guest-actions .nuvio-social-link.compact {
    order: 70 !important;
    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    color: #bfc0c6 !important;
    font-size: 13px !important;
    font-weight: 620 !important;
    white-space: nowrap !important;
  }

  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-guest-actions .nuvio-social-link.compact + .nuvio-social-link.compact {
    order: 71 !important;
  }

  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-guest-actions .nuvio-social-link.compact span {
    display: inline !important;
  }

  /* Theme is immediately before Log in or the signed-in profile pill. */
  html:not(.force-compact-nav) body #site-nav .desktop-theme-toggle {
    order: 80 !important;
    margin-left: 5px !important;
    margin-right: 3px !important;
  }

  html:not(.force-compact-nav) body #site-nav .nuvio-desktop-signin-button {
    order: 81 !important;
  }

  html:not(.force-compact-nav) body #site-nav .nuvio-desktop-account-wrap {
    order: 81 !important;
  }
}

/* Slightly smaller home hero action text, closer to the Nuvio reference. */
body .hero .actions .btn {
  font-size: 15px !important;
  font-weight: 650 !important;
}

body .hero .actions .btn-icon {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

/* ==========================================================================
   REMOVE SET UP COLLECTION FROM SIGNED-IN DESKTOP PROFILE MENU
   The Set Up Collection page remains available in the main desktop nav.
   ========================================================================== */
@media (min-width: 1101px) and (orientation: landscape) {
  html:not(.force-compact-nav) body #site-nav
  .nuvio-desktop-account-popover > a.nuvio-desktop-menu-row[href="/set-up-collection"] {
    display: none !important;
  }
}

/* ==========================================================================
   HOME HERO BUTTONS — NUVIO-SIZE POLISH
   Slightly smaller, tighter proportions to match the Nuvio homepage.
   ========================================================================== */
body .hero .actions {
  gap: 12px !important;
}

body .hero .actions .btn {
  min-height: 50px !important;
  height: 50px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  gap: 9px !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

body .hero .actions .btn-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

/* Keep the primary button crisp like Nuvio. */
body .hero .actions .btn-primary,
body .hero .actions .btn.primary {
  box-shadow: 0 10px 28px rgba(255,255,255,.045) !important;
}

/* Secondary buttons stay subtle and compact. */
body .hero .actions .btn-secondary {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.13) !important;
}

@media (max-width: 700px) {
  body .hero .actions .btn {
    min-height: 50px !important;
    height: 50px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

