body.subpage-theme {
  background:
    radial-gradient(1100px 520px at 14% -4%, rgba(49, 46, 129, 0.08), transparent 58%),
    radial-gradient(1000px 460px at 98% 12%, rgba(71, 85, 105, 0.14), transparent 60%),
    #f8fafc;
  color: #1e293b;
  overflow-x: clip;
}

html:has(body.subpage-theme) {
  overflow-x: clip;
}

body.subpage-theme .header-status-bar {
  display: none !important;
}

body.subpage-theme .site-shell {
  min-height: 100vh;
  padding-top: 0;
}

body.subpage-theme .terminal-shell-header {
  position: sticky;
  top: 0 !important;
  z-index: 30;
}

body.subpage-theme .section-wrap {
  width: 100%;
  max-width: min(94vw, 84rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 1.8vw, 1.75rem);
}

body.subpage-theme .section-block {
  padding-top: clamp(3.2rem, 5.2vw, 5.4rem);
  padding-bottom: clamp(3.2rem, 5.2vw, 5.4rem);
}

body.subpage-theme #main-content {
  padding-top: clamp(3.2rem, 5.6vw, 5rem) !important;
}

body.subpage-theme h1,
body.subpage-theme h2,
body.subpage-theme h3,
body.subpage-theme .brand-font {
  font-family: var(--font-display);
}

body.subpage-theme #main-content > h1 {
  max-width: 18ch;
  line-height: 1.04;
  letter-spacing: 0.026em;
  text-transform: uppercase;
  font-size: clamp(2.05rem, 4vw, 4.35rem) !important;
}

body.subpage-theme #main-content > p {
  max-width: 62ch;
}

body.subpage-theme .card.terminal-panel,
body.subpage-theme .soft-card.terminal-panel {
  border-radius: 1.05rem;
  border: 1px solid rgba(51, 65, 85, 0.14);
  box-shadow: 0 20px 46px -34px rgba(30, 41, 59, 0.34);
}

body.subpage-theme .revamp-section {
  margin-top: clamp(2.1rem, 3.2vw, 3rem);
}

body.subpage-theme .revamp-lede {
  margin: 0.66rem 0 0;
  max-width: 66ch;
  color: #5f6f89;
  font-size: clamp(0.95rem, 1.18vw, 1.06rem);
  line-height: 1.6;
}

body.subpage-theme .revamp-grid {
  margin-top: 0.98rem;
  display: grid;
  gap: 0.78rem;
}

body.subpage-theme .revamp-grid.two-col {
  grid-template-columns: 1fr;
}

body.subpage-theme .revamp-grid.three-col {
  grid-template-columns: 1fr;
}

body.subpage-theme .revamp-card {
  border: 1px solid rgba(45, 88, 156, 0.16);
  border-radius: 0.92rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(246, 249, 253, 0.98));
  box-shadow: 0 18px 34px -30px rgba(30, 41, 59, 0.35);
  padding: 1rem;
}

body.subpage-theme .revamp-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1rem, 1.24vw, 1.14rem);
  line-height: 1.3;
}

body.subpage-theme .revamp-card p {
  margin: 0.44rem 0 0;
  color: #4f5f78;
  font-size: 0.92rem;
  line-height: 1.58;
}

