.public-nav,
.editorial-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 32px;
  background: rgba(10, 14, 20, 0.9);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.hidden {
  display: none !important;
}

.app-shell-frame {
  width: min(var(--app-shell-max-width), calc(100vw - (var(--app-shell-gutter) * 2)));
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.5rem);
}

.app-shell-header-slot,
.app-shell-main-slot {
  min-width: 0;
}

.app-shell-main-slot {
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.5rem);
  padding-bottom: 0.25rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex: 0 1 clamp(19rem, 25vw, 27rem);
  min-width: 0;
  text-decoration: none;
}

.brand-copy {
  flex: 1 1 auto;
  min-width: 13rem;
}

.brand-copy .eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 237, 243, 0.78);
  min-width: 0;
}

.editorial-brand {
  color: #e6edf3;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(28, 43, 68, 0.98) 0%, rgba(34, 50, 80, 0.98) 100%);
  border: 1px solid rgba(142, 166, 255, 0.18);
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #e6edf3;
}

.masthead-copy {
  margin: 0.16rem 0 0;
  max-width: 23rem;
  color: rgba(197, 208, 220, 0.72);
  font-size: 0.9rem;
  line-height: 1.52;
  text-wrap: balance;
}

.editorial-primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  min-width: 0;
  padding: 0.3rem;
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 999px;
  background: rgba(12, 17, 24, 0.78);
}

.editorial-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: rgba(217, 225, 235, 0.74);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.editorial-nav-link:hover,
.editorial-nav-link.is-active {
  background: rgba(91, 127, 255, 0.18);
  color: #e6edf3;
}

.nav-section {
  position: relative;
}

.nav-section[open],
.nav-owner-menu[open] {
  z-index: 30;
}

.nav-section summary {
  list-style: none;
  cursor: pointer;
}

.nav-section summary::-webkit-details-marker {
  display: none;
}

.nav-section summary::marker,
.nav-owner-menu summary::marker,
.mobile-nav-group summary::marker {
  content: "";
}

