:root {
  --guide-text: #111318;
  --guide-muted: #5f6877;
  --guide-line: rgba(17, 19, 24, 0.1);
  --guide-blue: #2563eb;
  --guide-soft: #f5f7fb;
  --guide-ink: #191933;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--guide-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  background: linear-gradient(180deg, #ffffff 0%, var(--guide-soft) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.guide-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  text-decoration: none;
}

.guide-brand img {
  display: block;
  border-radius: 10px;
}

.guide-brand span {
  color: #0b0d18;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.75;
  white-space: nowrap;
}

.guide-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  color: #20242c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.guide-nav .guide-nav-cta {
  color: #ffffff;
  background: #111318;
}

.guide-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 126px) 0 92px;
}

.guide-hero {
  max-width: 880px;
}

.guide-kicker {
  margin: 0 0 14px;
  color: var(--guide-blue);
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-hero h1,
.guide-section-head h2,
.guide-final-cta h2,
.guide-article-header h1 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.026em;
  line-height: 1.08;
}

.guide-hero h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 8.2vw, 6.9rem);
}

.guide-lead,
.guide-article-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--guide-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.guide-button.primary {
  color: #ffffff;
  background: #111318;
}

.guide-button.secondary {
  border: 1px solid var(--guide-line);
  background: #ffffff;
}

.guide-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(48px, 8vw, 82px);
}

.guide-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2d3440;
  font-size: 0.88rem;
  font-weight: 650;
}

.guide-section {
  margin-top: clamp(84px, 12vw, 140px);
}

.guide-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.guide-section-head h2 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.guide-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-category-card {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.guide-category-card span {
  display: block;
  font-size: 1.02rem;
  font-weight: 680;
  letter-spacing: -0.012em;
}

.guide-category-card p {
  margin: 12px 0 0;
  color: var(--guide-muted);
  font-size: 0.94rem;
}

.guide-list {
  display: grid;
  gap: 38px;
}

.guide-list-category-group {
  display: grid;
  border-top: 1px solid var(--guide-line);
}

.guide-list-category-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  padding: 24px 0 6px;
}

.guide-list-category-head .guide-kicker {
  margin-bottom: 0;
}

.guide-list-category-head h3 {
  margin: 0;
  color: #232936;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 520;
}

.guide-list-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-list-number {
  color: rgba(17, 19, 24, 0.36);
  font-size: 1.8rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.guide-list-category {
  margin: 0 0 4px;
  color: var(--guide-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.guide-list-item h4 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  font-weight: 590;
}

.guide-list-item h4 a {
  text-decoration: none;
}

.guide-list-item p:not(.guide-list-category) {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--guide-muted);
}

.guide-final-cta {
  margin-top: clamp(84px, 12vw, 140px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.42), transparent 36%), linear-gradient(135deg, #191933, #10101e 72%);
}

.guide-final-cta .guide-kicker,
.guide-final-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.guide-final-cta h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
}

.guide-final-cta .guide-button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.guide-article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 6vw, 72px);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 112px) 0 92px;
}

.guide-breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--guide-muted);
  font-size: 0.9rem;
}

.guide-breadcrumb a {
  color: var(--guide-blue);
  text-decoration: none;
  font-weight: 800;
}

.guide-article {
  min-width: 0;
}

.guide-article-header h1 {
  max-width: 840px;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.guide-intent-box {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--guide-line);
}

.guide-intent-box strong {
  display: block;
  color: var(--guide-blue);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-intent-box p {
  margin: 6px 0 0;
  color: #2b313c;
  font-weight: 720;
}

.guide-article-section,
.guide-checklist,
.guide-related {
  margin-top: 48px;
}

.guide-article-section h2,
.guide-checklist h2,
.guide-related h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  font-weight: 660;
}

.guide-article-section p {
  margin: 14px 0 0;
  color: #2f3744;
  font-size: 1.05rem;
}

.guide-checklist {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--guide-line);
}

