/* Shared walkthrough design; saved page text and blocks remain editable. */
html:has(body.rk-step-guide) { scroll-behavior: auto; }
.rk-step-guide { background: #f7f8fa; }
.rk-step-guide :is(.rk-deep-dive .page, .rk-product-page) {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 64px;
  overflow: visible; /* A scroll container here would trap the sticky menu. */
  border: 1px solid #dfe4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(26 31 42 / 6%);
}
.rk-step-guide :is(.rk-deep-dive .hero, .rk-product-page .rk-product-hero) {
  min-height: 0;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 66px);
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #dfe4eb;
  background: #fff;
  color: #1a1f2a;
}
.rk-step-guide .rk-deep-dive .hero::before,
.rk-step-guide .rk-deep-dive .hero::after,
.rk-step-guide .hero-logo { display: none; }
.rk-step-guide :is(.rk-deep-dive .hero h1, .rk-product-page h1) {
  max-width: 960px;
  margin: 0;
  color: #1a1f2a;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.rk-step-guide :is(.rk-deep-dive .hero-lead, .rk-product-page .rk-product-lead) {
  max-width: 840px;
  margin: 18px 0 0;
  color: #5d6b7e;
  font-size: 17px;
  line-height: 1.65;
}
.rk-step-guide .rk-deep-dive .eyebrow { color: #155080; margin-bottom: 14px; }
.rk-step-guide .rk-deep-dive .hero-meta { margin-top: 22px; gap: 8px; }
.rk-step-guide .rk-deep-dive .pill { border-color: #dfe4eb; background: #f7f8fa; color: #5d6b7e; border-radius: 5px; padding: 5px 9px; }
.rk-step-guide .rk-product-page .shell { width: 100%; max-width: none; }
.rk-step-guide .rk-product-page .rk-product-hero .rk-product-meta:first-child { margin: 0 0 18px; }
.rk-step-guide .rk-product-page > .rk-product-section {
  padding: clamp(28px, 5vw, 66px);
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #dfe4eb;
}
.rk-step-guide .rk-product-page > .rk-product-section:last-child { border-radius: 0 0 16px 16px; }
.rk-step-guide .rk-product-page :is(h2, h3) { color: #1a1f2a; }
.rk-step-guide .rk-product-page h2 { font-size: clamp(27px, 3vw, 38px); }
.rk-step-guide .rk-product-page .rk-product-section > :is(ul, ol) { margin-top: 22px; }
.rk-step-guide .rk-product-page li + li { margin-top: 9px; }

/* A single row on every screen; long chapter lists scroll horizontally. */
.rk-step-guide :is(.rk-deep-dive .toolbar, .rk-product-page #in-this-guide, .rk-product-page .rk-3d-toc) {
  position: sticky;
  top: var(--guide-sticky-top, 76px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 16px;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid #dfe4eb;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 5px 12px rgb(26 31 42 / 4%);
  scrollbar-width: thin;
}
.rk-step-guide :is(#in-this-guide, .rk-3d-toc) > * { margin-block: 0; }
.rk-step-guide :is(#in-this-guide, .rk-3d-toc) > :is(h2, p) { display: none; }
.rk-step-guide :is(#in-this-guide, .rk-3d-toc) > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}
.rk-step-guide :is(#in-this-guide, .rk-3d-toc) li { flex: 0 0 auto; margin: 0; padding: 0; }
.rk-step-guide :is(.toolbar, #in-this-guide, .rk-3d-toc) a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #5d6b7e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.rk-step-guide :is(.toolbar, #in-this-guide, .rk-3d-toc) a:is(:hover, [aria-current]) { background: #dde9f4; color: #155080; }
.rk-step-guide :is(.toolbar, #in-this-guide, .rk-3d-toc) :is(a, button):focus-visible { outline: 3px solid #1f6fb8; outline-offset: -3px; }
.rk-step-guide .print-button { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 1px solid #b8c6d3; border-radius: 6px; background: #fff; color: #155080; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.rk-step-guide :is(.rk-deep-dive, .rk-product-page) [id] { scroll-margin-top: var(--guide-anchor-offset, 160px); }
.rk-step-guide .rk-deep-dive :is(.step-body, .flow-card, .check-card) { min-width: 0; }
.rk-step-guide .rk-deep-dive .ui { white-space: normal; }
@media (max-width: 600px) {
  .rk-step-guide :is(.rk-deep-dive .page, .rk-product-page) { width: 100%; margin: 16px 0 32px; border-inline: 0; border-radius: 0; }
  .rk-step-guide :is(.rk-deep-dive .hero, .rk-product-page .rk-product-hero) { border-radius: 0; }
  .rk-step-guide .rk-product-page .rk-product-actions { gap: 8px; }
  .rk-step-guide .rk-step-contents .print-button { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .rk-step-guide :is(.rk-deep-dive .page, .rk-product-page) { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .rk-step-guide :is(.rk-deep-dive .toolbar, #in-this-guide, .rk-3d-toc) { display: none; }
  .rk-step-guide :is(.rk-deep-dive .hero, .rk-product-page .rk-product-hero, .rk-product-page > .rk-product-section) { padding: 24px; }
}
