:root {
  --navy: #10264a;
  --text: #3f5572;
  --muted: #5f7188;
  --coral: #ff615b;
  --coral-soft: #fff1ef;
  --blue: #1d65b3;
  --blue-soft: #f5f9ff;
  --line: #e1e9f2;
  --sidebar: #fbfcfe;
  --white: #fff;
  --header-height: 74px;
  font-family:
    "Segoe UI Variable Text",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--navy);
  background: var(--white);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

button,
[role="button"] {
  font-family: "Fedra Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.docs-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(280px, 430px) minmax(250px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 10px clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.docs-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.docs-brand small {
  margin-left: 2px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.docs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d4dfeb;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(16, 38, 74, 0.04);
}

.docs-search:focus-within {
  border-color: #7eade0;
  box-shadow: 0 0 0 3px rgba(50, 126, 213, 0.1);
}

.docs-search svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.docs-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
}

.docs-search input::placeholder {
  color: var(--muted);
}

.docs-search kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 600 10px/1.5 inherit;
  white-space: nowrap;
}

.back-link {
  justify-self: end;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.docs-header-actions { display: flex; justify-self: end; align-items: center; gap: 13px; }
.docs-locale { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 750; }

.docs-menu-toggle {
  display: none;
}

.docs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 780px);
  justify-content: center;
  gap: clamp(52px, 7vw, 108px);
  min-height: calc(100vh - var(--header-height));
  padding: 0 clamp(24px, 5vw, 76px);
}

.docs-sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  padding: 30px 0 50px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.docs-nav-inner {
  display: grid;
  gap: 28px;
}