.editorial-nav-link::after,
.nav-owner-menu summary::after,
.mobile-nav-summary::after {
  content: "▾";
  color: #7f8ca3;
  font-size: 0.76rem;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.nav-section[open] .editorial-nav-link::after,
.nav-owner-menu[open] summary::after,
.mobile-nav-group[open] .mobile-nav-summary::after {
  transform: rotate(180deg);
  color: #e6edf3;
}

.nav-section-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  z-index: 40;
  min-width: 240px;
  display: none;
  padding: 0.55rem;
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 22px;
  background: rgba(8, 12, 18, 0.985);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav-section-panel-wide {
  min-width: min(34rem, 82vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.nav-section-column {
  display: grid;
  gap: 0.25rem;
}

.nav-section-label {
  padding: 0.25rem 0.8rem 0.15rem;
  color: #8ea6c9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-section[open] .nav-section-panel {
  display: grid;
  gap: 0.25rem;
}

.nav-section.is-active .editorial-nav-link,
.nav-section[open] .editorial-nav-link {
  background: rgba(91, 127, 255, 0.18);
  color: #e6edf3;
}

.nav-section-panel a {
  display: block;
  padding: 0.78rem 0.88rem;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #e6edf3;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-section-panel a:hover {
  border-color: rgba(91, 127, 255, 0.18);
  background: rgba(91, 127, 255, 0.12);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 135, 162, 0.18);
  background: rgba(18, 24, 33, 0.96);
  color: #e6edf3;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(142, 166, 255, 0.18);
  background: rgba(91, 127, 255, 0.16);
}

.theme-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(7, 14, 24, 0.28);
  transform: translateY(-50%);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translate(20px, -50%);
}

.theme-toggle-text {
  white-space: nowrap;
}

.mobile-nav-theme-toggle {
  width: 100%;
  justify-content: space-between;
}

.mobile-nav-theme-toggle strong {
  font-size: 0.9rem;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 999px;
  background: rgba(15, 20, 27, 0.9);
  color: #e6edf3;
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-nav-toggle-icon {
  display: inline-grid;
  gap: 0.2rem;
}

.mobile-nav-toggle-icon span {
  display: block;
  width: 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-panel {
  display: none;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 24px;
  background: rgba(10, 14, 20, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.mobile-nav-panel.is-open {
  display: grid;
  gap: 0.65rem;
}

.mobile-nav-group {
  border: 1px solid rgba(124, 145, 178, 0.14);
  border-radius: 18px;
  background: rgba(18, 24, 33, 0.78);
}

.mobile-nav-group summary {
  list-style: none;
  cursor: pointer;
}

.mobile-nav-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0.85rem 0.95rem;
  color: #e6edf3;
  font-size: 0.95rem;
  font-weight: 700;
}

.mobile-nav-group.is-active .mobile-nav-summary,
.mobile-nav-group[open] .mobile-nav-summary {
  color: #f7fbff;
}

.mobile-nav-links {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.45rem 0.45rem;
}

.mobile-nav-links a,
.mobile-nav-section-label {
  display: block;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  color: #e6edf3;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.mobile-nav-links a:hover {
  background: rgba(91, 127, 255, 0.16);
}

.mobile-nav-divider {
  height: 1px;
  margin: 0.35rem 0.35rem 0;
  background: rgba(124, 145, 178, 0.18);
}

.mobile-nav-section-label {
  padding-bottom: 0.35rem;
  color: #8ea6c9;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-nav-primary {
  width: 100%;
}

.nav-owner-menu {
  position: relative;
}

.nav-owner-menu summary {
  list-style: none;
  cursor: pointer;
}

.nav-owner-menu summary::-webkit-details-marker {
  display: none;
}

.nav-owner-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 40;
  min-width: 220px;
  display: none;
  padding: 0.45rem;
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 18px;
  background: rgba(10, 14, 20, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.nav-owner-menu[open] .nav-owner-panel {
  display: grid;
  gap: 0.25rem;
}

.nav-owner-panel a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  color: #e6edf3;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-owner-panel a:hover {
  background: rgba(91, 127, 255, 0.16);
}

.owner-link,
.back-link,
.subtle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 135, 162, 0.18);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.subtle-link {
  background: rgba(15, 20, 27, 0.92);
  color: #9da7b3;
}

.subtle-link:hover {
  color: #e6edf3;
  border-color: rgba(142, 166, 255, 0.24);
}

.back-link {
  background: rgba(15, 20, 27, 0.92);
  color: #f7fbff;
}

.back-link:hover {
  background: rgba(91, 127, 255, 0.18);
  border-color: rgba(142, 166, 255, 0.24);
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.22);
  border-color: rgba(142, 166, 255, 0.4);
}

.public-footer {
  border: 1px solid rgba(111, 135, 162, 0.18);
  border-radius: 30px;
  background: rgba(10, 14, 20, 0.88);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.compliance-footer {
  padding: 1.1rem 1.35rem;
}

.sticky-footer {
  margin-top: 0.5rem;
}

.editorial-footer {
  display: grid;
  gap: 1rem;
}

.editorial-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.editorial-footer-main strong {
  display: block;
  color: #e6edf3;
  font-size: 0.95rem;
  line-height: 1.3;
}

.editorial-footer-main p {
  margin: 0.65rem 0 0;
  color: #9da7b3;
  font-size: 0.95rem;
  line-height: 1.45;
}

.editorial-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.editorial-footer-links a {
  color: #9da7b3;
  text-decoration: none;
  font-weight: 500;
}

.editorial-footer-links a:hover {
  color: #e6edf3;
}

.editorial-footer-meta {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(111, 135, 162, 0.18);
  color: #9da7b3;
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-simple-footer {
  gap: 1.1rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.35rem;
  align-items: start;
}

.site-footer-grid.site-footer-grid-compact {
  grid-template-columns: 1fr;
}

.site-footer-copy {
  max-width: 34rem;
}

.site-footer-copy strong {
  display: block;
  color: #e6edf3;
  font-size: 1.02rem;
  line-height: 1.35;
}

.site-footer-copy p {
  margin: 0.45rem 0 0;
  color: #9da7b3;
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  color: #d8a248;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer-grid.site-footer-grid-compact .site-footer-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
}

.site-footer-grid.site-footer-grid-compact .site-footer-links-group {
  gap: 0.55rem;
}

.site-footer-grid.site-footer-grid-compact .site-footer-links {
  gap: 0.45rem 0.75rem;
}

.site-footer-grid.site-footer-grid-compact + .editorial-footer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.2rem;
  align-items: start;
}

.site-footer-grid.site-footer-grid-compact + .editorial-footer-meta > span {
  min-width: 0;
}

.site-footer-links-group {
  display: grid;
  gap: 0.8rem;
}

.site-footer-links-label {
  color: #8ea6ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.95rem;
}

.site-footer-links a {
  color: #e6edf3;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer-links a:hover {
  color: #ffffff;
}

.shell-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #1e2733;
  border-radius: 24px;
  background: rgba(18, 24, 33, 0.84);
}

.shell-utility-copy {
  color: #9da7b3;
  font-size: 0.92rem;
  line-height: 1.45;
}

.shell-utility-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.shell-utility-pill,
.shell-utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid #1e2733;
  background: rgba(15, 20, 27, 0.96);
  color: #e6edf3;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.shell-utility-button {
  cursor: pointer;
}

.site-simple-nav {
  gap: 1rem;
}

.simple-primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(111, 135, 162, 0.2);
  border-radius: 999px;
  background: rgba(14, 20, 29, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.simple-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  color: rgba(230, 237, 243, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.simple-nav-link:hover,
.simple-nav-link.is-active {
  background: linear-gradient(135deg, rgba(58, 88, 170, 0.96), rgba(30, 47, 92, 0.98));
  color: #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(142, 166, 255, 0.26),
    0 12px 24px rgba(5, 10, 18, 0.26);
}

.nav-utility-link,
.simple-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-utility-link {
  border: 1px solid rgba(111, 135, 162, 0.2);
  background: rgba(14, 20, 29, 0.96);
  color: #e6edf3;
}

.nav-utility-link-strong {
  border-color: rgba(91, 127, 255, 0.24);
}

.simple-cta {
  border: 1px solid rgba(91, 127, 255, 0.3);
  background: linear-gradient(135deg, #1b2940 0%, #243a5e 100%);
  color: #f8fbff;
  box-shadow: 0 16px 30px rgba(7, 14, 24, 0.26);
}

.simple-cta:hover,
.nav-utility-link:hover {
  transform: translateY(-1px);
}

.site-simple-footer {
  gap: 1.25rem;
}

.site-footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer-copy {
  max-width: 36rem;
}

.site-footer-copy strong {
  display: block;
  color: #e6edf3;
  font-size: 1.02rem;
}

.site-footer-copy p {
  margin: 0.45rem 0 0;
  color: #9da7b3;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer-links a {
  color: #e6edf3;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer-links a:hover {
  color: #ffffff;
}

.mobile-nav-logout {
  display: contents;
}

@media (max-width: 1280px) {
  .brand-block {
    flex-basis: clamp(16rem, 22vw, 20rem);
  }

  .brand-copy {
    min-width: 10.5rem;
  }

  .masthead-copy {
    max-width: 20rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1100px) {
  .public-nav,
  .editorial-nav,
  .editorial-footer-main,
  .shell-utility-row {
    flex-direction: column;
    align-items: stretch;
  }

  .editorial-primary-nav,
  .nav-actions,
  .editorial-footer-links,
  .shell-utility-actions {
    justify-content: flex-start;
  }

  .editorial-primary-nav,
  .nav-actions {
    width: 100%;
  }

  .brand-block,
  .brand-copy {
    flex-basis: auto;
    min-width: 0;
  }

  .masthead-copy {
    display: none;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-columns {
    grid-template-columns: 1fr;
  }

  .site-simple-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
  }

  .site-simple-nav .brand-block {
    flex: 1 1 auto;
    max-width: calc(100% - 4.75rem);
  }

  .site-simple-nav .brand-copy {
    min-width: 0;
  }

  .site-simple-nav .masthead-copy,
  .site-simple-nav .simple-primary-nav,
  .site-simple-nav .nav-actions {
    display: none !important;
  }

  .site-simple-nav .mobile-nav-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .public-nav,
  .editorial-nav {
    gap: 0.9rem;
  }

  .public-nav,
  .editorial-nav,
  .compliance-footer {
    padding: 0.95rem 1rem;
  }

  .brand-block {
    gap: 0.8rem;
  }

  .public-nav .mobile-nav-toggle,
  .editorial-nav .mobile-nav-toggle {
    display: inline-flex !important;
  }

  .public-nav .editorial-primary-nav,
  .editorial-nav .editorial-primary-nav {
    display: none !important;
  }

  .simple-primary-nav {
    display: none !important;
  }

  .nav-section-panel-wide {
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .public-nav .nav-actions,
  .editorial-nav .nav-actions {
    display: none !important;
  }

  .editorial-footer-links,
  .editorial-footer-meta,
  .shell-utility-actions {
    gap: 0.8rem;
  }

  .site-footer-columns {
    grid-template-columns: 1fr;
  }

  .editorial-footer-main,
  .editorial-footer-links,
  .editorial-footer-meta {
    align-items: flex-start;
  }

  .editorial-footer-links,
  .editorial-footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .public-nav,
  .editorial-nav,
  .compliance-footer {
    border-radius: 24px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .public-nav .mobile-nav-toggle,
  .editorial-nav .mobile-nav-toggle {
    padding: 0 0.82rem;
  }
}

html[data-theme="light"] .public-nav,
html[data-theme="light"] .editorial-nav {
  border-color: rgba(99, 118, 145, 0.18);
  background: rgba(255, 250, 244, 0.84);
  box-shadow: 0 24px 58px rgba(45, 60, 83, 0.12);
}

html[data-theme="light"] .brand-copy .eyebrow,
html[data-theme="light"] .masthead-copy,
html[data-theme="light"] .editorial-nav-link,
html[data-theme="light"] .simple-nav-link,
html[data-theme="light"] .nav-section-panel a,
html[data-theme="light"] .nav-owner-panel a,
html[data-theme="light"] .nav-utility-link,
html[data-theme="light"] .mobile-nav-summary,
html[data-theme="light"] .mobile-nav-links a,
html[data-theme="light"] .mobile-nav-link,
html[data-theme="light"] .shell-utility-copy,
html[data-theme="light"] .site-footer-copy p,
html[data-theme="light"] .editorial-footer-meta {
  color: #556476;
}

html[data-theme="light"] .editorial-brand,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .nav-section-panel a:hover,
html[data-theme="light"] .nav-owner-panel a:hover,
html[data-theme="light"] .editorial-nav-link:hover,
html[data-theme="light"] .editorial-nav-link.is-active,
html[data-theme="light"] .simple-nav-link:hover,
html[data-theme="light"] .simple-nav-link.is-active,
html[data-theme="light"] .nav-utility-link,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .site-footer-copy strong,
html[data-theme="light"] .site-footer-links a,
html[data-theme="light"] .editorial-footer-main strong,
html[data-theme="light"] .editorial-footer-links a,
html[data-theme="light"] .back-link {
  color: #17263b;
}

html[data-theme="light"] .brand-mark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 239, 232, 0.96) 100%);
  border-color: rgba(51, 93, 255, 0.16);
  color: #17263b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .editorial-primary-nav,
html[data-theme="light"] .simple-primary-nav,
html[data-theme="light"] .nav-section-panel,
html[data-theme="light"] .nav-owner-panel,
html[data-theme="light"] .mobile-nav-panel,
html[data-theme="light"] .public-footer,
html[data-theme="light"] .shell-utility-row {
  border-color: rgba(99, 118, 145, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 48px rgba(45, 60, 83, 0.1);
}

html[data-theme="light"] .mobile-nav-group,
html[data-theme="light"] .nav-utility-link,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .shell-utility-pill,
html[data-theme="light"] .shell-utility-button,
html[data-theme="light"] .subtle-link,
html[data-theme="light"] .back-link {
  border-color: rgba(99, 118, 145, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .theme-toggle-track {
  border-color: rgba(51, 93, 255, 0.16);
  background: rgba(51, 93, 255, 0.14);
}

html[data-theme="light"] .theme-toggle-thumb {
  background: #335dff;
  box-shadow: 0 2px 8px rgba(51, 93, 255, 0.24);
}

html[data-theme="light"] .nav-section-label,
html[data-theme="light"] .mobile-nav-section-label,
html[data-theme="light"] .site-footer-links-label,
html[data-theme="light"] .site-footer-kicker {
  color: #335dff;
}

html[data-theme="light"] .editorial-nav-link:hover,
html[data-theme="light"] .editorial-nav-link.is-active,
html[data-theme="light"] .nav-section.is-active .editorial-nav-link,
html[data-theme="light"] .nav-section[open] .editorial-nav-link,
html[data-theme="light"] .simple-nav-link:hover,
html[data-theme="light"] .simple-nav-link.is-active,
html[data-theme="light"] .nav-section-panel a:hover,
html[data-theme="light"] .nav-owner-panel a:hover,
html[data-theme="light"] .mobile-nav-links a:hover,
html[data-theme="light"] .back-link:hover,
html[data-theme="light"] .subtle-link:hover {
  color: #17263b;
  border-color: rgba(51, 93, 255, 0.2);
  background: rgba(51, 93, 255, 0.1);
}

html[data-theme="light"] .editorial-nav-link::after,
html[data-theme="light"] .nav-owner-menu summary::after,
html[data-theme="light"] .mobile-nav-summary::after {
  color: #738095;
}

html[data-theme="light"] .mobile-nav-toggle {
  border-color: rgba(99, 118, 145, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #17263b;
}

html[data-theme="light"] .mobile-nav-divider {
  background: rgba(99, 118, 145, 0.18);
}

html[data-theme="light"] .editorial-footer-meta {
  border-color: rgba(99, 118, 145, 0.18);
  background: transparent;
}

body.krisha-revamp-shell {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(76, 116, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(243, 182, 92, 0.14), transparent 24%),
    linear-gradient(180deg, #08101a 0%, #0d1521 42%, #101923 100%);
  color: #e8edf3;
}

body.krisha-revamp-shell .app-shell-frame {
  width: min(1360px, calc(100vw - 2rem));
  gap: clamp(1.25rem, 2vw, 2rem);
  padding: 1rem 0 3rem;
}

body.krisha-revamp-shell .app-shell-main-slot {
  gap: clamp(1.4rem, 2vw, 2.2rem);
}

body.krisha-revamp-shell .public-nav.krisha-topbar {
  position: sticky;
  top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 24rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(130, 153, 180, 0.18);
  border-radius: 32px;
  background: rgba(8, 12, 18, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

body.krisha-revamp-shell .krisha-topbar-brand {
  gap: 0.8rem;
  flex-basis: auto;
}

body.krisha-revamp-shell .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(29, 48, 78, 0.94), rgba(16, 27, 44, 0.98));
  border-color: rgba(112, 136, 221, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.krisha-revamp-shell .brand-copy .eyebrow {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: rgba(241, 245, 249, 0.78);
}

body.krisha-revamp-shell .masthead-copy {
  max-width: 24rem;
  color: rgba(205, 215, 227, 0.7);
  font-size: 0.76rem;
  line-height: 1.45;
}

body.krisha-revamp-shell .krisha-topbar-nav {
  justify-content: center;
  padding: 0.35rem;
  border-color: rgba(130, 153, 180, 0.16);
  background: rgba(12, 18, 27, 0.72);
}

body.krisha-revamp-shell .simple-nav-link,
body.krisha-revamp-shell .krisha-nav-signin,
body.krisha-revamp-shell .user-menu-trigger {
  min-height: 42px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.9rem;
  font-weight: 600;
}

body.krisha-revamp-shell .simple-nav-link {
  padding: 0 1rem;
}

body.krisha-revamp-shell .simple-nav-link:hover,
body.krisha-revamp-shell .simple-nav-link.is-active,
body.krisha-revamp-shell .user-menu-trigger.is-active,
body.krisha-revamp-shell .user-menu[open] .user-menu-trigger {
  background: rgba(82, 123, 255, 0.16);
  color: #f8fbff;
}

body.krisha-revamp-shell .krisha-topbar-actions {
  gap: 0.65rem;
}

body.krisha-revamp-shell .krisha-theme-toggle,
body.krisha-revamp-shell .krisha-nav-signin,
body.krisha-revamp-shell .user-menu-trigger {
  border: 1px solid rgba(130, 153, 180, 0.18);
  background: rgba(10, 15, 22, 0.74);
}

body.krisha-revamp-shell .krisha-nav-signin,
body.krisha-revamp-shell .krisha-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-decoration: none;
}

body.krisha-revamp-shell .krisha-nav-cta,
body.krisha-revamp-shell .mobile-nav-link-strong,
body.krisha-revamp-shell .site-footer-cta {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #496dff 0%, #2f52d8 100%);
  color: #f8fbff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 32px rgba(38, 76, 205, 0.28);
}

body.krisha-revamp-shell .krisha-nav-cta {
  padding: 0 1.2rem;
}

body.krisha-revamp-shell .krisha-nav-cta:hover,
body.krisha-revamp-shell .site-footer-cta:hover {
  transform: translateY(-1px);
}

body.krisha-revamp-shell .krisha-mobile-toggle {
  display: none;
}

body.krisha-revamp-shell .krisha-user-menu-panel,
body.krisha-revamp-shell .nav-owner-panel,
body.krisha-revamp-shell .krisha-mobile-panel {
  border-color: rgba(130, 153, 180, 0.18);
  background: rgba(7, 11, 17, 0.96);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.3);
}

body.krisha-revamp-shell .krisha-footer {
  margin-top: 0.5rem;
  padding: 1.45rem 1.6rem 1.1rem;
  border: 1px solid rgba(130, 153, 180, 0.16);
  border-radius: 36px;
  background: rgba(8, 12, 18, 0.82);
  box-shadow: 0 20px 72px rgba(0, 0, 0, 0.18);
}

body.krisha-revamp-shell .site-footer-grid {
  gap: 2rem;
  align-items: start;
}

body.krisha-revamp-shell .site-footer-grid.site-footer-grid-compact {
  gap: 0.85rem;
}

body.krisha-revamp-shell .site-footer-copy {
  max-width: 28rem;
}

body.krisha-revamp-shell .site-footer-kicker,
body.krisha-revamp-shell .site-footer-links-label {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.krisha-revamp-shell .site-footer-copy strong {
  display: block;
  margin-top: 0.45rem;
  color: #f8fbff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

body.krisha-revamp-shell .site-footer-copy p {
  color: rgba(209, 218, 229, 0.74);
}

body.krisha-revamp-shell .site-footer-cta {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 0 1.2rem;
}

body.krisha-revamp-shell .site-footer-links a,
body.krisha-revamp-shell .editorial-footer-meta {
  color: rgba(212, 220, 230, 0.7);
}

body.krisha-revamp-shell .site-footer-grid.site-footer-grid-compact .site-footer-columns {
  gap: 0.85rem 1.15rem;
}

body.krisha-revamp-shell .site-footer-grid.site-footer-grid-compact .site-footer-links-group {
  gap: 0.45rem;
}

body.krisha-revamp-shell .site-footer-grid.site-footer-grid-compact .site-footer-links {
  gap: 0.35rem 0.7rem;
}

body.krisha-revamp-shell .site-footer-grid.site-footer-grid-compact + .editorial-footer-meta {
  gap: 0.75rem 1.15rem;
}

body.krisha-revamp-shell .editorial-footer-meta {
  padding-top: 0.8rem;
  gap: 1rem;
  font-size: 0.86rem;
}

body.krisha-revamp-shell .site-footer-links a:hover {
  color: #f8fbff;
}

html[data-theme="light"] body.krisha-revamp-shell {
  background:
    radial-gradient(circle at top left, rgba(90, 127, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(233, 169, 79, 0.1), transparent 22%),
    linear-gradient(180deg, #f2f5fb 0%, #eef3f9 52%, #edf2f8 100%);
  color: #172132;
}

html[data-theme="light"] body.krisha-revamp-shell .public-nav.krisha-topbar,
html[data-theme="light"] body.krisha-revamp-shell .krisha-footer {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(157, 174, 195, 0.24);
  box-shadow: 0 24px 64px rgba(148, 163, 184, 0.18);
}

html[data-theme="light"] body.krisha-revamp-shell .krisha-topbar-nav,
html[data-theme="light"] body.krisha-revamp-shell .krisha-theme-toggle,
html[data-theme="light"] body.krisha-revamp-shell .krisha-nav-signin,
html[data-theme="light"] body.krisha-revamp-shell .user-menu-trigger {
  background: rgba(244, 247, 252, 0.96);
  border-color: rgba(157, 174, 195, 0.24);
}

html[data-theme="light"] body.krisha-revamp-shell .simple-nav-link,
html[data-theme="light"] body.krisha-revamp-shell .krisha-nav-signin,
html[data-theme="light"] body.krisha-revamp-shell .user-menu-trigger,
html[data-theme="light"] body.krisha-revamp-shell .masthead-copy,
html[data-theme="light"] body.krisha-revamp-shell .site-footer-copy p,
html[data-theme="light"] body.krisha-revamp-shell .site-footer-links a,
html[data-theme="light"] body.krisha-revamp-shell .editorial-footer-meta {
  color: rgba(40, 52, 70, 0.78);
}

html[data-theme="light"] body.krisha-revamp-shell .simple-nav-link:hover,
html[data-theme="light"] body.krisha-revamp-shell .simple-nav-link.is-active,
html[data-theme="light"] body.krisha-revamp-shell .user-menu-trigger.is-active,
html[data-theme="light"] body.krisha-revamp-shell .user-menu[open] .user-menu-trigger {
  background: rgba(73, 109, 255, 0.12);
  color: #152033;
}

html[data-theme="light"] body.krisha-revamp-shell .site-footer-copy strong,
html[data-theme="light"] body.krisha-revamp-shell .brand-copy .eyebrow {
  color: #152033;
}

html[data-theme="light"] body.krisha-revamp-shell .brand-mark {
  background: linear-gradient(145deg, rgba(245, 248, 255, 0.98), rgba(228, 236, 252, 0.96));
  border-color: rgba(95, 122, 217, 0.28);
  color: #152033;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(148, 163, 184, 0.18);
}

html[data-theme="light"] body.krisha-revamp-shell .site-footer-links-label {
  color: #6b7fc2;
}

html[data-theme="light"] body.krisha-revamp-shell .krisha-user-menu-panel,
html[data-theme="light"] body.krisha-revamp-shell .nav-owner-panel,
html[data-theme="light"] body.krisha-revamp-shell .krisha-mobile-panel {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 56px rgba(148, 163, 184, 0.24);
}

@media (max-width: 1080px) {
  body.krisha-revamp-shell .public-nav.krisha-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.krisha-revamp-shell .krisha-topbar-nav,
  body.krisha-revamp-shell .krisha-topbar-actions {
    display: none;
  }

  body.krisha-revamp-shell .krisha-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .site-footer-grid.site-footer-grid-compact .site-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-grid.site-footer-grid-compact + .editorial-footer-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer-grid.site-footer-grid-compact .site-footer-columns {
    grid-template-columns: 1fr;
  }

  .site-footer-grid.site-footer-grid-compact + .editorial-footer-meta {
    grid-template-columns: 1fr;
  }
}