.guide-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.guide-checklist li {
  color: #2f3744;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-related-grid a {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.guide-related-grid span {
  color: var(--guide-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.guide-related-grid strong {
  align-self: end;
  font-size: 1rem;
  line-height: 1.2;
}

.guide-article-cta {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(145deg, #191933, #10101e);
}

.guide-article-cta .guide-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.guide-article-cta h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.14;
  letter-spacing: -0.018em;
  font-weight: 660;
}

.guide-article-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.guide-article-cta .guide-button {
  width: 100%;
  margin-top: 10px;
}

.guide-article-cta .guide-button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.guide-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
}

.guide-footer strong {
  color: var(--guide-text);
}

.guide-footer p {
  margin: 4px 0 0;
}

.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-footer a {
  text-decoration: none;
  font-weight: 760;
}

@media (max-width: 900px) {
  .guide-topbar {
    top: 8px;
    width: min(100% - 20px, 720px);
  }

  .guide-nav a:not(.guide-nav-cta):not(:first-child) {
    display: none;
  }

  .guide-shell,
  .guide-article-shell,
  .guide-footer {
    width: min(100% - 28px, 720px);
  }

  .guide-section-head,
  .guide-list-category-head,
  .guide-article-shell {
    grid-template-columns: 1fr;
  }

  .guide-category-grid,
  .guide-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-article-cta {
    position: static;
  }
}

@media (max-width: 560px) {
  .guide-topbar {
    padding: 8px 10px;
    border-radius: 18px;
  }

  .guide-brand span {
    font-size: 1.02rem;
  }

  .guide-nav a:first-child {
    display: none;
  }

  .guide-nav a {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .guide-shell {
    padding-top: 62px;
  }

  .guide-hero h1,
  .guide-article-header h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .guide-category-grid,
  .guide-related-grid {
    grid-template-columns: 1fr;
  }

  .guide-list-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .guide-list-number {
    font-size: 1.35rem;
  }

  .guide-final-cta {
    border-radius: 22px;
  }

  .guide-footer {
    display: grid;
  }
}

/* Docs-style success guide layout. Keep this block last so it safely overrides
   the older marketing-style guide surfaces without changing article content. */
.guide-index-shell {
  padding-top: clamp(24px, 4vw, 46px);
}

.guide-index-hero {
  display: grid;
  gap: 12px;
  max-width: 760px;
  padding: 8px 0 24px;
}

.guide-index-hero h1,
.guide-index-toolbar h2 {
  margin: 0;
  color: #10131a;
  font-size: clamp(2rem, 3.25vw, 3.18rem);
  line-height: 1.12;
  letter-spacing: -0.026em;
  font-weight: 620;
  text-wrap: balance;
}

.guide-index-toolbar h2 {
  font-size: clamp(1.72rem, 2.75vw, 2.85rem);
  font-weight: 610;
}

.guide-index-hero .guide-lead {
  margin-top: 6px;
  max-width: 700px;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.guide-index-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
  margin-top: 8px;
  min-width: 0;
}

.guide-index-sidebar,
.guide-article-aside {
  position: sticky;
  top: 94px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

.guide-sidebar-label {
  margin: 0 0 12px;
  color: #767f90;
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.guide-category-nav,
.guide-toc {
  display: grid;
  gap: 2px;
}

.guide-category-nav a,
.guide-toc a,
.guide-aside-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #2c3442;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
}

.guide-category-nav a:hover,
.guide-toc a:hover,
.guide-aside-related a:hover {
  background: rgba(37, 99, 235, 0.07);
  color: #0f172a;
}

.guide-category-nav em {
  min-width: 24px;
  color: #8b95a5;
  font-style: normal;
  font-size: 0.78rem;
  text-align: right;
}

.guide-sidebar-help {
  margin: 14px 0 0;
  color: #7b8494;
  font-size: 0.86rem;
  line-height: 1.45;
}

.guide-index-main {
  min-width: 0;
}

.guide-index-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--guide-line);
}

.guide-index-toolbar .guide-kicker {
  margin: 0;
}

.guide-list {
  gap: 0;
}

.guide-list-category-group {
  scroll-margin-top: 110px;
  border-top: 0;
}

.guide-list-category-group + .guide-list-category-group {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--guide-line);
}

.guide-list-category-head {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 0 12px;
}

.guide-list-category-head h3 {
  max-width: 720px;
  color: #5f6877;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 560;
}

.guide-list-item {
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  padding-right: 34px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.guide-list-item::after {
  content: "→";
  position: absolute;
  right: 2px;
  top: 50%;
  color: rgba(37, 99, 235, 0.54);
  font-size: 1.15rem;
  font-weight: 800;
  transform: translateY(-50%);
  transition: transform 180ms ease, color 180ms ease;
}

.guide-list-item:hover {
  color: #0f172a;
  transform: translateX(2px);
}

.guide-list-item:hover::after {
  color: #2563eb;
  transform: translate(3px, -50%);
}

.guide-list-item > div {
  min-width: 0;
}

.guide-list-number {
  padding-top: 1px;
  color: rgba(17, 19, 24, 0.28);
  font-size: 1.08rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.guide-list-category {
  display: none;
}

.guide-list-item h4 {
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.32;
  letter-spacing: -0.008em;
  font-weight: 580;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.guide-list-item p:not(.guide-list-category) {
  max-width: 780px;
  margin-top: 7px;
  font-size: 0.97rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.guide-article-shell {
  grid-template-columns: minmax(0, 750px) 286px;
  gap: clamp(32px, 5vw, 68px);
  padding-top: clamp(40px, 6vw, 82px);
}

.guide-article-header h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.9rem);
  line-height: 1.04;
  text-wrap: balance;
}

.guide-article-lead {
  margin-top: 22px;
}

.guide-article-aside {
  display: grid;
  gap: 18px;
}

.guide-aside-panel {
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--guide-line);
}

.guide-aside-related a {
  justify-content: flex-start;
}

.guide-article-section {
  scroll-margin-top: 110px;
}

@media (min-width: 901px) {
  .guide-related {
    display: none;
  }
}

@media (max-width: 900px) {
  .guide-index-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
    overflow: hidden;
  }

  .guide-index-sidebar,
  .guide-article-aside {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .guide-category-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    padding-bottom: 0;
    scroll-padding-inline: 0;
    scrollbar-width: none;
  }

  .guide-category-nav::-webkit-scrollbar {
    display: none;
  }

  .guide-category-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--guide-line);
    background: rgba(255, 255, 255, 0.74);
    white-space: normal;
    align-items: flex-start;
  }

  .guide-category-nav a span {
    min-width: 0;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .guide-category-nav em {
    flex: 0 0 auto;
  }

  .guide-sidebar-help {
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .guide-article-shell {
    grid-template-columns: 1fr;
  }

  .guide-aside-related {
    display: none;
  }
}

@media (max-width: 560px) {
  .guide-index-shell {
    padding-top: 34px;
  }

  .guide-index-hero h1,
  .guide-index-toolbar h2 {
    font-size: clamp(1.95rem, 9vw, 2.75rem);
  }

  .guide-index-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .guide-list-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 28px 16px 0;
  }
}
