:root {
  --green: #1dac4b;
  --green-dark: #168d3c;
  --green-soft: #eaf8ee;
  --ink: #17251e;
  --muted: #6f7e74;
  --border: #e5ece7;
  --shadow: 0 12px 34px rgba(23, 55, 35, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 64px; min-height: 100vh; display: flex; color: var(--ink); background: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; }
a { color: inherit; }

.docs-sidebar { width: 258px; height: calc(100vh - 64px); max-height: calc(100vh - 64px); align-self: flex-start; position: sticky; top: 64px; overflow-y: auto; display: flex; flex-direction: column; padding: 28px 20px; border-right: 1px solid var(--border); background: #fff; }
.docs-brand { display: flex; align-items: center; gap: 9px; margin: 0 8px 52px; color: var(--ink); font-size: 19px; font-weight: 800; text-decoration: none; }
.docs-brand img { width: 34px; height: 34px; border-radius: 50%; }
.sidebar-label { margin: 0 12px 13px; color: #9aa79e; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.docs-nav { display: grid; gap: 5px; }
.docs-nav a { padding: 11px 13px; border-radius: 8px; color: #607067; font-size: 14px; text-decoration: none; }
.docs-nav a:hover, .docs-nav a.active { color: var(--green-dark); background: var(--green-soft); }
.back-link { margin: auto 12px 5px; color: var(--green-dark); font-size: 13px; font-weight: 700; text-decoration: none; }

.docs-main { flex: 1; min-width: 0; }
.docs-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 62px max(42px, 7vw) 48px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #fff 0%, #fafffb 100%); }
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1 { max-width: 640px; margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.intro { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.top-links { display: flex; gap: 25px; padding-top: 4px; white-space: nowrap; }
.top-links a { color: #607067; font-size: 14px; font-weight: 700; text-decoration: none; }
.top-links a:hover, .top-links a.current { color: var(--green-dark); }

.docs-content { max-width: 960px; padding: 10px max(42px, 7vw) 70px; }
.docs-section { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 22px; padding: 48px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 20px; }
.section-number { padding-top: 5px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.025em; }
.docs-section p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
code { padding: 3px 7px; border-radius: 5px; color: var(--green-dark); background: var(--green-soft); font-size: .9em; }
ul { display: grid; gap: 9px; margin: 18px 0 0; padding-left: 19px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.step-card { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); color: var(--muted); font-size: 13px; line-height: 1.4; }
.step-card strong { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: #fff; background: var(--green); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.feature-list > div { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: var(--green-dark); background: var(--green-soft); font-size: 13px; font-weight: 800; }
.feature-list p { display: grid; gap: 3px; font-size: 13px; line-height: 1.35; }
.feature-list small { color: var(--muted); font-size: 12px; }
.note, .tip { margin-top: 18px !important; padding: 13px 15px; border-left: 3px solid var(--green); border-radius: 6px; background: #f7fcf8; font-size: 13px !important; }
.tip { display: flex; gap: 9px; }
.tip b { color: var(--green-dark); }
.docs-footer { padding: 34px 0 0; color: #9aa79e; font-size: 12px; }

@media (max-width: 760px) {
  body { display: block; padding-top: 64px; }
  .docs-sidebar { width: 100%; height: auto; max-height: none; align-self: auto; position: static; overflow: visible; padding: 18px; border-right: 0; border-bottom: 1px solid var(--border); }
  .docs-brand { margin: 0 0 18px; }
  .docs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back-link { margin: 18px 0 0 12px; }
  .docs-header { display: block; padding: 42px 24px 34px; }
  .top-links { margin-top: 24px; }
  .docs-content { padding: 0 24px 45px; }
  .docs-section { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 36px 0; }
  .step-grid, .feature-list { grid-template-columns: 1fr; }
}

/* Hosted membership layout keeps the shared header outside the documentation columns. */
body { display: block; padding-top: 0; background: #fff; }
body > .topbar { max-width: 1160px; margin: 0 auto; padding: 22px 28px; }
.docs-layout { display: flex; min-height: calc(100vh - 78px); border-top: 1px solid var(--border); }
.docs-sidebar { height: calc(100vh - 78px); top: 0; }

@media (max-width: 760px) {
  body > .topbar { padding: 18px; }
  .docs-layout { display: block; }
  .docs-sidebar { height: auto; }
}
