/* V2 is scoped to the Guide; original shared styles are preserved. */
.guide-page .subhero{padding:58px 0 38px;background:radial-gradient(ellipse at 85% 5%,#eee2ff 0,transparent 65%),linear-gradient(110deg,#fff,#faf7ff);text-align:left}
.guide-hero-label{display:block;color:#7540df;font-size:12px;font-weight:750;letter-spacing:1.8px;margin-bottom:14px}
.guide-page .subhero h1{font-size:48px;letter-spacing:-1.8px;margin-bottom:16px}
.guide-page .subhero p{max-width:720px;margin:0;color:#625b71;font-size:17px;line-height:1.8}
.guide-topic-wrap{padding-top:26px;padding-bottom:28px;scroll-margin-top:102px}
.guide-tabs{display:flex;gap:5px;border:1px solid #e8def5;background:#faf7ff;border-radius:16px;padding:7px;overflow-x:auto;scrollbar-width:thin}
.guide-tabs [role=tab]{flex:1 0 auto;border:0;border-radius:11px;padding:13px 15px;color:#655872!important;background:transparent;font-size:14px;font-weight:650;white-space:nowrap;min-height:48px}
.guide-tabs [role=tab]:hover{transform:none;color:#6331c7;background:#eee5ff}
.guide-tabs [aria-selected=true]{background:#7540df;color:#fff!important;box-shadow:0 3px 10px #7540df25}
.guide-tabs [aria-selected=true]:hover{background:#6331c7;color:#fff}
.guide-page .guide-layout{display:grid;grid-template-columns:256px minmax(0,1fr);gap:64px;padding-top:6px;padding-bottom:72px}
.guide-page .guide-sidebar{top:110px;max-height:calc(100dvh - 132px)}
.guide-sidebar .guide-nav .guide-nav-label{display:block;font-size:10px;letter-spacing:1.5px;color:#9885aa;font-weight:750;margin:5px 10px 3px}
.guide-nav-topic{font-size:17px;font-weight:750;line-height:1.4;padding:0 10px 14px;margin-bottom:6px;border-bottom:1px solid #e8def5}
#guide-step-links{display:grid;gap:3px}
.guide-sidebar .guide-nav a{display:flex;align-items:baseline;gap:10px;white-space:normal;font-size:13px;line-height:1.55;padding:9px 10px;transform:none}
.nav-step-number{font-size:10px;min-width:17px;font-weight:700;opacity:.6;font-variant-numeric:tabular-nums}
.guide-sidebar .guide-nav a.active{background:#eee5ff;color:#6331c7;font-weight:700}
.guide-panel{padding:0}.guide-panel[hidden]{display:none!important}
.guide-panel-heading{padding:0 0 30px;border-bottom:1px solid #e8def5;margin-bottom:34px}
.guide-eyebrow{font-size:10px!important;letter-spacing:1.4px;color:#7540df!important;font-weight:750;margin:0 0 10px!important}
.guide-eyebrow span{color:#a18cb5;font-weight:500}
.guide-panel-heading h2{font-size:34px!important;line-height:1.2;letter-spacing:-1px;margin:0 0 14px!important}
.guide-panel-heading>p:last-child{font-size:16px;color:#766b80;margin:0!important}
.guide-step{scroll-margin-top:112px;padding:0 0 30px;margin-bottom:32px;border-bottom:1px solid #f0eaf7}
.step-heading{display:flex;align-items:center;gap:14px;margin:0 0 17px}
.step-number{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#f1e9ff;color:#7540df;font-size:12px;font-weight:750}
.guide-copy .step-heading h3{font-size:23px;line-height:1.35;letter-spacing:-.4px;margin:0}
.guide-copy .guide-step p{font-size:15px;line-height:1.85;margin:0 0 15px;color:#625b71}
.guide-copy .guide-step p:last-child{margin-bottom:0}.guide-copy strong{color:#3d304c;font-weight:650}
.guide-topic-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 42px}
.guide-topic-pagination button{border:1px solid #e8def5;border-radius:12px;padding:12px 16px;background:white;color:#7540df!important;font-size:13px;font-weight:650;min-height:45px}
.guide-topic-pagination button:hover{background:#faf7ff;transform:none}.guide-topic-pagination button[hidden]{display:none}
#guide-next{margin-left:auto}.guide-copy .guide-cta-card{margin-top:0}.guide-cta-inner p{margin:0 0 24px;color:#766b80;font-size:15px}
.guide-copy .guide-cta-card h2{margin-bottom:15px;font-size:28px}
@media(max-width:1100px){.guide-page .guide-layout{grid-template-columns:225px minmax(0,1fr);gap:36px}.guide-tabs [role=tab]{padding:12px 13px}.guide-copy .step-heading h3{font-size:21px}}
@media(max-width:767px){
 .guide-page .subhero{padding:36px 0 24px}.guide-page .subhero h1{font-size:35px;letter-spacing:-1px}.guide-page .subhero p{font-size:15px}.guide-hero-label{font-size:10px}
 .guide-topic-wrap{padding-top:18px;padding-bottom:22px;scroll-margin-top:88px}.guide-tabs{border-radius:13px;padding:5px;gap:3px}.guide-tabs [role=tab]{font-size:13px;padding:11px 14px;min-height:44px}
 .guide-page .guide-layout{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:0;padding-bottom:42px}.guide-page .guide-sidebar{position:static;max-height:none;overflow:visible}
 .guide-sidebar .guide-nav{display:block;padding:14px}.guide-sidebar .guide-nav .guide-nav-label{display:block}.guide-nav-topic{padding-bottom:10px;margin-bottom:10px;font-size:16px}
 #guide-step-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.guide-sidebar .guide-nav a{background:#fff;border:1px solid #e8def5;align-items:baseline;font-size:12px;padding:9px;min-height:43px;gap:6px}.guide-sidebar .guide-nav a:after{content:none}
 .guide-panel-heading{margin-bottom:27px;padding-bottom:24px}.guide-panel-heading h2{font-size:29px!important}.guide-panel-heading>p:last-child{font-size:14px}
 .guide-copy .step-heading h3{font-size:21px}.guide-copy .guide-step p{font-size:15px}.guide-step{padding-bottom:24px;margin-bottom:26px;scroll-margin-top:94px}.step-heading{gap:10px}.step-number{width:30px;height:30px;border-radius:8px}
 .guide-topic-pagination button{font-size:12px;padding:11px}.guide-topic-pagination{gap:8px}.guide-page .guide-copy>.guide-help-box{display:flex}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Offset combines with the shared document scroll padding. */
.guide-topic-wrap,.guide-step{scroll-margin-top:16px}
.guide-tabs [role=tab]:hover{color:#6331c7!important}
.guide-tabs [aria-selected=true]:hover{color:#fff!important}
/* Selected topic: quiet white surface, distinct from primary CTAs. */
.guide-tabs [role=tab]{border:1px solid transparent}
.guide-tabs [aria-selected=true]{background:#fff;color:#6331c7!important;border-color:#d8c6f0;box-shadow:0 2px 6px #4020600a}
.guide-tabs [aria-selected=true]:hover{background:#fff;color:#6331c7!important;border-color:#c7afe5}
/* White topic bar with a soft lavender selected state. */
.guide-tabs{background:#fff}
.guide-tabs [role=tab]{background:#fff;color:#655872!important;border-color:transparent;box-shadow:none}
.guide-tabs [role=tab]:hover{background:#f8f4ff;color:#6331c7!important;border-color:transparent}
.guide-tabs [aria-selected=true],.guide-tabs [aria-selected=true]:hover{background:#eee5ff;color:#6331c7!important;border-color:transparent;box-shadow:none}
/* Subtle purple frame around the entire topic selector. */
.guide-tabs{border-color:#cbb4ec;box-shadow:0 4px 16px rgba(117,64,223,.09)}
/* One continuous canvas across the navigation, intro and topic selector. */
body.guide-page{background-color:#fff;background-image:radial-gradient(ellipse 950px 620px at 83% 60px,rgba(222,204,255,.55) 0%,rgba(237,227,255,.24) 48%,rgba(255,255,255,0) 100%),radial-gradient(ellipse 650px 470px at 0 0,rgba(255,232,207,.35) 0%,rgba(255,245,232,.12) 55%,rgba(255,255,255,0) 100%);background-repeat:no-repeat;background-size:100% 760px,100% 600px}
.guide-page .subhero{background:transparent}
/* Restore the original centered introduction. */
.guide-page .subhero{text-align:center}
.guide-page .subhero p{margin-left:auto;margin-right:auto}


/* Content additions only; retain the approved V2 layout and topic selector. */
.guide-page {
  --wb-primary: #7B5CFF;
  --guide-link: #6331c7;
  --guide-shot-border: #e8def5;
}
.guide-brand-lockup { display:block; width:147.2px; height:25.6px; flex:none; }
.guide-copy .guide-step ul { padding-left:24px; margin:0 0 18px; }
.guide-copy .guide-step li { font-size:15px; line-height:1.85; color:#625b71; margin:8px 0; }
.guide-copy .guide-step li::marker { color:var(--wb-primary); }
.guide-copy .guide-step a, .guide-panel-heading>p a { color:var(--guide-link); text-decoration:underline; text-underline-offset:3px; }
.guide-copy .guide-step a:hover { text-decoration-thickness:2px; }
.guide-copy .guide-step button.screenshot { box-sizing:border-box; width:var(--guide-shot-width,800px); max-width:min(800px,100%); padding:0; margin:22px 0 28px; border:1px solid var(--guide-shot-border); }
.guide-copy .guide-step button.screenshot img { display:block; width:100%; max-width:100%; height:auto; border-radius:11px; }
.guide-copy .guide-step p:has(+ .screenshot) { margin-bottom:12px; }
/* Preserve the reviewed topic selector when a CMS theme styles all buttons. */
#guide-topics .guide-tabs [role="tab"] { background:#fff!important; color:#655872!important; border-color:transparent; box-shadow:none!important; }
#guide-topics .guide-tabs [role="tab"]:hover { background:#f8f4ff!important; color:#6331c7!important; }
#guide-topics .guide-tabs [aria-selected="true"],
#guide-topics .guide-tabs [aria-selected="true"]:hover { background:#eee5ff!important; color:#6331c7!important; }
#image-viewer::backdrop { background:rgba(19,12,34,.7); }
#image-viewer .close { position:fixed; top:16px; right:16px; z-index:2; }
@media(max-width:767px) {
  .guide-page #guide-topics { position:relative; }
  .guide-page #guide-topics::before {
    content:"";
    position:absolute;
    inset:18px 0 22px;
    border:1px solid #cbb4ec;
    border-radius:13px;
    background:#fff;
    box-shadow:0 4px 16px rgba(117,64,223,.09);
    pointer-events:none;
  }
  .guide-page #guide-topics .guide-tabs {
    position:relative;
    margin-inline:7px;
    margin-block:1px;
    padding-inline:4px;
    border:0;
    border-radius:0;
    box-shadow:none;
    scroll-padding-inline:7px;
    mask-image:linear-gradient(to right,transparent,#000 6px,#000 calc(100% - 6px),transparent);
  }
  .guide-copy button.screenshot { margin:18px 0 24px; }
  .guide-copy .guide-step ul { padding-left:22px; }
  /* Compact single-column navigation with a fixed number column. */
  .guide-page #guide-step-links {
    grid-template-columns:minmax(0,1fr);
    gap:2px;
  }
  .guide-page #guide-step-links > a {
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    column-gap:8px;
    align-items:center;
    justify-content:start;
    height:36px;
    min-height:36px;
    max-height:36px;
    border:0;
    box-shadow:none;
    background:transparent;
    box-sizing:border-box;
    padding:0 12px;
    text-align:left;
    line-height:18px;
  }
  .guide-page #guide-step-links > a.active {
    background:#eee5ff;
  }
  .guide-page #guide-step-links > a > .nav-step-number {
    min-width:0;
    padding-top:0;
    line-height:18px;
  }
  .guide-page #guide-step-links > a > span:last-child {
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:left;
  }
}

/* The WordPress theme uses a different document scroll-padding from the draft. */
.guide-page .guide-step,.guide-page .guide-topic-wrap{scroll-margin-top:112px}
@media(max-width:767px){.guide-page .guide-step,.guide-page .guide-topic-wrap{scroll-margin-top:80px}}
