body.site-guides {
  --guides-bg: #090f1b;
  --guides-panel: #111c30;
  --guides-edge: #283955;
  --guides-text: #f1f5ff;
  --guides-muted: #b6c4dc;
  --guides-link: #a8c8ff;
  --guides-teal: #91e5de;
  --guides-focus: #a5f2e8;
  margin: 0;
  color-scheme: dark;
  color: var(--guides-text);
  background: radial-gradient(ellipse at 10% 0, #18294c 0, transparent 34rem),
    radial-gradient(ellipse at 100% 12rem, #10303c 0, transparent 31rem), var(--guides-bg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-guides *, .site-guides *::before, .site-guides *::after {
  box-sizing: border-box;
}

.site-guides :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.site-guides a {
  color: var(--guides-link);
  text-underline-offset: 0.19em;
}

.site-guides a:hover {
  color: var(--guides-teal);
}

.site-guides :focus-visible {
  outline: 2px solid var(--guides-focus);
  outline-offset: 4px;
}

.site-guides img {
  display: block;
  max-width: 100%;
  height: auto;
}

.guides-skip {
  position: absolute;
  z-index: 3;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  background: var(--guides-panel);
  transform: translateY(calc(-100% - 1rem));
}

.guides-skip:focus {
  transform: translateY(0);
}

.guides-shell {
  width: min(100% - clamp(2rem, 7vw, 6rem), 74rem);
  margin-inline: auto;
}

.guides-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--guides-edge);
  background: rgb(9 15 27 / 94%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.guides-nav {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem clamp(0.9rem, 3.2vw, 2.5rem);
  padding-block: 0.55rem;
}

.guides-nav a, .guides-brand, .guides-button {
  text-decoration: none;
}

.guides-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  color: var(--guides-text) !important;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.guides-brand img {
  width: 2rem;
  height: 2rem;
}

.guides-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2.8vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-nav-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--guides-muted);
  font-size: 0.95rem;
  font-weight: 640;
}

.guides-nav-links a[aria-current="page"],
.guides-nav-links a[aria-current="location"] {
  color: var(--guides-text);
  text-decoration: underline;
  text-decoration-color: var(--guides-teal);
  text-underline-offset: 0.32em;
}

.guides-button {
  display: inline-flex;
  min-height: 2.75rem;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.12rem;
  border: 1px solid #456387;
  border-radius: 999px;
  background: #172741;
  color: var(--guides-text) !important;
  font-size: 0.94rem;
  font-weight: 720;
  text-align: center;
}

.guides-button:hover {
  border-color: #86b6f3;
  background: #223959;
}

