body.guide-environment-active {
  background:
    linear-gradient(90deg, rgba(6, 18, 34, .82) 0%, rgba(6, 18, 34, .70) 42%, rgba(6, 18, 34, .42) 100%),
    var(--guide-environment-image) center center / cover fixed no-repeat;
}

body.guide-environment-active .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 22, 42, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}

body.guide-environment-active .header-inner {
  min-height: 90px;
  gap: 1.15rem;
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

body.guide-environment-active .brand {
  width: 350px;
  height: 68px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 18, 35, .04), rgba(5, 18, 35, .16)),
    var(--guide-banner-image) left 42% / 535px auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

body.guide-environment-active .brand img {
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

body.guide-environment-active .suite-name {
  display: none;
}

body.guide-environment-active .nav {
  margin-left: auto;
  margin-right: .35rem;
  gap: .2rem;
  padding: .24rem .34rem;
  border-radius: 10px;
  background: rgba(6, 18, 34, .20);
}

body.guide-environment-active .nav a,
body.guide-environment-active .link-button {
  position: relative;
  padding: .58rem .72rem;
  border-radius: 0;
  background: transparent;
}

body.guide-environment-active .nav a[aria-current=page] {
  background: transparent;
}

body.guide-environment-active .nav a[aria-current=page]::after {
  content: "";
  position: absolute;
  left: .72rem;
  right: .72rem;
  bottom: .18rem;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
}

body.guide-environment-active #main {
  min-height: calc(100vh - 90px);
  padding: clamp(.8rem, 2vw, 1.7rem) 0 clamp(1.5rem, 4vw, 3rem);
  color: #eef3f8;
  background: transparent;
}

body.guide-environment-active #main > .page {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.15rem, 2.4vw, 1.9rem);
  border: 1px solid rgba(137, 181, 219, .24);
  border-top: 4px solid var(--orange);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9, 22, 43, .84), rgba(15, 39, 64, .72));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  backdrop-filter: blur(9px) saturate(112%);
  -webkit-backdrop-filter: blur(9px) saturate(112%);
}

body.guide-environment-active #main > .page > .placeholder,
body.guide-environment-active #main > .page > .guide-mount {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.guide-environment-active .guide-mount > .page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #eef3f8;
  background: transparent;
}

body.guide-environment-active .guide-mount .page-title {
  margin-bottom: .85rem;
}

body.guide-environment-active .guide-mount .page-title h1 {
  margin: .45rem 0 .55rem;
}

body.guide-environment-active .guide-mount h1,
body.guide-environment-active .guide-mount h2,
body.guide-environment-active .guide-mount h3,
body.guide-environment-active #main > .page h1,
body.guide-environment-active #main > .page h2,
body.guide-environment-active #main > .page h3 {
  color: #fff;
}

body.guide-environment-active .guide-mount .page-title p,
body.guide-environment-active .guide-mount > .page > p,
body.guide-environment-active #main > .page > .placeholder > p {
  color: #d8e3ee;
}

body.guide-environment-active .guide-mount > .page > p {
  margin: .7rem 0;
}

body.guide-environment-active .guide-mount .field {
  margin: .72rem 0;
}

body.guide-environment-active .guide-mount .field label,
body.guide-environment-active .guide-mount table,
body.guide-environment-active .guide-mount caption {
  color: #f3f7fb;
}

body.guide-environment-active .guide-mount .field small,
body.guide-environment-active .guide-mount .form-note,
body.guide-environment-active .guide-mount small {
  color: #c5d2df;
}

body.guide-environment-active .guide-mount input,
body.guide-environment-active .guide-mount select,
body.guide-environment-active .guide-mount textarea {
  color: #12233a;
  background: rgba(255, 255, 255, .95);
}

body.guide-environment-active .guide-mount .message,
body.guide-environment-active .guide-mount .panel-empty,
body.guide-environment-active .guide-mount .mfr-table {
  color: #17283f;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255,255,255,.42);
}

body.guide-environment-active .guide-mount .message:not(.error):not(.success) {
  color: #d8e4ef;
  background: rgba(9, 22, 43, .50);
  border: 1px solid rgba(181, 207, 229, .24);
}

body.guide-environment-active .guide-mount .message:not(.error):not(.success) a {
  color: #ffad70;
}

body.guide-environment-active .guide-mount .message h1,
body.guide-environment-active .guide-mount .message h2,
body.guide-environment-active .guide-mount .message h3,
body.guide-environment-active .guide-mount .panel-empty h1,
body.guide-environment-active .guide-mount .panel-empty h2,
body.guide-environment-active .guide-mount .panel-empty h3 {
  color: var(--navy);
}

body.guide-environment-active .guide-mount .mfr-table table {
  color: #17283f;
  background: rgba(255, 255, 255, .95);
  border-radius: 12px;
  overflow: hidden;
}

body.guide-environment-active .guide-mount .mfr-table th,
body.guide-environment-active .guide-mount .mfr-table td {
  border-bottom-color: #d8e0e8;
}

body.guide-environment-active .guide-mount .text-link,
body.guide-environment-active #main > .page > .placeholder .text-link {
  color: #ff9a4f;
}

/* LIGHT SURFACES WITHIN DARK GUIDE ENVIRONMENTS */
body.guide-environment-active #main > .page > .page-title p {
  color: #d8e3ee;
}

body.guide-environment-active #main > .page :is(.guide-card, .history-row, .empty-state, .service-error, .panel-empty, .mfr-table, .message.error, .message.success) {
  color: #17283f;
}

body.guide-environment-active #main > .page :is(.guide-card, .history-row, .empty-state, .service-error, .panel-empty, .mfr-table, .message.error, .message.success) :is(h1, h2, h3) {
  color: var(--navy);
}

@media (max-width: 900px) {
  body.guide-environment-active .header-inner {
    min-height: 80px;
    padding-right: 1rem;
  }
  body.guide-environment-active .brand {
    width: 245px;
    height: 58px;
    background-size: 425px auto;
  }
  body.guide-environment-active .nav {
    margin-right: 0;
    background: rgba(6, 18, 34, .34);
  }
}

@media (max-width: 720px) {
  body.guide-environment-active {
    background-attachment: scroll;
    background-position: 62% center;
  }
  body.guide-environment-active .site-header {
    position: relative;
  }
  body.guide-environment-active .header-inner {
    min-height: 70px;
  }
  body.guide-environment-active .brand {
    width: 150px;
    height: 48px;
    background-size: 305px auto;
  }
  body.guide-environment-active #main > .page {
    width: min(100% - 1rem, 1080px);
    padding: 1rem;
    border-radius: 14px;
  }
  body.guide-environment-active .nav {
    gap: 0;
    padding: .18rem;
  }
  body.guide-environment-active .nav a,
  body.guide-environment-active .link-button {
    padding: .46rem .45rem;
    font-size: .82rem;
  }
}
