
:root {
  --bg: #100c0d;
  --bg2: #171011;
  --panel: #1d1416;
  --panel2: #25191c;
  --panel3: #2d1c20;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,115,92,.28);
  --text: #f6eeee;
  --muted: #bdaeb1;
  --soft: #8e7d82;
  --red: #cf263d;
  --red2: #8e1525;
  --orange: #ff7048;
  --orange2: #ff9b58;
  --green: #47d78c;
  --yellow: #ffd16a;
  --shadow: 0 18px 55px rgba(0,0,0,.25);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(207,38,61,.13), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255,112,72,.07), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

code,
pre {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 28px;
  background: rgba(16,12,13,.91);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  font-weight: 900;
  letter-spacing: -.5px;
  box-shadow: 0 8px 30px rgba(207,38,61,.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text b {
  font-size: 16px;
}

.brand-text small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.portal-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.portal-nav a:hover,
.portal-nav a.active {
  color: white;
  background: rgba(255,255,255,.055);
}

.online-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  color: #d8f9e8;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(71,215,140,.22);
  background: rgba(71,215,140,.08);
  border-radius: 999px;
  padding: 8px 12px;
}

.online-pill i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

.docs-layout {
  max-width: 1640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
}

.sidebar {
  min-height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 24px 18px 40px 24px;
  border-right: 1px solid var(--border);
}

.search-wrap {
  position: relative;
}

#docSearch {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: white;
  padding: 12px 14px;
  border-radius: 11px;
  outline: none;
  font-size: 14px;
}

#docSearch:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,112,72,.10);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  z-index: 20;
  display: none;
  background: #181113;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 7px;
  box-shadow: var(--shadow);
}

.search-results.open {
  display: block;
}

.search-results a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
}

.search-results a:hover {
  background: rgba(255,255,255,.055);
}

.search-results b {
  display: block;
  font-size: 13px;
}

.search-results span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.side-label {
  margin: 26px 10px 8px;
  color: var(--soft);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.side-nav {
  display: flex;
  flex-direction: column;
}

.side-nav a {
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 9px;
  font-weight: 650;
  font-size: 13px;
  border-left: 2px solid transparent;
}

.side-nav a:hover {
  background: rgba(255,255,255,.035);
  color: white;
}

.side-nav a.active {
  color: white;
  background:
    linear-gradient(
      90deg,
      rgba(207,38,61,.17),
      rgba(255,112,72,.035)
    );
  border-left-color: var(--orange);
}

.sidebar-box {
  margin-top: 22px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sidebar-box strong,
.sidebar-box span,
.sidebar-box a {
  display: block;
}

.sidebar-box strong {
  font-size: 12px;
}

.sidebar-box span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-box a {
  margin-top: 9px;
  color: #ffb08d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.content {
  min-width: 0;
  padding: 26px 54px 70px;
  max-width: 1160px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--soft);
  font-size: 11px;
  margin: 4px 0 28px;
}

.breadcrumb a {
  color: var(--soft);
  text-decoration: none;
}

.breadcrumb b {
  color: #d8cacc;
}

.doc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-block;
  color: #ffb08d;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 900;
}

.doc-header h1 {
  margin: 8px 0 9px;
  font-size: clamp(36px,5vw,58px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.doc-header p {
  margin: 0;
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
}

.doc-article section {
  margin: 0 0 50px;
  scroll-margin-top: 100px;
}

.doc-article h2 {
  margin: 0 0 15px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.doc-article h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.doc-article p {
  color: #d0c3c6;
}

.doc-article ul,
.doc-article ol {
  color: #d0c3c6;
  padding-left: 22px;
}

.doc-article li {
  margin: 7px 0;
}

.hero-doc {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(
      135deg,
      rgba(207,38,61,.15),
      rgba(255,112,72,.025) 50%
    ),
    var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 23px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-doc h2 {
  font-size: clamp(30px,4vw,50px);
  margin: 10px 0;
}

.hero-doc img {
  width: 100%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.button.primary {
  background:
    linear-gradient(135deg,var(--red),var(--orange));
  border-color: transparent;
  color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.feature {
  display: flex;
  gap: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px;
}

.feature-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: 7px;
  box-shadow: 0 0 15px rgba(255,112,72,.7);
}

.feature strong {
  display: block;
}

.feature p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.three-grid,
.doc-card-grid,
.status-grid,
.spec-grid {
  display: grid;
  gap: 12px;
}

.three-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

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

.status-grid,
.spec-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.mini-card,
.status-grid > div,
.spec-grid > div {
  padding: 16px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.mini-card p {
  margin-bottom: 0;
  font-size: 12px;
}

.status-grid span,
.spec-grid span {
  color: var(--muted);
  font-size: 11px;
  display: block;
}

.status-grid strong,
.spec-grid strong {
  display: block;
  margin-top: 7px;
  word-break: break-word;
}

.doc-card-grid a {
  display: block;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: .18s ease;
}

.doc-card-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--panel2);
}

.doc-card-grid strong {
  display: block;
  margin-bottom: 5px;
}

.doc-card-grid span {
  color: var(--muted);
  font-size: 12px;
}

.doc-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border-radius: 17px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.codebox {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: #0b0909;
}

.codehead {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid var(--border);
  background: #151011;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.copy-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  color: #ddd;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 10px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--orange);
  color: white;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 16px;
  font-size: 12px;
  line-height: 1.65;
  color: #f0d8d5;
}

code {
  font-size: .91em;
  color: #ffc1a5;
}

td code {
  white-space: nowrap;
}

.callout {
  margin: 18px 0;
  border-left: 4px solid var(--orange);
  background: rgba(255,112,72,.07);
  padding: 14px 16px;
  border-radius: 0 11px 11px 0;
}

.callout.warning {
  border-left-color: var(--yellow);
  background: rgba(255,209,106,.055);
}

.callout p {
  margin: 4px 0 0;
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--panel2);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

td {
  color: #d4c5c8;
}

tr:last-child td {
  border-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.steps li {
  position: relative;
  padding: 13px 15px 13px 51px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 9px 0;
}

.steps li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background:
    linear-gradient(135deg,var(--red),var(--orange));
  font-weight: 900;
  font-size: 11px;
}

.tag-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-grid span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: #d8cbcd;
  font-size: 11px;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 18px 0;
}

.flow-strip span {
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
}

.flow-strip b {
  color: var(--orange);
}

.faq-list details {
  margin-bottom: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq-list summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 750;
}

.faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
}

.glossary dl {
  margin: 0;
}

.glossary dt {
  font-weight: 900;
  color: white;
  margin-top: 20px;
}

.glossary dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.doc-footer {
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--soft);
  font-size: 11px;
}

.doc-footer b,
.doc-footer span {
  display: block;
}

.doc-footer a {
  margin-left: 14px;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .portal-nav {
    display: none;
  }

  .online-pill {
    margin-left: auto;
  }

  .docs-layout {
    grid-template-columns: 240px minmax(0,1fr);
  }

  .content {
    padding: 25px 30px 60px;
  }

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

  .hero-doc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 10px 15px;
  }

  .online-pill {
    display: none;
  }

  .docs-layout {
    display: block;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 17px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px;
  }

  .content {
    padding: 22px 17px 50px;
  }

  .feature-grid,
  .three-grid,
  .doc-card-grid,
  .status-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .doc-header h1 {
    font-size: 38px;
  }

  .doc-footer {
    flex-direction: column;
  }

  td code {
    white-space: normal;
  }
}
