.discord-mark { display: inline-block; width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; background: currentColor; -webkit-mask: url("discord-icon.svg") center / contain no-repeat; mask: url("discord-icon.svg") center / contain no-repeat; }

/* The static product-page shell is a non-JavaScript fallback.  Hide it as soon as the master frame stylesheet loads so its old product CTAs never flash in the global header. */
nav:not([data-komandio-labs-frame]):not(.product-subnav), footer:not([data-komandio-labs-frame]) { display: none; }

#navbar {
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(8, 10, 15, 0.70) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navbar > div {
  width: 100%;
}

body:has(.product-subnav) #navbar {
  border-bottom: none !important;
}

.product-subnav {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  z-index: 40;
  padding: 6px 0 10px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: rgba(8, 10, 15, 0.70);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-subnav > .subnav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.product-subnav span.subnav-tag {
  color: #a5b4fc;
  font: 700 11px/1 'JetBrains Mono', monospace;
  letter-spacing: .14em;
}

.product-subnav .subnav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 6px;
}

.product-subnav a {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
}

.product-subnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.product-subnav a.is-active {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.product-subnav span.subnav-tag {
  color: #818cf8;
}

.kontrol-page .product-subnav span.subnav-tag {
  color: #c084fc;
}

.komandio-page .product-subnav span.subnav-tag {
  color: #67e8f9;
}

.kontrol-page .product-subnav a.is-active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.komandio-page .product-subnav a.is-active {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

main {
  padding-top: 0 !important;
}

main:has(.product-subnav) {
  padding-top: 0 !important;
}

.kontrol-feature img { cursor: zoom-in; }
.kontrol-image-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 32px; background: rgba(2, 4, 9, .88); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.kontrol-image-lightbox.is-open { opacity: 1; pointer-events: auto; }
.kontrol-image-lightbox img { display: block; max-width: min(1440px, 94vw); max-height: 86vh; border: 1px solid rgba(148, 163, 184, .28); border-radius: 14px; box-shadow: 0 28px 100px rgba(0, 0, 0, .72); }
.kontrol-image-lightbox button { position: fixed; top: 18px; right: 18px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(148, 163, 184, .3); border-radius: 999px; background: rgba(15, 23, 42, .9); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* Unified Hero Vertical Alignment across Master, Kontrol, and Komandio */
body:not(.kontrol-page):not(.komandio-page) main > section:first-of-type {
  padding-top: 145px !important;
  padding-bottom: 4rem;
}

.kontrol-page .kontrol-hero,
.kontrol-page .kontrol-changelog-hero {
  padding-top: 145px !important;
  padding-bottom: 5.75rem;
}

.komandio-page main > section:first-of-type {
  min-height: calc(100svh - 150px);
  padding-top: 145px !important;
  padding-bottom: 5rem;
}

/* Unified Hero Title Typography across all pages */
.kontrol-page .kontrol-hero h1,
.kontrol-page .kontrol-changelog-hero h1,
.komandio-page main h1,
main h1 {
  font-family: "Rajdhani", sans-serif !important;
  font-size: clamp(3rem, 5vw, 4.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 1.15 !important;
  max-width: none !important;
  color: #f8fafc !important;
}

.kontrol-release {
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(145deg, rgba(14, 18, 28, 0.95), rgba(10, 13, 22, 0.90)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  backdrop-filter: blur(12px);
}

.kontrol-release-latest {
  background: linear-gradient(145deg, rgba(18, 16, 30, 0.96), rgba(11, 14, 24, 0.92)) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(168, 85, 247, 0.08) !important;
}

/* Kontrol In-Page Section Scroll & Spacing Alignment */
.kontrol-page .kontrol-section,
.kontrol-page .kontrol-showcase,
.kontrol-page .kontrol-capabilities,
.kontrol-page .kontrol-get,
.kontrol-page .kontrol-changelog-section {
  padding-top: 48px !important;
  padding-bottom: 72px !important;
  scroll-margin-top: 130px !important;
}
@media (max-width: 640px) {
  .product-subnav > .subnav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .product-subnav .subnav-links {
    justify-content: flex-start;
    gap: 4px;
  }
  main:has(.product-subnav) {
    padding-top: 86px;
  }
  .kontrol-image-lightbox { padding: 16px; }
  .kontrol-image-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; }
}