body.subpage-theme .revamp-step {
  margin: 0;
  color: #0f766e;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

body.subpage-theme .revamp-kpi-grid {
  margin-top: 0.94rem;
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.subpage-theme .revamp-kpi {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 0.72rem;
  background: linear-gradient(170deg, rgba(241, 248, 249, 0.9), rgba(243, 247, 252, 0.96));
  padding: 0.75rem;
}

body.subpage-theme .revamp-kpi p {
  margin: 0;
}

body.subpage-theme .revamp-kpi .metric {
  margin-top: 0.14rem;
  color: #0f172a;
  font-size: clamp(0.98rem, 1.3vw, 1.16rem);
  font-weight: 600;
  line-height: 1.24;
}

body.subpage-theme .revamp-tag-row {
  margin-top: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

body.subpage-theme .revamp-tag {
  border: 1px solid rgba(45, 88, 156, 0.24);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.84);
  color: #27446d;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.6rem;
  text-transform: uppercase;
}

body.subpage-theme .terminal-panel,
body.subpage-theme .terminal-panel * {
  min-width: 0;
}

body.subpage-theme p,
body.subpage-theme li,
body.subpage-theme h1,
body.subpage-theme h2,
body.subpage-theme h3 {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.subpage-theme .site-nav-desktop {
  display: none;
}

body.subpage-theme .mobile-menu-toggle,
body.subpage-theme #menuToggle {
  display: inline-flex;
}

body.subpage-theme .site-nav-mobile[hidden] {
  display: none !important;
}

body.subpage-theme .site-nav-mobile:not([hidden]) {
  display: block;
}

body.subpage-theme .terminal-menu-toggle {
  background: rgba(2, 6, 23, 0.9);
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.72);
}

body.subpage-theme .terminal-menu-toggle:hover,
body.subpage-theme .terminal-menu-toggle:focus-visible {
  border-color: rgba(56, 189, 248, 0.92);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
}

body.subpage-theme .terminal-shell-header .section-wrap > .flex {
  position: relative;
  padding-right: 5.2rem;
}

body.subpage-theme .terminal-shell-header .section-wrap > .flex > a:first-child {
  min-width: 0;
  max-width: min(68vw, 17rem);
  max-width: calc(100% - 5.4rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.subpage-theme #menuToggle {
  display: inline-flex !important;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 6;
}

body.subpage-theme.subpage-legal #main-content > h1 {
  text-transform: none;
  letter-spacing: 0.012em;
  max-width: 22ch;
  font-size: clamp(1.95rem, 2.85vw, 3.05rem) !important;
}

body.subpage-theme.subpage-legal #main-content > p {
  max-width: 74ch;
}

@media (min-width: 900px) {
  body.subpage-theme .revamp-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.subpage-theme .revamp-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.subpage-theme .site-nav-desktop {
    display: flex;
  }

  body.subpage-theme .mobile-menu-toggle,
  body.subpage-theme #menuToggle,
  body.subpage-theme .site-nav-mobile {
    display: none !important;
  }

  body.subpage-theme .terminal-shell-header .section-wrap > .flex {
    padding-right: 0;
  }

  body.subpage-theme .terminal-shell-header .section-wrap > .flex > a:first-child {
    max-width: none;
  }
}

@media (max-width: 767px) {
  body.subpage-theme #main-content > h1 {
    max-width: 13.2ch;
    font-size: clamp(1.95rem, 10.2vw, 2.75rem) !important;
    line-height: 1.08;
  }

  body.subpage-theme #main-content > p {
    font-size: 1.03rem;
    line-height: 1.54;
  }
}

@media (max-width: 430px) {
  body.subpage-theme .section-wrap {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  body.subpage-theme #main-content > p,
  body.subpage-theme .terminal-panel p,
  body.subpage-theme .terminal-panel li {
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 1280px) {
  body.subpage-theme .revamp-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.subpage-theme .revamp-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.subpage-theme .section-wrap {
    max-width: min(90vw, 90rem);
  }

  body.subpage-theme .section-block {
    padding-top: clamp(4.2rem, 4.5vw, 5.8rem);
    padding-bottom: clamp(4.2rem, 4.5vw, 5.8rem);
  }
}

@media (min-width: 1920px) {
  body.subpage-theme .section-wrap {
    max-width: min(88vw, 98rem);
  }

  body.subpage-theme #main-content > h1 {
    font-size: clamp(2.4rem, 3.35vw, 4.8rem) !important;
  }
}

@media (min-width: 2560px) {
  body.subpage-theme .section-wrap {
    max-width: min(86vw, 106rem);
  }

  body.subpage-theme #main-content > h1 {
    font-size: clamp(2.8rem, 2.95vw, 5.45rem) !important;
  }
}
