:root {
  color-scheme: light;
  --brand: #5865f2;
  --brand-dark: #3f4bd8;
  --confluence: #0c66e4;
  --ink: #172b4d;
  --ink-soft: #44546f;
  --ink-muted: #626f86;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-brand: #f1f3ff;
  --border: #dfe1e6;
  --border-soft: #ebecf0;
  --success: #147d64;
  --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.08), 0 2px 8px rgba(9, 30, 66, 0.05);
  --shadow-lg: 0 18px 44px rgba(9, 30, 66, 0.13);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-height: 72px;
  --page-width: 1280px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--confluence);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0055cc;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #ffab00;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #ffab00;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(9, 30, 66, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}

.brand-title {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-title span {
  color: var(--brand-dark);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-links a {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.header-links a:hover {
  color: var(--brand-dark);
}

.menu-button {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.mobile-navigation {
  border-top: 1px solid var(--border-soft);
  padding: 10px 20px 18px;
  background: var(--surface);
}

.mobile-search-link {
  display: block;
  margin-top: 12px;
  padding: 10px;
  border-top: 1px solid var(--border-soft);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.docs-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  width: min(100%, var(--page-width));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  padding: 34px 24px 48px;
  overflow-y: auto;
  border-right: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.sidebar-heading {
  margin: 0 10px 16px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-sections,
.nav-pages {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-section {
  margin: 3px 0;
}

.nav-section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.nav-section-link svg {
  width: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-section-link:hover,
.nav-section.is-active > .nav-section-link {
  color: var(--brand-dark);
  background: var(--surface-brand);
}

.nav-section-link[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav-pages {
  margin: 5px 0 8px 18px;
  padding-left: 12px;
  border-left: 1px solid #cdd2ff;
}

.nav-pages a {
  display: block;
  margin: 2px 0;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
}

.nav-pages a:hover,
.nav-pages a[aria-current="page"] {
  color: var(--brand-dark);
  background: #fff;
}

.nav-pages a[aria-current="page"] {
  font-weight: 700;
}

.article-main {
  min-width: 0;
  padding: 54px clamp(30px, 6vw, 88px) 88px;
  background: var(--surface);
}

.article-card {
  width: min(100%, 800px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-card > h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 3.15rem);
}

.article-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.65;
}

.article-body {
  margin-top: 42px;
  color: var(--ink-soft);
}

.article-body h2 {
  margin: 48px 0 14px;
  font-size: 1.55rem;
}

.article-body h3 {
  margin: 34px 0 10px;
  font-size: 1.15rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table {
  max-width: 720px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li {
  margin: 9px 0;
  padding-left: 4px;
}

.article-body strong {
  color: var(--ink);
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  color: #ae2e24;
  background: #f7f2f2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.article-body pre {
  max-width: 100%;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  color: #fff;
  background: #1d2125;
}

.article-body pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.article-body table {
  width: 100%;
  margin: 24px 0 30px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--ink);
  background: var(--surface-soft);
}

.search-index {
  max-width: 720px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 24px 0 32px;
}

.article-grid a {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  text-decoration: none;
}

.article-grid a:hover {
  border-color: #9da6f8;
  color: var(--brand-dark);
}

.docs-cards {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 24px 0 32px;
}

.docs-cards.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.docs-card:hover {
  border-color: #9da6f8;
  color: var(--brand-dark);
}

.docs-card-icon {
  grid-row: 1 / span 3;
  font-size: 1.25rem;
}

.docs-card-title {
  font-weight: 750;
}

.docs-card-description {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.docs-card-link {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.docs-home-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.docs-home-card .docs-card-link {
  margin-top: 5px;
}

.steps {
  margin: 24px 0 32px !important;
  padding: 0 !important;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 54px;
  margin: 0 0 18px;
  padding: 2px 0 0 58px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--confluence), var(--brand));
  box-shadow: 0 6px 14px rgba(88, 101, 242, 0.22);
  content: counter(steps);
  font-weight: 800;
}

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #cdd2ff;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--surface-brand);
}

.callout > strong {
  display: block;
  margin-bottom: 5px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.product-figure {
  margin: 32px 0 38px;
}

.product-shot {
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f5f6fa;
  box-shadow: var(--shadow-lg);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.product-figure figcaption {
  margin-top: 13px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.next-card:hover {
  border-color: #9da6f8;
  color: var(--brand-dark);
  text-decoration: none;
}

.next-card span:first-child {
  display: grid;
}

.next-card small {
  margin-bottom: 3px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-card b {
  font-size: 1rem;
}

.next-card > b {
  font-size: 1.4rem;
}

.site-footer {
  color: #c7d1e5;
  background: #101828;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(0, 2fr);
  gap: 72px;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 58px 0 44px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  flex: 0 0 auto;
}

.footer-brand strong {
  color: #fff;
}

.footer-brand p {
  max-width: 280px;
  margin: 7px 0 0;
  color: #9fadca;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: #c7d1e5;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8996b1;
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .docs-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .article-main {
    padding-right: 38px;
    padding-left: 38px;
  }
}

@media (min-width: 761px) {
  .mobile-navigation {
    display: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    width: min(100% - 30px, var(--page-width));
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .header-links,
  .docs-sidebar {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .docs-shell {
    display: block;
    min-height: 0;
  }

  .article-main {
    padding: 38px 22px 62px;
  }

  .article-card > h1 {
    font-size: 2.3rem;
  }

  .article-lead {
    margin-top: 16px;
    font-size: 1.05rem;
  }

  .article-body {
    margin-top: 34px;
  }

  .article-body h2 {
    margin-top: 40px;
    font-size: 1.4rem;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
  }

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

  .docs-cards.grid-2 {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-left: 52px;
  }

  .product-figure {
    margin-right: -8px;
    margin-left: -8px;
  }

  .product-shot {
    height: auto;
  }

  .product-shot img {
    width: 100%;
  }

  .next-card {
    padding: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    width: min(100% - 36px, 1120px);
    padding-top: 44px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    width: min(100% - 36px, 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