.guides-button-primary {
  border-color: transparent;
  background: linear-gradient(120deg, #94b3ff, #7ad9d5);
  color: #0c1830 !important;
}

.guides-button-primary:hover {
  border-color: transparent;
  background: linear-gradient(120deg, #b5caff, #9de9e2);
}

.guides-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.55rem;
  margin-block: clamp(1.3rem, 3vw, 2.1rem) 0;
  color: var(--guides-muted);
  font-size: 0.91rem;
  overflow-wrap: anywhere;
}

.guides-breadcrumb :where(ol, ul) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-breadcrumb :where(ol, ul) li + li::before {
  margin-inline-end: 0.55rem;
  color: #8397b8;
  content: "/";
}

.guides-breadcrumb a {
  color: var(--guides-muted);
}

.guides-intro, .guide-article-heading {
  max-width: 52rem;
  padding-block: clamp(2.4rem, 6vw, 5rem) clamp(1.8rem, 4.3vw, 3.3rem);
}

.guides-intro h1, .guide-article-heading h1 {
  max-width: 19ch;
  font-size: clamp(2.15rem, 5.75vw, 4.65rem);
  font-weight: 760;
  letter-spacing: -0.058em;
  line-height: 1.02;
  text-wrap: balance;
}

.guides-intro p, .guide-article-heading p:not(.guide-category) {
  max-width: 60ch;
  margin-top: 1.1rem;
  color: var(--guides-muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.site-guides .guide-featured, .site-guides .guide-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--guides-edge);
  border-radius: 1.3rem;
  color: var(--guides-text);
  background: var(--guides-panel);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-guides .guide-featured {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  border-color: #3a5076;
  background: radial-gradient(ellipse at 75% 0, #2b3976 0, transparent 60%), #142039;
  box-shadow: 0 1.5rem 3rem -2.4rem #000;
}

.site-guides .guide-featured:hover, .site-guides .guide-card:hover {
  border-color: #7299d0;
  color: var(--guides-text);
}

.site-guides .guide-card:hover {
  background-color: #182742;
}

.guide-card-copy {
  min-width: 0;
  padding: clamp(1.25rem, 3.4vw, 2.6rem);
}

.guide-card:not(:has(.guide-card-copy)) {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.site-guides .guide-category {
  display: block;
  margin: 0 0 0.6rem;
  color: var(--guides-teal);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.guide-featured h2, .guide-card :where(h2, h3) {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.guide-featured h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.75rem);
}

.guide-featured p:not(.guide-category), .guide-card p:not(.guide-category) {
  max-width: 54ch;
  margin-top: 0.7rem;
  color: var(--guides-muted);
}

.guide-card-image {
  overflow: hidden;
  border: 1px solid rgb(192 214 255 / 22%);
  border-radius: 0.85rem;
  background: #0e1730;
}

.guide-featured .guide-card-image {
  margin: clamp(0.9rem, 2.4vw, 1.75rem);
}

.guide-card .guide-card-image {
  margin: 0 1.25rem 1.25rem;
}

.guide-card-image img, .guide-hero-image img {
  width: 100%;
  object-fit: contain;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2.2vw, 1.5rem);
  margin-block: clamp(0.85rem, 2.2vw, 1.5rem) clamp(3rem, 7vw, 6rem);
}

.guide-hero-image {
  overflow: hidden;
  width: min(100%, 64rem);
  margin-block: 0 clamp(1.65rem, 4vw, 3.25rem);
  border: 1px solid var(--guides-edge);
  border-radius: 1.3rem;
  background: #0e1730;
  box-shadow: 0 1.5rem 3rem -2.4rem #000;
}

.guide-hero-image figcaption {
  padding: 0.65rem 1rem;
  color: var(--guides-muted);
  font-size: 0.9rem;
}

.guide-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 47rem) minmax(13rem, 17rem);
  grid-template-areas: "prose toc";
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.guide-prose {
  grid-area: prose;
  min-width: 0;
  color: var(--guides-muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.guide-prose > * + *, .guide-prose section > * + * {
  margin-block-start: 1rem;
}

.guide-prose section + section, .guide-prose > h2:not(:first-child) {
  margin-block-start: clamp(2rem, 4.5vw, 3.3rem);
}

.guide-prose :where(h2, h3), .guide-related h2, .guide-cta :where(h2, h3) {
  color: var(--guides-text);
  font-weight: 720;
  letter-spacing: -0.036em;
  line-height: 1.16;
}

.guide-prose h2, .guide-related h2, .guide-cta h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.guide-prose h3, .guide-cta h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.guide-prose [id] {
  scroll-margin-top: 6rem;
}

.guide-prose :where(strong, b) {
  color: var(--guides-text);
}

.guide-prose :where(ol, ul) {
  margin-bottom: 0;
  padding-inline-start: 1.25em;
}

.guide-prose li + li {
  margin-block-start: 0.35rem;
}

.guide-prose li::marker {
  color: var(--guides-teal);
}

.guide-prose :where(code, kbd) {
  padding: 0.1em 0.32em;
  border: 1px solid var(--guides-edge);
  border-radius: 0.28em;
  color: var(--guides-text);
  background: var(--guides-panel);
  font-size: 0.9em;
}

.guide-prose figure {
  margin-block: 1.45rem;
}

.guide-prose figure img {
  border: 1px solid var(--guides-edge);
  border-radius: 0.85rem;
}

.guide-prose figcaption {
  margin-block-start: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.guide-toc {
  position: sticky;
  top: 6rem;
  grid-area: toc;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--guides-edge);
  border-radius: 0.95rem;
  color: var(--guides-text);
  background: var(--guides-panel);
  font-size: 0.92rem;
}

.guide-toc :where(h2, h3, summary) {
  font-size: 0.97rem;
  font-weight: 720;
  line-height: 1.35;
}

.guide-toc :where(ol, ul) {
  display: grid;
  gap: 0.15rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-toc a {
  display: block;
  min-height: 1.75rem;
  padding-block: 0.15rem;
  line-height: 1.4;
}

.guide-related, .guide-cta {
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
}

.guide-related :where(ul, ol) {
  display: grid;
  row-gap: 0.5rem;
  margin-block: 0.7rem 0;
  padding-inline-start: 1.25rem;
}

.guide-related .guides-grid {
  margin-block-end: 0;
}

.guide-cta {
  padding: clamp(1.35rem, 4vw, 2.9rem);
  border: 1px solid #3b597c;
  border-radius: 1.3rem;
  background: radial-gradient(ellipse at 100% 0, #17424e 0, transparent 65%), #14213b;
}

.guide-cta p {
  max-width: 60ch;
  margin-top: 0.55rem;
  color: var(--guides-muted);
}

.guide-cta .guides-button {
  margin-top: 1.1rem;
}

.guides-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--guides-edge);
  color: var(--guides-muted);
  font-size: 0.9rem;
}

.guides-footer .guides-shell, .guides-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.1rem;
}

.guides-footer :where(ol, ul) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 760px) {
  .site-guides .guide-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-featured .guide-card-image {
    margin-top: 0;
  }

  .guide-article-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "toc" "prose";
  }

  .guide-toc {
    position: static;
  }

  .guide-toc a {
    padding-block: 0.25rem;
    min-height: 2rem;
  }
}

@media (max-width: 540px) {
  .guides-nav {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .guides-nav-links {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 1.35rem;
  }

  .guides-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-prose [id] {
    scroll-margin-top: 7.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-guides *, .site-guides *::before, .site-guides *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.guide-article-heading .guide-byline {
  margin-block: 0.85rem 0;
  font-size: 0.88rem;
  font-weight: 600;
}
