/* Shared Systemores Navigation & Footer Chrome */

.sys-chrome-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Sticky Top Navigation */
.nav-sticky-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid var(--border, #e4e4e7);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-sticky-wrapper nav {
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: inline-block;
  line-height: 0;
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary, #52525b);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text, #000000);
}

.nav-links a.nav-active {
  color: var(--text, #000000);
  font-weight: 700;
  border-bottom: 1.5px solid var(--text, #000000);
  padding-bottom: 1px;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  background: transparent;
  border: none;
  appearance: none;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text, #000000);
  transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 1.5rem 0 !important;
    font-size: 1.25rem;
    margin-left: 0 !important;
  }
}

/* Shared Footer */
footer.sys-site-footer {
  border-top: 1px solid var(--border, #e4e4e7);
  margin-top: 4rem;
  padding: 3rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #52525b);
  width: 100%;
}

.sys-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.sys-footer-copy {
  line-height: 1.5;
}

.sys-footer-attribution {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted, #71717a);
  opacity: 0.9;
}

.sys-footer-attribution a {
  color: inherit;
  text-decoration: underline;
}

.sys-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.sys-footer-links a {
  color: inherit;
  text-decoration: none;
  margin-left: 0;
  transition: color 0.2s ease;
}

.sys-footer-links a:hover {
  color: var(--text, #000000);
}

.sys-footer-links a.footer-active {
  color: var(--text, #000000);
  font-weight: 600;
}

@media (max-width: 768px) {
  .sys-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .sys-footer-links {
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

/* Shared Inline Code Typography */
:not(pre) > code {
  font-family: 'ui-monospace', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  padding: 0.12rem 0.36rem;
  border-radius: 3px;
}

/* Patent Pending Badge Pill */
.sys-patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
  color: #065f46;
  border-radius: 999px;
  font-family: 'ui-monospace', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sys-patent-badge:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.6);
  color: #064e3b;
}

.sys-patent-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}

.sys-patent-badge-text {
  text-box: trim-both cap alphabetic;
}
