:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #334155;
  --soft: #64748b;
  --line: #e2e8f0;
  --line-dark: #cbd5e1;
  --dark: #0f172a;
  --dark-hover: #1e293b;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --green-line: #a7f3d0;
  --yellow-bg: #fffbeb;
  --yellow-line: #fde68a;
  --yellow-text: #92400e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
.top-ad {
  background: var(--dark);
  color: #e2e8f0;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #1e293b;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 auto;
}
.brand-title {
  font-weight: 600;
  line-height: 1.15;
}
.brand-subtitle {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.2;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-nav a,
.menu-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text);
}
.header-nav a:hover,
.menu-button:hover {
  background: #f8fafc;
}
.menu-button {
  display: none;
  cursor: pointer;
}
.docs-layout {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 40px 16px;
}
.sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  height: calc(100vh - 106px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel);
}
.search-box {
  position: sticky;
  top: 0;
  background: var(--panel);
  padding-bottom: 12px;
}
.search-box input,
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}
.search-box input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--line-dark);
  box-shadow: 0 0 0 3px #e2e8f0;
}
.section-list {
  display: grid;
  gap: 4px;
}
.section-list a {
  display: block;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
}
.section-list a:hover,
.section-list a.active {
  color: var(--text);
  background: #f8fafc;
}
.content {
  min-width: 0;
  display: grid;
  gap: 24px;
}
.doc-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--panel);
  scroll-margin-top: 104px;
}
.hero-card {
  padding: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}
.pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(36px, 5vw, 48px);
}
h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
h3 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 8px;
}
p {
  color: var(--muted);
  margin: 10px 0;
}
.large-text {
  font-size: 18px;
  line-height: 1.625;
  max-width: 790px;
}
ol,
ul {
  margin: 12px 0 0;
  padding-left: 24px;
  color: var(--muted);
}
li {
  margin: 8px 0;
}
strong {
  color: var(--text);
  font-weight: 600;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.primary-button,
.secondary-button,
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}
.primary-button,
button,
.btn {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}
.primary-button:hover,
button:hover,
.btn:hover {
  background: var(--dark-hover);
  border-color: var(--dark-hover);
}
.secondary-button {
  background: #ffffff;
  color: var(--text);
}
.secondary-button:hover {
  background: #f8fafc;
}
.note {
  border: 1px solid var(--yellow-line);
  background: var(--yellow-bg);
  color: var(--yellow-text);
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
}
.mini-card h3 {
  margin-top: 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  color: var(--text);
}
th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--text);
  background: #f8fafc;
  font-size: 14px;
  font-weight: 500;
}
tr:last-child td {
  border-bottom: 0;
}
.faq {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.no-results {
  display: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.footer {
  border-top: 1px solid var(--line);
  max-width: 72rem;
  margin: 0 auto;
  padding: 32px 16px;
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer a {
  color: var(--text);
}
@media (max-width: 880px) {
  .header-nav {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    z-index: 30;
    height: min(72vh, 620px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  }
  .sidebar.open {
    display: block;
  }
  .doc-section,
  .hero-card {
    padding: 22px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .brand-subtitle {
    display: none;
  }
}
@media (max-width: 520px) {
  .top-ad {
    font-size: 13px;
  }
  .header-inner {
    padding: 13px;
  }
  .brand-title {
    font-size: 14px;
  }
  .docs-layout {
    padding-left: 12px;
    padding-right: 12px;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 22px;
  }
  .button-row a {
    width: 100%;
  }
}