.docs-mobile-actions {
  display: none;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group h2 {
  margin: 0 0 6px 12px;
  color: #425775;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.nav-group a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  color: #405673;
  font-size: 13px;
  line-height: 1.35;
}

.nav-group a::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.nav-group a:hover {
  background: #f2f6fa;
  color: var(--navy);
}

.nav-group a.is-active {
  background: var(--coral-soft);
  color: #c63834;
  font-weight: 700;
}

.nav-group a.is-active::before {
  background: var(--coral);
}

.nav-empty {
  margin: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.docs-content {
  width: 100%;
  min-width: 0;
  padding: 32px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--blue);
}

.docs-content article {
  min-height: 460px;
}

.docs-content h1 {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.article-lead {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.docs-content h2 {
  margin: 34px 0 12px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.docs-content h3 {
  margin: 24px 0 8px;
  color: var(--navy);
  font-size: 17px;
}

.docs-content p,
.docs-content li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
}

.quick-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 36px;
  border: 1px solid #d8e5f3;
  border-radius: 12px;
  background: var(--blue-soft);
}

.quick-step {
  position: relative;
  padding: 20px 18px;
  text-align: center;
}

.quick-step + .quick-step {
  border-left: 1px solid #d8e5f3;
}

.quick-step span {
  display: grid;
  width: 27px;
  height: 27px;
  margin: 0 auto 9px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.quick-step b {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 13px;
}

.quick-step small {
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
}

.docs-note {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid #d8e5f3;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.docs-note strong {
  color: var(--navy);
}

.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-pagination a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 10px;
  min-height: 48px;
  color: var(--blue);
}

.article-pagination a:last-child {
  grid-template-columns: 1fr auto;
  text-align: right;
}

.article-pagination span {
  grid-row: 1 / 3;
  font-size: 22px;
}

.article-pagination a:last-child span {
  grid-column: 2;
}

.article-pagination small {
  color: var(--muted);
  font-size: 10px;
}

.article-pagination b {
  font-size: 12px;
}

.nav-backdrop {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .docs-header {
    grid-template-columns: 1fr minmax(260px, 380px) auto;
  }

  .docs-brand span {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 210px minmax(0, 680px);
    gap: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .docs-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 8px 16px;
  }

  .docs-brand {
    gap: 6px;
  }

  .docs-brand img {
    width: 38px;
    height: 38px;
  }

  .docs-brand small,
  .docs-search kbd,
  .back-link,
  .docs-header-actions {
    gap: 0;
  }

  .docs-search {
    min-height: 44px;
    padding-inline: 10px;
  }

  .docs-search input {
    min-width: 0;
  }

  .docs-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
  }

  .docs-menu-toggle i {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
    transition: transform 0.2s ease;
  }

  .docs-menu-toggle[aria-expanded="true"] i:first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .docs-menu-toggle[aria-expanded="true"] i:last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .docs-layout {
    display: block;
    padding: 0 20px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 40;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(88vw, 320px);
    height: auto;
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
    border-right: 1px solid var(--line);
    border-radius: 0 18px 18px 0;
    background: var(--sidebar);
    box-shadow: 20px 0 50px rgba(16, 38, 74, 0.12);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    z-index: 35;
    inset: var(--header-height) 0 0;
    display: block;
    border: 0;
    background: rgba(16, 38, 74, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-locale {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
  }

  .nav-group a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-block: 10px;
  }

  .docs-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .docs-mobile-actions a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--blue);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
  }

  .docs-content {
    padding: 24px 0 50px;
  }

  .breadcrumbs {
    margin-bottom: 18px;
  }

  .docs-content h1 {
    font-size: 34px;
  }

  .article-lead {
    font-size: 16px;
  }

  .quick-steps {
    grid-template-columns: 1fr;
  }

  .quick-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    text-align: left;
  }

  .quick-step + .quick-step {
    border-top: 1px solid #d8e5f3;
    border-left: 0;
  }

  .quick-step span {
    grid-row: 1 / 3;
    margin: 0;
  }

  .article-pagination {
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .docs-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .docs-brand img {
    width: 36px;
    height: 36px;
  }

  .docs-layout {
    padding-inline: 16px;
  }

  .docs-content {
    padding-top: 20px;
  }

  .breadcrumbs {
    gap: 6px;
    margin-bottom: 16px;
    font-size: 11px;
  }

  .docs-content h1 {
    font-size: clamp(31px, 9.5vw, 38px);
  }

  .article-lead {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
  }

  .docs-content h2 {
    margin-top: 28px;
    font-size: 21px;
  }

  .docs-content p,
  .docs-content li {
    font-size: 14px;
    line-height: 1.7;
  }

  .article-pagination {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .article-pagination a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.docs-bottom-nav {
  display: none;
}

/* Final phone layout, aligned with the landing mobile navigation. */
@media (max-width: 760px) {
  :root {
    --header-height: 126px;
  }

  .docs-page {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .docs-header {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: var(--header-height);
    padding: 10px 16px 12px;
  }

  .docs-brand {
    min-height: 40px;
  }

  .docs-brand span {
    display: inline;
    font-size: 15px;
  }

  .docs-brand small {
    display: inline;
  }

  .docs-brand img {
    width: 38px;
    height: 38px;
  }

  .docs-search {
    width: 100%;
    min-height: 46px;
  }

  .docs-search kbd,
  .docs-header-actions {
    display: none;
  }

  .docs-layout {
    display: block;
    padding: 0 16px;
  }

  .docs-content {
    padding: 20px 0 38px;
  }

  .breadcrumbs {
    gap: 5px;
    margin-bottom: 16px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .docs-content article {
    min-height: 0;
  }

  .docs-content h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.02;
  }

  .article-lead {
    margin-bottom: 23px;
    font-size: 14px;
    line-height: 1.58;
  }

  .docs-content h2 {
    margin: 27px 0 10px;
    font-size: 20px;
  }

  .docs-content h3 {
    margin: 21px 0 7px;
    font-size: 16px;
  }

  .docs-content p,
  .docs-content li {
    font-size: 13px;
    line-height: 1.65;
  }

  .quick-steps {
    margin: 22px 0 28px;
    border-radius: 13px;
  }

  .quick-step {
    min-height: 82px;
    padding: 15px 14px;
    align-items: center;
  }

  .quick-step span {
    width: 28px;
    height: 28px;
  }

  .quick-step b {
    font-size: 12px;
  }

  .quick-step small {
    font-size: 10px;
  }

  .docs-note {
    padding: 12px 13px;
    font-size: 12px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 30px;
  }

  .article-pagination a {
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 115;
    top: auto;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    height: auto;
    max-height: min(68vh, 560px);
    padding: 22px 18px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(251, 252, 254, 0.98);
    box-shadow: 0 22px 60px rgba(16, 38, 74, 0.24);
    opacity: 0;
    transform: translateY(calc(100% + 100px));
    transition: opacity 0.2s ease, transform 0.22s ease;
  }

  .docs-sidebar.is-open {
    opacity: 1;
    transform: translateY(0);
  }

  .docs-nav-inner {
    gap: 20px;
  }

  .nav-group a {
    min-height: 42px;
    padding: 9px 12px;
  }

  .docs-mobile-actions {
    display: none;
  }

  .nav-backdrop {
    z-index: 110;
    inset: 0 0 calc(70px + env(safe-area-inset-bottom));
    background: rgba(16, 38, 74, 0.3);
    backdrop-filter: blur(2px);
  }

  .docs-bottom-nav {
    position: fixed;
    z-index: 120;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(16, 38, 74, 0.1);
    border-radius: 19px;
    background: rgba(255, 255, 252, 0.94);
    box-shadow: 0 16px 38px rgba(20, 49, 75, 0.22);
    backdrop-filter: blur(18px);
  }

  .docs-bottom-nav > a,
  .docs-bottom-nav > button {
    display: grid;
    min-width: 0;
    min-height: 50px;
    padding: 4px 2px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-family: "Fedra Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
  }

  .docs-bottom-nav > a:hover,
  .docs-bottom-nav > a:focus-visible,
  .docs-bottom-nav > button:hover,
  .docs-bottom-nav > button:focus-visible,
  .docs-bottom-nav > button[aria-expanded="true"] {
    background: var(--coral-soft);
    color: #c63834;
  }

  .docs-bottom-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .docs-bottom-nav .docs-panel-link:not([hidden]) {
    display: grid;
    background: var(--coral-soft);
    color: #c63834;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .docs-header,
  .docs-layout {
    padding-inline: 13px;
  }

  .docs-brand span {
    font-size: 14px;
  }

  .docs-bottom-nav {
    right: 7px;
    left: 7px;
    padding-inline: 4px;
  }

  .docs-bottom-nav > a,
  .docs-bottom-nav > button {
    font-size: 8px;
  }
}

@media (max-width: 340px) {
  .docs-brand span {
    display: none;
  }

  .docs-content h1 {
    font-size: 29px;
  }
}
